1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-02 21:28:10 +00:00
gns3-server/gns3server/static/web-ui/main.b8ab802a67c1c69cf879.js
2020-10-05 15:42:19 +02:00

1 line
3.0 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+/L5":function(e,t,n){var i=n("t1UP").isCustomProperty,r=n("vd7W").TYPE,o=n("4njK").mode,a=r.Ident,s=r.Hash,c=r.Colon,l=r.Semicolon,u=r.Delim;function h(e){return this.Raw(e,o.exclamationMarkOrSemicolon,!0)}function d(e){return this.Raw(e,o.exclamationMarkOrSemicolon,!1)}function f(){var e=this.scanner.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.scanner.eof&&this.scanner.tokenType!==l&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(e)&&this.error(),t}function p(){var e=this.scanner.tokenStart;if(this.scanner.tokenType===u)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.eat(this.scanner.tokenType===s?s:a),this.scanner.substrToCursor(e)}function m(){this.eat(u),this.scanner.skipSC();var e=this.consume(a);return"important"===e||e}e.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e,t=this.scanner.tokenStart,n=this.scanner.tokenIndex,r=p.call(this),o=i(r),a=o?this.parseCustomProperty:this.parseValue,s=o?d:h,u=!1;return this.scanner.skipSC(),this.eat(c),o||this.scanner.skipSC(),e=a?this.parseWithFallback(f,s):s.call(this,this.scanner.tokenIndex),this.scanner.isDelim(33)&&(u=m.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==l&&!1===this.scanner.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:u,property:r,value:e}},generate:function(e){this.chunk(e.property),this.chunk(":"),this.node(e.value),e.important&&this.chunk(!0===e.important?"!important":"!"+e.important)},walkContext:"declaration"}},"+4/i":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("odkN");i.Observable.prototype.let=r.letProto,i.Observable.prototype.letBind=r.letProto},"+Kd2":function(e,t,n){var i=n("vd7W").TYPE,r=n("4njK").mode,o=i.Comma;e.exports=function(){var e=this.createList();return this.scanner.skipSC(),e.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===o&&(e.push(this.Operator()),e.push(this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,r.exclamationMarkOrSemicolon,!1))),e}},"+oeQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("H+DX");i.Observable.prototype.observeOn=r.observeOn},"+psR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("16Oq");i.Observable.prototype.retry=r.retry},"+qxJ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("GsYY");i.Observable.prototype.distinctUntilChanged=r.distinctUntilChanged},"+v8i":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.concat=i.concat},"/+5V":function(e,t){function n(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}var n=null;return null!==this.matched&&function i(r){if(Array.isArray(r.match)){for(var o=0;o<r.match.length;o++)if(i(r.match[o]))return t(r.syntax)&&n.unshift(r.syntax),!0}else if(r.node===e)return n=t(r.syntax)?[r.syntax]:[],!0;return!1}(this.matched),n}function i(e,t,i){var r=n.call(e,t);return null!==r&&r.some(i)}e.exports={getTrace:n,isType:function(e,t){return i(this,e,(function(e){return"Type"===e.type&&e.name===t}))},isProperty:function(e,t){return i(this,e,(function(e){return"Property"===e.type&&e.name===t}))},isKeyword:function(e){return i(this,e,(function(e){return"Keyword"===e.type}))}}},"/BcF":function(e,t){e.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}}},"/POA":function(e,t,n){window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=34)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var i=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var n=0;n<e._listeners.length;n++)if(e._listeners[n]===t)return void e._listeners.splice(n,1)}}}),this._event},enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){for(var n=[],i=0;i<this._listeners.length;i++)n.push(this._listeners[i]);for(i=0;i<n.length;i++)n[i].call(void 0,e,t)},e.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},e}();t.EventEmitter=i,t.forwardEvent=function(e,t){return e((function(e){return t.fire(e)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IUnicodeService=t.IOptionsService=t.ILogService=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var i=n(14);t.IBufferService=i.createDecorator("BufferService"),t.ICoreMouseService=i.createDecorator("CoreMouseService"),t.ICoreService=i.createDecorator("CoreService"),t.ICharsetService=i.createDecorator("CharsetService"),t.IDirtyRowService=i.createDecorator("DirtyRowService"),t.IInstantiationService=i.createDecorator("InstantiationService"),t.ILogService=i.createDecorator("LogService"),t.IOptionsService=i.createDecorator("OptionsService"),t.IUnicodeService=i.createDecorator("UnicodeService")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var i=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed=!0;for(var e=0,t=this._disposables;e<t.length;e++)t[e].dispose();this._disposables.length=0},e.prototype.register=function(e){return this._disposables.push(e),e},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();function r(e){for(var t=0,n=e;t<n.length;t++)n[t].dispose();e.length=0}t.Disposable=i,t.disposeArray=r,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return r(e)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var o=n(8),a=n(3),s=n(6),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new s.ExtendedAttrs,t.combinedData="",t}return r(t,e),t.fromCharData=function(e){var n=new t;return n.setFromCharData(e),n},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?o.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[a.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[a.CHAR_DATA_CHAR_INDEX].length){var n=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var i=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(n-55296)+i-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.CellData=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var i=n(14);t.ICharSizeService=i.createDecorator("CharSizeService"),t.ICoreBrowserService=i.createDecorator("CoreBrowserService"),t.IMouseService=i.createDecorator("MouseService"),t.IRenderService=i.createDecorator("RenderService"),t.ISelectionService=i.createDecorator("SelectionService"),t.ISoundService=i.createDecorator("SoundService")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var i=function(){function e(){this.fg=0,this.bg=0,this.extended=new r}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=i;var r=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,i){e.addEventListener(t,n,i);var r=!1;return{dispose:function(){r||(r=!0,e.removeEventListener(t,n,i))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i="",r=t;r<n;++r){var o=e[r];o>65535?(o-=65536,i+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):i+=String.fromCharCode(o)}return i};var i=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var i=0,r=0;this._interim&&(56320<=(s=e.charCodeAt(r++))&&s<=57343?t[i++]=1024*(this._interim-55296)+s-56320+65536:(t[i++]=this._interim,t[i++]=s),this._interim=0);for(var o=r;o<n;++o){var a=e.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=n)return this._interim=a,i;var s;56320<=(s=e.charCodeAt(o))&&s<=57343?t[i++]=1024*(a-55296)+s-56320+65536:(t[i++]=a,t[i++]=s)}else t[i++]=a}return i},e}();t.StringToUtf32=i;var r=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var i,r,o,a,s=0,c=0,l=0;if(this.interim[0]){var u=!1,h=this.interim[0];h&=192==(224&h)?31:224==(240&h)?15:7;for(var d=0,f=void 0;(f=63&this.interim[++d])&&d<4;)h<<=6,h|=f;for(var p=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,m=p-d;l<m;){if(l>=n)return 0;if(128!=(192&(f=e[l++]))){l--,u=!0;break}this.interim[d++]=f,h<<=6,h|=63&f}u||(2===p?h<128?l--:t[s++]=h:3===p?h<2048||h>=55296&&h<=57343||(t[s++]=h):h<65536||h>1114111||(t[s++]=h)),this.interim.fill(0)}for(var g=n-4,v=l;v<n;){for(;!(!(v<g)||128&(i=e[v])||128&(r=e[v+1])||128&(o=e[v+2])||128&(a=e[v+3]));)t[s++]=i,t[s++]=r,t[s++]=o,t[s++]=a,v+=4;if((i=e[v++])<128)t[s++]=i;else if(192==(224&i)){if(v>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[v++]))){v--;continue}if((c=(31&i)<<6|63&r)<128){v--;continue}t[s++]=c}else if(224==(240&i)){if(v>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=r,s;if(128!=(192&(o=e[v++]))){v--;continue}if((c=(15&i)<<12|(63&r)<<6|63&o)<2048||c>=55296&&c<=57343)continue;t[s++]=c}else if(240==(248&i)){if(v>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=r,s;if(128!=(192&(o=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=r,this.interim[2]=o,s;if(128!=(192&(a=e[v++]))){v--;continue}if((c=(7&i)<<18|(63&r)<<12|(63&o)<<6|63&a)<65536||c>1114111)continue;t[s++]=c}}return s},e}();t.Utf8ToUtf32=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0,t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,n){"use strict";var i,r,o,a;function s(e){var t=e.toString(16);return t.length<2?"0"+t:t}function c(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=void 0,function(e){e.toCss=function(e,t,n,i){return void 0!==i?"#"+s(e)+s(t)+s(n)+s(i):"#"+s(e)+s(t)+s(n)},e.toRgba=function(e,t,n,i){return void 0===i&&(i=255),(e<<24|t<<16|n<<8|i)>>>0}}(i=t.channels||(t.channels={})),(r=t.color||(t.color={})).blend=function(e,t){var n=(255&t.rgba)/255;if(1===n)return{css:t.css,rgba:t.rgba};var r=t.rgba>>16&255,o=t.rgba>>8&255,a=e.rgba>>24&255,s=e.rgba>>16&255,c=e.rgba>>8&255,l=a+Math.round(((t.rgba>>24&255)-a)*n),u=s+Math.round((r-s)*n),h=c+Math.round((o-c)*n);return{css:i.toCss(l,u,h),rgba:i.toRgba(l,u,h)}},r.isOpaque=function(e){return 255==(255&e.rgba)},r.ensureContrastRatio=function(e,t,n){var i=a.ensureContrastRatio(e.rgba,t.rgba,n);if(i)return a.toColor(i>>24&255,i>>16&255,i>>8&255)},r.opaque=function(e){var t=(255|e.rgba)>>>0,n=a.toChannels(t);return{css:i.toCss(n[0],n[1],n[2]),rgba:t}},r.opacity=function(e,t){var n=Math.round(255*t),r=a.toChannels(e.rgba),o=r[0],s=r[1],c=r[2];return{css:i.toCss(o,s,c,n),rgba:i.toRgba(o,s,c,n)}},(t.css||(t.css={})).toColor=function(e){switch(e.length){case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,n){var i=e/255,r=t/255,o=n/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(o=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var i=e>>24&255,r=e>>16&255,a=e>>8&255,s=t>>24&255,l=t>>16&255,u=t>>8&255,h=c(o.relativeLuminance2(s,u,l),o.relativeLuminance2(i,r,a));h<n&&(s>0||l>0||u>0);)s-=Math.max(0,Math.ceil(.1*s)),l-=Math.max(0,Math.ceil(.1*l)),u-=Math.max(0,Math.ceil(.1*u)),h=c(o.relativeLuminance2(s,u,l),o.relativeLuminance2(i,r,a));return(s<<24|l<<16|u<<8|255)>>>0}function n(e,t,n){for(var i=e>>24&255,r=e>>16&255,a=e>>8&255,s=t>>24&255,l=t>>16&255,u=t>>8&255,h=c(o.relativeLuminance2(s,u,l),o.relativeLuminance2(i,r,a));h<n&&(s<255||l<255||u<255);)s=Math.min(255,s+Math.ceil(.1*(255-s))),l=Math.min(255,l+Math.ceil(.1*(255-l))),u=Math.min(255,u+Math.ceil(.1*(255-u))),h=c(o.relativeLuminance2(s,u,l),o.relativeLuminance2(i,r,a));return(s<<24|l<<16|u<<8|255)>>>0}e.ensureContrastRatio=function(e,i,r){var a=o.relativeLuminance(e>>8),s=o.relativeLuminance(i>>8);if(c(a,s)<r)return s<a?t(e,i,r):n(e,i,r)},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n){return{css:i.toCss(e,t,n),rgba:i.toRgba(e,t,n)}}}(a=t.rgba||(t.rgba={})),t.toPaddedHex=s,t.contrastRatio=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isFirefox=void 0;var i="undefined"==typeof navigator,r=i?"node":navigator.userAgent,o=i?"node":navigator.platform;function a(e,t){return e.indexOf(t)>=0}t.isFirefox=!!~r.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(r),t.isMac=a(["Macintosh","MacIntel","MacPPC","Mac68K"],o),t.isIpad="iPad"===o,t.isIphone="iPhone"===o,t.isWindows=a(["Windows","Win16","Win32","WinCE"],o),t.isLinux=o.indexOf("Linux")>=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="\x01",e.STX="\x02",e.ETX="\x03",e.EOT="\x04",e.ENQ="\x05",e.ACK="\x06",e.BEL="\x07",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\x0e",e.SI="\x0f",e.DLE="\x10",e.DC1="\x11",e.DC2="\x12",e.DC3="\x13",e.DC4="\x14",e.NAK="\x15",e.SYN="\x16",e.ETB="\x17",e.CAN="\x18",e.EM="\x19",e.SUB="\x1a",e.ESC="\x1b",e.FS="\x1c",e.GS="\x1d",e.RS="\x1e",e.US="\x1f",e.SP=" ",e.DEL="\x7f"}(t.C0||(t.C0={})),function(e){e.PAD="\x80",e.HOP="\x81",e.BPH="\x82",e.NBH="\x83",e.IND="\x84",e.NEL="\x85",e.SSA="\x86",e.ESA="\x87",e.HTS="\x88",e.HTJ="\x89",e.VTS="\x8a",e.PLD="\x8b",e.PLU="\x8c",e.RI="\x8d",e.SS2="\x8e",e.SS3="\x8f",e.DCS="\x90",e.PU1="\x91",e.PU2="\x92",e.STS="\x93",e.CCH="\x94",e.MW="\x95",e.SPA="\x96",e.EPA="\x97",e.SOS="\x98",e.SGCI="\x99",e.SCI="\x9a",e.CSI="\x9b",e.ST="\x9c",e.OSC="\x9d",e.PM="\x9e",e.APC="\x9f"}(t.C1||(t.C1={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var i=n(3),r=n(9),o=n(25),a=n(6),s=n(28),c=n(10),l=n(17),u=function(){function e(e,t,n,i,r,o,a,s){this._container=e,this._alpha=i,this._colors=r,this._rendererId=o,this._bufferService=a,this._optionsService=s,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;l.removeElementFromParent(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=s.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,n){void 0===n&&(n=!1)},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=o.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype._fillCells=function(e,t,n,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight)},e.prototype._fillBottomLineAtCells=function(e,t,n){void 0===n&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*n,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,n,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,n,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,n){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(n),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},e.prototype._drawChars=function(e,t,n){var o,a,s=this._getContrastColor(e);s||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,n,s):(e.isInverse()?(o=e.isBgDefault()?r.INVERTED_DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?r.INVERTED_DEFAULT_COLOR:e.getFgColor()):(a=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),o=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=o,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,n))},e.prototype._drawUncachedChars=function(e,t,n,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(i)this._ctx.fillStyle=i.css;else if(e.isBgDefault())this._ctx.fillStyle=c.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var o=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),this._ctx.fillStyle=this._colors.ansi[o].css}else if(i)this._ctx.fillStyle=i.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var s=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}this._clipRow(n),e.isDim()&&(this._ctx.globalAlpha=r.DIM_OPACITY),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},e.prototype._getContrastColor=function(e){if(1!==this._optionsService.options.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var n=e.getFgColor(),i=e.getFgColorMode(),r=e.getBgColor(),o=e.getBgColorMode(),a=!!e.isInverse(),s=!!e.isInverse();if(a){var l=n;n=r,r=l;var u=i;i=o,o=u}var h=this._resolveBackgroundRgba(o,r,a),d=this._resolveForegroundRgba(i,n,a,s),f=c.rgba.ensureContrastRatio(h,d,this._optionsService.options.minimumContrastRatio);if(f){var p={css:c.channels.toCss(f>>24&255,f>>16&255,f>>8&255),rgba:f};return this._colors.contrastCache.setColor(e.bg,e.fg,p),p}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},e.prototype._resolveBackgroundRgba=function(e,t,n){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return n?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,n,i){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&i&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return n?this._colors.background.rgba:this._colors.foreground.rgba}},e}();t.BaseRenderLayer=u},function(e,t,n){"use strict";function i(e,t,n){t.di$target===t?t.di$dependencies.push({id:e,index:n}):(t.di$dependencies=[{id:e,index:n}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function e(t,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");i(e,t,r)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},function(e,t,n){"use strict";function i(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),n>=e.length)return e;i=i>=e.length?e.length:(e.length+i)%e.length;for(var r=n=(e.length+n)%e.length;r<i;++r)e[r]=t;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(e,t,n,r){return e.fill?e.fill(t,n,r):i(e,t,n,r)},t.fillFallback=i,t.concat=function(e,t){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var i=n(8),r=n(3),o=n(4),a=n(6);t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData);var s=function(){function e(e,t,n){void 0===n&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);for(var i=t||o.CellData.fromCharData([0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]),a=0;a<e;++a)this.setCell(a,i);this.length=e}return e.prototype.get=function(e){var t=this._data[3*e+0],n=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:n?i.stringFromCodePoint(n):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]},e.prototype.set=function(e,t){this._data[3*e+1]=t[r.CHAR_DATA_ATTR_INDEX],t[r.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[r.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[r.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?i.stringFromCodePoint(2097151&t):""},e.prototype.loadCell=function(e,t){var n=3*e;return t.content=this._data[n+0],t.fg=this._data[n+1],t.bg=this._data[n+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,n,i,r,o){268435456&r&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=i,this._data[3*e+2]=r},e.prototype.addCodepointToCell=function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=i.stringFromCodePoint(t):(2097151&n?(this._combined[e]=i.stringFromCodePoint(2097151&n)+i.stringFromCodePoint(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)},e.prototype.insertCells=function(e,t,n,i){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),t<this.length-e){for(var r=new o.CellData,s=this.length-e-t-1;s>=0;--s)this.setCell(e+t+s,this.loadCell(e+s,r));for(s=0;s<t;++s)this.setCell(e+s,n)}else for(s=e;s<this.length;++s)this.setCell(s,n);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs)},e.prototype.deleteCells=function(e,t,n,i){if(t<this.length-(e%=this.length)){for(var r=new o.CellData,s=0;s<this.length-e-t;++s)this.setCell(e+s,this.loadCell(e+t+s,r));for(s=this.length-t;s<this.length;++s)this.setCell(s,n)}else for(s=e;s<this.length;++s)this.setCell(s,n);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs)},e.prototype.replaceCells=function(e,t,n,i){for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,n)},e.prototype.resize=function(e,t){if(e!==this.length){if(e>this.length){var n=new Uint32Array(3*e);this.length&&n.set(3*e<this._data.length?this._data.subarray(0,3*e):this._data),this._data=n;for(var i=this.length;i<e;++i)this.setCell(i,t)}else if(e){(n=new Uint32Array(3*e)).set(this._data.subarray(0,3*e)),this._data=n;var r=Object.keys(this._combined);for(i=0;i<r.length;i++){var o=parseInt(r[i],10);o>=e&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,e)},e.prototype.copyFrom=function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];for(var t in this._extendedAttrs={},e._extendedAttrs)this._extendedAttrs[t]=e._extendedAttrs[t];this.isWrapped=e.isWrapped},e.prototype.clone=function(){var t=new e(0);for(var n in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[n]=this._combined[n];for(var n in this._extendedAttrs)t._extendedAttrs[n]=this._extendedAttrs[n];return t.isWrapped=this.isWrapped,t},e.prototype.getTrimmedLength=function(){for(var e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,n,i,r){var o=e._data;if(r)for(var a=i-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(n+a)+s]=o[3*(t+a)+s];else for(a=0;a<i;a++)for(s=0;s<3;s++)this._data[3*(n+a)+s]=o[3*(t+a)+s];var c=Object.keys(e._combined);for(s=0;s<c.length;s++){var l=parseInt(c[s],10);l>=t&&(this._combined[l-t+n]=e._combined[l])}},e.prototype.translateToString=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===n&&(n=this.length),e&&(n=Math.min(n,this.getTrimmedLength()));for(var o="";t<n;){var a=this._data[3*t+0],s=2097151&a;o+=2097152&a?this._combined[t]:s?i.stringFromCodePoint(s):r.WHITESPACE_CELL_CHAR,t+=a>>22||1}return o},e}();t.BufferLine=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];null===(e=null==o?void 0:o.parentElement)||void 0===e||e.removeChild(o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;var o,a=n(12),s=n(20),c=n(39),l=n(2),u=n(15),h=n(8),d=n(16),f=n(0),p=n(3),m=n(4),g=n(6),v=n(22),b=n(24),y={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function _(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(o=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var w=function(){function e(e,t,n,i){this._bufferService=e,this._coreService=t,this._logService=n,this._optionsService=i,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,n){this._data=u.concat(this._data,e.subarray(t,n))},e.prototype.unhook=function(e){if(e){var t=h.utf32ToString(this._data);switch(this._data=new Uint32Array(0),t){case'"q':return this._coreService.triggerDataEvent(a.C0.ESC+'P1$r0"q'+a.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(a.C0.ESC+'P1$r61;1"p'+a.C0.ESC+"\\");case"r":return this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+a.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(a.C0.ESC+"P1$r0m"+a.C0.ESC+"\\");case" q":var n={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+(n-=this._optionsService.options.cursorBlink?1:0)+" q"+a.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(a.C0.ESC+"P0$r"+a.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},e}(),k=function(e){function t(t,n,i,r,o,l,u,p,g){void 0===g&&(g=new c.EscapeSequenceParser);var b=e.call(this)||this;b._bufferService=t,b._charsetService=n,b._coreService=i,b._dirtyRowService=r,b._logService=o,b._optionsService=l,b._coreMouseService=u,b._unicodeService=p,b._parser=g,b._parseBuffer=new Uint32Array(4096),b._stringDecoder=new h.StringToUtf32,b._utf8Decoder=new h.Utf8ToUtf32,b._workCell=new m.CellData,b._windowTitle="",b._iconName="",b._windowTitleStack=[],b._iconNameStack=[],b._curAttrData=d.DEFAULT_ATTR_DATA.clone(),b._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone(),b._onRequestBell=new f.EventEmitter,b._onRequestRefreshRows=new f.EventEmitter,b._onRequestReset=new f.EventEmitter,b._onRequestScroll=new f.EventEmitter,b._onRequestSyncScrollBar=new f.EventEmitter,b._onRequestWindowsOptionsReport=new f.EventEmitter,b._onA11yChar=new f.EventEmitter,b._onA11yTab=new f.EventEmitter,b._onCursorMove=new f.EventEmitter,b._onLineFeed=new f.EventEmitter,b._onScroll=new f.EventEmitter,b._onTitleChange=new f.EventEmitter,b.register(b._parser),b._parser.setCsiHandlerFallback((function(e,t){b._logService.debug("Unknown CSI code: ",{identifier:b._parser.identToString(e),params:t.toArray()})})),b._parser.setEscHandlerFallback((function(e){b._logService.debug("Unknown ESC code: ",{identifier:b._parser.identToString(e)})})),b._parser.setExecuteHandlerFallback((function(e){b._logService.debug("Unknown EXECUTE code: ",{code:e})})),b._parser.setOscHandlerFallback((function(e,t,n){b._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:n})})),b._parser.setDcsHandlerFallback((function(e,t,n){"HOOK"===t&&(n=n.toArray()),b._logService.debug("Unknown DCS code: ",{identifier:b._parser.identToString(e),action:t,payload:n})})),b._parser.setPrintHandler((function(e,t,n){return b.print(e,t,n)})),b._parser.setCsiHandler({final:"@"},(function(e){return b.insertChars(e)})),b._parser.setCsiHandler({intermediates:" ",final:"@"},(function(e){return b.scrollLeft(e)})),b._parser.setCsiHandler({final:"A"},(function(e){return b.cursorUp(e)})),b._parser.setCsiHandler({intermediates:" ",final:"A"},(function(e){return b.scrollRight(e)})),b._parser.setCsiHandler({final:"B"},(function(e){return b.cursorDown(e)})),b._parser.setCsiHandler({final:"C"},(function(e){return b.cursorForward(e)})),b._parser.setCsiHandler({final:"D"},(function(e){return b.cursorBackward(e)})),b._parser.setCsiHandler({final:"E"},(function(e){return b.cursorNextLine(e)})),b._parser.setCsiHandler({final:"F"},(function(e){return b.cursorPrecedingLine(e)})),b._parser.setCsiHandler({final:"G"},(function(e){return b.cursorCharAbsolute(e)})),b._parser.setCsiHandler({final:"H"},(function(e){return b.cursorPosition(e)})),b._parser.setCsiHandler({final:"I"},(function(e){return b.cursorForwardTab(e)})),b._parser.setCsiHandler({final:"J"},(function(e){return b.eraseInDisplay(e)})),b._parser.setCsiHandler({prefix:"?",final:"J"},(function(e){return b.eraseInDisplay(e)})),b._parser.setCsiHandler({final:"K"},(function(e){return b.eraseInLine(e)})),b._parser.setCsiHandler({prefix:"?",final:"K"},(function(e){return b.eraseInLine(e)})),b._parser.setCsiHandler({final:"L"},(function(e){return b.insertLines(e)})),b._parser.setCsiHandler({final:"M"},(function(e){return b.deleteLines(e)})),b._parser.setCsiHandler({final:"P"},(function(e){return b.deleteChars(e)})),b._parser.setCsiHandler({final:"S"},(function(e){return b.scrollUp(e)})),b._parser.setCsiHandler({final:"T"},(function(e){return b.scrollDown(e)})),b._parser.setCsiHandler({final:"X"},(function(e){return b.eraseChars(e)})),b._parser.setCsiHandler({final:"Z"},(function(e){return b.cursorBackwardTab(e)})),b._parser.setCsiHandler({final:"`"},(function(e){return b.charPosAbsolute(e)})),b._parser.setCsiHandler({final:"a"},(function(e){return b.hPositionRelative(e)})),b._parser.setCsiHandler({final:"b"},(function(e){return b.repeatPrecedingCharacter(e)})),b._parser.setCsiHandler({final:"c"},(function(e){return b.sendDeviceAttributesPrimary(e)})),b._parser.setCsiHandler({prefix:">",final:"c"},(function(e){return b.sendDeviceAttributesSecondary(e)})),b._parser.setCsiHandler({final:"d"},(function(e){return b.linePosAbsolute(e)})),b._parser.setCsiHandler({final:"e"},(function(e){return b.vPositionRelative(e)})),b._parser.setCsiHandler({final:"f"},(function(e){return b.hVPosition(e)})),b._parser.setCsiHandler({final:"g"},(function(e){return b.tabClear(e)})),b._parser.setCsiHandler({final:"h"},(function(e){return b.setMode(e)})),b._parser.setCsiHandler({prefix:"?",final:"h"},(function(e){return b.setModePrivate(e)})),b._parser.setCsiHandler({final:"l"},(function(e){return b.resetMode(e)})),b._parser.setCsiHandler({prefix:"?",final:"l"},(function(e){return b.resetModePrivate(e)})),b._parser.setCsiHandler({final:"m"},(function(e){return b.charAttributes(e)})),b._parser.setCsiHandler({final:"n"},(function(e){return b.deviceStatus(e)})),b._parser.setCsiHandler({prefix:"?",final:"n"},(function(e){return b.deviceStatusPrivate(e)})),b._parser.setCsiHandler({intermediates:"!",final:"p"},(function(e){return b.softReset(e)})),b._parser.setCsiHandler({intermediates:" ",final:"q"},(function(e){return b.setCursorStyle(e)})),b._parser.setCsiHandler({final:"r"},(function(e){return b.setScrollRegion(e)})),b._parser.setCsiHandler({final:"s"},(function(e){return b.saveCursor(e)})),b._parser.setCsiHandler({final:"t"},(function(e){return b.windowOptions(e)})),b._parser.setCsiHandler({final:"u"},(function(e){return b.restoreCursor(e)})),b._parser.setCsiHandler({intermediates:"'",final:"}"},(function(e){return b.insertColumns(e)})),b._parser.setCsiHandler({intermediates:"'",final:"~"},(function(e){return b.deleteColumns(e)})),b._parser.setExecuteHandler(a.C0.BEL,(function(){return b.bell()})),b._parser.setExecuteHandler(a.C0.LF,(function(){return b.lineFeed()})),b._parser.setExecuteHandler(a.C0.VT,(function(){return b.lineFeed()})),b._parser.setExecuteHandler(a.C0.FF,(function(){return b.lineFeed()})),b._parser.setExecuteHandler(a.C0.CR,(function(){return b.carriageReturn()})),b._parser.setExecuteHandler(a.C0.BS,(function(){return b.backspace()})),b._parser.setExecuteHandler(a.C0.HT,(function(){return b.tab()})),b._parser.setExecuteHandler(a.C0.SO,(function(){return b.shiftOut()})),b._parser.setExecuteHandler(a.C0.SI,(function(){return b.shiftIn()})),b._parser.setExecuteHandler(a.C1.IND,(function(){return b.index()})),b._parser.setExecuteHandler(a.C1.NEL,(function(){return b.nextLine()})),b._parser.setExecuteHandler(a.C1.HTS,(function(){return b.tabSet()})),b._parser.setOscHandler(0,new v.OscHandler((function(e){b.setTitle(e),b.setIconName(e)}))),b._parser.setOscHandler(1,new v.OscHandler((function(e){return b.setIconName(e)}))),b._parser.setOscHandler(2,new v.OscHandler((function(e){return b.setTitle(e)}))),b._parser.setEscHandler({final:"7"},(function(){return b.saveCursor()})),b._parser.setEscHandler({final:"8"},(function(){return b.restoreCursor()})),b._parser.setEscHandler({final:"D"},(function(){return b.index()})),b._parser.setEscHandler({final:"E"},(function(){return b.nextLine()})),b._parser.setEscHandler({final:"H"},(function(){return b.tabSet()})),b._parser.setEscHandler({final:"M"},(function(){return b.reverseIndex()})),b._parser.setEscHandler({final:"="},(function(){return b.keypadApplicationMode()})),b._parser.setEscHandler({final:">"},(function(){return b.keypadNumericMode()})),b._parser.setEscHandler({final:"c"},(function(){return b.fullReset()})),b._parser.setEscHandler({final:"n"},(function(){return b.setgLevel(2)})),b._parser.setEscHandler({final:"o"},(function(){return b.setgLevel(3)})),b._parser.setEscHandler({final:"|"},(function(){return b.setgLevel(3)})),b._parser.setEscHandler({final:"}"},(function(){return b.setgLevel(2)})),b._parser.setEscHandler({final:"~"},(function(){return b.setgLevel(1)})),b._parser.setEscHandler({intermediates:"%",final:"@"},(function(){return b.selectDefaultCharset()})),b._parser.setEscHandler({intermediates:"%",final:"G"},(function(){return b.selectDefaultCharset()}));var y=function(e){_._parser.setEscHandler({intermediates:"(",final:e},(function(){return b.selectCharset("("+e)})),_._parser.setEscHandler({intermediates:")",final:e},(function(){return b.selectCharset(")"+e)})),_._parser.setEscHandler({intermediates:"*",final:e},(function(){return b.selectCharset("*"+e)})),_._parser.setEscHandler({intermediates:"+",final:e},(function(){return b.selectCharset("+"+e)})),_._parser.setEscHandler({intermediates:"-",final:e},(function(){return b.selectCharset("-"+e)})),_._parser.setEscHandler({intermediates:".",final:e},(function(){return b.selectCharset("."+e)})),_._parser.setEscHandler({intermediates:"/",final:e},(function(){return b.selectCharset("/"+e)}))},_=this;for(var k in s.CHARSETS)y(k);return b._parser.setEscHandler({intermediates:"#",final:"8"},(function(){return b.screenAlignmentPattern()})),b._parser.setErrorHandler((function(e){return b._logService.error("Parsing error: ",e),e})),b._parser.setDcsHandler({intermediates:"$",final:"q"},new w(b._bufferService,b._coreService,b._logService,b._optionsService)),b}return r(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.parse=function(e){var t=this._bufferService.buffer,n=t.x,i=t.y;if(this._logService.debug("parsing data",e),this._parseBuffer.length<e.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(e.length,131072))),this._dirtyRowService.clearRange(),e.length>131072)for(var r=0;r<e.length;r+=131072){var o=r+131072<e.length?r+131072:e.length,a="string"==typeof e?this._stringDecoder.decode(e.substring(r,o),this._parseBuffer):this._utf8Decoder.decode(e.subarray(r,o),this._parseBuffer);this._parser.parse(this._parseBuffer,a)}else a="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer),this._parser.parse(this._parseBuffer,a);(t=this._bufferService.buffer).x===n&&t.y===i||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},t.prototype.print=function(e,t,n){var i,r,o=this._bufferService.buffer,a=this._charsetService.charset,s=this._optionsService.options.screenReaderMode,c=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,u=this._coreService.modes.insertMode,d=this._curAttrData,f=o.lines.get(o.ybase+o.y);this._dirtyRowService.markDirty(o.y),o.x&&n-t>0&&2===f.getWidth(o.x-1)&&f.setCellFromCodePoint(o.x-1,0,1,d.fg,d.bg,d.extended);for(var m=t;m<n;++m){if(r=this._unicodeService.wcwidth(i=e[m]),i<127&&a){var g=a[String.fromCharCode(i)];g&&(i=g.charCodeAt(0))}if(s&&this._onA11yChar.fire(h.stringFromCodePoint(i)),r||!o.x){if(o.x+r-1>=c)if(l){for(;o.x<c;)f.setCellFromCodePoint(o.x++,0,1,d.fg,d.bg,d.extended);o.x=0,o.y++,o.y===o.scrollBottom+1?(o.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(o.y>=this._bufferService.rows&&(o.y=this._bufferService.rows-1),o.lines.get(o.ybase+o.y).isWrapped=!0),f=o.lines.get(o.ybase+o.y)}else if(o.x=c-1,2===r)continue;if(u&&(f.insertCells(o.x,r,o.getNullCell(d),d),2===f.getWidth(c-1)&&f.setCellFromCodePoint(c-1,p.NULL_CELL_CODE,p.NULL_CELL_WIDTH,d.fg,d.bg,d.extended)),f.setCellFromCodePoint(o.x++,i,r,d.fg,d.bg,d.extended),r>0)for(;--r;)f.setCellFromCodePoint(o.x++,0,0,d.fg,d.bg,d.extended)}else f.getWidth(o.x-1)?f.addCodepointToCell(o.x-1,i):f.addCodepointToCell(o.x-2,i)}n-t>0&&(f.loadCell(o.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),o.x<c&&n-t>0&&0===f.getWidth(o.x)&&!f.hasContent(o.x)&&f.setCellFromCodePoint(o.x,0,1,d.fg,d.bg,d.extended),this._dirtyRowService.markDirty(o.y)},t.prototype.addCsiHandler=function(e,t){var n=this;return this._parser.addCsiHandler(e,"t"!==e.final||e.prefix||e.intermediates?t:function(e){return!_(e.params[0],n._optionsService.options.windowOptions)||t(e)})},t.prototype.addDcsHandler=function(e,t){return this._parser.addDcsHandler(e,new b.DcsHandler(t))},t.prototype.addEscHandler=function(e,t){return this._parser.addEscHandler(e,t)},t.prototype.addOscHandler=function(e,t){return this._parser.addOscHandler(e,new v.OscHandler(t))},t.prototype.bell=function(){this._onRequestBell.fire()},t.prototype.lineFeed=function(){var e=this._bufferService.buffer;this._dirtyRowService.markDirty(e.y),this._optionsService.options.convertEol&&(e.x=0),e.y++,e.y===e.scrollBottom+1?(e.y--,this._onRequestScroll.fire(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),e.x>=this._bufferService.cols&&e.x--,this._dirtyRowService.markDirty(e.y),this._onLineFeed.fire()},t.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},t.prototype.backspace=function(){var e,t=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(t.x>0&&t.x--);if(this._restrictCursor(this._bufferService.cols),t.x>0)t.x--;else if(0===t.x&&t.y>t.scrollTop&&t.y<=t.scrollBottom&&(null===(e=t.lines.get(t.ybase+t.y))||void 0===e?void 0:e.isWrapped)){t.lines.get(t.ybase+t.y).isWrapped=!1,t.y--,t.x=this._bufferService.cols-1;var n=t.lines.get(t.ybase+t.y);n.hasWidth(t.x)&&!n.hasContent(t.x)&&t.x--}this._restrictCursor()},t.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var e=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-e)}},t.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},t.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(e,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=e,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+t):(this._bufferService.buffer.x=e,this._bufferService.buffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+e,this._bufferService.buffer.y+t)},t.prototype.cursorUp=function(e){var t=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;this._moveCursor(0,t>=0?-Math.min(t,e.params[0]||1):-(e.params[0]||1))},t.prototype.cursorDown=function(e){var t=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;this._moveCursor(0,t>=0?Math.min(t,e.params[0]||1):e.params[0]||1)},t.prototype.cursorForward=function(e){this._moveCursor(e.params[0]||1,0)},t.prototype.cursorBackward=function(e){this._moveCursor(-(e.params[0]||1),0)},t.prototype.cursorNextLine=function(e){this.cursorDown(e),this._bufferService.buffer.x=0},t.prototype.cursorPrecedingLine=function(e){this.cursorUp(e),this._bufferService.buffer.x=0},t.prototype.cursorCharAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},t.prototype.cursorPosition=function(e){this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1)},t.prototype.charPosAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},t.prototype.hPositionRelative=function(e){this._moveCursor(e.params[0]||1,0)},t.prototype.linePosAbsolute=function(e){this._setCursor(this._bufferService.buffer.x,(e.params[0]||1)-1)},t.prototype.vPositionRelative=function(e){this._moveCursor(0,e.params[0]||1)},t.prototype.hVPosition=function(e){this.cursorPosition(e)},t.prototype.tabClear=function(e){var t=e.params[0];0===t?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===t&&(this._bufferService.buffer.tabs={})},t.prototype.cursorForwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1;t--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},t.prototype.cursorBackwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1,n=this._bufferService.buffer;t--;)n.x=n.prevStop()},t.prototype._eraseInBufferLine=function(e,t,n,i){void 0===i&&(i=!1);var r=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);r.replaceCells(t,n,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i&&(r.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);t.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(),e.params[0]){case 0:for(this._dirtyRowService.markDirty(t=this._bufferService.buffer.y),this._eraseInBufferLine(t++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);t<this._bufferService.rows;t++)this._resetBufferLine(t);this._dirtyRowService.markDirty(t);break;case 1:for(this._dirtyRowService.markDirty(t=this._bufferService.buffer.y),this._eraseInBufferLine(t,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty((t=this._bufferService.rows)-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var n=this._bufferService.buffer.lines.length-this._bufferService.rows;n>0&&(this._bufferService.buffer.lines.trimStart(n),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-n,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-n,0),this._onScroll.fire(0))}},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(),e.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1,n=this._bufferService.buffer;if(!(n.y>n.scrollBottom||n.y<n.scrollTop)){for(var i=n.ybase+n.y,r=this._bufferService.rows-1+n.ybase-(this._bufferService.rows-1-n.scrollBottom)+1;t--;)n.lines.splice(r-1,1),n.lines.splice(i,0,n.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(n.y,n.scrollBottom),n.x=0}},t.prototype.deleteLines=function(e){this._restrictCursor();var t=e.params[0]||1,n=this._bufferService.buffer;if(!(n.y>n.scrollBottom||n.y<n.scrollTop)){var i,r=n.ybase+n.y;for(i=this._bufferService.rows-1+n.ybase-(i=this._bufferService.rows-1-n.scrollBottom);t--;)n.lines.splice(r,1),n.lines.splice(i,0,n.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(n.y,n.scrollBottom),n.x=0}},t.prototype.insertChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);t&&(t.insertCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},t.prototype.deleteChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);t&&(t.deleteCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},t.prototype.scrollUp=function(e){for(var t=e.params[0]||1,n=this._bufferService.buffer;t--;)n.lines.splice(n.ybase+n.scrollTop,1),n.lines.splice(n.ybase+n.scrollBottom,0,n.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(n.scrollTop,n.scrollBottom)},t.prototype.scrollDown=function(e){for(var t=e.params[0]||1,n=this._bufferService.buffer;t--;)n.lines.splice(n.ybase+n.scrollBottom,1),n.lines.splice(n.ybase+n.scrollTop,0,n.getBlankLine(d.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(n.scrollTop,n.scrollBottom)},t.prototype.scrollLeft=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var n=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var r=t.lines.get(t.ybase+i);r.deleteCells(0,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.scrollRight=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var n=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var r=t.lines.get(t.ybase+i);r.insertCells(0,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.insertColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var n=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var r=this._bufferService.buffer.lines.get(t.ybase+i);r.insertCells(t.x,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.deleteColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var n=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var r=t.lines.get(t.ybase+i);r.deleteCells(t.x,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.eraseChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);t&&(t.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(e.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},t.prototype.repeatPrecedingCharacter=function(e){if(this._parser.precedingCodepoint){for(var t=e.params[0]||1,n=new Uint32Array(t),i=0;i<t;++i)n[i]=this._parser.precedingCodepoint;this.print(n,0,n.length)}},t.prototype.sendDeviceAttributesPrimary=function(e){e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c"))},t.prototype.sendDeviceAttributesSecondary=function(e){e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c"))},t.prototype._is=function(e){return 0===(this._optionsService.options.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0}},t.prototype.setModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),this._charsetService.setgCharset(1,s.DEFAULT_CHARSET),this._charsetService.setgCharset(2,s.DEFAULT_CHARSET),this._charsetService.setgCharset(3,s.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},t.prototype.resetMode=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1}},t.prototype.resetModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[t]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},t.prototype._updateAttrColor=function(e,t,n,i,r){return 2===t?(e|=50331648,e&=-16777216,e|=g.AttributeData.fromColorRGB([n,i,r])):5===t&&(e&=-50331904,e|=33554432|255&n),e},t.prototype._extractColor=function(e,t,n){var i=[0,0,-1,0,0,0],r=0,o=0;do{if(i[o+r]=e.params[t+o],e.hasSubParams(t+o)){var a=e.getSubParams(t+o),s=0;do{5===i[1]&&(r=1),i[o+s+1+r]=a[s]}while(++s<a.length&&s+o+1+r<i.length);break}if(5===i[1]&&o+r>=2||2===i[1]&&o+r>=5)break;i[1]&&(r=1)}while(++o+t<e.length&&o+r<i.length);for(s=2;s<i.length;++s)-1===i[s]&&(i[s]=0);switch(i[0]){case 38:n.fg=this._updateAttrColor(n.fg,i[1],i[3],i[4],i[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,i[1],i[3],i[4],i[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,i[1],i[3],i[4],i[5])}return o},t.prototype._processUnderline=function(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=d.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=d.DEFAULT_ATTR_DATA.bg);for(var t,n=e.length,i=this._curAttrData,r=0;r<n;r++)(t=e.params[r])>=30&&t<=37?(i.fg&=-50331904,i.fg|=16777216|t-30):t>=40&&t<=47?(i.bg&=-50331904,i.bg|=16777216|t-40):t>=90&&t<=97?(i.fg&=-50331904,i.fg|=16777224|t-90):t>=100&&t<=107?(i.bg&=-50331904,i.bg|=16777224|t-100):0===t?(i.fg=d.DEFAULT_ATTR_DATA.fg,i.bg=d.DEFAULT_ATTR_DATA.bg):1===t?i.fg|=134217728:3===t?i.bg|=67108864:4===t?(i.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,i)):5===t?i.fg|=536870912:7===t?i.fg|=67108864:8===t?i.fg|=1073741824:2===t?i.bg|=134217728:21===t?this._processUnderline(2,i):22===t?(i.fg&=-134217729,i.bg&=-134217729):23===t?i.bg&=-67108865:24===t?i.fg&=-268435457:25===t?i.fg&=-536870913:27===t?i.fg&=-67108865:28===t?i.fg&=-1073741825:39===t?(i.fg&=-67108864,i.fg|=16777215&d.DEFAULT_ATTR_DATA.fg):49===t?(i.bg&=-67108864,i.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?r+=this._extractColor(e,r,i):59===t?(i.extended=i.extended.clone(),i.extended.underlineColor=-1,i.updateExtended()):100===t?(i.fg&=-67108864,i.fg|=16777215&d.DEFAULT_ATTR_DATA.fg,i.bg&=-67108864,i.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t)},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(a.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(a.C0.ESC+"["+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}},t.prototype.deviceStatusPrivate=function(e){switch(e.params[0]){case 6:this._coreService.triggerDataEvent(a.C0.ESC+"[?"+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}},t.prototype.softReset=function(e){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}this._optionsService.options.cursorBlink=t%2==1},t.prototype.setScrollRegion=function(e){var t,n=e.params[0]||1;(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>n&&(this._bufferService.buffer.scrollTop=n-1,this._bufferService.buffer.scrollBottom=t-1,this._setCursor(0,0))},t.prototype.windowOptions=function(e){if(_(e.params[0],this._optionsService.options.windowOptions)){var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(o.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(o.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(a.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},t.prototype.saveCursor=function(e){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},t.prototype.restoreCursor=function(e){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},t.prototype.setTitle=function(e){this._windowTitle=e,this._onTitleChange.fire(e)},t.prototype.setIconName=function(e){this._iconName=e},t.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},t.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},t.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},t.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,s.DEFAULT_CHARSET)},t.prototype.selectCharset=function(e){2===e.length?"/"!==e[0]&&this._charsetService.setgCharset(y[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET):this.selectDefaultCharset()},t.prototype.index=function(){this._restrictCursor();var e=this._bufferService.buffer;this._bufferService.buffer.y++,e.y===e.scrollBottom+1?(e.y--,this._onRequestScroll.fire(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),this._restrictCursor()},t.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},t.prototype.reverseIndex=function(){this._restrictCursor();var e=this._bufferService.buffer;e.y===e.scrollTop?(e.lines.shiftElements(e.ybase+e.y,e.scrollBottom-e.scrollTop,1),e.lines.set(e.ybase+e.y,e.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(e.scrollTop,e.scrollBottom)):(e.y--,this._restrictCursor())},t.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},t.prototype.reset=function(){this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){this._charsetService.setgLevel(e)},t.prototype.screenAlignmentPattern=function(){var e=new m.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg;var t=this._bufferService.buffer;this._setCursor(0,0);for(var n=0;n<this._bufferService.rows;++n){var i=t.lines.get(t.ybase+t.y+n);i&&(i.fill(e),i.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},t}(l.Disposable);t.InputHandler=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},t.CHARSETS.A={"#":"\xa3"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},t.CHARSETS.C=t.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},t.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},t.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},t.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},t.CHARSETS.E=t.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},t.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},t.CHARSETS.H=t.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var i=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var n=new e;if(!t.length)return n;for(var i=t[0]instanceof Array?1:0;i<t.length;++i){var r=t[i];if(r instanceof Array)for(var o=0;o<r.length;++o)n.addSubParam(r[o]);else n.addParam(r)}return n},e.prototype.clone=function(){var t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t},e.prototype.toArray=function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var n=this._subParamsIdx[t]>>8,i=255&this._subParamsIdx[t];i-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,i))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>2147483647?2147483647:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>2147483647?2147483647:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,n=255&this._subParamsIdx[e];return n-t>0?this._subParams.subarray(t,n):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t<this.length;++t){var n=this._subParamsIdx[t]>>8,i=255&this._subParamsIdx[t];i-n>0&&(e[t]=this._subParams.slice(n,i))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var n=this._digitIsSub?this._subParams:this.params,i=n[t-1];n[t-1]=~i?Math.min(10*i+e,2147483647):e}},e}();t.Params=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var i=n(23),r=n(8),o=function(){function e(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return e.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.setHandler=function(e,t){this._handlers[e]=[t]},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},e.prototype.reset=function(){2===this._state&&this.end(!1),this._id=-1,this._state=0},e.prototype._start=function(){var e=this._handlers[this._id];if(e)for(var t=e.length-1;t>=0;t--)e[t].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,n){var i=this._handlers[this._id];if(i)for(var o=i.length-1;o>=0;o--)i[o].put(e,t,n);else this._handlerFb(this._id,"PUT",r.utf32ToString(e,t,n))},e.prototype._end=function(e){var t=this._handlers[this._id];if(t){for(var n=t.length-1;n>=0&&!1===t[n].end(e);n--);for(n--;n>=0;n--)t[n].end(!1)}else this._handlerFb(this._id,"END",e)},e.prototype.start=function(){this.reset(),this._id=-1,this._state=1},e.prototype.put=function(e,t,n){if(3!==this._state){if(1===this._state)for(;t<n;){var i=e[t++];if(59===i){this._state=2,this._start();break}if(i<48||57<i)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+i-48}2===this._state&&n-t>0&&this._put(e,t,n)}},e.prototype.end=function(e){0!==this._state&&(3!==this._state&&(1===this._state&&this._start(),this._end(e)),this._id=-1,this._state=0)},e}();t.OscParser=o;var a=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=r.utf32ToString(e,t,n),this._data.length>i.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data)),this._data="",this._hitLimit=!1,t},e}();t.OscHandler=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var i=n(8),r=n(21),o=n(23),a=[],s=function(){function e(){this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},e.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.setHandler=function(e,t){this._handlers[e]=[t]},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=a,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,n){if(this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n);else this._handlerFb(this._ident,"PUT",i.utf32ToString(e,t,n))},e.prototype.unhook=function(e){if(this._active.length){for(var t=this._active.length-1;t>=0&&!1===this._active[t].unhook(e);t--);for(t--;t>=0;t--)this._active[t].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0},e}();t.DcsParser=s;var c=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.clone(),this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=i.utf32ToString(e,t,n),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data,this._params||new r.Params)),this._params=void 0,this._data="",this._hitLimit=!1,t},e}();t.DcsHandler=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var i=n(26),r=n(43),o=[];t.acquireCharAtlas=function(e,t,n,a,s){for(var c=i.generateConfig(a,s,e,n),l=0;l<o.length;l++){var u=(h=o[l]).ownedBy.indexOf(t);if(u>=0){if(i.configEquals(h.config,c))return h.atlas;1===h.ownedBy.length?(h.atlas.dispose(),o.splice(l,1)):h.ownedBy.splice(u,1);break}}for(l=0;l<o.length;l++){var h=o[l];if(i.configEquals(h.config,c))return h.ownedBy.push(t),h.atlas}var d={atlas:new r.DynamicCharAtlas(document,c),config:c,ownedBy:[t]};return o.push(d),d.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<o.length;t++){var n=o[t].ownedBy.indexOf(e);if(-1!==n){1===o[t].ownedBy.length?(o[t].atlas.dispose(),o.splice(t,1)):o[t].ownedBy.splice(n,1);break}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;var i=n(3);t.generateConfig=function(e,t,n,i){var r={foreground:i.foreground,background:i.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:i.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,fontWeightBold:n.fontWeightBold,allowTransparency:n.allowTransparency,colors:r}},t.configEquals=function(e,t){for(var n=0;n<e.colors.ansi.length;n++)if(e.colors.ansi[n].rgba!==t.colors.ansi[n].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background},t.is256Color=function(e){return e<i.DEFAULT_COLOR}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorManager=t.DEFAULT_ANSI_COLORS=void 0;var i=n(10),r=n(45),o=i.css.toColor("#ffffff"),a=i.css.toColor("#000000"),s=i.css.toColor("#ffffff"),c=i.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=function(){for(var e=[i.css.toColor("#2e3436"),i.css.toColor("#cc0000"),i.css.toColor("#4e9a06"),i.css.toColor("#c4a000"),i.css.toColor("#3465a4"),i.css.toColor("#75507b"),i.css.toColor("#06989a"),i.css.toColor("#d3d7cf"),i.css.toColor("#555753"),i.css.toColor("#ef2929"),i.css.toColor("#8ae234"),i.css.toColor("#fce94f"),i.css.toColor("#729fcf"),i.css.toColor("#ad7fa8"),i.css.toColor("#34e2e2"),i.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],n=0;n<216;n++){var r=t[n/36%6|0],o=t[n/6%6|0],a=t[n%6];e.push({css:i.channels.toCss(r,o,a),rgba:i.channels.toRgba(r,o,a)})}for(n=0;n<24;n++){var s=8+10*n;e.push({css:i.channels.toCss(s,s,s),rgba:i.channels.toRgba(s,s,s)})}return e}();var u=function(){function e(e,n){this.allowTransparency=n;var u=e.createElement("canvas");u.width=1,u.height=1;var h=u.getContext("2d");if(!h)throw new Error("Could not get rendering context");this._ctx=h,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new r.ColorContrastCache,this.colors={foreground:o,background:a,cursor:s,cursorAccent:c,selectionTransparent:l,selectionOpaque:i.color.blend(a,l),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return e.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},e.prototype.setTheme=function(e){void 0===e&&(e={}),this.colors.foreground=this._parseColor(e.foreground,o),this.colors.background=this._parseColor(e.background,a),this.colors.cursor=this._parseColor(e.cursor,s,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,c,!0),this.colors.selectionTransparent=this._parseColor(e.selection,l,!0),this.colors.selectionOpaque=i.color.blend(this.colors.background,this.colors.selectionTransparent),i.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=i.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},e.prototype._parseColor=function(e,t,n){if(void 0===n&&(n=this.allowTransparency),void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var r=this._ctx.getImageData(0,0,1,1).data;if(255!==r[3]){if(!n)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t;var o=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map((function(e){return Number(e)})),a=o[0],s=o[1],c=o[2],l=Math.round(255*o[3]);return{rgba:i.channels.toRgba(a,s,c,l),css:e}}return{css:this._ctx.fillStyle,rgba:i.channels.toRgba(r[0],r[1],r[2],r[3])}},e}();t.ColorManager=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerRegistry=t.JoinedCellData=void 0;var o=n(6),a=n(3),s=n(4),c=function(e){function t(t,n,i){var r=e.call(this)||this;return r.content=0,r.combinedData="",r.fg=t.fg,r.bg=t.bg,r.combinedData=n,r._width=i,r}return r(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(o.AttributeData);t.JoinedCellData=c;var l=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new s.CellData}return e.prototype.registerCharacterJoiner=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregisterCharacterJoiner=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},e.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var n=[],i=t.translateToString(!0),r=0,o=0,s=0,c=t.getFg(0),l=t.getBg(0),u=0;u<t.getTrimmedLength();u++)if(t.loadCell(u,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==c||this._workCell.bg!==l){if(u-r>1)for(var h=this._getJoinedRanges(i,s,o,t,r),d=0;d<h.length;d++)n.push(h[d]);r=u,s=o,c=this._workCell.fg,l=this._workCell.bg}o+=this._workCell.getChars().length||a.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-r>1)for(h=this._getJoinedRanges(i,s,o,t,r),d=0;d<h.length;d++)n.push(h[d]);return n},e.prototype._getJoinedRanges=function(t,n,i,r,o){for(var a=t.substring(n,i),s=this._characterJoiners[0].handler(a),c=1;c<this._characterJoiners.length;c++)for(var l=this._characterJoiners[c].handler(a),u=0;u<l.length;u++)e._mergeRanges(s,l[u]);return this._stringRangesToCellRanges(s,r,o),s},e.prototype._stringRangesToCellRanges=function(e,t,n){var i=0,r=!1,o=0,s=e[i];if(s){for(var c=n;c<this._bufferService.cols;c++){var l=t.getWidth(c),u=t.getString(c).length||a.WHITESPACE_CELL_CHAR.length;if(0!==l){if(!r&&s[0]<=o&&(s[0]=c,r=!0),s[1]<=o){if(s[1]=c,!(s=e[++i]))break;s[0]<=o?(s[0]=c,r=!0):r=!1}o+=u}}s&&(s[1]=this._bufferService.cols)}},e._mergeRanges=function(e,t){for(var n=!1,i=0;i<e.length;i++){var r=e[i];if(n){if(t[1]<=r[0])return e[i-1][1]=t[1],e;if(t[1]<=r[1])return e[i-1][1]=Math.max(t[1],r[1]),e.splice(i,1),e;e.splice(i,1),i--}else{if(t[1]<=r[0])return e.splice(i,0,t),e;if(t[1]<=r[1])return r[0]=Math.min(t[0],r[0]),e;t[0]<r[1]&&(r[0]=Math.min(t[0],r[0]),n=!0)}}return n?e[e.length-1][1]=t[1]:e.push(t),e},e}();t.CharacterJoinerRegistry=l},function(e,t,n){"use strict";function i(e,t){var n=t.getBoundingClientRect();return[e.clientX-n.left,e.clientY-n.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,n,r,o,a,s,c){if(o){var l=i(e,t);if(l)return l[0]=Math.ceil((l[0]+(c?a/2:0))/a),l[1]=Math.ceil(l[1]/s),l[0]=Math.min(Math.max(l[0],1),n+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),r),l}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var i=function(){function e(e){this._renderCallback=e}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.refresh=function(e,t,n){var i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){return i._innerRefresh()})))},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(e,t)}},e}();t.RenderDebouncer=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return r(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(n(2).Disposable);t.ScreenDprMonitor=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,n){if(void 0===n&&(n=5),"object"!=typeof t)return t;var i=Array.isArray(t)?[]:{};for(var r in t)i[r]=n<=1?t[r]:t[r]?e(t[r],n-1):t[r];return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var i=n(4),r=n(35),o=n(18),a=n(0),s=n(83),c=function(){function e(e){this._core=new r.Terminal(e),this._addonManager=new s.AddonManager}return e.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new d(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new f(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),new u(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,n){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,n)},e.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},e.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},e.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},e.prototype.registerMarker=function(e){return this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},e.prototype.addMarker=function(e){return this.registerMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(e,t,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e,t){this._core.write(e,t)},e.prototype.writeUtf8=function(e,t){this._core.write(e,t)},e.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},e.prototype.paste=function(e){this._core.paste(e)},e.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},e.prototype.setOption=function(e,t){this._core.optionsService.setOption(e,t)},e.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(e,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var r=i[n];if(r===1/0||isNaN(r)||r%1!=0)throw new Error("This API only accepts integers")}},e}();t.Terminal=c;var l=function(){function e(e,t){this._buffer=e,this.type=t}return e.prototype.init=function(e){return this._buffer=e,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new h(t)},e.prototype.getNullCell=function(){return new i.CellData},e}(),u=function(){function e(e){var t=this;this._buffers=e,this._onBufferChange=new a.EventEmitter,this._normal=new l(this._buffers.normal,"normal"),this._alternate=new l(this._buffers.alt,"alternate"),this._buffers.onBufferActivate((function(){return t._onBufferChange.fire(t.active)}))}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),e}(),h=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new i.CellData)},e.prototype.translateToString=function(e,t,n){return this._line.translateToString(e,t,n)},e}(),d=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.addCsiHandler(e,(function(e){return t(e.toArray())}))},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.addDcsHandler(e,(function(e,n){return t(e,n.toArray())}))},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.addEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.addOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}(),f=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}()},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var o=n(36),a=n(37),s=n(38),c=n(12),l=n(19),u=n(40),h=n(50),d=n(51),f=n(11),p=n(7),m=n(18),g=n(54),v=n(55),b=n(56),y=n(57),_=n(59),w=n(0),k=n(16),C=n(27),S=n(60),x=n(5),O=n(61),M=n(62),T=n(63),E=n(64),P=n(65),j="undefined"!=typeof window?window.document:null,A=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.browser=f,n._keyDownHandled=!1,n._onCursorMove=new w.EventEmitter,n._onKey=new w.EventEmitter,n._onRender=new w.EventEmitter,n._onSelectionChange=new w.EventEmitter,n._onTitleChange=new w.EventEmitter,n._onFocus=new w.EventEmitter,n._onBlur=new w.EventEmitter,n._onA11yCharEmitter=new w.EventEmitter,n._onA11yTabEmitter=new w.EventEmitter,n._setup(),n.linkifier=n._instantiationService.createInstance(h.Linkifier),n.linkifier2=n.register(n._instantiationService.createInstance(T.Linkifier2)),n.register(n._inputHandler.onRequestBell((function(){return n.bell()}))),n.register(n._inputHandler.onRequestRefreshRows((function(e,t){return n.refresh(e,t)}))),n.register(n._inputHandler.onRequestReset((function(){return n.reset()}))),n.register(n._inputHandler.onRequestScroll((function(e,t){return n.scroll(e,t||void 0)}))),n.register(n._inputHandler.onRequestWindowsOptionsReport((function(e){return n._reportWindowsOptions(e)}))),n.register(w.forwardEvent(n._inputHandler.onCursorMove,n._onCursorMove)),n.register(w.forwardEvent(n._inputHandler.onTitleChange,n._onTitleChange)),n.register(w.forwardEvent(n._inputHandler.onA11yChar,n._onA11yCharEmitter)),n.register(w.forwardEvent(n._inputHandler.onA11yTab,n._onA11yTabEmitter)),n.register(n._bufferService.onResize((function(e){return n._afterResize(e.cols,e.rows)}))),n}return r(t,e),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t,n,i;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._renderService)||void 0===t||t.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(i=null===(n=this.element)||void 0===n?void 0:n.parentNode)||void 0===i||i.removeChild(this.element))},t.prototype._setup=function(){e.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},t.prototype._updateOptions=function(t){var n,i,r,o;switch(e.prototype._updateOptions.call(this,t),t){case"fontFamily":case"fontSize":null===(n=this._renderService)||void 0===n||n.clear(),null===(i=this._charSizeService)||void 0===i||i.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(r=this.viewport)||void 0===r||r.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)):(null===(o=this._accessibilityManager)||void 0===o||o.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},t.prototype._onTextAreaFocus=function(e){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},t.prototype.blur=function(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},t.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var e=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),t=this._bufferService.buffer.y*e;this.textarea.style.left=this._bufferService.buffer.x*this._charSizeService.width+"px",this.textarea.style.top=t+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=e+"px",this.textarea.style.lineHeight=e+"px",this.textarea.style.zIndex="-5"}},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register(p.addDisposableDomListener(this.element,"copy",(function(t){e.hasSelection()&&s.copyHandler(t,e._selectionService)})));var t=function(t){return s.handlePasteEvent(t,e.textarea,e._coreService)};this.register(p.addDisposableDomListener(this.textarea,"paste",t)),this.register(p.addDisposableDomListener(this.element,"paste",t)),this.register(f.isFirefox?p.addDisposableDomListener(this.element,"mousedown",(function(t){2===t.button&&s.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)})):p.addDisposableDomListener(this.element,"contextmenu",(function(t){s.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))),f.isLinux&&this.register(p.addDisposableDomListener(this.element,"auxclick",(function(t){1===t.button&&s.moveTextAreaUnderMouseCursor(t,e.textarea,e.screenElement)})))},t.prototype._bindKeys=function(){var e=this;this.register(p.addDisposableDomListener(this.textarea,"keyup",(function(t){return e._keyUp(t)}),!0)),this.register(p.addDisposableDomListener(this.textarea,"keydown",(function(t){return e._keyDown(t)}),!0)),this.register(p.addDisposableDomListener(this.textarea,"keypress",(function(t){return e._keyPress(t)}),!0)),this.register(p.addDisposableDomListener(this.textarea,"compositionstart",(function(){return e._compositionHelper.compositionstart()}))),this.register(p.addDisposableDomListener(this.textarea,"compositionupdate",(function(t){return e._compositionHelper.compositionupdate(t)}))),this.register(p.addDisposableDomListener(this.textarea,"compositionend",(function(){return e._compositionHelper.compositionend()}))),this.register(this.onRender((function(){return e._compositionHelper.updateCompositionElements()}))),this.register(this.onRender((function(t){return e._queueLinkification(t.start,t.end)})))},t.prototype.open=function(e){var t=this;if(!e)throw new Error("Terminal requires a parent element.");j.body.contains(e)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);var n=j.createDocumentFragment();this._viewportElement=j.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),n.appendChild(this._viewportElement),this._viewportScrollArea=j.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=j.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=j.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),n.appendChild(this.screenElement),this.textarea=j.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",m.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(p.addDisposableDomListener(this.textarea,"focus",(function(e){return t._onTextAreaFocus(e)}))),this.register(p.addDisposableDomListener(this.textarea,"blur",(function(){return t._onTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea);var i=this._instantiationService.createInstance(E.CoreBrowserService,this.textarea);this._instantiationService.setService(x.ICoreBrowserService,i),this._charSizeService=this._instantiationService.createInstance(O.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(x.ICharSizeService,this._charSizeService),this._compositionView=j.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(o.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(n),this._theme=this.options.theme||this._theme,this._colorManager=new C.ColorManager(j,this.options.allowTransparency),this.register(this.optionsService.onOptionChange((function(e){return t._colorManager.onOptionsChange(e)}))),this._colorManager.setTheme(this._theme);var r=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(S.RenderService,r,this.rows,this.screenElement)),this._instantiationService.setService(x.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange((function(e){return t._onRender.fire(e)}))),this.onResize((function(e){return t._renderService.resize(e.cols,e.rows)})),this._soundService=this._instantiationService.createInstance(g.SoundService),this._instantiationService.setService(x.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(M.MouseService),this._instantiationService.setService(x.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(a.Viewport,(function(e,n){return t.scrollLines(e,n)}),this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar((function(){return t.viewport.syncScrollArea()}))),this.register(this.viewport),this.register(this.onCursorMove((function(){t._renderService.onCursorMove(),t._syncTextArea()}))),this.register(this.onResize((function(){return t._renderService.onResize(t.cols,t.rows)}))),this.register(this.onBlur((function(){return t._renderService.onBlur()}))),this.register(this.onFocus((function(){return t._renderService.onFocus()}))),this.register(this._renderService.onDimensionsChange((function(){return t.viewport.syncScrollArea()}))),this._selectionService=this.register(this._instantiationService.createInstance(d.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(x.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((function(e){return t.scrollLines(e.amount,e.suppressScrollEvent)}))),this.register(this._selectionService.onSelectionChange((function(){return t._onSelectionChange.fire()}))),this.register(this._selectionService.onRequestRedraw((function(e){return t._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode)}))),this.register(this._selectionService.onLinuxMouseSelection((function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}))),this.register(this.onScroll((function(){t.viewport.syncScrollArea(),t._selectionService.refresh()}))),this.register(p.addDisposableDomListener(this._viewportElement,"scroll",(function(){return t._selectionService.refresh()}))),this._mouseZoneManager=this._instantiationService.createInstance(v.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll((function(){return t._mouseZoneManager.clearAll()}))),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(p.addDisposableDomListener(this.element,"mousedown",(function(e){return t._selectionService.onMouseDown(e)}))),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(u.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(y.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},t.prototype._setTheme=function(e){var t,n,i;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(n=this._renderService)||void 0===n||n.setColors(this._colorManager.colors),null===(i=this.viewport)||void 0===i||i.onThemeChange(this._colorManager.colors)},t.prototype.bindMouse=function(){var e=this,t=this,n=this.element;function i(e){var n,i,r=t._mouseService.getRawByteCoords(e,t.screenElement,t.cols,t.rows);if(!r)return!1;switch(e.overrideType||e.type){case"mousemove":i=32,void 0===e.buttons?(n=3,void 0!==e.button&&(n=e.button<3?e.button:3)):n=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":i=0,n=e.button<3?e.button:3;break;case"mousedown":i=1,n=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(i=e.deltaY<0?0:1),n=4;break;default:return!1}return!(void 0===i||void 0===n||n>4)&&t._coreMouseService.triggerMouseEvent({col:r.x-33,row:r.y-33,button:n,action:i,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o=function(t){return i(t),t.buttons||(e._document.removeEventListener("mouseup",r.mouseup),r.mousedrag&&e._document.removeEventListener("mousemove",r.mousedrag)),e.cancel(t)},a=function(t){return i(t),t.preventDefault(),e.cancel(t)},s=function(e){e.buttons&&i(e)},l=function(e){e.buttons||i(e)};this.register(this._coreMouseService.onProtocolChange((function(t){t?("debug"===e.optionsService.options.logLevel&&e._logService.debug("Binding to mouse events:",e._coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?r.mousemove||(n.addEventListener("mousemove",l),r.mousemove=l):(n.removeEventListener("mousemove",r.mousemove),r.mousemove=null),16&t?r.wheel||(n.addEventListener("wheel",a,{passive:!1}),r.wheel=a):(n.removeEventListener("wheel",r.wheel),r.wheel=null),2&t?r.mouseup||(r.mouseup=o):(e._document.removeEventListener("mouseup",r.mouseup),r.mouseup=null),4&t?r.mousedrag||(r.mousedrag=s):(e._document.removeEventListener("mousemove",r.mousedrag),r.mousedrag=null)}))),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(p.addDisposableDomListener(n,"mousedown",(function(t){if(t.preventDefault(),e.focus(),e._coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return i(t),r.mouseup&&e._document.addEventListener("mouseup",r.mouseup),r.mousedrag&&e._document.addEventListener("mousemove",r.mousedrag),e.cancel(t)}))),this.register(p.addDisposableDomListener(n,"wheel",(function(t){if(r.wheel);else if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var i=c.C0.ESC+(e._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",a=0;a<Math.abs(n);a++)o+=i;e._coreService.triggerDataEvent(o,!0)}}),{passive:!0})),this.register(p.addDisposableDomListener(n,"wheel",(function(t){if(!r.wheel)return e.viewport.onWheel(t)?void 0:e.cancel(t)}),{passive:!1})),this.register(p.addDisposableDomListener(n,"touchstart",(function(t){if(!e._coreMouseService.areMouseEventsActive)return e.viewport.onTouchStart(t),e.cancel(t)}),{passive:!0})),this.register(p.addDisposableDomListener(n,"touchmove",(function(t){if(!e._coreMouseService.areMouseEventsActive)return e.viewport.onTouchMove(t)?void 0:e.cancel(t)}),{passive:!1}))},t.prototype.refresh=function(e,t){var n;null===(n=this._renderService)||void 0===n||n.refreshRows(e,t)},t.prototype._queueLinkification=function(e,t){var n;null===(n=this.linkifier)||void 0===n||n.linkifyRows(e,t)},t.prototype.updateCursorStyle=function(e){this._selectionService&&this._selectionService.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},t.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scrollLines=function(t,n){e.prototype.scrollLines.call(this,t,n),this.refresh(0,this.rows-1)},t.prototype.paste=function(e){s.paste(e,this.textarea,this._coreService)},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.registerLinkMatcher=function(e,t,n){var i=this.linkifier.registerLinkMatcher(e,t,n);return this.refresh(0,this.rows-1),i},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerLinkProvider=function(e){return this.linkifier2.registerLinkProvider(e)},t.prototype.registerCharacterJoiner=function(e){var t=this._renderService.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){this._renderService.deregisterCharacterJoiner(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(t.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),t.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},t.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},t.prototype.select=function(e,t,n){this._selectionService.setSelection(e,t,n)},t.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},t.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},t.prototype.clearSelection=function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()},t.prototype.selectAll=function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()},t.prototype.selectLines=function(e,t){var n;null===(n=this._selectionService)||void 0===n||n.selectLines(e,t)},t.prototype._keyDown=function(e){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=_.evaluateKeyboardEvent(e,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===t.type||2===t.type){var n=this.rows-1;return this.scrollLines(2===t.type?-n:n),this.cancel(e,!0)}return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(t.key!==c.C0.ETX&&t.key!==c.C0.CR||(this.textarea.value=""),this._onKey.fire({key:t.key,domEvent:e}),this._showCursor(),this._coreService.triggerDataEvent(t.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0)))},t.prototype._isThirdLevelShift=function(e,t){var n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?n:n&&(!t.keyCode||t.keyCode>47)},t.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e))},t.prototype._keyPress=function(e){var t;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null==e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this._coreService.triggerDataEvent(t,!0),0))},t.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},t.prototype.resize=function(t,n){t!==this.cols||n!==this.rows?e.prototype.resize.call(this,t,n):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var n,i;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(i=this.viewport)||void 0===i||i.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(k.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},t.prototype.reset=function(){var t,n;this.options.rows=this.rows,this.options.cols=this.cols;var i=this._customKeyEventHandler;this._setup(),e.prototype.reset.call(this),null===(t=this._selectionService)||void 0===t||t.reset(),this._customKeyEventHandler=i,this.refresh(0,this.rows-1),null===(n=this.viewport)||void 0===n||n.syncScrollArea()},t.prototype._reportWindowsOptions=function(e){if(this._renderService)switch(e){case l.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var t=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),n=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(c.C0.ESC+"[4;"+n+";"+t+"t");break;case l.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var i=this._renderService.dimensions.scaledCellWidth.toFixed(0),r=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(c.C0.ESC+"[6;"+r+";"+i+"t")}},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype._visualBell=function(){return!1},t.prototype._soundBell=function(){return"sound"===this.options.bellStyle},t}(P.CoreTerminal);t.Terminal=A},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=n(5),a=n(1),s=function(){function e(e,t,n,i,r,o){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=i,this._charSizeService=r,this._coreService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((function(){t._compositionPosition.end=t._textarea.value.length}),0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start),t._coreService.triggerDataEvent(e,!0))}),0)}else{this._isSendingComposition=!1;var i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(i,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout((function(){if(!e._isComposing){var n=e._textarea.value.replace(t,"");n.length>0&&e._coreService.triggerDataEvent(n,!0)}}),0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),i=this._bufferService.buffer.y*n,r=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=r+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var o=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=i+"px",this._textarea.style.width=o.width+"px",this._textarea.style.height=o.height+"px",this._textarea.style.lineHeight=o.height+"px"}e||setTimeout((function(){return t.updateCompositionElements(!0)}),0)}},i([r(2,a.IBufferService),r(3,a.IOptionsService),r(4,o.ICharSizeService),r(5,a.ICoreService)],e)}();t.CompositionHelper=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var s=n(2),c=n(7),l=n(5),u=n(1),h=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this)||this;return l._scrollLines=t,l._viewportElement=n,l._scrollArea=i,l._bufferService=r,l._optionsService=o,l._charSizeService=a,l._renderService=s,l.scrollBarWidth=0,l._currentRowHeight=0,l._lastRecordedBufferLength=0,l._lastRecordedViewportHeight=0,l._lastRecordedBufferHeight=0,l._lastTouchY=0,l._lastScrollTop=0,l._wheelPartialScroll=0,l._refreshAnimationFrame=null,l._ignoreNextScrollEvent=!1,l.scrollBarWidth=l._viewportElement.offsetWidth-l._scrollArea.offsetWidth||15,l.register(c.addDisposableDomListener(l._viewportElement,"scroll",l._onScroll.bind(l))),setTimeout((function(){return l.syncScrollArea()}),0),l}return r(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame((function(){return t._innerRefresh()})))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._bufferService.buffer.ydisp*this._currentRowHeight&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t,!0)}},t.prototype._bubbleScroll=function(e,t){return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},t.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},t.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t},t.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(this._wheelPartialScroll+=t/=this._currentRowHeight+0,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var n=this._optionsService.options.fastScrollModifier;return"alt"===n&&t.altKey||"ctrl"===n&&t.ctrlKey||"shift"===n&&t.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},o([a(3,u.IBufferService),a(4,u.IOptionsService),a(5,l.ICharSizeService),a(6,l.IRenderService)],t)}(s.Disposable);t.Viewport=h},function(e,t,n){"use strict";function i(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function o(e,t,n){e=r(e=i(e),n.decPrivateModes.bracketedPasteMode),n.triggerDataEvent(e,!0),t.value=""}function a(e,t,n){var i=n.getBoundingClientRect(),r=e.clientX-i.left-10,o=e.clientY-i.top-10;t.style.width="20px",t.style.height="20px",t.style.left=r+"px",t.style.top=o+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=i,t.bracketTextForPaste=r,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,n){e.stopPropagation(),e.clipboardData&&o(e.clipboardData.getData("text/plain"),t,n)},t.paste=o,t.moveTextAreaUnderMouseCursor=a,t.rightClickHandler=function(e,t,n,i,r){a(e,t,n),r&&!i.isClickInSelection(e)&&i.selectWordAtCursor(e),t.value=i.selectionText,t.select()}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var o=n(2),a=n(15),s=n(21),c=n(22),l=n(24),u=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){a.fill(this.table,e<<4|t)},e.prototype.add=function(e,t,n,i){this.table[t<<8|e]=n<<4|i},e.prototype.addMany=function(e,t,n,i){for(var r=0;r<e.length;r++)this.table[t<<8|e[r]]=n<<4|i},e}();t.TransitionTable=u,t.VT500_TRANSITION_TABLE=function(){var e=new u(4095),t=Array.apply(null,Array(256)).map((function(e,t){return t})),n=function(e,n){return t.slice(e,n)},i=n(32,127),r=n(0,24);r.push(25),r.push.apply(r,n(28,32));var o,a=n(0,14);for(o in e.setDefault(1,0),e.addMany(i,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var h=function(e){function n(n){void 0===n&&(n=t.VT500_TRANSITION_TABLE);var i=e.call(this)||this;return i._transitions=n,i.initialState=0,i.currentState=i.initialState,i._params=new s.Params,i._params.addParam(0),i._collect=0,i.precedingCodepoint=0,i._printHandlerFb=function(e,t,n){},i._executeHandlerFb=function(e){},i._csiHandlerFb=function(e,t){},i._escHandlerFb=function(e){},i._errorHandlerFb=function(e){return e},i._printHandler=i._printHandlerFb,i._executeHandlers=Object.create(null),i._csiHandlers=Object.create(null),i._escHandlers=Object.create(null),i._oscParser=new c.OscParser,i._dcsParser=new l.DcsParser,i._errorHandler=i._errorHandlerFb,i.setEscHandler({final:"\\"},(function(){})),i}return r(n,e),n.prototype._identifier=function(e,t){void 0===t&&(t=[64,126]);var n=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((n=e.prefix.charCodeAt(0))&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var i=0;i<e.intermediates.length;++i){var r=e.intermediates.charCodeAt(i);if(32>r||r>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=r}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(n<<=8)|o},n.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(e){this._printHandler=e},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.addEscHandler=function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var i=this._escHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.setEscHandler=function(e,t){this._escHandlers[this._identifier(e,[48,126])]=[t]},n.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},n.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},n.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},n.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},n.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},n.prototype.addCsiHandler=function(e,t){var n=this._identifier(e);void 0===this._csiHandlers[n]&&(this._csiHandlers[n]=[]);var i=this._csiHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.setCsiHandler=function(e,t){this._csiHandlers[this._identifier(e)]=[t]},n.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},n.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},n.prototype.addDcsHandler=function(e,t){return this._dcsParser.addHandler(this._identifier(e),t)},n.prototype.setDcsHandler=function(e,t){this._dcsParser.setHandler(this._identifier(e),t)},n.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},n.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},n.prototype.addOscHandler=function(e,t){return this._oscParser.addHandler(e,t)},n.prototype.setOscHandler=function(e,t){this._oscParser.setHandler(e,t)},n.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},n.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},n.prototype.setErrorHandler=function(e){this._errorHandler=e},n.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},n.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},n.prototype.parse=function(e,t){for(var n=0,i=0,r=this.currentState,o=this._oscParser,a=this._dcsParser,s=this._collect,c=this._params,l=this._transitions.table,u=0;u<t;++u){switch((i=l[r<<8|((n=e[u])<160?n:160)])>>4){case 2:for(var h=u+1;;++h){if(h>=t||(n=e[h])<32||n>126&&n<160){this._printHandler(e,u,h),u=h-1;break}if(++h>=t||(n=e[h])<32||n>126&&n<160){this._printHandler(e,u,h),u=h-1;break}if(++h>=t||(n=e[h])<32||n>126&&n<160){this._printHandler(e,u,h),u=h-1;break}if(++h>=t||(n=e[h])<32||n>126&&n<160){this._printHandler(e,u,h),u=h-1;break}}break;case 3:this._executeHandlers[n]?this._executeHandlers[n]():this._executeHandlerFb(n),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:u,code:n,currentState:r,collect:s,params:c,abort:!1}).abort)return;break;case 7:for(var d=this._csiHandlers[s<<8|n],f=d?d.length-1:-1;f>=0&&!1===d[f](c);f--);f<0&&this._csiHandlerFb(s<<8|n,c),this.precedingCodepoint=0;break;case 8:do{switch(n){case 59:c.addParam(0);break;case 58:c.addSubParam(-1);break;default:c.addDigit(n-48)}}while(++u<t&&(n=e[u])>47&&n<60);u--;break;case 9:s<<=8,s|=n;break;case 10:for(var p=this._escHandlers[s<<8|n],m=p?p.length-1:-1;m>=0&&!1===p[m]();m--);m<0&&this._escHandlerFb(s<<8|n),this.precedingCodepoint=0;break;case 11:c.reset(),c.addParam(0),s=0;break;case 12:a.hook(s<<8|n,c);break;case 13:for(var g=u+1;;++g)if(g>=t||24===(n=e[g])||26===n||27===n||n>127&&n<160){a.put(e,u,g),u=g-1;break}break;case 14:a.unhook(24!==n&&26!==n),27===n&&(i|=1),c.reset(),c.addParam(0),s=0,this.precedingCodepoint=0;break;case 4:o.start();break;case 5:for(var v=u+1;;v++)if(v>=t||(n=e[v])<32||n>127&&n<=159){o.put(e,u,v),u=v-1;break}break;case 6:o.end(24!==n&&26!==n),27===n&&(i|=1),c.reset(),c.addParam(0),s=0,this.precedingCodepoint=0}r=15&i}this._collect=s,this.currentState=r},n}(o.Disposable);t.EscapeSequenceParser=h},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var s=n(41),c=n(47),l=n(48),u=n(49),h=n(29),d=n(2),f=n(5),p=n(1),m=n(25),g=n(0),v=1,b=function(e){function t(t,n,i,r,o,a,d,f,p){var m=e.call(this)||this;m._colors=t,m._screenElement=n,m._bufferService=o,m._charSizeService=a,m._optionsService=d,m._id=v++,m._onRequestRedraw=new g.EventEmitter;var b=m._optionsService.options.allowTransparency;return m._characterJoinerRegistry=new h.CharacterJoinerRegistry(m._bufferService),m._renderLayers=[new s.TextRenderLayer(m._screenElement,0,m._colors,m._characterJoinerRegistry,b,m._id,m._bufferService,d),new c.SelectionRenderLayer(m._screenElement,1,m._colors,m._id,m._bufferService,d),new u.LinkRenderLayer(m._screenElement,2,m._colors,m._id,i,r,m._bufferService,d),new l.CursorRenderLayer(m._screenElement,3,m._colors,m._id,m._onRequestRedraw,m._bufferService,d,f,p)],m.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},m._devicePixelRatio=window.devicePixelRatio,m._updateDimensions(),m.onOptionsChanged(),m}return r(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){for(var t=0,n=this._renderLayers;t<n.length;t++)n[t].dispose();e.prototype.dispose.call(this),m.removeTerminalFromCache(this._id)},t.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},t.prototype.setColors=function(e){this._colors=e;for(var t=0,n=this._renderLayers;t<n.length;t++){var i=n[t];i.setColors(this._colors),i.reset()}},t.prototype.onResize=function(e,t){this._updateDimensions();for(var n=0,i=this._renderLayers;n<i.length;n++)i[n].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},t.prototype.onBlur=function(){this._runOperation((function(e){return e.onBlur()}))},t.prototype.onFocus=function(){this._runOperation((function(e){return e.onFocus()}))},t.prototype.onSelectionChanged=function(e,t,n){void 0===n&&(n=!1),this._runOperation((function(i){return i.onSelectionChanged(e,t,n)}))},t.prototype.onCursorMove=function(){this._runOperation((function(e){return e.onCursorMove()}))},t.prototype.onOptionsChanged=function(){this._runOperation((function(e){return e.onOptionsChanged()}))},t.prototype.clear=function(){this._runOperation((function(e){return e.reset()}))},t.prototype._runOperation=function(e){for(var t=0,n=this._renderLayers;t<n.length;t++)e(n[t])},t.prototype.renderRows=function(e,t){for(var n=0,i=this._renderLayers;n<i.length;n++)i[n].onGridChanged(e,t)},t.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},t.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},o([a(4,p.IBufferService),a(5,f.ICharSizeService),a(6,p.IOptionsService),a(7,p.ICoreService),a(8,f.ICoreBrowserService)],t)}(d.Disposable);t.Renderer=b},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var o=n(42),a=n(13),s=n(6),c=n(3),l=n(29),u=n(4),h=function(e){function t(t,n,i,r,a,s,c,l){var h=e.call(this,t,"text",n,a,i,s,c,l)||this;return h._characterWidth=0,h._characterFont="",h._characterOverlapCache={},h._workCell=new u.CellData,h._state=new o.GridCache,h._characterJoinerRegistry=r,h}return r(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var n=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===n||(this._characterWidth=t.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,n,i){for(var r=e;r<=t;r++)for(var o=r+this._bufferService.buffer.ydisp,a=this._bufferService.buffer.lines.get(o),s=n?n.getJoinedCharacters(o):[],u=0;u<this._bufferService.cols;u++){a.loadCell(u,this._workCell);var h=this._workCell,d=!1,f=u;if(0!==h.getWidth()){if(s.length>0&&u===s[0][0]){d=!0;var p=s.shift();h=new l.JoinedCellData(this._workCell,a.translateToString(!0,p[0],p[1]),p[1]-p[0]),f=p[1]-1}!d&&this._isOverlapping(h)&&f<a.length-1&&a.getCodePoint(f+1)===c.NULL_CELL_CODE&&(h.content&=-12582913,h.content|=2<<22),i(h,u,r),u=f}}},t.prototype._drawBackground=function(e,t){var n=this,i=this._ctx,r=this._bufferService.cols,o=0,a=0,c=null;i.save(),this._forEachCell(e,t,null,(function(e,t,l){var u=null;e.isInverse()?u=e.isFgDefault()?n._colors.foreground.css:e.isFgRGB()?"rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":n._colors.ansi[e.getFgColor()].css:e.isBgRGB()?u="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":e.isBgPalette()&&(u=n._colors.ansi[e.getBgColor()].css),null===c&&(o=t,a=l),l!==a?(i.fillStyle=c||"",n._fillCells(o,a,r-o,1),o=t,a=l):c!==u&&(i.fillStyle=c||"",n._fillCells(o,a,t-o,1),o=t,a=l),c=u})),null!==c&&(i.fillStyle=c,this._fillCells(o,a,r-o,1)),i.restore()},t.prototype._drawForeground=function(e,t){var n=this;this._forEachCell(e,t,this._characterJoinerRegistry,(function(e,t,i){if(!e.isInvisible()&&(n._drawChars(e,t,i),e.isUnderline())){if(n._ctx.save(),e.isInverse())if(e.isBgDefault())n._ctx.fillStyle=n._colors.background.css;else if(e.isBgRGB())n._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var r=e.getBgColor();n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),n._ctx.fillStyle=n._colors.ansi[r].css}else if(e.isFgDefault())n._ctx.fillStyle=n._colors.foreground.css;else if(e.isFgRGB())n._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var o=e.getFgColor();n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),n._ctx.fillStyle=n._colors.ansi[o].css}n._fillBottomLineAtCells(t,i,e.getWidth()),n._ctx.restore()}}))},t.prototype.onGridChanged=function(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))},t.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;var t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var n=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=n,n},t}(a.BaseRenderLayer);t.TextRenderLayer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var i=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var n=0;n<e;n++){this.cache.length<=n&&this.cache.push([]);for(var i=this.cache[n].length;i<t;i++)this.cache[n].push(void 0);this.cache[n].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=void 0},e}();t.GridCache=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var o=n(9),a=n(44),s=n(27),c=n(46),l=n(11),u=n(28),h=n(10),d={css:"rgba(0, 0, 0, 0)",rgba:0};function f(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=f;var p=function(e){function t(t,n){var i=e.call(this)||this;i._config=n,i._drawToCacheCount=0,i._glyphsWaitingOnBitmap=[],i._bitmapCommitTimeout=null,i._bitmap=null,i._cacheCanvas=t.createElement("canvas"),i._cacheCanvas.width=1024,i._cacheCanvas.height=1024,i._cacheCtx=u.throwIfFalsy(i._cacheCanvas.getContext("2d",{alpha:!0}));var r=t.createElement("canvas");r.width=i._config.scaledCharWidth,r.height=i._config.scaledCharHeight,i._tmpCtx=u.throwIfFalsy(r.getContext("2d",{alpha:i._config.allowTransparency})),i._width=Math.floor(1024/i._config.scaledCharWidth),i._height=Math.floor(1024/i._config.scaledCharHeight);var o=i._width*i._height;return i._cacheMap=new c.LRUMap(o),i._cacheMap.prealloc(o),i}return r(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.draw=function(e,t,n,i){if(32===t.code)return!0;if(!this._canCache(t))return!1;var r=f(t),o=this._cacheMap.get(r);if(null!=o)return this._drawFromCache(e,o,n,i),!0;if(this._drawToCacheCount<100){var a;a=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var s=this._drawToCache(t,a);return this._cacheMap.set(r,s),this._drawFromCache(e,s,n,i),!0}return!1},t.prototype._canCache=function(e){return e.code<256},t.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},t.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},t.prototype._drawFromCache=function(e,t,n,i){if(!t.isEmpty){var r=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index);e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,r,o,this._config.scaledCharWidth,this._config.scaledCharHeight,n,i,this._config.scaledCharWidth,this._config.scaledCharHeight)}},t.prototype._getColorFromAnsiIndex=function(e){return e<this._config.colors.ansi.length?this._config.colors.ansi[e]:s.DEFAULT_ANSI_COLORS[e]},t.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?d:e.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},t.prototype._getForegroundColor=function(e){return e.fg===o.INVERTED_DEFAULT_COLOR?h.color.opaque(this._config.colors.background):e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},t.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var n=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=n.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over",this._tmpCtx.font=(e.italic?"italic":"")+" "+(e.bold?this._config.fontWeightBold:this._config.fontWeight)+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var i=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),r=!1;this._config.allowTransparency||(r=function(e,t){for(var n=!0,i=t.rgba>>>24,r=t.rgba>>>16&255,o=t.rgba>>>8&255,a=0;a<e.data.length;a+=4)e.data[a]===i&&e.data[a+1]===r&&e.data[a+2]===o?e.data[a+3]=0:n=!1;return n}(i,n));var a=this._toCoordinateX(t),s=this._toCoordinateY(t);this._cacheCtx.putImageData(i,a,s);var c={index:t,isEmpty:r,inBitmap:!1};return this._addGlyphToBitmap(c),c},t.prototype._addGlyphToBitmap=function(e){var t=this;!("createImageBitmap"in window)||l.isFirefox||l.isSafari||(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout((function(){return t._generateBitmap()}),100)))},t.prototype._generateBitmap=function(){var e=this,t=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then((function(n){e._bitmap=n;for(var i=0;i<t.length;i++)t[i].inBitmap=!0})),this._bitmapCommitTimeout=null},t}(a.BaseCharAtlas);t.DynamicCharAtlas=p;var m=function(e){function t(t,n){return e.call(this)||this}return r(t,e),t.prototype.draw=function(e,t,n,i){return!1},t}(a.BaseCharAtlas);t.NoneCharAtlas=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var i=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var i=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,n){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=n},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,n){this._color[e]||(this._color[e]={}),this._color[e][t]=n},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var i=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,n=e.next;e===this._head&&(this._head=n),e===this._tail&&(this._tail=t),null!==t&&(t.next=n),null!==n&&(n.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,n=0;n<e;n++)t.push({prev:null,next:null,key:null,value:null})},e.prototype.get=function(e){var t=this._map[e];return void 0!==t?(this._unlinkNode(t),this._appendNode(t),t.value):null},e.prototype.peekValue=function(e){var t=this._map[e];return void 0!==t?t.value:null},e.prototype.peek=function(){var e=this._head;return null===e?null:e.value},e.prototype.set=function(e,t){var n=this._map[e];if(void 0!==n)this._unlinkNode(n=this._map[e]),n.value=t;else if(this.size>=this.capacity)this._unlinkNode(n=this._head),delete this._map[n.key],n.key=e,n.value=t,this._map[e]=n;else{var i=this._nodePool;i.length>0?((n=i.pop()).key=e,n.value=t):n={prev:null,next:null,key:e,value:t},this._map[e]=n,this.size++}this._appendNode(n)},e}();t.LRUMap=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,"selection",n,!0,i,r,o,a)||this;return s._clearState(),s}return r(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(e,t,n){if(this._didStateChange(e,t,n,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&t){var i=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(i,0),a=Math.min(r,this._bufferService.rows-1);if(o>=this._bufferService.rows||a<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var s=e[0];this._fillCells(s,o,t[0]-s,a-o+1)}else{this._fillCells(s=i===o?e[0]:0,o,(o===r?t[0]:this._bufferService.cols)-s,1);var c=Math.max(a-o-1,0);this._fillCells(0,o+1,this._bufferService.cols,c),o!==a&&this._fillCells(0,a,r===a?t[0]:this._bufferService.cols,1)}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,n,i){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||n!==this._state.columnSelectMode||i!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},t}(n(13).BaseRenderLayer);t.SelectionRenderLayer=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var o=n(13),a=n(4),s=function(e){function t(t,n,i,r,o,s,c,l,u){var h=e.call(this,t,"cursor",n,!0,i,r,s,c)||this;return h._onRequestRedraw=o,h._coreService=l,h._coreBrowserService=u,h._cell=new a.CellData,h._state={x:0,y:0,isFocused:!1,style:"",width:0},h._cursorRenderers={bar:h._renderBarCursor.bind(h),block:h._renderBlockCursor.bind(h),underline:h._renderUnderlineCursor.bind(h)},h}return r(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new c(this._coreBrowserService.isFocused,(function(){t._render(!0)}))):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=t-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(i,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var r=this._optionsService.options.cursorStyle;return r&&"block"!==r?this._cursorRenderers[r](i,n,this._cell):this._renderBlurCursor(i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=r,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===i&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,n.getWidth(),1),this._ctx.restore()},t}(o.BaseRenderLayer);t.CursorRenderLayer=s;var c=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){e._renderCallback(),e._animationFrame=void 0}))))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=void 0})),t._blinkInterval=window.setInterval((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=void 0}))}),600)}),e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var o=n(13),a=n(9),s=n(26),c=function(e){function t(t,n,i,r,o,a,s,c){var l=e.call(this,t,"link",n,!0,i,r,s,c)||this;return o.onShowLinkUnderline((function(e){return l._onShowLinkUnderline(e)})),o.onHideLinkUnderline((function(e){return l._onHideLinkUnderline(e)})),a.onShowLinkUnderline((function(e){return l._onShowLinkUnderline(e)})),a.onHideLinkUnderline((function(e){return l._onHideLinkUnderline(e)})),l}return r(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(this._ctx.fillStyle=e.fg===a.INVERTED_DEFAULT_COLOR?this._colors.background.css:e.fg&&s.is256Color(e.fg)?this._colors.ansi[e.fg].css:this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},t.prototype._onHideLinkUnderline=function(e){this._clearCurrentLink()},t}(o.BaseRenderLayer);t.LinkRenderLayer=c},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var o=n(0),a=n(1),s=function(){function e(e,t,n){this._bufferService=e,this._logService=t,this._unicodeService=n,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new o.EventEmitter,this._onHideLinkUnderline=new o.EventEmitter,this._onLinkTooltip=new o.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,n){var i=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(t,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout((function(){return i._linkifyRows()}),e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var n=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,i=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,t,n,i,i);r.hasNext();)for(var o=r.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},e.prototype.registerLinkMatcher=function(e,t,n){if(void 0===n&&(n={}),!t)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:n.matchIndex,validationCallback:n.validationCallback,hoverTooltipCallback:n.tooltipCallback,hoverLeaveCallback:n.leaveCallback,willLinkActivate:n.willLinkActivate,priority:n.priority||0};return this._addLinkMatcherToList(i),i.id},e.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},e.prototype._doLinkifyRow=function(e,t,n){for(var i,r=this,o=new RegExp(n.regex.source,(n.regex.flags||"")+"g"),a=-1,s=function(){var s=i["number"!=typeof n.matchIndex?0:n.matchIndex];if(!s)return c._logService.debug("match found without corresponding matchIndex",i,n),"break";if(a=t.indexOf(s,a+1),o.lastIndex=a+s.length,a<0)return"break";var l=c._bufferService.buffer.stringIndexToBufferIndex(e,a);if(l[0]<0)return"break";var u=c._bufferService.buffer.lines.get(l[0]);if(!u)return"break";var h=u.getFg(l[1]),d=h?h>>9&511:void 0;n.validationCallback?n.validationCallback(s,(function(e){r._rowsTimeoutId||e&&r._addLink(l[1],l[0]-r._bufferService.buffer.ydisp,s,n,d)})):c._addLink(l[1],l[0]-c._bufferService.buffer.ydisp,s,n,d)},c=this;null!==(i=o.exec(t))&&"break"!==s(););},e.prototype._addLink=function(e,t,n,i,r){var o=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(n),s=e%this._bufferService.cols,l=t+Math.floor(e/this._bufferService.cols),u=(s+a)%this._bufferService.cols,h=l+Math.floor((s+a)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,h--),this._mouseZoneManager.add(new c(s+1,l+1,u+1,h+1,(function(e){if(i.handler)return i.handler(e,n);var t=window.open();t?(t.opener=null,t.location.href=n):console.warn("Opening link blocked as opener could not be cleared")}),(function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(s,l,u,h,r)),o._element.classList.add("xterm-cursor-pointer")}),(function(e){o._onLinkTooltip.fire(o._createLinkHoverEvent(s,l,u,h,r)),i.hoverTooltipCallback&&i.hoverTooltipCallback(e,n,{start:{x:s,y:l},end:{x:u,y:h}})}),(function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(s,l,u,h,r)),o._element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()}),(function(e){return!i.willLinkActivate||i.willLinkActivate(e,n)})))}},e.prototype._createLinkHoverEvent=function(e,t,n,i,r){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:r}},e._timeBeforeLatency=200,e=i([r(0,a.IBufferService),r(1,a.ILogService),r(2,a.IUnicodeService)],e)}();t.Linkifier=s;var c=function(e,t,n,i,r,o,a,s,c){this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.clickCallback=r,this.hoverCallback=o,this.tooltipCallback=a,this.leaveCallback=s,this.willLinkActivate=c};t.MouseZone=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var s=n(11),c=n(52),l=n(4),u=n(0),h=n(5),d=n(1),f=n(30),p=n(53),m=n(2),g=String.fromCharCode(160),v=new RegExp(g,"g"),b=function(e){function t(t,n,i,r,o,a,s){var h=e.call(this)||this;return h._element=t,h._screenElement=n,h._bufferService=i,h._coreService=r,h._mouseService=o,h._optionsService=a,h._renderService=s,h._dragScrollAmount=0,h._enabled=!0,h._workCell=new l.CellData,h._mouseDownTimeStamp=0,h._onLinuxMouseSelection=h.register(new u.EventEmitter),h._onRedrawRequest=h.register(new u.EventEmitter),h._onSelectionChange=h.register(new u.EventEmitter),h._onRequestScrollLines=h.register(new u.EventEmitter),h._mouseMoveListener=function(e){return h._onMouseMove(e)},h._mouseUpListener=function(e){return h._onMouseUp(e)},h._coreService.onUserInput((function(){h.hasSelection&&h.clearSelection()})),h._trimListener=h._bufferService.buffer.lines.onTrim((function(e){return h._onTrim(e)})),h.register(h._bufferService.buffers.onBufferActivate((function(e){return h._onBufferActivate(e)}))),h.enable(),h._model=new c.SelectionModel(h._bufferService),h._activeSelectionMode=0,h}return r(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=this._bufferService.buffer,i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var r=e[1];r<=t[1];r++){var o=n.translateBufferLineToString(r,!0,e[0],t[0]);i.push(o)}}else{for(i.push(n.translateBufferLineToString(e[1],!0,e[0],e[1]===t[1]?t[0]:void 0)),r=e[1]+1;r<=t[1]-1;r++){var a=n.lines.get(r);o=n.translateBufferLineToString(r,!0),a&&a.isWrapped?i[i.length-1]+=o:i.push(o)}e[1]!==t[1]&&(a=n.lines.get(t[1]),o=n.translateBufferLineToString(t[1],!0,0,t[0]),a&&a.isWrapped?i[i.length-1]+=o:i.push(o))}return i.map((function(e){return e.replace(v," ")})).join(s.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},t.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame((function(){return t._refresh()}))),s.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},t.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(n&&i&&t)&&this._areCoordsInSelection(t,n,i)},t.prototype._areCoordsInSelection=function(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]},t.prototype.selectWordAtCursor=function(e){var t=this._getMouseBufferCoords(e);t&&(this._selectWordAt(t,!1),this._model.selectionEnd=void 0,this.refresh(!0))},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=f.getCoordsRelativeToElement(e,this._screenElement)[1],n=this._renderService.dimensions.canvasHeight;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey&&this._optionsService.options.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval((function(){return e._dragScroll()}),50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=1,this._selectWordAt(t,!0))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(s.isMac&&this._optionsService.options.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]<this._model.selectionStart[1]?0:this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){var i=n.lines.get(this._model.selectionEnd[1]);i&&0===i.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},t.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&void 0!==n[0]&&void 0!==n[1]){var i=p.moveToCellSequence(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(i,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((function(e){return t._onTrim(e)}))},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var n=t[0],i=0;t[0]>=i;i++){var r=e.loadCell(i,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:r>1&&t[0]!==i&&(n+=r-1)}return n},t.prototype.setSelection=function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh()},t.prototype._getWordAt=function(e,t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),!(e[0]>=this._bufferService.cols)){var r=this._bufferService.buffer,o=r.lines.get(e[1]);if(o){var a=r.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(o,e),c=s,l=e[0]-s,u=0,h=0,d=0,f=0;if(" "===a.charAt(s)){for(;s>0&&" "===a.charAt(s-1);)s--;for(;c<a.length&&" "===a.charAt(c+1);)c++}else{var p=e[0],m=e[0];0===o.getWidth(p)&&(u++,p--),2===o.getWidth(m)&&(h++,m++);var g=o.getString(m).length;for(g>1&&(f+=g-1,c+=g-1);p>0&&s>0&&!this._isCharWordSeparator(o.loadCell(p-1,this._workCell));){o.loadCell(p-1,this._workCell);var v=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,p--):v>1&&(d+=v-1,s-=v-1),s--,p--}for(;m<o.length&&c+1<a.length&&!this._isCharWordSeparator(o.loadCell(m+1,this._workCell));){o.loadCell(m+1,this._workCell);var b=this._workCell.getChars().length;2===this._workCell.getWidth()?(h++,m++):b>1&&(f+=b-1,c+=b-1),c++,m++}}c++;var y=s+l-u+d,_=Math.min(this._bufferService.cols,c-s+u+h-d-f);if(t||""!==a.slice(s,c).trim()){if(n&&0===y&&32!==o.getCodePoint(0)){var w=r.lines.get(e[1]-1);if(w&&o.isWrapped&&32!==w.getCodePoint(this._bufferService.cols-1)){var k=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(k){var C=this._bufferService.cols-k.start;y-=C,_+=C}}}if(i&&y+_===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var S=r.lines.get(e[1]+1);if(S&&S.isWrapped&&32!==S.getCodePoint(0)){var x=this._getWordAt([0,e[1]+1],!1,!1,!0);x&&(_+=x.length)}}return{start:y,length:_}}}}},t.prototype._selectWordAt=function(e,t){var n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var n=e[1];t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.options.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._bufferService.cols,t.last],this._model.selectionStartLength=0},o([a(2,d.IBufferService),a(3,d.ICoreService),a(4,h.IMouseService),a(5,d.IOptionsService),a(6,h.IRenderService)],t)}(m.Disposable);t.SelectionService=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var i=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var i=n(12);function r(e,t,n,i){var r=e-o(n,e),s=t-o(n,t);return l(Math.abs(r-s)-function(e,t,n){for(var i=0,r=e-o(n,e),s=t-o(n,t),c=0;c<Math.abs(r-s);c++){var l="A"===a(e,t)?-1:1,u=n.buffer.lines.get(r+l*c);u&&u.isWrapped&&i++}return i}(e,t,n),c(a(e,t),i))}function o(e,t){for(var n=0,i=e.buffer.lines.get(t),r=i&&i.isWrapped;r&&t>=0&&t<e.rows;)n++,r=(i=e.buffer.lines.get(--t))&&i.isWrapped;return n}function a(e,t){return e>t?"A":"B"}function s(e,t,n,i,r,o){for(var a=e,s=t,c="";a!==n||s!==i;)a+=r?1:-1,r&&a>o.cols-1?(c+=o.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!r&&a<0&&(c+=o.buffer.translateBufferLineToString(s,!1,0,e+1),e=a=o.cols-1,s--);return c+o.buffer.translateBufferLineToString(s,!1,e,a)}function c(e,t){return i.C0.ESC+(t?"O":"[")+e}function l(e,t){e=Math.floor(e);for(var n="",i=0;i<e;i++)n+=t;return n}t.moveToCellSequence=function(e,t,n,i){var a,u=n.buffer.x,h=n.buffer.y;if(!n.buffer.hasScrollback)return function(e,t,n,i,a,u){return 0===r(t,i,a,u).length?"":l(s(e,t,e,t-o(a,t),!1,a).length,c("D",u))}(u,h,0,t,n,i)+r(h,t,n,i)+function(e,t,n,i,a,u){var h;h=r(t,i,a,u).length>0?i-o(a,i):t;var d=i,f=function(e,t,n,i,a,s){var c;return c=r(n,i,a,s).length>0?i-o(a,i):t,e<n&&c<=i||e>=n&&c<i?"C":"D"}(e,t,n,i,a,u);return l(s(e,h,n,d,"C"===f,a).length,c(f,u))}(u,h,e,t,n,i);if(h===t)return a=u>e?"D":"C",l(Math.abs(u-e),c(a,i));a=h>t?"D":"C";var d=Math.abs(h-t);return l(function(e,t){return t.cols-e}(h>t?e:u,n)+(d-1)*n.cols+1+((h>t?u:e)-1),c(a,i))}},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var o=n(1),a=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var n=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),(function(e){n.buffer=e,n.connect(t.destination),n.start(0)}))}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);return i.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e=i([r(0,o.IOptionsService)],e)}();t.SoundService=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var s=n(2),c=n(7),l=n(5),u=n(1),h=function(e){function t(t,n,i,r,o,a){var s=e.call(this)||this;return s._element=t,s._screenElement=n,s._bufferService=i,s._mouseService=r,s._selectionService=o,s._optionsService=a,s._zones=[],s._areZonesActive=!1,s._lastHoverCoords=[void 0,void 0],s._initialSelectionLength=0,s.register(c.addDisposableDomListener(s._element,"mousedown",(function(e){return s._onMouseDown(e)}))),s._mouseMoveListener=function(e){return s._onMouseMove(e)},s._mouseLeaveListener=function(e){return s._onMouseLeave(e)},s._clickListener=function(e){return s._onClick(e)},s}return r(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var n=0;n<this._zones.length;n++){var i=this._zones[n];(i.y1>e&&i.y1<=t+1||i.y2>e&&i.y2<=t+1||i.y1<e&&i.y2>t+1)&&(this._currentZone&&this._currentZone===i&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(n--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,n=this._findZoneEventAt(e);n!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),n&&(this._currentZone=n,n.hoverCallback&&n.hoverCallback(e),this._tooltipTimeout=window.setTimeout((function(){return t._onTooltip(e)}),this._optionsService.options.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),n=this._getSelectionLength();t&&n===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var n=t[0],i=t[1],r=0;r<this._zones.length;r++){var o=this._zones[r];if(o.y1===o.y2){if(i===o.y1&&n>=o.x1&&n<o.x2)return o}else if(i===o.y1&&n>=o.x1||i===o.y2&&n<o.x2||i>o.y1&&i<o.y2)return o}},o([a(2,u.IBufferService),a(3,l.IMouseService),a(4,l.ISelectionService),a(5,u.IOptionsService)],t)}(s.Disposable);t.MouseZoneManager=h},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var o=n(18),a=n(11),s=n(31),c=n(7),l=n(2),u=n(32),h=n(17),d=function(e){function t(t,n){var i=e.call(this)||this;i._terminal=t,i._renderService=n,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityTreeRoot=document.createElement("div"),i._accessibilityTreeRoot.classList.add("xterm-accessibility"),i._rowContainer=document.createElement("div"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowContainer.setAttribute("role","document"),i._rowElements=[];for(var r=0;r<i._terminal.rows;r++)i._rowElements[r]=i._createAccessibilityTreeNode(),i._rowContainer.appendChild(i._rowElements[r]);if(i._topBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,0)},i._bottomBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,1)},i._rowElements[0].addEventListener("focus",i._topBoundaryFocusListener),i._rowElements[i._rowElements.length-1].addEventListener("focus",i._bottomBoundaryFocusListener),i._refreshRowsDimensions(),i._accessibilityTreeRoot.appendChild(i._rowContainer),i._renderRowsDebouncer=new s.RenderDebouncer(i._renderRows.bind(i)),i._refreshRows(),i._liveRegion=document.createElement("div"),i._liveRegion.classList.add("live-region"),i._liveRegion.setAttribute("aria-live","assertive"),i._accessibilityTreeRoot.appendChild(i._liveRegion),!i._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return i._terminal.element.insertAdjacentElement("afterbegin",i._accessibilityTreeRoot),i.register(i._renderRowsDebouncer),i.register(i._terminal.onResize((function(e){return i._onResize(e.rows)}))),i.register(i._terminal.onRender((function(e){return i._refreshRows(e.start,e.end)}))),i.register(i._terminal.onScroll((function(){return i._refreshRows()}))),i.register(i._terminal.onA11yChar((function(e){return i._onChar(e)}))),i.register(i._terminal.onLineFeed((function(){return i._onChar("\n")}))),i.register(i._terminal.onA11yTab((function(e){return i._onTab(e)}))),i.register(i._terminal.onKey((function(e){return i._onKey(e.key)}))),i.register(i._terminal.onBlur((function(){return i._clearLiveRegion()}))),i.register(i._renderService.onDimensionsChange((function(){return i._refreshRowsDimensions()}))),i._screenDprMonitor=new u.ScreenDprMonitor,i.register(i._screenDprMonitor),i._screenDprMonitor.setListener((function(){return i._refreshRowsDimensions()})),i.register(c.addDisposableDomListener(window,"resize",(function(){return i._refreshRowsDimensions()}))),i}return r(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),h.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(e,t){var n=e.target,i=this._rowElements[0===t?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===i){var r,o;if(0===t?(r=n,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(r=this._rowElements.shift(),o=n,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var a=this._createAccessibilityTreeNode();this._rowElements.unshift(a),this._rowContainer.insertAdjacentElement("afterbegin",a)}else a=this._createAccessibilityTreeNode(),this._rowElements.push(a),this._rowContainer.appendChild(a);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},t.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},t.prototype._onChar=function(e){var t=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)}),0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&h.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var n=this._terminal.buffer,i=n.lines.length.toString(),r=e;r<=t;r++){var o=n.translateBufferLineToString(n.ydisp+r,!0),a=(n.ydisp+r+1).toString(),s=this._rowElements[r];s&&(0===o.length?s.innerHTML="&nbsp;":s.textContent=o,s.setAttribute("aria-posinset",a),s.setAttribute("aria-setsize",i))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},t.prototype._refreshRowDimensions=function(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(l.Disposable);t.AccessibilityManager=d},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var s=n(58),c=n(9),l=n(2),u=n(5),h=n(1),d=n(0),f=n(10),p=n(17),m=1,g=function(e){function t(t,n,i,r,o,a,c,l,u){var h=e.call(this)||this;return h._colors=t,h._element=n,h._screenElement=i,h._viewportElement=r,h._linkifier=o,h._linkifier2=a,h._charSizeService=c,h._optionsService=l,h._bufferService=u,h._terminalClass=m++,h._rowElements=[],h._rowContainer=document.createElement("div"),h._rowContainer.classList.add("xterm-rows"),h._rowContainer.style.lineHeight="normal",h._rowContainer.setAttribute("aria-hidden","true"),h._refreshRowElements(h._bufferService.cols,h._bufferService.rows),h._selectionContainer=document.createElement("div"),h._selectionContainer.classList.add("xterm-selection"),h._selectionContainer.setAttribute("aria-hidden","true"),h.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},h._updateDimensions(),h._injectCss(),h._rowFactory=new s.DomRendererRowFactory(document,h._optionsService,h._colors),h._element.classList.add("xterm-dom-renderer-owner-"+h._terminalClass),h._screenElement.appendChild(h._rowContainer),h._screenElement.appendChild(h._selectionContainer),h._linkifier.onShowLinkUnderline((function(e){return h._onLinkHover(e)})),h._linkifier.onHideLinkUnderline((function(e){return h._onLinkLeave(e)})),h._linkifier2.onShowLinkUnderline((function(e){return h._onLinkHover(e)})),h._linkifier2.onHideLinkUnderline((function(e){return h._onLinkLeave(e)})),h}return r(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new d.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),p.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var e=0,t=this._rowElements;e<t.length;e++){var n=t[e];n.style.width=this.dimensions.canvasWidth+"px",n.style.height=this.dimensions.actualCellHeight+"px",n.style.lineHeight=this.dimensions.actualCellHeight+"px",n.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement)),this._dimensionsStyleElement.innerHTML=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}",this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.setColors=function(e){this._colors=e,this._injectCss()},t.prototype._injectCss=function(){var e=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";t+=this._terminalSelector+" span:not(."+s.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+s.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+s.ITALIC_CLASS+" { font-style: italic;}",t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",t+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+s.CURSOR_CLASS+"."+s.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+s.CURSOR_CLASS+"."+s.CURSOR_BLINK_CLASS+":not(."+s.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+s.CURSOR_CLASS+"."+s.CURSOR_BLINK_CLASS+"."+s.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+s.CURSOR_CLASS+"."+s.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+s.CURSOR_CLASS+"."+s.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+s.CURSOR_CLASS+"."+s.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",t+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach((function(n,i){t+=e._terminalSelector+" .xterm-fg-"+i+" { color: "+n.css+"; }"+e._terminalSelector+" .xterm-bg-"+i+" { background-color: "+n.css+"; }"})),t+=this._terminalSelector+" .xterm-fg-"+c.INVERTED_DEFAULT_COLOR+" { color: "+f.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+c.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=t},t.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var n=this._rowElements.length;n<=t;n++){var i=document.createElement("div");this._rowContainer.appendChild(i),this._rowElements.push(i)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},t.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},t.prototype.onSelectionChanged=function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var i=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(i,0),a=Math.min(r,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||a<0)){var s=document.createDocumentFragment();n?s.appendChild(this._createSelectionElement(o,e[0],t[0],a-o+1)):(s.appendChild(this._createSelectionElement(o,i===o?e[0]:0,o===r?t[0]:this._bufferService.cols)),s.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,a-o-1)),o!==a&&s.appendChild(this._createSelectionElement(a,0,r===a?t[0]:this._bufferService.cols))),this._selectionContainer.appendChild(s)}}},t.prototype._createSelectionElement=function(e,t,n,i){void 0===i&&(i=1);var r=document.createElement("div");return r.style.height=i*this.dimensions.actualCellHeight+"px",r.style.top=e*this.dimensions.actualCellHeight+"px",r.style.left=t*this.dimensions.actualCellWidth+"px",r.style.width=this.dimensions.actualCellWidth*(n-t)+"px",r},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){for(var e=0,t=this._rowElements;e<t.length;e++)t[e].innerHTML=""},t.prototype.renderRows=function(e,t){for(var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._optionsService.options.cursorBlink,o=e;o<=t;o++){var a=this._rowElements[o];a.innerHTML="";var s=o+this._bufferService.buffer.ydisp,c=this._bufferService.buffer.lines.get(s);a.appendChild(this._rowFactory.createRow(c,s===n,this._optionsService.options.cursorStyle,i,r,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),t.prototype.registerCharacterJoiner=function(e){return-1},t.prototype.deregisterCharacterJoiner=function(e){return!1},t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,n,i,r,o){for(;e!==t||n!==i;){var a=this._rowElements[n];if(!a)return;var s=a.children[e];s&&(s.style.textDecoration=o?"underline":"none"),++e>=r&&(e=0,n++)}},o([a(6,u.ICharSizeService),a(7,h.IOptionsService),a(8,h.IBufferService)],t)}(l.Disposable);t.DomRenderer=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var i=n(9),r=n(3),o=n(4),a=n(10);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var s=function(){function e(e,t,n){this._document=e,this._optionsService=t,this._colors=n,this._workCell=new o.CellData}return e.prototype.setColors=function(e){this._colors=e},e.prototype.createRow=function(e,n,o,s,l,u,h){for(var d=this._document.createDocumentFragment(),f=0,p=Math.min(e.length,h)-1;p>=0;p--)if(e.loadCell(p,this._workCell).getCode()!==r.NULL_CELL_CODE||n&&p===s){f=p+1;break}for(p=0;p<f;p++){e.loadCell(p,this._workCell);var m=this._workCell.getWidth();if(0!==m){var g=this._document.createElement("span");if(m>1&&(g.style.width=u*m+"px"),n&&p===s)switch(g.classList.add(t.CURSOR_CLASS),l&&g.classList.add(t.CURSOR_BLINK_CLASS),o){case"bar":g.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":g.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:g.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&g.classList.add(t.BOLD_CLASS),this._workCell.isItalic()&&g.classList.add(t.ITALIC_CLASS),this._workCell.isDim()&&g.classList.add(t.DIM_CLASS),this._workCell.isUnderline()&&g.classList.add(t.UNDERLINE_CLASS),g.textContent=this._workCell.isInvisible()?r.WHITESPACE_CELL_CHAR:this._workCell.getChars()||r.WHITESPACE_CELL_CHAR;var v=this._workCell.getFgColor(),b=this._workCell.getFgColorMode(),y=this._workCell.getBgColor(),_=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var k=v;v=y,y=k;var C=b;b=_,_=C}switch(b){case 16777216:case 33554432:this._workCell.isBold()&&v<8&&this._optionsService.options.drawBoldTextInBrightColors&&(v+=8),this._applyMinimumContrast(g,this._colors.background,this._colors.ansi[v])||g.classList.add("xterm-fg-"+v);break;case 50331648:var S=a.rgba.toColor(v>>16&255,v>>8&255,255&v);this._applyMinimumContrast(g,this._colors.background,S)||this._addStyle(g,"color:#"+c(v.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(g,this._colors.background,this._colors.foreground)||w&&g.classList.add("xterm-fg-"+i.INVERTED_DEFAULT_COLOR)}switch(_){case 16777216:case 33554432:g.classList.add("xterm-bg-"+y);break;case 50331648:this._addStyle(g,"background-color:#"+c(y.toString(16),"0",6));break;case 0:default:w&&g.classList.add("xterm-bg-"+i.INVERTED_DEFAULT_COLOR)}d.appendChild(g)}}return d},e.prototype._applyMinimumContrast=function(e,t,n){if(1===this._optionsService.options.minimumContrastRatio)return!1;var i=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===i&&(i=a.color.ensureContrastRatio(t,n,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=i?i:null)),!!i&&(this._addStyle(e,"color:"+i.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},e}();function c(e,t,n){for(;e.length<n;)e=t+e;return e}t.DomRendererRowFactory=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var i=n(12),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,o){var a={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B");break;case 8:if(e.shiftKey){a.key=i.C0.BS;break}if(e.altKey){a.key=i.C0.ESC+i.C0.DEL;break}a.key=i.C0.DEL;break;case 9:if(e.shiftKey){a.key=i.C0.ESC+"[Z";break}a.key=i.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?i.C0.ESC+i.C0.CR:i.C0.CR,a.cancel=!0;break;case 27:a.key=i.C0.ESC,e.altKey&&(a.key=i.C0.ESC+i.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"D",a.key===i.C0.ESC+"[1;3D"&&(a.key=i.C0.ESC+(n?"b":"[1;5D"))):a.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"C",a.key===i.C0.ESC+"[1;3C"&&(a.key=i.C0.ESC+(n?"f":"[1;5C"))):a.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"A",n||a.key!==i.C0.ESC+"[1;3A"||(a.key=i.C0.ESC+"[1;5A")):a.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"B",n||a.key!==i.C0.ESC+"[1;3B"||(a.key=i.C0.ESC+"[1;5B")):a.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=i.C0.ESC+"[2~");break;case 46:a.key=s?i.C0.ESC+"[3;"+(s+1)+"~":i.C0.ESC+"[3~";break;case 36:a.key=s?i.C0.ESC+"[1;"+(s+1)+"H":t?i.C0.ESC+"OH":i.C0.ESC+"[H";break;case 35:a.key=s?i.C0.ESC+"[1;"+(s+1)+"F":t?i.C0.ESC+"OF":i.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:a.key=i.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:a.key=i.C0.ESC+"[6~";break;case 112:a.key=s?i.C0.ESC+"[1;"+(s+1)+"P":i.C0.ESC+"OP";break;case 113:a.key=s?i.C0.ESC+"[1;"+(s+1)+"Q":i.C0.ESC+"OQ";break;case 114:a.key=s?i.C0.ESC+"[1;"+(s+1)+"R":i.C0.ESC+"OR";break;case 115:a.key=s?i.C0.ESC+"[1;"+(s+1)+"S":i.C0.ESC+"OS";break;case 116:a.key=s?i.C0.ESC+"[15;"+(s+1)+"~":i.C0.ESC+"[15~";break;case 117:a.key=s?i.C0.ESC+"[17;"+(s+1)+"~":i.C0.ESC+"[17~";break;case 118:a.key=s?i.C0.ESC+"[18;"+(s+1)+"~":i.C0.ESC+"[18~";break;case 119:a.key=s?i.C0.ESC+"[19;"+(s+1)+"~":i.C0.ESC+"[19~";break;case 120:a.key=s?i.C0.ESC+"[20;"+(s+1)+"~":i.C0.ESC+"[20~";break;case 121:a.key=s?i.C0.ESC+"[21;"+(s+1)+"~":i.C0.ESC+"[21~";break;case 122:a.key=s?i.C0.ESC+"[23;"+(s+1)+"~":i.C0.ESC+"[23~";break;case 123:a.key=s?i.C0.ESC+"[24;"+(s+1)+"~":i.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!o||!e.altKey||e.metaKey)n&&!e.altKey&&!e.ctrlKey&&e.metaKey?65===e.keyCode&&(a.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?a.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(a.key=i.C0.US);else{var c=r[e.keyCode],l=c&&c[e.shiftKey?1:0];l?a.key=i.C0.ESC+l:e.keyCode>=65&&e.keyCode<=90&&(a.key=i.C0.ESC+String.fromCharCode(e.ctrlKey?e.keyCode-64:e.keyCode+32))}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=i.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=i.C0.DEL:219===e.keyCode?a.key=i.C0.ESC:220===e.keyCode?a.key=i.C0.FS:221===e.keyCode&&(a.key=i.C0.GS)}return a}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var s=n(31),c=n(0),l=n(2),u=n(32),h=n(7),d=n(1),f=n(5),p=function(e){function t(t,n,i,r,o,a){var l=e.call(this)||this;if(l._renderer=t,l._rowCount=n,l._isPaused=!1,l._needsFullRefresh=!1,l._isNextRenderRedrawOnly=!0,l._needsSelectionRefresh=!1,l._canvasWidth=0,l._canvasHeight=0,l._selectionState={start:void 0,end:void 0,columnSelectMode:!1},l._onDimensionsChange=new c.EventEmitter,l._onRender=new c.EventEmitter,l._onRefreshRequest=new c.EventEmitter,l.register({dispose:function(){return l._renderer.dispose()}}),l._renderDebouncer=new s.RenderDebouncer((function(e,t){return l._renderRows(e,t)})),l.register(l._renderDebouncer),l._screenDprMonitor=new u.ScreenDprMonitor,l._screenDprMonitor.setListener((function(){return l.onDevicePixelRatioChange()})),l.register(l._screenDprMonitor),l.register(a.onResize((function(e){return l._fullRefresh()}))),l.register(r.onOptionChange((function(){return l._renderer.onOptionsChanged()}))),l.register(o.onCharSizeChange((function(){return l.onCharSizeChanged()}))),l._renderer.onRequestRedraw((function(e){return l.refreshRows(e.start,e.end,!0)})),l.register(h.addDisposableDomListener(window,"resize",(function(){return l.onDevicePixelRatioChange()}))),"IntersectionObserver"in window){var d=new IntersectionObserver((function(e){return l._onIntersectionChange(e[e.length-1])}),{threshold:0});d.observe(i),l.register({dispose:function(){return d.disconnect()}})}return l}return r(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,n){void 0===n&&(n=!1),this._isPaused?this._needsFullRefresh=!0:(n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw((function(e){return t.refreshRows(e.start,e.end,!0)})),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,n){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,this._renderer.onSelectionChanged(e,t,n)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},t.prototype.registerCharacterJoiner=function(e){return this._renderer.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._renderer.deregisterCharacterJoiner(e)},o([a(3,d.IOptionsService),a(4,f.ICharSizeService),a(5,d.IBufferService)],t)}(l.Disposable);t.RenderService=p},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=n(1),a=n(0),s=function(){function e(e,t,n){this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=new a.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},i([r(2,o.IOptionsService)],e)}();t.CharSizeService=s;var c=function(){function e(e,t,n){this._document=e,this._parentElement=t,this._optionsService=n,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=n(5),a=n(30),s=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,n,i,r){return a.getCoords(e,t,n,i,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)},e.prototype.getRawByteCoords=function(e,t,n,i){var r=this.getCoords(e,t,n,i);return a.getRawByteCoords(r)},i([r(0,o.IRenderService),r(1,o.ICharSizeService)],e)}();t.MouseService=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var s=n(1),c=n(0),l=n(2),u=n(7),h=function(e){function t(t){var n=e.call(this)||this;return n._bufferService=t,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new c.EventEmitter),n._onHideLinkUnderline=n.register(new c.EventEmitter),n.register(l.getDisposeArrayDisposable(n._linkCacheDisposables)),n}return r(t,e),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var n=t._linkProviders.indexOf(e);-1!==n&&t._linkProviders.splice(n,1)}}},t.prototype.attachToDom=function(e,t,n){var i=this;this._element=e,this._mouseService=t,this._renderService=n,this.register(u.addDisposableDomListener(this._element,"mouseleave",(function(){i._isMouseOut=!0,i._clearCurrentLink()}))),this.register(u.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(u.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var n=e.composedPath(),i=0;i<n.length;i++){var r=n[i];if(r.classList.contains("xterm"))break;if(r.classList.contains("xterm-hover"))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._onHover(t),this._lastBufferCell=t)}}},t.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},t.prototype._askForLink=function(e,t){var n,i=this;this._activeProviderReplies&&t||(null===(n=this._activeProviderReplies)||void 0===n||n.forEach((function(e){null==e||e.forEach((function(e){e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);var r=!1;this._linkProviders.forEach((function(n,o){var a;t?(null===(a=i._activeProviderReplies)||void 0===a?void 0:a.get(o))&&(r=i._checkLinkProviderResult(o,e,r)):n.provideLinks(e.y,(function(t){var n,a;if(!i._isMouseOut){var s=null==t?void 0:t.map((function(e){return{link:e}}));null===(n=i._activeProviderReplies)||void 0===n||n.set(o,s),r=i._checkLinkProviderResult(o,e,r),(null===(a=i._activeProviderReplies)||void 0===a?void 0:a.size)===i._linkProviders.length&&i._removeIntersectingLinks(e.y,i._activeProviderReplies)}}))}))},t.prototype._removeIntersectingLinks=function(e,t){for(var n=new Set,i=0;i<t.size;i++){var r=t.get(i);if(r)for(var o=0;o<r.length;o++)for(var a=r[o],s=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x,c=a.link.range.start.y<e?0:a.link.range.start.x;c<=s;c++){if(n.has(c)){r.splice(o--,1);break}n.add(c)}}},t.prototype._checkLinkProviderResult=function(e,t,n){var i,r=this;if(!this._activeProviderReplies)return n;for(var o=this._activeProviderReplies.get(e),a=!1,s=0;s<e;s++)this._activeProviderReplies.has(s)&&!this._activeProviderReplies.get(s)||(a=!0);if(!a&&o){var c=o.find((function(e){return r._linkAtPosition(e.link,t)}));c&&(n=!0,this._handleNewLink(c))}if(this._activeProviderReplies.size===this._linkProviders.length&&!n)for(s=0;s<this._activeProviderReplies.size;s++){var l=null===(i=this._activeProviderReplies.get(s))||void 0===i?void 0:i.find((function(e){return r._linkAtPosition(e.link,t)}));if(l){n=!0,this._handleNewLink(l);break}}return n},t.prototype._onClick=function(e){if(this._element&&this._mouseService&&this._currentLink){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}},t.prototype._clearCurrentLink=function(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,l.disposeArray(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(e.link,n)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.pointerCursor},set:function(e){var n,i;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(i=t._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.underline},set:function(n){var i,r,o;(null===(i=t._currentLink)||void 0===i?void 0:i.state)&&(null===(o=null===(r=t._currentLink)||void 0===r?void 0:r.state)||void 0===o?void 0:o.decorations.underline)!==n&&(t._currentLink.state.decorations.underline=n,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange((function(e){t._clearCurrentLink(0===e.start?0:e.start+1+t._bufferService.buffer.ydisp,e.end+1+t._bufferService.buffer.ydisp)}))))}},t.prototype._linkHover=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var n=e.range,i=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-i-1,n.end.x,n.end.y-i-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)},t.prototype._linkLeave=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)},t.prototype._linkAtPosition=function(e,t){var n=e.range.start.y<t.y,i=e.range.end.y>t.y;return(e.range.start.y===e.range.end.y&&e.range.start.x<=t.x&&e.range.end.x>=t.x||n&&e.range.end.x>=t.x||i&&e.range.start.x<=t.x||n&&i)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,n){var i=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,n,i,r){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:r}},o([a(0,s.IBufferService)],t)}(l.Disposable);t.Linkifier2=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var i=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var o=n(2),a=n(1),s=n(66),c=n(67),l=n(68),u=n(74),h=n(75),d=n(0),f=n(76),p=n(77),m=n(78),g=n(80),v=n(81),b=n(19),y=n(82),_=function(e){function t(t){var n=e.call(this)||this;return n._onBinary=new d.EventEmitter,n._onData=new d.EventEmitter,n._onLineFeed=new d.EventEmitter,n._onResize=new d.EventEmitter,n._onScroll=new d.EventEmitter,n._instantiationService=new s.InstantiationService,n.optionsService=new u.OptionsService(t),n._instantiationService.setService(a.IOptionsService,n.optionsService),n._bufferService=n.register(n._instantiationService.createInstance(l.BufferService)),n._instantiationService.setService(a.IBufferService,n._bufferService),n._logService=n._instantiationService.createInstance(c.LogService),n._instantiationService.setService(a.ILogService,n._logService),n._coreService=n.register(n._instantiationService.createInstance(h.CoreService,(function(){return n.scrollToBottom()}))),n._instantiationService.setService(a.ICoreService,n._coreService),n._coreMouseService=n._instantiationService.createInstance(f.CoreMouseService),n._instantiationService.setService(a.ICoreMouseService,n._coreMouseService),n._dirtyRowService=n._instantiationService.createInstance(p.DirtyRowService),n._instantiationService.setService(a.IDirtyRowService,n._dirtyRowService),n.unicodeService=n._instantiationService.createInstance(m.UnicodeService),n._instantiationService.setService(a.IUnicodeService,n.unicodeService),n._charsetService=n._instantiationService.createInstance(g.CharsetService),n._instantiationService.setService(a.ICharsetService,n._charsetService),n._inputHandler=new b.InputHandler(n._bufferService,n._charsetService,n._coreService,n._dirtyRowService,n._logService,n.optionsService,n._coreMouseService,n.unicodeService),n.register(d.forwardEvent(n._inputHandler.onLineFeed,n._onLineFeed)),n.register(n._inputHandler),n.register(d.forwardEvent(n._bufferService.onResize,n._onResize)),n.register(d.forwardEvent(n._coreService.onData,n._onData)),n.register(d.forwardEvent(n._coreService.onBinary,n._onBinary)),n.register(n.optionsService.onOptionChange((function(e){return n._updateOptions(e)}))),n._writeBuffer=new y.WriteBuffer((function(e){return n._inputHandler.parse(e)})),n}return r(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e){this._writeBuffer.writeSync(e)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,l.MINIMUM_COLS),t=Math.max(t,l.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1);var n,i=this._bufferService.buffer;(n=this._cachedBlankLine)&&n.length===this.cols&&n.getFg(0)===e.fg&&n.getBg(0)===e.bg||(n=i.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;var r=i.ybase+i.scrollTop,o=i.ybase+i.scrollBottom;if(0===i.scrollTop){var a=i.lines.isFull;o===i.lines.length-1?a?i.lines.recycle().copyFrom(n):i.lines.push(n.clone()):i.lines.splice(o+1,0,n.clone()),a?this._bufferService.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this._bufferService.isUserScrolling||i.ydisp++)}else i.lines.shiftElements(r+1,o-r+1-1,-1),i.lines.set(o,n.clone());this._bufferService.isUserScrolling||(i.ydisp=i.ybase),this._dirtyRowService.markRangeDirty(i.scrollTop,i.scrollBottom),this._onScroll.fire(i.ydisp)},t.prototype.scrollLines=function(e,t){var n=this._bufferService.buffer;if(e<0){if(0===n.ydisp)return;this._bufferService.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this._bufferService.isUserScrolling=!1);var i=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),i!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},t.prototype.scrollToLine=function(e){var t=e-this._bufferService.buffer.ydisp;0!==t&&this.scrollLines(t)},t.prototype.addEscHandler=function(e,t){return this._inputHandler.addEscHandler(e,t)},t.prototype.addDcsHandler=function(e,t){return this._inputHandler.addDcsHandler(e,t)},t.prototype.addCsiHandler=function(e,t){return this._inputHandler.addCsiHandler(e,t)},t.prototype.addOscHandler=function(e,t){return this._inputHandler.addOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(v.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.addCsiHandler({final:"H"},(function(){return v.updateWindowsModeWrappedState(e._bufferService),!1}))),this._windowsMode={dispose:function(){for(var e=0,n=t;e<n.length;e++)n[e].dispose()}}}},t}(o.Disposable);t.CoreTerminal=_},function(e,t,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var r=n(1),o=n(14),a=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,i=e;n<i.length;n++){var r=i[n];this.set(r[0],r[1])}}return e.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},e.prototype.forEach=function(e){this._entries.forEach((function(t,n){return e(n,t)}))},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}();t.ServiceCollection=a;var s=function(){function e(){this._services=new a,this._services.set(r.IInstantiationService,this)}return e.prototype.setService=function(e,t){this._services.set(e,t)},e.prototype.getService=function(e){return this._services.get(e)},e.prototype.createInstance=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=o.getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),a=[],s=0,c=r;s<c.length;s++){var l=c[s],u=this._services.get(l.id);if(!u)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+l.id+".");a.push(u)}var h=r.length>0?r[0].index:t.length;if(t.length!==h)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(h+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,i([void 0],i(t,a))))},e}();t.InstantiationService=s},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=t.LogLevel=void 0;var a,s=n(1);!function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e[e.OFF=4]="OFF"}(a=t.LogLevel||(t.LogLevel={}));var c={debug:a.DEBUG,info:a.INFO,warn:a.WARN,error:a.ERROR,off:a.OFF},l=function(){function e(e){var t=this;this._optionsService=e,this._updateLogLevel(),this._optionsService.onOptionChange((function(e){"logLevel"===e&&t._updateLogLevel()}))}return e.prototype._updateLogLevel=function(){this._logLevel=c[this._optionsService.options.logLevel]},e.prototype._evalLazyOptionalParams=function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())},e.prototype._log=function(e,t,n){this._evalLazyOptionalParams(n),e.call.apply(e,o([console,"xterm.js: "+t],n))},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._logLevel<=a.DEBUG&&this._log(console.log,e,t)},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._logLevel<=a.INFO&&this._log(console.info,e,t)},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._logLevel<=a.WARN&&this._log(console.warn,e,t)},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._logLevel<=a.ERROR&&this._log(console.error,e,t)},i([r(0,s.IOptionsService)],e)}();t.LogService=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var s=n(1),c=n(69),l=n(0),u=n(2);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var h=function(e){function n(n){var i=e.call(this)||this;return i._optionsService=n,i.isUserScrolling=!1,i._onResize=new l.EventEmitter,i.cols=Math.max(n.options.cols,t.MINIMUM_COLS),i.rows=Math.max(n.options.rows,t.MINIMUM_ROWS),i.buffers=new c.BufferSet(n,i),i}return r(n,e),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},n.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},n.prototype.reset=function(){this.buffers.dispose(),this.buffers=new c.BufferSet(this._optionsService,this),this.isUserScrolling=!1},o([a(0,s.IOptionsService)],n)}(u.Disposable);t.BufferService=h},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var o=n(70),a=n(0),s=function(e){function t(t,n){var i=e.call(this)||this;return i._onBufferActivate=i.register(new a.EventEmitter),i._normal=new o.Buffer(!0,t,n),i._normal.fillViewportRows(),i._alt=new o.Buffer(!1,t,n),i._activeBuffer=i._normal,i.setupTabStops(),i}return r(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(n(2).Disposable);t.BufferSet=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var i=n(71),r=n(16),o=n(4),a=n(3),s=n(72),c=n(73),l=n(20),u=n(6);t.MAX_BUFFER_SIZE=4294967295;var h=function(){function e(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=r.DEFAULT_ATTR_DATA.clone(),this.savedCharset=l.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,a.WHITESPACE_CELL_CHAR,a.WHITESPACE_CELL_WIDTH,a.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new r.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows},enumerable:!1,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var n=e+this._optionsService.options.scrollback;return n>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=r.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var n=this.getNullCell(r.DEFAULT_ATTR_DATA),i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(var o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,n);var a=0;if(this._rows<t)for(var s=this._rows;s<t;s++)this.lines.length<t+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new r.BufferLine(e,n)):this.ybase>0&&this.lines.length<=this.ybase+this.y+a+1?(this.ybase--,a++,this.ydisp>0&&this.ydisp--):this.lines.push(new r.BufferLine(e,n)));else for(s=this._rows;s>t;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){var c=this.lines.length-i;c>0&&(this.lines.trimStart(c),this.ybase=Math.max(this.ybase-c,0),this.ydisp=Math.max(this.ydisp-c,0),this.savedY=Math.max(this.savedY-c,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),a&&(this.y+=a),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,n);this._cols=e,this._rows=t},Object.defineProperty(e.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),e.prototype._reflow=function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var n=s.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(r.DEFAULT_ATTR_DATA));if(n.length>0){var i=s.reflowLargerCreateNewLayout(this.lines,n);s.reflowLargerApplyNewLayout(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,n){for(var i=this.getNullCell(r.DEFAULT_ATTR_DATA),o=n;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new r.BufferLine(e,i))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)},e.prototype._reflowSmaller=function(e,t){for(var n=this.getNullCell(r.DEFAULT_ATTR_DATA),i=[],o=0,a=this.lines.length-1;a>=0;a--){var c=this.lines.get(a);if(!(!c||!c.isWrapped&&c.getTrimmedLength()<=e)){for(var l=[c];c.isWrapped&&a>0;)c=this.lines.get(--a),l.unshift(c);var u=this.ybase+this.y;if(!(u>=a&&u<a+l.length)){var h,d=l[l.length-1].getTrimmedLength(),f=s.reflowSmallerGetNewLineLengths(l,this._cols,e),p=f.length-l.length;h=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+p):Math.max(0,this.lines.length-this.lines.maxLength+p);for(var m=[],g=0;g<p;g++){var v=this.getBlankLine(r.DEFAULT_ATTR_DATA,!0);m.push(v)}m.length>0&&(i.push({start:a+l.length+o,newLines:m}),o+=m.length),l.push.apply(l,m);var b=f.length-1,y=f[b];0===y&&(y=f[--b]);for(var _=l.length-p-1,w=d;_>=0;){var k=Math.min(w,y);if(l[b].copyCellsFrom(l[_],w-k,y-k,k,!0),0==(y-=k)&&(y=f[--b]),0==(w-=k)){_--;var C=Math.max(_,0);w=s.getWrappedLineTrimmedLength(l,C,this._cols)}}for(g=0;g<l.length;g++)f[g]<e&&l[g].setCell(f[g],n);for(var S=p-h;S-- >0;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+o)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+p,this.ybase+t-1)}}}if(i.length>0){var x=[],O=[];for(g=0;g<this.lines.length;g++)O.push(this.lines.get(g));var M=this.lines.length,T=M-1,E=0,P=i[E];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);var j=0;for(g=Math.min(this.lines.maxLength-1,M+o-1);g>=0;g--)if(P&&P.start>T+j){for(var A=P.newLines.length-1;A>=0;A--)this.lines.set(g--,P.newLines[A]);g++,x.push({index:T+1,amount:P.newLines.length}),j+=P.newLines.length,P=i[++E]}else this.lines.set(g,O[T--]);var I=0;for(g=x.length-1;g>=0;g--)x[g].index+=I,this.lines.onInsertEmitter.fire(x[g]),I+=x[g].amount;var D=Math.max(0,M+o-this.lines.maxLength);D>0&&this.lines.onTrimEmitter.fire(D)}},e.prototype.stringIndexToBufferIndex=function(e,t,n){for(void 0===n&&(n=!1);t;){var i=this.lines.get(e);if(!i)return[-1,-1];for(var r=n?i.getTrimmedLength():i.length,o=0;o<r;++o)if(i.get(o)[a.CHAR_DATA_WIDTH_INDEX]&&(t-=i.get(o)[a.CHAR_DATA_CHAR_INDEX].length||1),t<0)return[e,o];e++}return[e,0]},e.prototype.translateBufferLineToString=function(e,t,n,i){void 0===n&&(n=0);var r=this.lines.get(e);return r?r.translateToString(t,n,i):""},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,n=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,n=new c.Marker(e);return this.markers.push(n),n.register(this.lines.onTrim((function(e){n.line-=e,n.line<0&&n.dispose()}))),n.register(this.lines.onInsert((function(e){n.line>=e.index&&(n.line+=e.amount)}))),n.register(this.lines.onDelete((function(e){n.line>=e.index&&n.line<e.index+e.amount&&n.dispose(),n.line>e.index&&(n.line-=e.amount)}))),n.register(n.onDispose((function(){return t._removeMarker(n)}))),n},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,n,i,r){return new d(this,e,t,n,i,r)},e}();t.Buffer=h;var d=function(){function e(e,t,n,i,r,o){void 0===n&&(n=0),void 0===i&&(i=e.lines.length),void 0===r&&(r=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=n,this._endIndex=i,this._startOverscan=r,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._current<this._endIndex},e.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",n=e.first;n<=e.last;++n)t+=this._buffer.translateBufferLineToString(n,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var i=n(0),r=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new i.EventEmitter,this.onInsertEmitter=new i.EventEmitter,this.onTrimEmitter=new i.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},e.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},e.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},e.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(e.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},e.prototype.splice=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(t){for(var r=e;r<this._length-t;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+t)];this._length-=t}for(r=this._length-1;r>=e;r--)this._array[this._getCyclicIndex(r+n.length)]=this._array[this._getCyclicIndex(r)];for(r=0;r<n.length;r++)this._array[this._getCyclicIndex(e+r)]=n[r];if(this._length+n.length>this._maxLength){var o=this._length+n.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=n.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));var r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<t;i++)this.set(e+i+n,this.get(e+i))}},e.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},e}();t.CircularList=r},function(e,t,n){"use strict";function i(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();var i=!e[t].hasContent(n-1)&&1===e[t].getWidth(n-1),r=2===e[t+1].getWidth(0);return i&&r?n-1:n}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,n,r,o){for(var a=[],s=0;s<e.length-1;s++){var c=s,l=e.get(++c);if(l.isWrapped){for(var u=[e.get(s)];c<e.length&&l.isWrapped;)u.push(l),l=e.get(++c);if(r>=s&&r<c)s+=u.length-1;else{for(var h=0,d=i(u,h,t),f=1,p=0;f<u.length;){var m=i(u,f,t),g=Math.min(m-p,n-d);u[h].copyCellsFrom(u[f],p,d,g,!1),(d+=g)===n&&(h++,d=0),(p+=g)===m&&(f++,p=0),0===d&&0!==h&&2===u[h-1].getWidth(n-1)&&(u[h].copyCellsFrom(u[h-1],n-1,d++,1,!1),u[h-1].setCell(n-1,o))}u[h].replaceCells(d,n,o);for(var v=0,b=u.length-1;b>0&&(b>h||0===u[b].getTrimmedLength());b--)v++;v>0&&(a.push(s+u.length-v),a.push(v)),s+=u.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var n=[],i=0,r=t[i],o=0,a=0;a<e.length;a++)if(r===a){var s=t[++i];e.onDeleteEmitter.fire({index:a-o,amount:s}),a+=s-1,o+=s,r=t[++i]}else n.push(a);return{layout:n,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var n=[],i=0;i<t.length;i++)n.push(e.get(t[i]));for(i=0;i<n.length;i++)e.set(i,n[i]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,n){for(var r=[],o=e.map((function(n,r){return i(e,r,t)})).reduce((function(e,t){return e+t})),a=0,s=0,c=0;c<o;){if(o-c<n){r.push(o-c);break}a+=n;var l=i(e,s,t);a>l&&(a-=l,s++);var u=2===e[s].getWidth(a-1);u&&a--;var h=u?n-1:n;r.push(h),c+=h}return r},t.getWrappedLineTrimmedLength=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var o=n(0),a=function(e){function t(n){var i=e.call(this)||this;return i.line=n,i._id=t._nextId++,i.isDisposed=!1,i._onDispose=new o.EventEmitter,i}return r(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},t._nextId=1,t}(n(2).Disposable);t.Marker=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=t.DEFAULT_BELL_SOUND=void 0;var i=n(0),r=n(11),o=n(33);t.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",t.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:t.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:r.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var a=["normal","bold","100","200","300","400","500","600","700","800","900"],s=["cols","rows"],c=function(){function e(e){this._onOptionChange=new i.EventEmitter,this.options=o.clone(t.DEFAULT_OPTIONS);for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];if(a in this.options)try{this.options[a]=this._sanitizeAndValidateOption(a,e[a])}catch(e){console.error(e)}}}return Object.defineProperty(e.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),e.prototype.setOption=function(e,n){if(!(e in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');if(-1!==s.indexOf(e))throw new Error('Option "'+e+'" can only be set in the constructor');this.options[e]!==n&&(n=this._sanitizeAndValidateOption(e,n),this.options[e]!==n&&(this.options[e]=n,this._onOptionChange.fire(e)))},e.prototype._sanitizeAndValidateOption=function(e,n){switch(e){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":n||(n=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof n&&1<=n&&n<=1e3)break;n=-1!==a.indexOf(n)?n:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":n=Math.floor(n);case"lineHeight":case"tabStopWidth":if(n<1)throw new Error(e+" cannot be less than 1, value: "+n);break;case"minimumContrastRatio":n=Math.max(1,Math.min(21,Math.round(10*n)/10));break;case"scrollback":if((n=Math.min(n,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+n);break;case"fastScrollSensitivity":case"scrollSensitivity":if(n<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+n)}return n},e.prototype.getOption=function(e){if(!(e in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');return this.options[e]},e}();t.OptionsService=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var s=n(1),c=n(0),l=n(33),u=n(2),h=Object.freeze({insertMode:!1}),d=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),f=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._bufferService=n,o._logService=i,o._optionsService=r,o.isCursorInitialized=!1,o.isCursorHidden=!1,o._onData=o.register(new c.EventEmitter),o._onUserInput=o.register(new c.EventEmitter),o._onBinary=o.register(new c.EventEmitter),o._scrollToBottom=t,o.register({dispose:function(){return o._scrollToBottom=void 0}}),o.modes=l.clone(h),o.decPrivateModes=l.clone(d),o}return r(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=l.clone(h),this.decPrivateModes=l.clone(d)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.options.disableStdin){var n=this._bufferService.buffer;n.ybase!==n.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+e+'"',(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onBinary.fire(e))},o([a(1,s.IBufferService),a(2,s.ILogService),a(3,s.IOptionsService)],t)}(u.Disposable);t.CoreService=f},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var o=n(1),a=n(0),s={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),32===e.action?n|=32:0!==e.action||t||(n|=3)),n}var l=String.fromCharCode,u={DEFAULT:function(e){var t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"\x1b[M"+l(t[0])+l(t[1])+l(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"\x1b[<"+c(e,!0)+";"+e.col+";"+e.row+t}},h=function(){function e(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new a.EventEmitter,this._lastEvent=null;for(var n=0,i=Object.keys(s);n<i.length;n++){var r=i[n];this.addProtocol(r,s[r])}for(var o=0,c=Object.keys(u);o<c.length;o++){var l=c[o];this.addEncoding(l,u[l])}this.reset()}return e.prototype.addProtocol=function(e,t){this._protocols[e]=t},e.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},i([r(0,o.IBufferService),r(1,o.ICoreService)],e)}();t.CoreMouseService=h},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var o=n(1),a=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){e<this._start?this._start=e:e>this._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var n=e;e=t,t=n}e<this._start&&(this._start=e),t>this._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},i([r(0,o.IBufferService)],e)}();t.DirtyRowService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var i=n(0),r=n(79),o=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new i.EventEmitter;var e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,n=e.length,i=0;i<n;++i){var r=e.charCodeAt(i);if(55296<=r&&r<=56319){if(++i>=n)return t+this.wcwidth(r);var o=e.charCodeAt(i);56320<=o&&o<=57343?r=1024*(r-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(r)}return t},e}();t.UnicodeService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var i,r=n(15),o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],a=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],s=function(){function e(){if(this.version="6",!i){i=new Uint8Array(65536),r.fill(i,1),i[0]=0,r.fill(i,0,1,32),r.fill(i,0,127,160),r.fill(i,2,4352,4448),i[9001]=2,i[9002]=2,r.fill(i,2,11904,42192),i[12351]=1,r.fill(i,2,44032,55204),r.fill(i,2,63744,64256),r.fill(i,2,65040,65050),r.fill(i,2,65072,65136),r.fill(i,2,65280,65377),r.fill(i,2,65504,65511);for(var e=0;e<o.length;++e)r.fill(i,0,o[e][0],o[e][1]+1)}}return e.prototype.wcwidth=function(e){return e<32?0:e<127?1:e<65536?i[e]:function(e,t){var n,i=0,r=t.length-1;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=i;)if(e>t[n=i+r>>1][1])i=n+1;else{if(!(e<t[n][0]))return!0;r=n-1}return!1}(e,a)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var i=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var i=n(3);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),n=null==t?void 0:t.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&n&&(r.isWrapped=n[i.CHAR_DATA_CODE_INDEX]!==i.NULL_CELL_CODE&&n[i.CHAR_DATA_CODE_INDEX]!==i.WHITESPACE_CELL_CODE)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var i=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return e.prototype.writeSync=function(e){if(this._writeBuffer.length){for(var t=this._bufferOffset;t<this._writeBuffer.length;++t){var n=this._callbacks[t];this._action(this._writeBuffer[t]),n&&n()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(e)},e.prototype.write=function(e,t){var n=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout((function(){return n._innerWrite()}))),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(){for(var e=this,t=Date.now();this._writeBuffer.length>this._bufferOffset;){var n=this._writeBuffer[this._bufferOffset],i=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(n),this._pendingData-=n.length,i&&i(),Date.now()-t>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((function(){return e._innerWrite()}),0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},e}();t.WriteBuffer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var i=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var n=this,i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=function(){return n._wrappedAddonDispose(i)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},e}();t.AddonManager=i}])},"/slF":function(e,t,n){var i=n("vd7W").isDigit,r=n("vd7W").cmpChar,o=n("vd7W").TYPE,a=o.Delim,s=o.WhiteSpace,c=o.Comment,l=o.Ident,u=o.Number,h=o.Dimension,d=45,f=!0;function p(e,t){return null!==e&&e.type===a&&e.value.charCodeAt(0)===t}function m(e,t,n){for(;null!==e&&(e.type===s||e.type===c);)e=n(++t);return t}function g(e,t,n,r){if(!e)return 0;var o=e.value.charCodeAt(t);if(43===o||o===d){if(n)return 0;t++}for(;t<e.value.length;t++)if(!i(e.value.charCodeAt(t)))return 0;return r+1}function v(e,t,n){var i=!1,r=m(e,t,n);if(null===(e=n(r)))return t;if(e.type!==u){if(!p(e,43)&&!p(e,d))return t;if(i=!0,r=m(n(++r),r,n),null===(e=n(r))&&e.type!==u)return 0}if(!i){var o=e.value.charCodeAt(0);if(43!==o&&o!==d)return 0}return g(e,i?0:1,i,r)}e.exports=function(e,t){var n=0;if(!e)return 0;if(e.type===u)return g(e,0,!1,n);if(e.type===l&&e.value.charCodeAt(0)===d){if(!r(e.value,1,110))return 0;switch(e.value.length){case 2:return v(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==d?0:(n=m(t(++n),n,t),g(e=t(n),0,f,n));default:return e.value.charCodeAt(2)!==d?0:g(e,3,f,n)}}else if(e.type===l||p(e,43)&&t(n+1).type===l){if(e.type!==l&&(e=t(++n)),null===e||!r(e.value,0,110))return 0;switch(e.value.length){case 1:return v(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==d?0:(n=m(t(++n),n,t),g(e=t(n),0,f,n));default:return e.value.charCodeAt(1)!==d?0:g(e,2,f,n)}}else if(e.type===h){for(var o=e.value.charCodeAt(0),a=43===o||o===d?1:0,s=a;s<e.value.length&&i(e.value.charCodeAt(s));s++);return s===a?0:r(e.value,s,110)?s+1===e.value.length?v(t(++n),n,t):e.value.charCodeAt(s+1)!==d?0:s+2===e.value.length?(n=m(t(++n),n,t),g(e=t(n),0,f,n)):g(e,s+2,f,n):0}return 0}},"/uUt":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e,t){return function(n){return n.lift(new l(e,t))}}var l=function(){function e(t,n){Object(o.a)(this,e),this.compare=t,this.keySelector=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.compare,this.keySelector))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return Object(a.a)(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(s.a)},0:function(e,t,n){e.exports=n("zUnb")},"00Es":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("bb3/");i.Observable.prototype.timestamp=r.timestamp},"02G1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(i.merge.apply(void 0,[this].concat(e)))}},"06ho":function(e,t){e.exports={name:"Value",structure:{children:[[]]},parse:function(){var e=this.scanner.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.scanner.tokenStart),children:t}},generate:function(e){this.children(e)}}},"0EUg":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("bHdf");function r(){return Object(i.a)(1)}},"0ZAG":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("8mU2");i.Observable.prototype.takeLast=r.takeLast},"0c70":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.toArray=function(){return i.toArray()(this)}},"11EI":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.fromEventPattern=i.fromEventPattern},"16Oq":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.retry=function(e){return void 0===e&&(e=-1),i.retry(e)(this)}},"19/K":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Sj+y"),r=function(){return i.b.create}()},"1G5W":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("zx2A");function c(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(t){Object(o.a)(this,e),this.notifier=t}return Object(a.a)(e,[{key:"call",value:function(e,t){var n=new u(e),i=Object(s.c)(this.notifier,new s.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).seenValue=!1,i}return Object(a.a)(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(s.b)},"1JPw":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.bindCallback=i.bindCallback},"1M8x":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Xk39");i.Observable.prototype.catch=r._catch,i.Observable.prototype._catch=r._catch},"1OyB":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return i}))},"1aLD":function(e,t,n){var i=n("XDwu"),r=" ";function o(e,t){function n(e,t){return i.slice(e,t).map((function(t,n){for(var i=String(e+n+1);i.length<l;)i=" "+i;return i+" |"+t})).join("\n")}var i=e.source.split(/\r\n?|\n|\f/),o=e.line,a=e.column,s=Math.max(1,o-t)-1,c=Math.min(o+t,i.length+1),l=Math.max(4,String(c).length)+1,u=0;(a+=(r.length-1)*(i[o-1].substr(0,a-1).match(/\t/g)||[]).length)>100&&(u=a-60+3,a=58);for(var h=s;h<=c;h++)h>=0&&h<i.length&&(i[h]=i[h].replace(/\t/g,r),i[h]=(u>0&&i[h].length>u?"\u2026":"")+i[h].substr(u,98)+(i[h].length>u+100-1?"\u2026":""));return[n(s,o),new Array(a+l+2).join("-")+"^",n(o,c)].filter(Boolean).join("\n")}e.exports=function(e,t,n,r,a){var s=i("SyntaxError",e);return s.source=t,s.offset=n,s.line=r,s.column=a,s.sourceFragment=function(e){return o(s,isNaN(e)?0:e)},Object.defineProperty(s,"formattedMessage",{get:function(){return"Parse error: "+s.message+"\n"+o(s,2)}}),s.parseError={offset:n,line:r,column:a},s}},"1gRP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.materialize=function(){return i.materialize()(this)}},"1uah":function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("yCtX"),c=n("DH7j"),l=n("7o/Q"),u=n("Lhse"),h=n("zx2A");function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return"function"==typeof i&&t.pop(),Object(s.a)(t,void 0).lift(new f(i))}var f=function(){function e(t){Object(o.a)(this,e),this.resultSelector=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new p(e,this.resultSelector))}}]),e}(),p=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return arguments.length>2&&void 0!==arguments[2]||Object.create(null),Object(o.a)(this,n),(r=t.call(this,e)).resultSelector=i,r.iterators=[],r.active=0,r.resultSelector="function"==typeof i?i:void 0,r}return Object(a.a)(n,[{key:"_next",value:function(e){var t=this.iterators;Object(c.a)(e)?t.push(new g(e)):t.push("function"==typeof e[u.a]?new m(e[u.a]()):new v(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];i.stillUnsubscribed?this.destination.add(i.subscribe()):this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){var r=e[i];if("function"==typeof r.hasValue&&!r.hasValue())return}for(var o=!1,a=[],s=0;s<t;s++){var c=e[s],l=c.next();if(c.hasCompleted()&&(o=!0),l.done)return void n.complete();a.push(l.value)}this.resultSelector?this._tryresultSelector(a):n.next(a),o&&n.complete()}},{key:"_tryresultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(l.a),m=function(){function e(t){Object(o.a)(this,e),this.iterator=t,this.nextResult=t.next()}return Object(a.a)(e,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e}},{key:"hasCompleted",value:function(){var e=this.nextResult;return Boolean(e&&e.done)}}]),e}(),g=function(){function e(t){Object(o.a)(this,e),this.array=t,this.index=0,this.length=0,this.length=t.length}return Object(a.a)(e,[{key:u.a,value:function(){return this}},{key:"next",value:function(e){var t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),e}(),v=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).parent=i,a.observable=r,a.stillUnsubscribed=!0,a.buffer=[],a.isComplete=!1,a}return Object(a.a)(n,[{key:u.a,value:function(){return this}},{key:"next",value:function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(e){this.buffer.push(e),this.parent.checkIterators()}},{key:"subscribe",value:function(){return Object(h.c)(this.observable,new h.a(this))}}]),n}(h.b)},"2+DN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("uMcE");i.Observable.prototype.shareReplay=r.shareReplay},"25BE":function(e,t,n){"use strict";function i(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return i}))},"2Gxe":function(e,t,n){var i=n("vd7W").TYPE,r=i.Ident,o=i.String,a=i.Colon,s=i.LeftSquareBracket,c=i.RightSquareBracket;function l(){this.scanner.eof&&this.error("Unexpected end of input");var e=this.scanner.tokenStart,t=!1,n=!0;return this.scanner.isDelim(42)?(t=!0,n=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat(r),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat(r)):t&&this.error("Identifier is expected",this.scanner.tokenEnd):t&&this.error("Vertical line is expected"),n&&this.scanner.tokenType===a&&(this.scanner.next(),this.eat(r)),{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function u(){var e=this.scanner.tokenStart,t=this.scanner.source.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==t&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(e)}e.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var e,t=this.scanner.tokenStart,n=null,i=null,a=null;return this.eat(s),this.scanner.skipSC(),e=l.call(this),this.scanner.skipSC(),this.scanner.tokenType!==c&&(this.scanner.tokenType!==r&&(n=u.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===o?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===r&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(c),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:n,value:i,flags:a}},generate:function(e){var t=" ";this.chunk("["),this.node(e.name),null!==e.matcher&&(this.chunk(e.matcher),null!==e.value&&(this.node(e.value),"String"===e.value.type&&(t=""))),null!==e.flags&&(this.chunk(t),this.chunk(e.flags)),this.chunk("]")}}},"2IC2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("j5kd");i.Observable.prototype.windowTime=r.windowTime},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"2TAq":function(e,t,n){var i=n("vd7W").isHexDigit,r=n("vd7W").cmpChar,o=n("vd7W").TYPE,a=o.Ident,s=o.Delim,c=o.Number,l=o.Dimension;function u(e,t){return null!==e&&e.type===s&&e.value.charCodeAt(0)===t}function h(e,t){return e.value.charCodeAt(0)===t}function d(e,t,n){for(var r=t,o=0;r<e.value.length;r++){var a=e.value.charCodeAt(r);if(45===a&&n&&0!==o)return d(e,t+o+1,!1)>0?6:0;if(!i(a))return 0;if(++o>6)return 0}return o}function f(e,t,n){if(!e)return 0;for(;u(n(t),63);){if(++e>6)return 0;t++}return t}e.exports=function(e,t){var n=0;if(null===e||e.type!==a||!r(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(u(e,43))return null===(e=t(++n))?0:e.type===a?f(d(e,0,!0),++n,t):u(e,63)?f(1,++n,t):0;if(e.type===c){if(!h(e,43))return 0;var i=d(e,1,!0);return 0===i?0:null===(e=t(++n))?n:e.type===l||e.type===c?h(e,45)&&d(e,1,!1)?n+1:0:f(i,n,t)}return e.type===l&&h(e,43)?f(d(e,1,!0),++n,t):0}},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=n("XNiG"),u=n("9ppp"),h=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this))._value=e,r}return Object(r.a)(n,[{key:"_subscribe",value:function(e){var t=Object(o.a)(Object(a.a)(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new u.a;return this._value}},{key:"next",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(l.b)},"2WcH":function(e,t,n){"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n.d(t,"a",(function(){return i}))},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},"2pxp":function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},"338f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.concatMap=function(e){return i.concatMap(e)(this)}},"33Dm":function(e,t,n){var i=n("vd7W").TYPE,r=i.WhiteSpace,o=i.Comment,a=i.Ident,s=i.LeftParenthesis;e.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var e=this.createList(),t=null,n=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case o:this.scanner.next();continue;case r:n=this.WhiteSpace();continue;case a:t=this.Identifier();break;case s:t=this.MediaFeature();break;default:break e}null!==n&&(e.push(n),n=null),e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}}},"37L2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("338f");i.Observable.prototype.concatMap=r.concatMap},"3E0/":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("D0XW"),c=n("mlxB"),l=n("7o/Q"),u=n("WMd4");function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.a,n=Object(c.a)(e),i=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new d(i,t))}}var d=function(){function e(t,n){Object(o.a)(this,e),this.delay=t,this.scheduler=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.delay,this.scheduler))}}]),e}(),f=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return Object(a.a)(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new p(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(u.a.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(u.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(l.a),p=function e(t,n){Object(o.a)(this,e),this.time=t,this.notification=n}},"3EiV":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("dL1u");i.Observable.prototype.buffer=r.buffer},"3N8a":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("1OyB"),r=n("vuIU"),o=n("Ji7U"),a=n("LK+K"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o.pending=!1,o}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,r){return Object(i.a)(this,n),t.call(this)}return Object(r.a)(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},"3Qpg":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.fromPromise=i.from},"3UWI":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("D0XW"),r=n("tnsW"),o=n("PqYM");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return Object(r.a)((function(){return Object(o.a)(e,t)}))}},"3XNy":function(e,t){function n(e){return e>=48&&e<=57}function i(e){return e>=65&&e<=90}function r(e){return e>=97&&e<=122}function o(e){return i(e)||r(e)}function a(e){return e>=128}function s(e){return o(e)||a(e)||95===e}function c(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function l(e){return 10===e||13===e||12===e}function u(e){return l(e)||32===e||9===e}function h(e,t){return 92===e&&!l(t)&&0!==t}var d=new Array(128);p.Eof=128,p.WhiteSpace=130,p.Digit=131,p.NameStart=132,p.NonPrintable=133;for(var f=0;f<d.length;f++)switch(!0){case u(f):d[f]=p.WhiteSpace;break;case n(f):d[f]=p.Digit;break;case s(f):d[f]=p.NameStart;break;case c(f):d[f]=p.NonPrintable;break;default:d[f]=f||p.Eof}function p(e){return e<128?d[e]:p.NameStart}e.exports={isDigit:n,isHexDigit:function(e){return n(e)||e>=65&&e<=70||e>=97&&e<=102},isUppercaseLetter:i,isLowercaseLetter:r,isLetter:o,isNonAscii:a,isNameStart:s,isName:function(e){return s(e)||n(e)||45===e},isNonPrintable:c,isNewline:l,isWhiteSpace:u,isValidEscape:h,isIdentifierStart:function(e,t,n){return 45===e?s(t)||45===t||h(t,n):!!s(e)||92===e&&h(e,t)},isNumberStart:function(e,t,i){return 43===e||45===e?n(t)?2:46===t&&n(i)?3:0:46===e?n(t)?2:0:n(e)?1:0},isBOM:function(e){return 65279===e||65534===e?1:0},charCodeCategory:p}},"3uOa":function(e,t,n){"use strict";n.r(t);var i=n("lcII");n.d(t,"webSocket",(function(){return i.a}));var r=n("wxn8");n.d(t,"WebSocketSubject",(function(){return r.a}))},"4AtU":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.expand=function(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),i.expand(e,t=(t||0)<1?Number.POSITIVE_INFINITY:t,n)(this)}},"4HHr":function(e,t){var n=Object.prototype.hasOwnProperty,i=function(){};function r(e){return"function"==typeof e?e:i}function o(e,t){return function(n,i,r){n.type===t&&e.call(this,n,i,r)}}function a(e,t){var i=t.structure,r=[];for(var o in i)if(!1!==n.call(i,o)){var a=i[o],s={name:o,type:!1,nullable:!1};Array.isArray(i[o])||(a=[i[o]]);for(var c=0;c<a.length;c++){var l=a[c];null===l?s.nullable=!0:"string"==typeof l?s.type="node":Array.isArray(l)&&(s.type="list")}s.type&&r.push(s)}return r.length?{context:t.walkContext,fields:r}:null}function s(e,t){var n=e.fields.slice(),i=e.context,r="string"==typeof i;return t&&n.reverse(),function(e,o,a){var s;r&&(s=o[i],o[i]=e);for(var c=0;c<n.length;c++){var l=n[c],u=e[l.name];l.nullable&&!u||("list"===l.type?t?u.forEachRight(a):u.forEach(a):a(u))}r&&(o[i]=s)}}function c(e){return{Atrule:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},Rule:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},Declaration:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block,DeclarationList:e.DeclarationList}}}e.exports=function(e){var t=function(e){var t={};for(var i in e.node)if(n.call(e.node,i)){var r=e.node[i];if(!r.structure)throw new Error("Missed `structure` field in `"+i+"` node type definition");t[i]=a(0,r)}return t}(e),l={},u={};for(var h in t)n.call(t,h)&&null!==t[h]&&(l[h]=s(t[h],!1),u[h]=s(t[h],!0));var d=c(l),f=c(u),p=function(e,n){var a=i,s=i,c=l,h={root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof n)a=n;else if(n&&(a=r(n.enter),s=r(n.leave),n.reverse&&(c=u),n.visit)){if(d.hasOwnProperty(n.visit))c=n.reverse?f[n.visit]:d[n.visit];else if(!t.hasOwnProperty(n.visit))throw new Error("Bad value `"+n.visit+"` for `visit` option (should be: "+Object.keys(t).join(", ")+")");a=o(a,n.visit),s=o(s,n.visit)}if(a===i&&s===i)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");if(n.reverse){var p=a;a=s,s=p}!function e(t,n,i){a.call(h,t,n,i),c.hasOwnProperty(t.type)&&c[t.type](t,h,e),s.call(h,t,n,i)}(e)};return p.find=function(e,t){var n=null;return p(e,(function(e,i,r){null===n&&t.call(this,e,i,r)&&(n=e)})),n},p.findLast=function(e,t){var n=null;return p(e,{reverse:!0,enter:function(e,i,r){null===n&&t.call(this,e,i,r)&&(n=e)}}),n},p.findAll=function(e,t){var n=[];return p(e,(function(e,i,r){t.call(this,e,i,r)&&n.push(e)})),n},p}},"4Hgy":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t._do=function(e,t,n){return i.tap(e,t,n)(this)}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},"4Wg5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("nZYK");i.Observable.prototype.switchMap=r.switchMap},"4XzM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("89kA")},"4fRq":function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},"4hIw":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var i=n("1OyB"),r=n("D0XW"),o=n("Kqap"),a=n("NXyV"),s=n("lJxs");function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.a;return function(t){return Object(a.a)((function(){return t.pipe(Object(o.a)((function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}}),{current:e.now(),value:void 0,last:void 0}),Object(s.a)((function(e){return new l(e.value,e.current-e.last)})))}))}}var l=function e(t,n){Object(i.a)(this,e),this.value=t,this.interval=n}},"4njK":function(e,t,n){var i=n("vd7W").TYPE,r=i.WhiteSpace,o=i.Semicolon,a=i.LeftCurlyBracket,s=i.Delim;function c(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===r?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function l(){return 0}e.exports={name:"Raw",structure:{value:String},parse:function(e,t,n){var i,r=this.scanner.getTokenStart(e);return this.scanner.skip(this.scanner.getRawLength(e,t||l)),i=n&&this.scanner.tokenStart>r?c.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)}},generate:function(e){this.chunk(e.value)},mode:{default:l,leftCurlyBracket:function(e){return e===a?1:0},leftCurlyBracketOrSemicolon:function(e){return e===a||e===o?1:0},exclamationMarkOrSemicolon:function(e,t,n){return e===s&&33===t.charCodeAt(n)||e===o?1:0},semicolonIncluded:function(e){return e===o?2:0}}}},"4vYp":function(e){e.exports=JSON.parse('{"generic":true,"types":{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","attachment":"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"[\'~\'|\'|\'|\'^\'|\'$\'|\'*\']? \'=\'","attr-modifier":"i|s","attribute-selector":"\'[\' <wq-name> \']\'|\'[\' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? \']\'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity","box":"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [[\'+\'|\'-\'] <calc-product>]*","calc-product":"<calc-value> [\'*\' <calc-value>|\'/\' <number>]*","calc-value":"<number>|<dimension>|<percentage>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"\'.\' <ident-token>","clip-source":"<url>","color":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>","combinator":"\'>\'|\'+\'|\'~\'|[\'||\']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat":"searchfield|textarea|push-button|button-bevel|slider-horizontal|checkbox|radio|square-button|menulist|menulist-button|listbox|meter|progress-bar","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<url>|<quote>|<attr()>|counter( <ident> , <\'list-style-type\'>? )]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","counter()":"counter( <custom-ident> , [<counter-style>|none]? )","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <custom-ident> , <string> , [<counter-style>|none]? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number> , <number> , <number> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> \'{\' <feature-value-declaration-list> \'}\'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<\'background-color\'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fit-content()":"fit-content( [<length>|<percentage>] )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<positive-integer>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box","gradient":"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )","hue":"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","image":"<url>|<image()>|<image-set()>|<element()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] <resolution>","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length>|<percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <\'border-radius\'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"\'[\' <custom-ident>* \']\'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> [\'<\'|\'>\']? \'=\'? <mf-value>|<mf-value> [\'<\'|\'>\']? \'=\'? <mf-name>|<mf-value> \'<\' \'=\'? <mf-name> \'<\' \'=\'? <mf-value>|<mf-value> \'>\' \'=\'? <mf-name> \'>\' \'=\'? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length>|<percentage>|<flex>|min-content|max-content|auto] , [<length>|<percentage>|<flex>|min-content|max-content|auto] )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|\'*\']? \'|\'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]","nth":"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> \'{\' <declaration-list> \'}\'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","perspective()":"perspective( <length> )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )","position":"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pseudo-class-selector":"\':\' <ident-token>|\':\' <function-token> <any-value> \')\'","pseudo-element-selector":"\':\' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]","quote":"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )","shadow":"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]","shape":"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"<time>||<timing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-transition":"[none|<single-transition-property>]||<time>||<timing-function>||<time>","single-transition-property":"all|<custom-ident>","size":"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )","symbol":"<string>|<image>|<custom-ident>","target":"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<positive-integer>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( [<length>|<percentage>] )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? \'*\'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"min-intrinsic|intrinsic|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"\'progid:\' [<ident-token> \'.\']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>","age":"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","border-radius":"<length-percentage>{1,2}","bottom":"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]","gender":"male|female|neutral","left":"<length>|auto","mask-image":"<mask-reference>#","name-repeat":"repeat( [<positive-integer>|auto-fill] , <line-names>+ )","paint":"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","path()":"path( <string> )","ratio":"<integer> / <integer>","right":"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb","top":"<length>|auto","track-group":"\'(\' [<string>* <track-minmax> <string>*]+ \')\' [\'[\' <positive-integer> \']\']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content","x":"<number>","y":"<number>","declaration":"<ident-token> : <declaration-value>? [\'!\' important]?","declaration-list":"[<declaration>? \';\']* <declaration>?","url":"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221e]>","positive-integer":"<integer [0,\u221e]>"},"properties":{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<\'-ms-content-zoom-limit-min\'> <\'-ms-content-zoom-limit-max\'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<\'-ms-content-zoom-snap-type\'>||<\'-ms-content-zoom-snap-points\'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<\'-ms-scroll-limit-x-min\'> <\'-ms-scroll-limit-y-min\'> <\'-ms-scroll-limit-x-max\'> <\'-ms-scroll-limit-y-max\'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-x\'>","-ms-scroll-snap-y":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-y\'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"<integer>","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|listbox|listitem|media-fullscreen-button|media-mute-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield","-webkit-border-before":"<\'border-width\'>||<\'border-style\'>||<\'color\'>","-webkit-border-before-color":"<\'color\'>","-webkit-border-before-style":"<\'border-style\'>","-webkit-border-before-width":"<\'border-width\'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","all":"initial|inherit|unset|revert","animation":"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<timing-function>#","appearance":"none|auto|button|textfield|<compat>","azimuth":"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden","background":"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[left|right|x-start|x-end]? <length-percentage>?]#","background-position-y":"[center|[top|bottom|y-start|y-end]? <length-percentage>?]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<\'width\'>","border":"<line-width>||<line-style>||<color>","border-block":"<\'border-top-width\'>||<\'border-top-style\'>||<\'color\'>","border-block-color":"<\'border-top-color\'>{1,2}","border-block-style":"<\'border-top-style\'>","border-block-width":"<\'border-top-width\'>","border-block-end":"<\'border-top-width\'>||<\'border-top-style\'>||<\'color\'>","border-block-end-color":"<\'border-top-color\'>","border-block-end-style":"<\'border-top-style\'>","border-block-end-width":"<\'border-top-width\'>","border-block-start":"<\'border-top-width\'>||<\'border-top-style\'>||<\'color\'>","border-block-start-color":"<\'border-top-color\'>","border-block-start-style":"<\'border-top-style\'>","border-block-start-width":"<\'border-top-width\'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<\'border-top-color\'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<\'border-image-source\'>||<\'border-image-slice\'> [/ <\'border-image-width\'>|/ <\'border-image-width\'>? / <\'border-image-outset\'>]?||<\'border-image-repeat\'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<\'border-top-width\'>||<\'border-top-style\'>||<\'color\'>","border-inline-end":"<\'border-top-width\'>||<\'border-top-style\'>||<\'color\'>","border-inline-color":"<\'border-top-color\'>{1,2}","border-inline-style":"<\'border-top-style\'>","border-inline-width":"<\'border-top-width\'>","border-inline-end-color":"<\'border-top-color\'>","border-inline-end-style":"<\'border-top-style\'>","border-inline-end-width":"<\'border-top-width\'>","border-inline-start":"<\'border-top-width\'>||<\'border-top-style\'>||<\'color\'>","border-inline-start-color":"<\'border-top-color\'>","border-inline-start-style":"<\'border-top-style\'>","border-inline-start-width":"<\'border-top-width\'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}","bottom":"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end","caret-color":"auto|<color>","clear":"none|left|right|both|inline-start|inline-end","clip":"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none","color":"<color>","color-adjust":"economy|exact","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<\'column-rule-width\'>||<\'column-rule-style\'>||<\'column-rule-color\'>","column-rule-color":"<color>","column-rule-style":"<\'border-style\'>","column-rule-width":"<\'border-width\'>","column-span":"none|all","column-width":"<length>|auto","columns":"<\'column-width\'>||<\'column-count\'>","contain":"none|strict|content|[size||layout||style||paint]","content":"normal|none|[<content-replacement>|<content-list>] [/ <string>]?","counter-increment":"[<custom-ident> <integer>?]+|none","counter-reset":"[<custom-ident> <integer>?]+|none","counter-set":"[<custom-ident> <integer>?]+|none","cursor":"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]","direction":"ltr|rtl","display":"block|contents|flex|flow|flow-root|grid|inline|inline-block|inline-flex|inline-grid|inline-list-item|inline-table|list-item|none|ruby|ruby-base|ruby-base-container|ruby-text|ruby-text-container|run-in|table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|-ms-flexbox|-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box","empty-cells":"show|hide","filter":"none|<filter-function-list>|<-ms-filter-function-list>","flex":"none|[<\'flex-grow\'> <\'flex-shrink\'>?||<\'flex-basis\'>]","flex-basis":"content|<\'width\'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<\'flex-direction\'>||<\'flex-wrap\'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse","float":"left|right|none|inline-start|inline-end","font":"[[<\'font-style\'>||<font-variant-css21>||<\'font-weight\'>||<\'font-stretch\'>]? <\'font-size\'> [/ <\'line-height\'>]? <\'font-family\'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|<number>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","gap":"<\'row-gap\'> <\'column-gap\'>?","grid":"<\'grid-template\'>|<\'grid-template-rows\'> / [auto-flow&&dense?] <\'grid-auto-columns\'>?|[auto-flow&&dense?] <\'grid-auto-rows\'>? / <\'grid-template-columns\'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<\'grid-row-gap\'> <\'grid-column-gap\'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<\'grid-template-rows\'> / <\'grid-template-columns\'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>","grid-template-rows":"none|<track-list>|<auto-track-list>","hanging-punctuation":"none|[first||[force-end|allow-end]||last]","height":"[<length>|<percentage>]&&[border-box|content-box]?|available|min-content|max-content|fit-content|auto","hyphens":"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<\'width\'>","inset":"<\'top\'>{1,4}","inset-block":"<\'top\'>{1,2}","inset-block-end":"<\'top\'>","inset-block-start":"<\'top\'>","inset-inline":"<\'top\'>{1,2}","inset-inline-end":"<\'top\'>","inset-inline-start":"<\'top\'>","isolation":"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","left":"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<\'list-style-type\'>||<\'list-style-position\'>||<\'list-style-image\'>","list-style-image":"<url>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none","margin":"[<length>|<percentage>|auto]{1,4}","margin-block":"<\'margin-left\'>{1,2}","margin-block-end":"<\'margin-left\'>","margin-block-start":"<\'margin-left\'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<\'margin-left\'>{1,2}","margin-inline-end":"<\'margin-left\'>","margin-inline-start":"<\'margin-left\'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","mask":"<mask-layer>#","mask-border":"<\'mask-border-source\'>||<\'mask-border-slice\'> [/ <\'mask-border-width\'>? [/ <\'mask-border-outset\'>]?]?||<\'mask-border-repeat\'>||<\'mask-border-mode\'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","max-block-size":"<\'max-width\'>","max-height":"<length>|<percentage>|none|max-content|min-content|fit-content|fill-available","max-inline-size":"<\'max-width\'>","max-lines":"none|<integer>","max-width":"<length>|<percentage>|none|max-content|min-content|fit-content|fill-available|<-non-standard-width>","min-block-size":"<\'min-width\'>","min-height":"<length>|<percentage>|auto|max-content|min-content|fit-content|fill-available","min-inline-size":"<\'min-width\'>","min-width":"<length>|<percentage>|auto|max-content|min-content|fit-content|fill-available|<-non-standard-width>","mix-blend-mode":"<blend-mode>","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>","offset":"[<\'offset-position\'>? [<\'offset-path\'> [<\'offset-distance\'>||<\'offset-rotate\'>]?]?]! [/ <\'offset-anchor\'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>?&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>","opacity":"<number-zero-one>","order":"<integer>","orphans":"<integer>","outline":"[<\'outline-color\'>||<\'outline-style\'>||<\'outline-width\'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<\'border-style\'>","outline-width":"<line-width>","overflow":"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto","padding":"[<length>|<percentage>]{1,4}","padding-block":"<\'padding-left\'>{1,2}","padding-block-end":"<\'padding-left\'>","padding-block-start":"<\'padding-left\'>","padding-bottom":"<length>|<percentage>","padding-inline":"<\'padding-left\'>{1,2}","padding-inline-end":"<\'padding-left\'>","padding-inline-start":"<\'padding-left\'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]","perspective":"none|<length>","perspective-origin":"<position>","place-content":"<\'align-content\'> <\'justify-content\'>?","place-items":"<\'align-items\'> <\'justify-items\'>?","place-self":"<\'align-self\'> <\'justify-self\'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit","position":"static|relative|absolute|sticky|fixed|-webkit-sticky","quotes":"none|[<string> <string>]+","resize":"none|both|horizontal|vertical|block|inline","right":"<length>|<percentage>|auto","rotate":"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"over|under|inter-character","scale":"none|<number>{1,3}","scrollbar-color":"auto|dark|light|<color>{2}","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","shape-image-threshold":"<number>","shape-margin":"<length-percentage>","shape-outside":"none|<shape-box>||<basic-shape>|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<\'text-decoration-line\'>||<\'text-decoration-style\'>||<\'text-decoration-color\'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-emphasis":"<\'text-emphasis-style\'>||<\'text-emphasis-color\'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-position":"auto|[under||[left|right]]","top":"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation","transform":"none|<transform-list>","transform-box":"border-box|fill-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d","transition":"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<timing-function>#","translate":"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","visibility":"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line","widows":"<integer>","width":"[<length>|<percentage>]&&[border-box|content-box]?|available|min-content|max-content|fit-content|auto","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length-percentage>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>","zoom":"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<\'border-bottom-left-radius\'>","-moz-border-radius-bottomright":"<\'border-bottom-right-radius\'>","-moz-border-radius-topleft":"<\'border-top-left-radius\'>","-moz-border-radius-topright":"<\'border-bottom-right-radius\'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<\'flex-shrink\'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<\'flex-grow\'>","-ms-flex-preferred-size":"<\'flex-basis\'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-columns":"<track-list-v0>","-ms-grid-row-align":"start|end|center|stretch","-ms-grid-rows":"<track-list-v0>","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>","behavior":"<url>+","clip-rule":"nonzero|evenodd","cue":"<\'cue-before\'> <\'cue-after\'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge","fill":"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>","kerning":"auto|<svg-length>","marker":"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>","pause":"<\'pause-before\'> <\'pause-after\'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong","rest":"<\'rest-before\'> <\'rest-after\'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision","src":"[<url> [format( <string># )]?|local( <family-name> )]#","speak":"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]","stroke":"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"}}')},"4w9M":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.race=i.race},"4yVj":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("HDdC"),r=n("quSY");function o(e,t){return new i.a((function(n){var i=new r.a;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}))}},"5+tZ":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return f}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("lJxs"),c=n("Cfvw"),l=n("zx2A");function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(u((function(n,i){return Object(c.a)(e(n,i)).pipe(Object(s.a)((function(e,r){return t(n,e,i,r)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new h(e,n))})}var h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Object(o.a)(this,e),this.project=t,this.concurrent=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.project,this.concurrent))}}]),e}(),d=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Object(o.a)(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return Object(a.a)(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new l.a(this),n=this.destination;n.add(t);var i=Object(l.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(l.b),f=u},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("1OyB"),r=n("vuIU"),o=n("Ji7U"),a=n("LK+K"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,r,o){var a;return Object(i.a)(this,n),(a=t.call(this)).parent=e,a.outerValue=r,a.outerIndex=o,a.index=0,a}return Object(r.a)(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a)},"585i":function(e,t,n){e.exports={AnPlusB:n("Iyun"),Atrule:n("G9/t"),AtrulePrelude:n("FEnK"),AttributeSelector:n("2Gxe"),Block:n("DJod"),Brackets:n("gCdt"),CDC:n("aUQo"),CDO:n("HOgr"),ClassSelector:n("gTGj"),Combinator:n("8mYp"),Comment:n("Y+H1"),Declaration:n("+/L5"),DeclarationList:n("e1rG"),Dimension:n("klIg"),Function:n("UwDK"),HexColor:n("9K4g"),Identifier:n("OyBZ"),IdSelector:n("dB5I"),MediaFeature:n("QBsF"),MediaQuery:n("33Dm"),MediaQueryList:n("Pd0I"),Nth:n("n6Bp"),Number:n("mb2m"),Operator:n("HHXC"),Parentheses:n("Vj1t"),Percentage:n("kPWa"),PseudoClassSelector:n("PzWj"),PseudoElementSelector:n("DDB3"),Ratio:n("F977"),Raw:n("4njK"),Rule:n("yTw5"),Selector:n("/BcF"),SelectorList:n("Lw+5"),String:n("r1XK"),StyleSheet:n("6RFS"),TypeSelector:n("STE7"),UnicodeRange:n("Tnl3"),Url:n("ZVk9"),Value:n("06ho"),WhiteSpace:n("Tpyv")}},"5LO2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.exhaust=function(){return i.exhaust()(this)}},"5hZ8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("b/PJ");i.Observable.prototype.skipUntil=r.skipUntil},"5i7x":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.mapTo=function(e){return i.mapTo(e)(this)}},"6IDA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("YiA4");i.Observable.prototype.windowWhen=r.windowWhen},"6PMC":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.skipWhile=function(e){return i.skipWhile(e)(this)}},"6RFS":function(e,t,n){var i=n("vd7W").TYPE,r=i.WhiteSpace,o=i.Comment,a=i.AtKeyword,s=i.CDO,c=i.CDC;function l(e){return this.Raw(e,null,!1)}e.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var e,t=this.scanner.tokenStart,n=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case r:this.scanner.next();continue;case o:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}e=this.Comment();break;case s:e=this.CDO();break;case c:e=this.CDC();break;case a:e=this.parseWithFallback(this.Atrule,l);break;default:e=this.parseWithFallback(this.Rule,l)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:n}},generate:function(e){this.children(e)},walkContext:"stylesheet"}},"6dTv":function(e,t,n){e.exports={"font-face":n("xODi"),import:n("bxbb"),media:n("eAxx"),page:n("dv2O"),supports:n("EaiB")}},"6mJ0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.findIndex=function(e,t){return i.findIndex(e,t)(this)}},"7+OI":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("HDdC");function r(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},"7+k4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("qIMP");i.Observable.prototype.pairwise=r.pairwise},7065:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.max=function(e){return i.max(e)(this)}},"70oK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("73rQ");i.Observable.prototype.exhaustMap=r.exhaustMap},"73rQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.exhaustMap=function(e){return i.exhaustMap(e)(this)}},"7GzS":function(e,t,n){var i=n("vd7W").cmpChar,r=n("vd7W").cmpStr,o=n("vd7W").TYPE,a=o.Ident,s=o.String,c=o.Number,l=o.Function,u=o.Url,h=o.Hash,d=o.Dimension,f=o.Percentage,p=o.LeftParenthesis,m=o.LeftSquareBracket,g=o.Comma,v=o.Delim;e.exports=function(e){switch(this.scanner.tokenType){case h:return this.HexColor();case g:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case p:return this.Parentheses(this.readSequence,e.recognizer);case m:return this.Brackets(this.readSequence,e.recognizer);case s:return this.String();case d:return this.Dimension();case f:return this.Percentage();case c:return this.Number();case l:return r(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case u:return this.Url();case a:return i(this.scanner.source,this.scanner.tokenStart,117)&&i(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case v:var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(47===t||42===t||43===t||45===t)return this.Operator();35===t&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}}},"7HRe":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n("HDdC"),r=n("quSY"),o=n("kJWO"),a=n("4yVj"),s=n("jZKg"),c=n("MBAA"),l=n("QIAL"),u=n("c2HN"),h=n("I55L"),d=n("CMyj");function f(e,t){if(null!=e){if(Object(l.a)(e))return function(e,t){return new i.a((function(n){var i=new r.a;return i.add(t.schedule((function(){var r=e[o.a]();i.add(r.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}))}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(Object(h.a)(e))return Object(s.a)(e,t);if(Object(d.a)(e)||"string"==typeof e)return Object(c.a)(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return d}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=n("c7jc"),u=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return Object(r.a)(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?Object(o.a)(Object(a.a)(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=l.a.setImmediate(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return Object(o.a)(Object(a.a)(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(l.a.clearImmediate(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),h=new(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(n("IjjT").a))(u),d=h},"7Ki+":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n("Gqt4");function r(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,i=n.length;if(i<=150)return n;t>i&&(t=i);var r=Math.max(t-60,0);r<5&&(r=0);var o=Math.min(r+140,i);return o>i-5&&(o=i),o===i&&(r=Math.max(o-140,0)),n=n.slice(r,o),r>0&&(n="'{snip} "+n),o<i&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],i=0;i<e.length;i++){var r=e[i];try{n.push(String(r))}catch(o){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!Object(i.k)(e)&&(Object(i.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},"7MrP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("TqLU");i.Observable.prototype.find=r.find},"7N5M":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("TpWx");i.Observable.prototype.windowCount=r.windowCount},"7RDD":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("ZHaO");i.Observable.prototype.multicast=r.multicast},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),l=n("LK+K"),u=n("n6bG"),h=n("gRHU"),d=n("quSY"),f=n("2QA8"),p=n("2fFW"),m=n("NJ4a"),g=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e,r,a){var s;switch(Object(i.a)(this,n),(s=t.call(this)).syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=h.a;break;case 1:if(!e){s.destination=h.a;break}if("object"==typeof e){e instanceof n?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add(Object(o.a)(s))):(s.syncErrorThrowable=!0,s.destination=new v(Object(o.a)(s),e));break}default:s.syncErrorThrowable=!0,s.destination=new v(Object(o.a)(s),e,r,a)}return s}return Object(r.a)(n,[{key:f.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,Object(a.a)(Object(s.a)(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(d.a),v=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e,r,a,s){var c,l;Object(i.a)(this,n),(c=t.call(this))._parentSubscriber=e;var d=Object(o.a)(c);return Object(u.a)(r)?l=r:r&&(l=r.next,a=r.error,s=r.complete,r!==h.a&&(d=Object.create(r),Object(u.a)(d.unsubscribe)&&c.add(d.unsubscribe.bind(d)),d.unsubscribe=c.unsubscribe.bind(Object(o.a)(c)))),c._context=d,c._next=l,c._error=a,c._complete=s,c}return Object(r.a)(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;p.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=p.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(m.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(m.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};p.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),p.a.useDeprecatedSynchronousErrorHandling)throw n;Object(m.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!p.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return p.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(m.a)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(g)},"7y2s":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.distinctUntilKeyChanged=function(e,t){return i.distinctUntilKeyChanged(e,t)(this)}},"82qP":function(e,t,n){e.exports={AtrulePrelude:n("TefO"),Selector:n("HvLG"),Value:n("n/gj")}},"89kA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("ZR4w");i.Observable.prototype.map=r.map},"8Ip+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");function r(){return i.NEVER}t.staticNever=r,i.Observable.never=r},"8LQU":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.subscribeOn=function(e,t){return void 0===t&&(t=0),i.subscribeOn(e,t)(this)}},"8Qeq":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("7o/Q");function r(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof i.a?t:null}return!0}},"8XFM":function(e,t){var n=Object.prototype.hasOwnProperty,i={generic:!0,types:{},atrules:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function r(e){return e&&e.constructor===Object}function o(e){return r(e)?Object.assign({},e):e}function a(e,t){for(var i in t)n.call(t,i)&&(r(e[i])?a(e[i],o(t[i])):e[i]=o(t[i]))}e.exports=function(e,t){return function e(t,i,s){for(var c in s)if(!1!==n.call(s,c))if(!0===s[c])c in i&&n.call(i,c)&&(t[c]=o(i[c]));else if(s[c])if(r(s[c]))a(l={},t[c]),a(l,i[c]),t[c]=l;else if(Array.isArray(s[c])){var l={},u=s[c].reduce((function(e,t){return e[t]=!0,e}),{});for(var h in t[c])n.call(t[c],h)&&(l[h]={},t[c]&&t[c][h]&&e(l[h],t[c][h],u));for(var h in i[c])n.call(i[c],h)&&(l[h]||(l[h]={}),i[c]&&i[c][h]&&e(l[h],i[c][h],u));t[c]=l}return t}(e,t,i)}},"8YE1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("5i7x");i.Observable.prototype.mapTo=r.mapTo},"8Yhr":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Vzig");i.Observable.prototype.throttleTime=r.throttleTime},"8mU2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.takeLast=function(e){return i.takeLast(e)(this)}},"8mYp":function(e,t,n){var i=n("vd7W").TYPE.Ident;e.exports={name:"Combinator",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 62:case 43:case 126:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.tokenType===i&&!1!==this.scanner.lookupValue(0,"deep")||this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},"8wsT":function(e,t,n){var i=n("twQA"),r=i.TYPE,o=i.NAME,a=n("P3uw").cmpStr,s=r.EOF,c=r.WhiteSpace,l=r.Comment,u=16777215,h=24,d=function(){this.offsetAndType=null,this.balance=null,this.reset()};d.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>h:s},lookupOffset:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&u:this.source.length},lookupValue:function(e,t){return(e+=this.tokenIndex)<this.tokenCount&&a(this.source,this.offsetAndType[e-1]&u,this.offsetAndType[e]&u,t)},getTokenStart:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&u:this.offsetAndType[this.tokenCount]&u:this.firstCharOffset},getRawLength:function(e,t){var n,i=e,r=this.offsetAndType[Math.max(i-1,0)]&u;e:for(;i<this.tokenCount&&!((n=this.balance[i])<e);i++)switch(t(this.offsetAndType[i]>>h,this.source,r)){case 1:break e;case 2:i++;break e;default:r=this.offsetAndType[i]&u,this.balance[n]===i&&(i=n)}return i-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]<e},isDelim:function(e,t){return t?this.lookupType(t)===r.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===r.Delim&&this.source.charCodeAt(this.tokenStart)===e},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},getTokenLength:function(){return this.tokenEnd-this.tokenStart},substrToCursor:function(e){return this.source.substring(e,this.tokenStart)},skipWS:function(){for(var e=this.tokenIndex,t=0;e<this.tokenCount&&this.offsetAndType[e]>>h===c;e++,t++);t>0&&this.skip(t)},skipSC:function(){for(;this.tokenType===c||this.tokenType===l;)this.next()},skip:function(e){var t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&u,this.tokenType=(t=this.offsetAndType[t])>>h,this.tokenEnd=t&u):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,this.tokenType=(e=this.offsetAndType[e])>>h,this.tokenEnd=e&u):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=s,this.tokenStart=this.tokenEnd=this.source.length)},dump:function(){var e=this.firstCharOffset;return Array.prototype.slice.call(this.offsetAndType,0,this.tokenCount).map((function(t,n){var i=e,r=t&u;return e=r,{idx:n,type:o[t>>h],chunk:this.source.substring(i,r),balance:this.balance[n]}}),this)}},e.exports=d},"9E4K":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("gzwt");i.Observable.prototype.count=r.count},"9HtI":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("atJV");i.Observable.prototype.last=r.last},"9K4g":function(e,t,n){var i=n("vd7W").TYPE.Hash;e.exports={name:"HexColor",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.value)}}},"9Sef":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("fY5S");i.Observable.prototype.zip=r.zipProto},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},"9qLK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("6PMC");i.Observable.prototype.skipWhile=r.skipWhile},"9xAK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("w0v+"),o=n("kU1M");t.bufferTime=function(e){var t=arguments.length,n=i.asyncScheduler;r.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var a=null;t>=2&&(a=arguments[1]);var s=Number.POSITIVE_INFINITY;return t>=3&&(s=arguments[2]),o.bufferTime(e,a,s,n)(this)}},"A+qg":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("IMZ1");i.Observable.prototype.publishBehavior=r.publishBehavior},A5T5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.repeatWhen=function(e){return i.repeatWhen(e)(this)}},ADT6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.filter=function(e,t){return i.filter(e,t)(this)}},B3CK:function(e,t,n){e.exports=n("lXnc")},B9G6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.groupBy=function(e,t,n,r){return i.groupBy(e,t,n,r)(this)}},BBZ9:function(e,t,n){"use strict";(function(e){function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function r(e,t){return e.require(t)}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n("Gqt4"),n("Qc63")}).call(this,n("kIY7")(e))},BFxc:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q"),c=n("4I5i"),l=n("EY2u");function u(e){return function(t){return 0===e?Object(l.b)():t.lift(new h(e))}}var h=function(){function e(t){if(Object(o.a)(this,e),this.total=t,this.total<0)throw new c.a}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.total))}}]),e}(),d=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return Object(a.a)(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(s.a)},BSEn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.bufferToggle=function(e,t){return i.bufferToggle(e,t)(this)}},BdNY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("4Hgy");i.Observable.prototype.do=r._do,i.Observable.prototype._do=r._do},BilO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.of=i.of},BsWD:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("a3WO");function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i.a)(e,t):void 0}}},"C/AH":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Elj+");i.Observable.prototype.repeat=r.repeat},C8tm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("B9G6");i.Observable.prototype.groupBy=r.groupBy},CJ5M:function(e,t,n){var i=n("vd7W"),r=i.isIdentifierStart,o=i.isHexDigit,a=i.isDigit,s=i.cmpStr,c=i.consumeNumber,l=i.TYPE,u=n("/slF"),h=n("2TAq"),d=["unset","initial","inherit"],f=["calc(","-moz-calc(","-webkit-calc("];function p(e,t){return t<e.length?e.charCodeAt(t):0}function m(e,t){return s(e,0,e.length,t)}function g(e,t){for(var n=0;n<t.length;n++)if(m(e,t[n]))return!0;return!1}function v(e,t){return t===e.length-2&&92===e.charCodeAt(t)&&a(e.charCodeAt(t+1))}function b(e,t,n){if(e&&"Range"===e.type){var i=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(i))return!0;if(null!==e.min&&i<e.min)return!0;if(null!==e.max&&i>e.max)return!0}return!1}function y(e,t){var n=e.index,i=0;do{if(i++,e.balance<=n)break}while(e=t(i));return i}function _(e){return function(t,n,i){return null===t?0:t.type===l.Function&&g(t.value,f)?y(t,n):e(t,n,i)}}function w(e){return function(t){return null===t||t.type!==e?0:1}}function k(e){return function(t,n,i){if(null===t||t.type!==l.Dimension)return 0;var r=c(t.value,0);if(null!==e){var o=t.value.indexOf("\\",r),a=-1!==o&&v(t.value,o)?t.value.substring(r,o):t.value.substr(r);if(!1===e.hasOwnProperty(a.toLowerCase()))return 0}return b(i,t.value,r)?0:1}}function C(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,i){return null!==t&&t.type===l.Number&&0===Number(t.value)?1:e(t,n,i)}}e.exports={"ident-token":w(l.Ident),"function-token":w(l.Function),"at-keyword-token":w(l.AtKeyword),"hash-token":w(l.Hash),"string-token":w(l.String),"bad-string-token":w(l.BadString),"url-token":w(l.Url),"bad-url-token":w(l.BadUrl),"delim-token":w(l.Delim),"number-token":w(l.Number),"percentage-token":w(l.Percentage),"dimension-token":w(l.Dimension),"whitespace-token":w(l.WhiteSpace),"CDO-token":w(l.CDO),"CDC-token":w(l.CDC),"colon-token":w(l.Colon),"semicolon-token":w(l.Semicolon),"comma-token":w(l.Comma),"[-token":w(l.LeftSquareBracket),"]-token":w(l.RightSquareBracket),"(-token":w(l.LeftParenthesis),")-token":w(l.RightParenthesis),"{-token":w(l.LeftCurlyBracket),"}-token":w(l.RightCurlyBracket),string:w(l.String),ident:w(l.Ident),"custom-ident":function(e){if(null===e||e.type!==l.Ident)return 0;var t=e.value.toLowerCase();return g(t,d)||m(t,"default")?0:1},"custom-property-name":function(e){return null===e||e.type!==l.Ident||45!==p(e.value,0)||45!==p(e.value,1)?0:1},"hex-color":function(e){if(null===e||e.type!==l.Hash)return 0;var t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(var n=1;n<t;n++)if(!o(e.value.charCodeAt(n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==l.Hash?0:r(p(e.value,1),p(e.value,2),p(e.value,3))?1:0},"an-plus-b":u,urange:h,"declaration-value":function(e,t){if(!e)return 0;var n=0,i=0,r=e.index;e:do{switch(e.type){case l.BadString:case l.BadUrl:break e;case l.RightCurlyBracket:case l.RightParenthesis:case l.RightSquareBracket:if(e.balance>e.index||e.balance<r)break e;i--;break;case l.Semicolon:if(0===i)break e;break;case l.Delim:if("!"===e.value&&0===i)break e;break;case l.Function:case l.LeftParenthesis:case l.LeftSquareBracket:case l.LeftCurlyBracket:i++}if(n++,e.balance<=r)break}while(e=t(n));return n},"any-value":function(e,t){if(!e)return 0;var n=e.index,i=0;e:do{switch(e.type){case l.BadString:case l.BadUrl:break e;case l.RightCurlyBracket:case l.RightParenthesis:case l.RightSquareBracket:if(e.balance>e.index||e.balance<n)break e}if(i++,e.balance<=n)break}while(e=t(i));return i},dimension:_(k(null)),angle:_(k({deg:!0,grad:!0,rad:!0,turn:!0})),decibel:_(k({db:!0})),frequency:_(k({hz:!0,khz:!0})),flex:_(k({fr:!0})),length:_(C(k({px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,q:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0}))),resolution:_(k({dpi:!0,dpcm:!0,dppx:!0,x:!0})),semitones:_(k({st:!0})),time:_(k({s:!0,ms:!0})),percentage:_((function(e,t,n){return null===e||e.type!==l.Percentage||b(n,e.value,e.value.length-1)?0:1})),zero:C(),number:_((function(e,t,n){if(null===e)return 0;var i=c(e.value,0);return i===e.value.length||v(e.value,i)?b(n,e.value,i)?0:1:0})),integer:_((function(e,t,n){if(null===e||e.type!==l.Number)return 0;for(var i=43===e.value.charCodeAt(0)||45===e.value.charCodeAt(0)?1:0;i<e.value.length;i++)if(!a(e.value.charCodeAt(i)))return 0;return b(n,e.value,i)?0:1})),"-ms-legacy-expression":function(e,t){return null!==e&&m(e.value,"expression(")?y(e,t):0}}},CMyj:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Lhse");function r(e){return e&&"function"==typeof e[i.a]}},COpn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.skipLast=function(e){return i.skipLast(e)(this)}},CRDf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("kJWO"),r=function(e){return function(t){var n=e[i.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}},CVW7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.sample=function(e){return i.sample(e)(this)}},Cbry:function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,i=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,i=r(e);if(i){if(!i.path)return e;n=i.path}for(var a,s=t.isAbsolute(n),c=n.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(a=c[u])?c.splice(u,1):".."===a?l++:l>0&&(""===a?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(n=c.join("/"))&&(n=s?"/":"."),i?(i.path=n,o(i)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),o(n);if(n||t.match(i))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var c="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,o(s)):c}t.urlParse=r,t.urlGenerate=o,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var i=h(e.source,t.source);return 0!==i||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)||n||0!=(i=e.generatedColumn-t.generatedColumn)||0!=(i=e.generatedLine-t.generatedLine)?i:h(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var i=e.generatedLine-t.generatedLine;return 0!==i||0!=(i=e.generatedColumn-t.generatedColumn)||n||0!==(i=h(e.source,t.source))||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)?i:h(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=h(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:h(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var i=r(n);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var c=i.path.lastIndexOf("/");c>=0&&(i.path=i.path.substring(0,c+1))}t=s(o(i),t)}return a(t)}},Cfvw:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("HDdC"),r=n("SeVD"),o=n("7HRe");function a(e,t){return t?Object(o.a)(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},CqXF:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(t){Object(o.a)(this,e),this.value=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.value))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).value=i,r}return Object(a.a)(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(s.a)},CsSr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i="<anonymous>";function r(e){try{return e&&"function"==typeof e&&e.name||i}catch(t){return i}}},CuWV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.publishLast=function(){return i.publishLast()(this)}},CwTu:function(e,t,n){var i=n("XDwu"),r=n("vI5D");function o(e,t){var n=e&&e.loc&&e.loc[t];return n?{offset:n.offset,line:n.line,column:n.column}:null}e.exports={SyntaxReferenceError:function(e,t){var n=i("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},MatchError:function(e,t,n,a){var s=i("SyntaxMatchError",e),c=function(e){for(var t=e.tokens,n=e.longestMatch,i=n<t.length?t[n].node:null,r=-1,o=0,a="",s=0;s<t.length;s++)s===n&&(r=a.length),null!==i&&t[s].node===i&&(s<=n?o++:o=0),a+=t[s].value;return{node:i,css:a,mismatchOffset:-1===r?a.length:r,last:null===i||o>1}}(a),l=c.mismatchOffset||0,u=c.node||n,h=o(u,"end"),d=c.last?h:o(u,"start"),f=c.css;return s.rawMessage=e,s.syntax=t?r(t):"<generic>",s.css=f,s.mismatchOffset=l,s.loc={source:u&&u.loc&&u.loc.source||"<unknown>",start:d,end:h},s.line=d?d.line:void 0,s.column=d?d.column:void 0,s.offset=d?d.offset:void 0,s.message=e+"\n syntax: "+s.syntax+"\n value: "+(s.css||"<empty string>")+"\n --------"+new Array(s.mismatchOffset+1).join("-")+"^",s}}},D0XW:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("3N8a"),r=new(n("IjjT").a)(i.a),o=r},DDB3:function(e,t,n){var i=n("vd7W").TYPE,r=i.Ident,o=i.Function,a=i.Colon,s=i.RightParenthesis;e.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,i=null;return this.eat(a),this.eat(a),this.scanner.tokenType===o?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),i=this.pseudo[t].call(this),this.scanner.skipSC()):(i=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(s)):e=this.consume(r),{type:"PseudoElementSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:i}},generate:function(e){this.chunk("::"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"}},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},DJod:function(e,t,n){var i=n("vd7W").TYPE,r=n("4njK").mode,o=i.WhiteSpace,a=i.Comment,s=i.Semicolon,c=i.AtKeyword,l=i.LeftCurlyBracket,u=i.RightCurlyBracket;function h(e){return this.Raw(e,null,!0)}function d(){return this.parseWithFallback(this.Rule,h)}function f(e){return this.Raw(e,r.semicolonIncluded,!0)}function p(){if(this.scanner.tokenType===s)return f.call(this,this.scanner.tokenIndex);var e=this.parseWithFallback(this.Declaration,f);return this.scanner.tokenType===s&&this.scanner.next(),e}e.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(e){var t=e?p:d,n=this.scanner.tokenStart,i=this.createList();this.eat(l);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case u:break e;case o:case a:this.scanner.next();break;case c:i.push(this.parseWithFallback(this.Atrule,h));break;default:i.push(t.call(this))}return this.scanner.eof||this.eat(u),{type:"Block",loc:this.getLocation(n,this.scanner.tokenStart),children:i}},generate:function(e){this.chunk("{"),this.children(e,(function(e){"Declaration"===e.type&&this.chunk(";")})),this.chunk("}")},walkContext:"block"}},DNeS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("4AtU");i.Observable.prototype.expand=r.expand},DWF9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("mfsk");i.Observable.prototype.defaultIfEmpty=r.defaultIfEmpty},DpPw:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("bcPL");i.Observable.prototype.onErrorResumeNext=r.onErrorResumeNext},Du80:function(e,t,n){var i=n("vd7W"),r=new(n("8wsT")),o={decorator:function(e){var t=null,n={len:0,node:null},i=[n],r="";return{children:e.children,node:function(n){var i=t;t=n,e.node.call(this,n),t=i},chunk:function(e){r+=e,n.node!==t?i.push({len:e.length,node:t}):n.len+=e.length},result:function(){return a(r,i)}}}};function a(e,t){var n=[],o=0,a=0,s=t?t[a].node:null;for(i(e,r);!r.eof;){if(t)for(;a<t.length&&o+t[a].len<=r.tokenStart;)o+=t[a++].len,s=t[a].node;n.push({type:r.tokenType,value:r.getTokenValue(),index:r.tokenIndex,balance:r.balance[r.tokenIndex],node:s}),r.next()}return n}e.exports=function(e,t){return"string"==typeof e?a(e,null):t.generate(e,o)}},E2OZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("VmLd");i.Observable.prototype.combineLatest=r.combineLatest},EQ5u:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var i=n("ReuC"),r=n("foSv"),o=n("1OyB"),a=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),l=n("XNiG"),u=n("HDdC"),h=(n("7o/Q"),n("quSY")),d=n("x+ZX"),f=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return Object(a.a)(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new h.a).add(this.source.subscribe(new m(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.a.EMPTY)),e}},{key:"refCount",value:function(){return Object(d.a)()(this)}}]),n}(u.a),p=function(){var e=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),m=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).connectable=i,r}return Object(a.a)(n,[{key:"_error",value:function(e){this._unsubscribe(),Object(i.a)(Object(r.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Object(i.a)(Object(r.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(l.c)},EUoG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("v87U");i.Observable.prototype.single=r.single},EY2u:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("HDdC"),r=new i.a((function(e){return e.complete()}));function o(e){return e?function(e){return new i.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):r}},EaiB:function(e,t,n){var i=n("vd7W").TYPE,r=i.WhiteSpace,o=i.Comment,a=i.Ident,s=i.Function,c=i.Colon,l=i.LeftParenthesis;function u(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function h(){return this.scanner.skipSC(),this.scanner.tokenType===a&&this.lookupNonWSType(1)===c?this.createSingleNodeList(this.Declaration()):d.call(this)}function d(){var e,t=this.createList(),n=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case r:n=this.WhiteSpace();continue;case o:this.scanner.next();continue;case s:e=this.Function(u,this.scope.AtrulePrelude);break;case a:e=this.Identifier();break;case l:e=this.Parentheses(h,this.scope.AtrulePrelude);break;default:break e}null!==n&&(t.push(n),n=null),t.push(e)}return t}e.exports={parse:{prelude:function(){var e=d.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block:function(){return this.Block(!1)}}}},EcEN:function(e,t,n){var i=n("xDdU"),r=n("xk4V"),o=r;o.v1=i,o.v4=r,e.exports=o},EiPP:function(e,t,n){var i=n("O36p"),r=n("1aLD"),o=n("8wsT"),a=n("mK1g"),s=n("fmF7"),c=n("vd7W"),l=n("u5kB"),u=n("jpu9"),h=n("QtvL"),d=n("4HHr"),f=n("bgAe"),p=n("t1UP"),m=n("8XFM");t.create=function(e){return function e(t){var n=l(t),g=d(t),v=u(t),b=h(g),y={List:i,SyntaxError:r,TokenStream:o,Lexer:a,vendorPrefix:p.vendorPrefix,keyword:p.keyword,property:p.property,isCustomProperty:p.isCustomProperty,definitionSyntax:s,lexer:null,createLexer:function(e){return new a(e,y,y.lexer.structure)},tokenize:c,parse:n,walk:g,generate:v,find:g.find,findLast:g.findLast,findAll:g.findAll,clone:f,fromPlainObject:b.fromPlainObject,toPlainObject:b.toPlainObject,createSyntax:function(t){return e(m({},t))},fork:function(n){var i=m({},t);return e("function"==typeof n?n(i,Object.assign):m(i,n))}};return y.lexer=new a({generic:!0,types:t.types,atrules:t.atrules,properties:t.properties,node:t.node},y),y}(m({},e))}},"Elj+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.repeat=function(e){return void 0===e&&(e=-1),i.repeat(e)(this)}},"F97/":function(e,t,n){"use strict";function i(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,"a",(function(){return i}))},F977:function(e,t,n){var i=n("vd7W").isDigit,r=n("vd7W").TYPE,o=r.Number,a=r.Delim;function s(){this.scanner.skipWS();for(var e=this.consume(o),t=0;t<e.length;t++){var n=e.charCodeAt(t);i(n)||46===n||this.error("Unsigned number is expected",this.scanner.tokenStart-e.length+t)}return 0===Number(e)&&this.error("Zero number is not allowed",this.scanner.tokenStart-e.length),e}e.exports={name:"Ratio",structure:{left:String,right:String},parse:function(){var e,t=this.scanner.tokenStart,n=s.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(a),e=s.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:n,right:e}},generate:function(e){this.chunk(e.left),this.chunk("/"),this.chunk(e.right)}}},FDEy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.dematerialize=function(){return i.dematerialize()(this)}},FEnK:function(e,t,n){var i=n("vd7W").TYPE,r=i.Semicolon,o=i.LeftCurlyBracket;e.exports={name:"AtrulePrelude",structure:{children:[[]]},parse:function(e){var t=null;return null!==e&&(e=e.toLowerCase()),this.scanner.skipSC(),t=this.atrule.hasOwnProperty(e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),!0!==this.scanner.eof&&this.scanner.tokenType!==o&&this.scanner.tokenType!==r&&this.error("Semicolon or block is expected"),null===t&&(t=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e)},walkContext:"atrulePrelude"}},FU7m:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");t.Observable=i.Observable,t.Subject=i.Subject;var r=n("w0v+");t.AnonymousSubject=r.AnonymousSubject;var o=n("w0v+");t.config=o.config,n("1JPw"),n("PpQq"),n("sNY3"),n("+v8i"),n("lK5c"),n("XPuz"),n("O5hQ"),n("fnh7"),n("Xj2z"),n("11EI"),n("3Qpg"),n("G4Hi"),n("uGYe"),n("RhlD"),n("mx47"),n("4w9M"),n("8Ip+"),n("BilO"),n("t0XI"),n("HAEL"),n("ojb+"),n("czqU"),n("QXri"),n("cD4w"),n("m1gp"),n("bi34"),n("uO2z"),n("3EiV"),n("vQc4"),n("hf5g"),n("Zw/6"),n("YA+d"),n("1M8x"),n("LxJG"),n("E2OZ"),n("KC9P"),n("Qw2J"),n("37L2"),n("RT2N"),n("9E4K"),n("KGUQ"),n("LOqM"),n("QtPd"),n("DWF9"),n("n2g9"),n("wfyD"),n("FZ9u"),n("+qxJ"),n("TwXD"),n("BdNY"),n("jIeU"),n("70oK"),n("DNeS"),n("q8yx"),n("hswa"),n("Xs6s"),n("7MrP"),n("sjkp"),n("YwoP"),n("C8tm"),n("wWu8"),n("RFdt"),n("dlYL"),n("ksOG"),n("9HtI"),n("+4/i"),n("Kvnp"),n("89kA"),n("8YE1"),n("Qbza"),n("KVj6"),n("cPnI"),n("P+DX"),n("wGW3"),n("sRqT"),n("eyjB"),n("g0lY"),n("7RDD"),n("+oeQ"),n("DpPw"),n("7+k4"),n("Nh3w"),n("jdlx"),n("aMoL"),n("A+qg"),n("PZgn"),n("l3KV"),n("bUWp"),n("ob0Y"),n("C/AH"),n("W/jz"),n("+psR"),n("eYtX"),n("LUEE"),n("G12B"),n("QJJP"),n("G21R"),n("VSOP"),n("2+DN"),n("EUoG"),n("pe+M"),n("LSkT"),n("5hZ8"),n("9qLK"),n("gSmF"),n("rSqW"),n("okVX"),n("4Wg5"),n("W5YF"),n("oKp4"),n("0ZAG"),n("omlZ"),n("I6kD"),n("JpQp"),n("8Yhr"),n("VlMj"),n("fElF"),n("rqY6"),n("00Es"),n("TMm9"),n("XC4j"),n("ND/j"),n("7N5M"),n("2IC2"),n("bHhB"),n("6IDA"),n("cf52"),n("9Sef"),n("ofYe");var a=n("qCKp");t.Subscription=a.Subscription,t.ReplaySubject=a.ReplaySubject,t.BehaviorSubject=a.BehaviorSubject,t.Notification=a.Notification,t.EmptyError=a.EmptyError,t.ArgumentOutOfRangeError=a.ArgumentOutOfRangeError,t.ObjectUnsubscribedError=a.ObjectUnsubscribedError,t.UnsubscriptionError=a.UnsubscriptionError,t.pipe=a.pipe;var s=n("lYZj");t.TestScheduler=s.TestScheduler;var c=n("qCKp");t.Subscriber=c.Subscriber,t.AsyncSubject=c.AsyncSubject,t.ConnectableObservable=c.ConnectableObservable,t.TimeoutError=c.TimeoutError,t.VirtualTimeScheduler=c.VirtualTimeScheduler;var l=n("laIk");t.AjaxResponse=l.AjaxResponse,t.AjaxError=l.AjaxError,t.AjaxTimeoutError=l.AjaxTimeoutError;var u=n("qCKp"),h=n("w0v+"),d=n("w0v+");t.TimeInterval=d.TimeInterval,t.Timestamp=d.Timestamp;var f=n("kU1M");t.operators=f,t.Scheduler={asap:u.asapScheduler,queue:u.queueScheduler,animationFrame:u.animationFrameScheduler,async:u.asyncScheduler},t.Symbol={rxSubscriber:h.rxSubscriber,observable:h.observable,iterator:h.iterator}},FZ9u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("vTln");i.Observable.prototype.distinct=r.distinct},Fm6d:function(e,t){var n=function(){};function i(e){return"function"==typeof e?e:n}e.exports=function(e,t,r){var o=n,a=n;if("function"==typeof t?o=t:t&&(o=i(t.enter),a=i(t.leave)),o===n&&a===n)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(o.call(r,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}a.call(r,t)}(e)}},Fzww:function(e,t,n){window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttachAddon=void 0;var i=function(){function e(e,t){this._disposables=[],this._socket=e,this._socket.binaryType="arraybuffer",this._bidirectional=!t||!1!==t.bidirectional}return e.prototype.activate=function(e){var t=this;this._disposables.push(r(this._socket,"message",(function(t){var n=t.data;e.write("string"==typeof n?n:new Uint8Array(n))}))),this._bidirectional&&(this._disposables.push(e.onData((function(e){return t._sendData(e)}))),this._disposables.push(e.onBinary((function(e){return t._sendBinary(e)})))),this._disposables.push(r(this._socket,"close",(function(){return t.dispose()}))),this._disposables.push(r(this._socket,"error",(function(){return t.dispose()})))},e.prototype.dispose=function(){this._disposables.forEach((function(e){return e.dispose()}))},e.prototype._sendData=function(e){1===this._socket.readyState&&this._socket.send(e)},e.prototype._sendBinary=function(e){if(1===this._socket.readyState){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);this._socket.send(t)}},e}();function r(e,t,n){return e.addEventListener(t,n),{dispose:function(){n&&e.removeEventListener(t,n)}}}t.AttachAddon=i}])},G12B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("P71F");i.Observable.prototype.sampleTime=r.sampleTime},G21R:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("UE8N");i.Observable.prototype.sequenceEqual=r.sequenceEqual},G4Hi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.generate=i.generate},"G9/t":function(e,t,n){var i=n("vd7W").TYPE,r=n("4njK").mode,o=i.AtKeyword,a=i.Semicolon,s=i.LeftCurlyBracket,c=i.RightCurlyBracket;function l(e){return this.Raw(e,r.leftCurlyBracketOrSemicolon,!0)}function u(){for(var e,t=1;e=this.scanner.lookupType(t);t++){if(e===c)return!0;if(e===s||e===o)return!1}return!1}e.exports={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var e,t,n=this.scanner.tokenStart,i=null,r=null;switch(this.eat(o),t=(e=this.scanner.substrToCursor(n+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==s&&this.scanner.tokenType!==a&&(this.parseAtrulePrelude?"AtrulePrelude"===(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),l)).type&&null===i.children.head&&(i=null):i=l.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case a:this.scanner.next();break;case s:r=this.atrule.hasOwnProperty(t)&&"function"==typeof this.atrule[t].block?this.atrule[t].block.call(this):this.Block(u.call(this))}return{type:"Atrule",loc:this.getLocation(n,this.scanner.tokenStart),name:e,prelude:i,block:r}},generate:function(e){this.chunk("@"),this.chunk(e.name),null!==e.prelude&&(this.chunk(" "),this.node(e.prelude)),e.block?this.node(e.block):this.chunk(";")},walkContext:"atrule"}},GJmQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new l(e,t))}}var l=function(){function e(t,n){Object(o.a)(this,e),this.predicate=t,this.inclusive=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.predicate,this.inclusive))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return Object(a.a)(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(s.a)},Gqt4:function(e,t,n){"use strict";function i(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function r(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function o(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function a(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function c(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"undefined"!=typeof Event&&m(e,Event)}function h(e){return"undefined"!=typeof Element&&m(e,Element)}function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function f(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function p(e){return l(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(n){return!1}}n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"k",(function(){return s})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"l",(function(){return p})),n.d(t,"g",(function(){return m}))},GsYY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.distinctUntilChanged=function(e,t){return i.distinctUntilChanged(e,t)(this)}},GyhO:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("LRne"),r=n("0EUg");function o(){return Object(r.a)()(i.a.apply(void 0,arguments))}},"H+DX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.observeOn=function(e,t){return void 0===t&&(t=0),i.observeOn(e,t)(this)}},HAEL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.pairs=i.pairs},HDdC:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("1OyB"),r=n("vuIU"),o=n("8Qeq"),a=n("WyKG"),s=n("kJWO"),c=n("mCNh"),l=n("2fFW"),u=function(){var e=function(){function e(t){Object(i.a)(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return Object(r.a)(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=Object(a.a)(e,t,n);if(r.add(i?i.call(r,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),l.a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(o.a)(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))((function(t,i){var r;r=n.subscribe((function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}}),i,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:Object(c.b)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=h(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))}}]),e}();return e.create=function(t){return new e(t)},e}();function h(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HHXC:function(e,t){e.exports={name:"Operator",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}}},HOgr:function(e,t,n){var i=n("vd7W").TYPE.CDO;e.exports={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}}},HrJb:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e){return function(t){return t.lift(new l(e,t))}}var l=function(){function e(t,n){Object(o.a)(this,e),this.predicate=t,this.source=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.predicate,this.source))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).predicate=i,a.source=r,a.count=0,a.index=0,a}return Object(a.a)(n,[{key:"_next",value:function(e){this.predicate?this._tryPredicate(e):this.count++}},{key:"_tryPredicate",value:function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),n}(s.a)},HvLG:function(e,t,n){var i=n("vd7W").TYPE,r=i.Delim,o=i.Ident,a=i.Dimension,s=i.Percentage,c=i.Number,l=i.Hash,u=i.Colon,h=i.LeftSquareBracket;e.exports={getNode:function(e){switch(this.scanner.tokenType){case h:return this.AttributeSelector();case l:return this.IdSelector();case u:return this.scanner.lookupType(1)===u?this.PseudoElementSelector():this.PseudoClassSelector();case o:return this.TypeSelector();case c:case s:return this.Percentage();case a:46===this.scanner.source.charCodeAt(this.scanner.tokenStart)&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case r:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 43:case 62:case 126:return e.space=null,e.ignoreWSAfter=!0,this.Combinator();case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}}},I2ZF:function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},I6kD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("QTCG");i.Observable.prototype.takeWhile=r.takeWhile},IMZ1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.publishBehavior=function(e){return i.publishBehavior(e)(this)}},IUuq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.combineAll=function(e){return i.combineAll(e)(this)}},IjjT:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),l=n("LK+K"),u=n("Y/cZ"),h=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a.now;return Object(i.a)(this,n),(r=t.call(this,e,(function(){return n.delegate&&n.delegate!==Object(o.a)(r)?n.delegate.now():a()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):Object(a.a)(Object(s.a)(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(u.a)},Iyun:function(e,t,n){var i=n("vd7W").cmpChar,r=n("vd7W").isDigit,o=n("vd7W").TYPE,a=o.WhiteSpace,s=o.Comment,c=o.Ident,l=o.Number,u=o.Dimension,h=43,d=45,f=110,p=!0;function m(e,t){var n=this.scanner.tokenStart+e,i=this.scanner.source.charCodeAt(n);for(i!==h&&i!==d||(t&&this.error("Number sign is not allowed"),n++);n<this.scanner.tokenEnd;n++)r(this.scanner.source.charCodeAt(n))||this.error("Integer is expected",n)}function g(e){return m.call(this,0,e)}function v(e,t){if(!i(this.scanner.source,this.scanner.tokenStart+e,t)){var n="";switch(t){case f:n="N is expected";break;case d:n="HyphenMinus is expected"}this.error(n,this.scanner.tokenStart+e)}}function b(){for(var e=0,t=0,n=this.scanner.tokenType;n===a||n===s;)n=this.scanner.lookupType(++e);if(n!==l){if(!this.scanner.isDelim(h,e)&&!this.scanner.isDelim(d,e))return null;t=this.scanner.isDelim(h,e)?h:d;do{n=this.scanner.lookupType(++e)}while(n===a||n===s);n!==l&&(this.scanner.skip(e),g.call(this,p))}return e>0&&this.scanner.skip(e),0===t&&(n=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==h&&n!==d&&this.error("Number sign is expected"),g.call(this,0!==t),t===d?"-"+this.consume(l):this.consume(l)}e.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var e=this.scanner.tokenStart,t=null,n=null;if(this.scanner.tokenType===l)g.call(this,!1),n=this.consume(l);else if(this.scanner.tokenType===c&&i(this.scanner.source,this.scanner.tokenStart,d))switch(t="-1",v.call(this,1,f),this.scanner.getTokenLength()){case 2:this.scanner.next(),n=b.call(this);break;case 3:v.call(this,2,d),this.scanner.next(),this.scanner.skipSC(),g.call(this,p),n="-"+this.consume(l);break;default:v.call(this,2,d),m.call(this,3,p),this.scanner.next(),n=this.scanner.substrToCursor(e+2)}else if(this.scanner.tokenType===c||this.scanner.isDelim(h)&&this.scanner.lookupType(1)===c){var o=0;switch(t="1",this.scanner.isDelim(h)&&(o=1,this.scanner.next()),v.call(this,0,f),this.scanner.getTokenLength()){case 1:this.scanner.next(),n=b.call(this);break;case 2:v.call(this,1,d),this.scanner.next(),this.scanner.skipSC(),g.call(this,p),n="-"+this.consume(l);break;default:v.call(this,1,d),m.call(this,2,p),this.scanner.next(),n=this.scanner.substrToCursor(e+o+1)}}else if(this.scanner.tokenType===u){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),s=this.scanner.tokenStart+(o=a===h||a===d);s<this.scanner.tokenEnd&&r(this.scanner.source.charCodeAt(s));s++);s===this.scanner.tokenStart+o&&this.error("Integer is expected",this.scanner.tokenStart+o),v.call(this,s-this.scanner.tokenStart,f),t=this.scanner.source.substring(e,s),s+1===this.scanner.tokenEnd?(this.scanner.next(),n=b.call(this)):(v.call(this,s-this.scanner.tokenStart+1,d),s+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),g.call(this,p),n="-"+this.consume(l)):(m.call(this,s-this.scanner.tokenStart+2,p),this.scanner.next(),n=this.scanner.substrToCursor(s+1)))}else this.error();return null!==t&&t.charCodeAt(0)===h&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===h&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.scanner.tokenStart),a:t,b:n}},generate:function(e){var t=null!=e.b;null!=e.a?(this.chunk("+1"===e.a?"+n":"1"===e.a?"n":"-1"===e.a?"-n":e.a+"n"),t&&("-"===(t=String(e.b)).charAt(0)||"+"===t.charAt(0)?(this.chunk(t.charAt(0)),this.chunk(t.substr(1))):(this.chunk("+"),this.chunk(t)))):this.chunk(String(e.b))}}},IzEk:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q"),c=n("4I5i"),l=n("EY2u");function u(e){return function(t){return 0===e?Object(l.b)():t.lift(new h(e))}}var h=function(){function e(t){if(Object(o.a)(this,e),this.total=t,this.total<0)throw new c.a}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.total))}}]),e}(),d=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Object(a.a)(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(s.a)},JIr8:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("ReuC"),r=n("foSv"),o=n("Ji7U"),a=n("LK+K"),s=n("1OyB"),c=n("vuIU"),l=n("zx2A");function u(e){return function(t){var n=new h(e),i=t.lift(n);return n.caught=i}}var h=function(){function e(t){Object(s.a)(this,e),this.selector=t}return Object(c.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.selector,this.caught))}}]),e}(),d=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){var o;return Object(s.a)(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return Object(c.a)(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void Object(i.a)(Object(r.a)(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new l.a(this);this.add(o);var a=Object(l.c)(t,o);a!==o&&this.add(a)}}}]),n}(l.b)},JM0U:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.auditTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.auditTime(e,t)(this)}},JX7q:function(e,t,n){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return i}))},JX91:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("GyhO"),r=n("z+Ro");function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[t.length-1];return Object(r.a)(o)?(t.pop(),function(e){return Object(i.a)(t,e,o)}):function(e){return Object(i.a)(t,e)}}},Jcck:function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},Ji7U:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("s4An");function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(i.a)(e,t)}},JpQp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("LSSe");i.Observable.prototype.throttle=r.throttle},KC9P:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("ovWV");i.Observable.prototype.concat=r.concat},KGUQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("FDEy");i.Observable.prototype.dematerialize=r.dematerialize},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("a3WO"),r=n("25BE"),o=n("BsWD");function a(e){return function(e){if(Array.isArray(e))return Object(i.a)(e)}(e)||Object(r.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},KVj6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("7065");i.Observable.prototype.max=r.max},KW4y:function(e,t,n){var i=n("4vYp");e.exports={generic:!0,types:i.types,atrules:i.atrules,properties:i.properties,node:n("585i")}},KavO:function(e,t,n){var i=n("Cbry"),r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Map;function a(){this._array=[],this._set=o?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,i=0,r=e.length;i<r;i++)n.add(e[i],t);return n},a.prototype.size=function(){return o?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=o?e:i.toSetString(e),a=o?this.has(e):r.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(o?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(o)return this._set.has(e);var t=i.toSetString(e);return r.call(this._set,t)},a.prototype.indexOf=function(e){if(o){var t=this._set.get(e);if(t>=0)return t}else{var n=i.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},t.ArraySet=a},KcB0:function(e,t,n){var i=n("tZmI"),r={type:"Match"},o={type:"Mismatch"},a={type:"DisallowEmpty"};function s(e,t,n){return t===r&&n===o||e===r&&t===r&&n===r?e:("If"===e.type&&e.else===o&&t===r&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function c(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function l(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&c(e.name)}function u(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=function e(t,n,i){switch(t){case" ":for(var a=r,u=n.length-1;u>=0;u--)a=s(f=n[u],a,o);return a;case"|":a=o;var h=null;for(u=n.length-1;u>=0;u--){if(l(f=n[u])&&(null===h&&u>0&&l(n[u-1])&&(a=s({type:"Enum",map:h=Object.create(null)},r,a)),null!==h)){var d=(c(f.name)?f.name.slice(0,-1):f.name).toLowerCase();if(d in h==0){h[d]=f;continue}}h=null,a=s(f,r,a)}return a;case"&&":if(n.length>5)return{type:"MatchOnce",terms:n,all:!0};for(a=o,u=n.length-1;u>=0;u--){var f=n[u];p=n.length>1?e(t,n.filter((function(e){return e!==f})),!1):r,a=s(f,p,a)}return a;case"||":if(n.length>5)return{type:"MatchOnce",terms:n,all:!1};for(a=i?r:o,u=n.length-1;u>=0;u--){var p;f=n[u],p=n.length>1?e(t,n.filter((function(e){return e!==f})),!0):r,a=s(f,p,a)}return a}}(e.combinator,e.terms.map(u),!1);return e.disallowEmpty&&(t=s(t,a,o)),t;case"Multiplier":return function(e){var t=r,n=u(e.term);if(0===e.max)n=s(n,a,o),(t=s(n,null,o)).then=s(r,r,t),e.comma&&(t.then.else=s({type:"Comma",syntax:e},t,o));else for(var i=e.min||1;i<=e.max;i++)e.comma&&t!==r&&(t=s({type:"Comma",syntax:e},t,o)),t=s(n,s(r,r,t),o);if(0===e.min)t=s(r,r,t);else for(i=0;i<e.min-1;i++)e.comma&&t!==r&&(t=s({type:"Comma",syntax:e},t,o)),t=s(n,t,o);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}e.exports={MATCH:r,MISMATCH:o,DISALLOW_EMPTY:a,buildMatchGraph:function(e,t){return"string"==typeof e&&(e=i(e)),{type:"MatchGraph",match:u(e),syntax:t||null,source:e}}}},Kj3r:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q"),c=n("D0XW");function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return function(n){return n.lift(new u(e,t))}}var u=function(){function e(t,n){Object(o.a)(this,e),this.dueTime=t,this.scheduler=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.dueTime,this.scheduler))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return Object(a.a)(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(d,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(s.a);function d(e){e.debouncedNext()}},KjDf:function(e,t,n){var i=n("Sean"),r=n("vd7W").isBOM,o=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};o.prototype={setSource:function(e,t,n,i){this.source=e,this.startOffset=void 0===t?0:t,this.startLine=void 0===n?1:n,this.startColumn=void 0===i?1:i,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(function(e,t){for(var n=t.length,o=i(e.lines,n),a=e.startLine,s=i(e.columns,n),c=e.startColumn,l=t.length>0?r(t.charCodeAt(0)):0;l<n;l++){var u=t.charCodeAt(l);o[l]=a,s[l]=c++,10!==u&&13!==u&&12!==u||(13===u&&l+1<n&&10===t.charCodeAt(l+1)&&(o[++l]=a,s[l]=c),a++,c=1)}o[l]=a,s[l]=c,e.lines=o,e.columns=s}(this,this.source),this.linesAndColumnsComputed=!0)},getLocation:function(e,t){return this.ensureLinesAndColumnsComputed(),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}},getLocationRange:function(e,t,n){return this.ensureLinesAndColumnsComputed(),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},e.exports=o},Kqap:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new l(e,t,n))}}var l=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(o.a)(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r,a){var s;return Object(o.a)(this,n),(s=t.call(this,e)).accumulator=i,s._seed=r,s.hasSeed=a,s.index=0,s}return Object(a.a)(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(s.a)},KqfI:function(e,t,n){"use strict";function i(){}n.d(t,"a",(function(){return i}))},Kvnp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("cLIC");i.Observable.prototype.every=r.every},KxFi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),i.mergeAll(e)(this)}},"LK+K":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("foSv"),r=n("2WcH"),o=n("md7G");function a(e){var t=Object(r.a)();return function(){var n,r=Object(i.a)(e);if(t){var a=Object(i.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}},LM6Q:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.startWith.apply(void 0,e)(this)}},LOqM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("uARb");i.Observable.prototype.debounce=r.debounce},"LOr+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.debounceTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.debounceTime(e,t)(this)}},LRne:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("z+Ro"),r=n("yCtX"),o=n("jZKg");function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[t.length-1];return Object(i.a)(a)?(t.pop(),Object(o.a)(t,a)):Object(r.a)(t)}},LSSe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M"),r=n("w0v+");t.throttle=function(e,t){return void 0===t&&(t=r.defaultThrottleConfig),i.throttle(e,t)(this)}},LSkT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("COpn");i.Observable.prototype.skipLast=r.skipLast},LUEE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("CVW7");i.Observable.prototype.sample=r.sample},LfHy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.publishReplay=function(e,t,n,r){return i.publishReplay(e,t,n,r)(this)}},Lhse:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return r}));var r=i()},Lsvf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.ignoreElements=function(){return i.ignoreElements()(this)}},"Lw+5":function(e,t,n){var i=n("vd7W").TYPE.Comma;e.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var e=this.createList();!this.scanner.eof&&(e.push(this.Selector()),this.scanner.tokenType===i);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,(function(){this.chunk(",")}))},walkContext:"selector"}},LxJG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("IUuq");i.Observable.prototype.combineAll=r.combineAll},M6P7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t._finally=function(e){return i.finalize(e)(this)}},M6kn:function(e,t,n){},MBAA:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("HDdC"),r=n("quSY"),o=n("Lhse");function a(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a((function(n){var i,a=new r.a;return a.add((function(){i&&"function"==typeof i.return&&i.return()})),a.add(t.schedule((function(){i=e[o.a](),a.add(t.schedule((function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),a}))}},Mw3v:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.pluck.apply(void 0,e)(this)}},Myac:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.race.apply(void 0,e)(this)}},"ND/j":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Xh4i");i.Observable.prototype.window=r.window},NEMR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.retryWhen=function(e){return i.retryWhen(e)(this)}},"NHP+":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=n("XNiG"),u=n("quSY"),h=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return Object(r.a)(n,[{key:"_subscribe",value:function(e){return this.hasError?(e.error(this.thrownError),u.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),u.a.EMPTY):Object(o.a)(Object(a.a)(n.prototype),"_subscribe",this).call(this,e)}},{key:"next",value:function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}},{key:"error",value:function(e){this.hasCompleted||Object(o.a)(Object(a.a)(n.prototype),"error",this).call(this,e)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&Object(o.a)(Object(a.a)(n.prototype),"next",this).call(this,this.value),Object(o.a)(Object(a.a)(n.prototype),"complete",this).call(this)}}]),n}(l.b)},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return i}))},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("sVev"),r=n("pLZG"),o=n("BFxc"),a=n("XDbj"),s=n("xbPD"),c=n("SpAZ");function l(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?Object(r.a)((function(t,n){return e(t,n,l)})):c.a,Object(o.a)(1),n?Object(s.a)(t):Object(a.a)((function(){return new i.a})))}}},NNCq:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("HDdC");function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return new i.a((function(i){void 0===t&&(t=e,e=0);var r=0,a=e;if(n)return n.schedule(o,0,{index:r,count:t,start:e,subscriber:i});for(;;){if(r++>=t){i.complete();break}if(i.next(a++),i.closed)break}}))}function o(e){var t=e.start,n=e.index,i=e.subscriber;n>=e.count?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}},NXyV:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("HDdC"),r=n("Cfvw"),o=n("EY2u");function a(e){return new i.a((function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(r.a)(n):Object(o.b)()).subscribe(t)}))}},Nh3w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Y7AG");i.Observable.prototype.partition=r.partition},Nv8m:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("DH7j"),c=n("yCtX"),l=n("l7GE"),u=n("ZUHj");function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){if(!Object(s.a)(t[0]))return t[0];t=t[0]}return Object(c.a)(t,void 0).lift(new d)}var d=function(){function e(){Object(o.a)(this,e)}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e))}}]),e}(),f=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).hasFirst=!1,i.observables=[],i.subscriptions=[],i}return Object(a.a)(n,[{key:"_next",value:function(e){this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=Object(u.a)(this,i,void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}},{key:"notifyNext",value:function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==n){var r=this.subscriptions[i];r.unsubscribe(),this.remove(r)}this.subscriptions=null}this.destination.next(t)}}]),n}(l.a)},O36p:function(e,t){function n(e){return{prev:null,next:null,data:e}}function i(e,t,n){var i;return null!==o?(i=o,o=o.cursor,i.prev=t,i.next=n,i.cursor=e.cursor):i={prev:t,next:n,cursor:e.cursor},e.cursor=i,i}function r(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=o,o=t}var o=null,a=function(){this.cursor=null,this.head=null,this.tail=null};a.createItem=n,a.prototype.createItem=n,a.prototype.updateCursors=function(e,t,n,i){for(var r=this.cursor;null!==r;)r.prev===e&&(r.prev=t),r.next===n&&(r.next=i),r=r.cursor},a.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e},a.prototype.fromArray=function(e){var t=null;this.head=null;for(var i=0;i<e.length;i++){var r=n(e[i]);null!==t?t.next=r:this.head=r,r.prev=t,t=r}return this.tail=t,this},a.prototype.toJSON=a.prototype.toArray=function(){for(var e=this.head,t=[];e;)t.push(e.data),e=e.next;return t},a.prototype.isEmpty=function(){return null===this.head},a.prototype.first=function(){return this.head&&this.head.data},a.prototype.last=function(){return this.tail&&this.tail.data},a.prototype.forEach=a.prototype.each=function(e,t){var n;void 0===t&&(t=this);for(var o=i(this,null,this.head);null!==o.next;)o.next=(n=o.next).next,e.call(t,n.data,n,this);r(this)},a.prototype.forEachRight=a.prototype.eachRight=function(e,t){var n;void 0===t&&(t=this);for(var o=i(this,this.tail,null);null!==o.prev;)o.prev=(n=o.prev).prev,e.call(t,n.data,n,this);r(this)},a.prototype.nextUntil=function(e,t,n){if(null!==e){var o;void 0===n&&(n=this);for(var a=i(this,null,e);null!==a.next&&(a.next=(o=a.next).next,!t.call(n,o.data,o,this)););r(this)}},a.prototype.prevUntil=function(e,t,n){if(null!==e){var o;void 0===n&&(n=this);for(var a=i(this,e,null);null!==a.prev&&(a.prev=(o=a.prev).prev,!t.call(n,o.data,o,this)););r(this)}},a.prototype.some=function(e,t){var n=this.head;for(void 0===t&&(t=this);null!==n;){if(e.call(t,n.data,n,this))return!0;n=n.next}return!1},a.prototype.map=function(e,t){var n=new a,i=this.head;for(void 0===t&&(t=this);null!==i;)n.appendData(e.call(t,i.data,i,this)),i=i.next;return n},a.prototype.filter=function(e,t){var n=new a,i=this.head;for(void 0===t&&(t=this);null!==i;)e.call(t,i.data,i,this)&&n.appendData(i.data),i=i.next;return n},a.prototype.clear=function(){this.head=null,this.tail=null},a.prototype.copy=function(){for(var e=new a,t=this.head;null!==t;)e.insert(n(t.data)),t=t.next;return e},a.prototype.prepend=function(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this},a.prototype.prependData=function(e){return this.prepend(n(e))},a.prototype.append=function(e){return this.insert(e)},a.prototype.appendData=function(e){return this.insert(n(e))},a.prototype.insert=function(e,t){if(null!=t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this},a.prototype.insertData=function(e,t){return this.insert(n(e),t)},a.prototype.remove=function(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e},a.prototype.push=function(e){this.insert(n(e))},a.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},a.prototype.unshift=function(e){this.prepend(n(e))},a.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},a.prototype.prependList=function(e){return this.insertList(e,this.head)},a.prototype.appendList=function(e){return this.insertList(e)},a.prototype.insertList=function(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this},a.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)},e.exports=a},O4y0:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("1OyB"),r=n("vuIU"),o=n("Ji7U"),a=n("LK+K"),s=n("HDdC"),c=n("7Hc7"),l=n("Y7HM"),u=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a;return Object(i.a)(this,n),(r=t.call(this)).source=e,r.delayTime=o,r.scheduler=a,(!Object(l.a)(o)||o<0)&&(r.delayTime=0),a&&"function"==typeof a.schedule||(r.scheduler=c.a),r}return Object(r.a)(n,[{key:"_subscribe",value:function(e){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:e})}}],[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a;return new n(e,t,i)}},{key:"dispatch",value:function(e){return this.add(e.source.subscribe(e.subscriber))}}]),n}(s.a)},O5hQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.forkJoin=i.forkJoin},OQgR:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return v}));var i=n("ReuC"),r=n("foSv"),o=n("Ji7U"),a=n("LK+K"),s=n("1OyB"),c=n("vuIU"),l=n("7o/Q"),u=n("quSY"),h=n("HDdC"),d=n("XNiG");function f(e,t,n,i){return function(r){return r.lift(new p(e,t,n,i))}}var p=function(){function e(t,n,i,r){Object(s.a)(this,e),this.keySelector=t,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r}return Object(c.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new m(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),e}(),m=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r,o,a){var c;return Object(s.a)(this,n),(c=t.call(this,e)).keySelector=i,c.elementSelector=r,c.durationSelector=o,c.subjectSelector=a,c.groups=null,c.attemptedToUnsubscribe=!1,c.count=0,c}return Object(c.a)(n,[{key:"_next",value:function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}},{key:"_group",value:function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(s){this.error(s)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new d.b,n.set(t,r);var o=new v(t,r,this);if(this.destination.next(o),this.durationSelector){var a;try{a=this.durationSelector(new v(t,r))}catch(s){return void this.error(s)}this.add(a.subscribe(new g(t,r,this)))}}r.closed||r.next(i)}},{key:"_error",value:function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)}},{key:"_complete",value:function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()}},{key:"removeGroup",value:function(e){this.groups.delete(e)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&Object(i.a)(Object(r.a)(n.prototype),"unsubscribe",this).call(this))}}]),n}(l.a),g=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){var o;return Object(s.a)(this,n),(o=t.call(this,i)).key=e,o.group=i,o.parent=r,o}return Object(c.a)(n,[{key:"_next",value:function(e){this.complete()}},{key:"_unsubscribe",value:function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)}}]),n}(l.a),v=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,r){var o;return Object(s.a)(this,n),(o=t.call(this)).key=e,o.groupSubject=i,o.refCountSubscription=r,o}return Object(c.a)(n,[{key:"_subscribe",value:function(e){var t=new u.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new b(n)),t.add(i.subscribe(e)),t}}]),n}(h.a),b=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var i;return Object(s.a)(this,n),(i=t.call(this)).parent=e,e.count++,i}return Object(c.a)(n,[{key:"unsubscribe",value:function(){var e=this.parent;e.closed||this.closed||(Object(i.a)(Object(r.a)(n.prototype),"unsubscribe",this).call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}]),n}(u.a)},Of7M:function(e,t,n){"use strict";function i(e,t){for(var n=0,i=t.length;n<i;n++)for(var r=t[n],o=Object.getOwnPropertyNames(r.prototype),a=0,s=o.length;a<s;a++){var c=o[a];e.prototype[c]=r.prototype[c]}}n.d(t,"a",(function(){return i}))},OohF:function(e,t,n){var i=n("vd7W").TYPE,r=i.WhiteSpace,o=i.Comment;e.exports=function(e){var t=this.createList(),n=null,i={recognizer:e,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case o:this.scanner.next();continue;case r:i.ignoreWS?this.scanner.next():i.space=this.WhiteSpace();continue}if(void 0===(n=e.getNode.call(this,i)))break;null!==i.space&&(t.push(i.space),i.space=null),t.push(n),i.ignoreWSAfter?(i.ignoreWSAfter=!1,i.ignoreWS=!0):i.ignoreWS=!1}return t}},OyBZ:function(e,t,n){var i=n("vd7W").TYPE.Ident;e.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk(e.name)}}},"P+DX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("KxFi");i.Observable.prototype.mergeAll=r.mergeAll},P2RB:function(e,t){e.exports=function(){this.scanner.skipSC();var e=this.createSingleNodeList(this.IdSelector());return this.scanner.skipSC(),e}},P3uw:function(e,t,n){var i=n("3XNy"),r=i.isDigit,o=i.isHexDigit,a=i.isUppercaseLetter,s=i.isName,c=i.isWhiteSpace,l=i.isValidEscape;function u(e,t){return t<e.length?e.charCodeAt(t):0}function h(e,t,n){return 13===n&&10===u(e,t+1)?2:1}function d(e,t,n){var i=e.charCodeAt(t);return a(i)&&(i|=32),i===n}function f(e,t){for(;t<e.length&&r(e.charCodeAt(t));t++);return t}function p(e,t){if(o(u(e,(t+=2)-1))){for(var n=Math.min(e.length,t+5);t<n&&o(u(e,t));t++);var i=u(e,t);c(i)&&(t+=h(e,t,i))}return t}e.exports={consumeEscaped:p,consumeName:function(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(!s(n)){if(!l(n,u(e,t+1)))break;t=p(e,t)-1}}return t},consumeNumber:function(e,t){var n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),r(n)&&(t=f(e,t+1),n=e.charCodeAt(t)),46===n&&r(e.charCodeAt(t+1))&&(n=e.charCodeAt(t+=2),t=f(e,t)),d(e,t,101)){var i=0;45!==(n=e.charCodeAt(t+1))&&43!==n||(i=1,n=e.charCodeAt(t+2)),r(n)&&(t=f(e,t+1+i+1))}return t},consumeBadUrlRemnants:function(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(41===n){t++;break}l(n,u(e,t+1))&&(t=p(e,t))}return t},cmpChar:d,cmpStr:function(e,t,n,i){if(n-t!==i.length)return!1;if(t<0||n>e.length)return!1;for(var r=t;r<n;r++){var o=e.charCodeAt(r),s=i.charCodeAt(r-t);if(a(o)&&(o|=32),o!==s)return!1}return!0},getNewlineLength:h,findWhiteSpaceStart:function(e,t){for(;t>=0&&c(e.charCodeAt(t));t--);return t+1},findWhiteSpaceEnd:function(e,t){for(;t<e.length&&c(e.charCodeAt(t));t++);return t}}},P71F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.sampleTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.sampleTime(e,t)(this)}},PZgn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("LfHy");i.Observable.prototype.publishReplay=r.publishReplay},Pd0I:function(e,t,n){var i=n("vd7W").TYPE.Comma;e.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(e){var t=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(t.push(this.MediaQuery(e)),this.scanner.tokenType===i);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e,(function(){this.chunk(",")}))}}},PpQq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.bindNodeCallback=i.bindNodeCallback},PqYM:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("HDdC"),r=n("D0XW"),o=n("Y7HM"),a=n("z+Ro");function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=-1;return Object(o.a)(t)?s=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=r.a),new i.a((function(t){var i=Object(o.a)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:s,subscriber:t})}))}function c(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},PzWj:function(e,t,n){var i=n("vd7W").TYPE,r=i.Ident,o=i.Function,a=i.Colon,s=i.RightParenthesis;e.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,i=null;return this.eat(a),this.scanner.tokenType===o?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),i=this.pseudo[t].call(this),this.scanner.skipSC()):(i=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(s)):e=this.consume(r),{type:"PseudoClassSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:i}},generate:function(e){this.chunk(":"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"}},QBsF:function(e,t,n){var i=n("vd7W").TYPE,r=i.Ident,o=i.Number,a=i.Dimension,s=i.LeftParenthesis,c=i.RightParenthesis,l=i.Colon,u=i.Delim;e.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var e,t=this.scanner.tokenStart,n=null;if(this.eat(s),this.scanner.skipSC(),e=this.consume(r),this.scanner.skipSC(),this.scanner.tokenType!==c){switch(this.eat(l),this.scanner.skipSC(),this.scanner.tokenType){case o:n=this.lookupNonWSType(1)===u?this.Ratio():this.Number();break;case a:n=this.Dimension();break;case r:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(c),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:n}},generate:function(e){this.chunk("("),this.chunk(e.name),null!==e.value&&(this.chunk(":"),this.node(e.value)),this.chunk(")")}}},QIAL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("kJWO");function r(e){return e&&"function"==typeof e[i.a]}},QJJP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("elu/");i.Observable.prototype.scan=r.scan},QKsE:function(e,t,n){var i=Object.prototype.hasOwnProperty,r=n("KcB0"),o=r.MATCH,a=r.MISMATCH,s=r.DISALLOW_EMPTY,c=n("twQA").TYPE,l="Match",u=0;function h(e){for(var t=null,n=null,i=e;null!==i;)n=i.prev,i.prev=t,t=i,i=n;return t}function d(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==t.charCodeAt(n))return!1}return!0}function f(e){return null===e||e.type===c.Comma||e.type===c.Function||e.type===c.LeftParenthesis||e.type===c.LeftSquareBracket||e.type===c.LeftCurlyBracket||e.type===c.Delim}function p(e){return null===e||e.type===c.RightParenthesis||e.type===c.RightSquareBracket||e.type===c.RightCurlyBracket||e.type===c.Delim}function m(e,t,n){function r(){do{M++,O=M<e.length?e[M]:null}while(null!==O&&(O.type===c.WhiteSpace||O.type===c.Comment))}function h(t){var n=M+t;return n<e.length?e[n]:null}function m(e,t){return{nextState:e,matchStack:E,syntaxStack:_,thenStack:w,tokenIndex:M,prev:t}}function g(e){w={nextState:e,matchStack:E,syntaxStack:_,prev:w}}function v(e){k=m(e,k)}function b(){E={type:1,syntax:t.syntax,token:O,prev:E},r(),C=null,M>T&&(T=M)}function y(){E=2===E.type?E.prev:{type:3,syntax:_.syntax,token:E.token,prev:E},_=_.prev}var _=null,w=null,k=null,C=null,S=0,x=null,O=null,M=-1,T=0,E={type:0,syntax:null,token:null,prev:null};for(r();null===x&&++S<15e3;)switch(t.type){case"Match":if(null===w){if(null!==O&&(M!==e.length-1||"\\0"!==O.value&&"\\9"!==O.value)){t=a;break}x=l;break}if((t=w.nextState)===s){if(w.matchStack===E){t=a;break}t=o}for(;w.syntaxStack!==_;)y();w=w.prev;break;case"Mismatch":if(null!==C&&!1!==C)(null===k||M>k.tokenIndex)&&(k=C,C=!1);else if(null===k){x="Mismatch";break}t=k.nextState,w=k.thenStack,_=k.syntaxStack,E=k.matchStack,O=(M=k.tokenIndex)<e.length?e[M]:null,k=k.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==a&&v(t.else),t.then!==o&&g(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":var P=t.syntax.terms;if(t.index===P.length){if(0===t.mask||t.syntax.all){t=a;break}t=o;break}if(t.mask===(1<<P.length)-1){t=o;break}for(;t.index<P.length;t.index++){var j=1<<t.index;if(0==(t.mask&j)){v(t),g({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|j}),t=P[t.index++];break}}break;case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==O&&(-1!==(R=O.value.toLowerCase()).indexOf("\\")&&(R=R.replace(/\\[09].*$/,"")),i.call(t.map,R))){t=t.map[R];break}t=a;break;case"Generic":var A=M+Math.floor(t.fn(O,h,null!==_?_.opts:null));if(!isNaN(A)&&A>M){for(;M<A;)b();t=o}else t=a;break;case"Type":case"Property":var I="Type"===t.type?"types":"properties",D=i.call(n,I)?n[I][t.name]:null;if(!D||!D.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==C&&null!==O&&"Type"===t.type&&("custom-ident"===t.name&&O.type===c.Ident||"length"===t.name&&"0"===O.value)){null===C&&(C=m(t,k)),t=a;break}_={syntax:t.syntax,opts:t.syntax.opts||null!==_&&_.opts||null,prev:_},E={type:2,syntax:t.syntax,token:E.token,prev:E},t=D.match;break;case"Keyword":var R=t.name;if(null!==O){var L=O.value;if(-1!==L.indexOf("\\")&&(L=L.replace(/\\[09].*$/,"")),d(L,R)){b(),t=o;break}}t=a;break;case"AtKeyword":case"Function":if(null!==O&&d(O.value,t.name)){b(),t=o;break}t=a;break;case"Token":if(null!==O&&O.value===t.value){b(),t=o;break}t=a;break;case"Comma":null!==O&&O.type===c.Comma?f(E.token)?t=a:(b(),t=p(O)?a:o):t=f(E.token)||p(O)?o:a;break;case"String":var F="";for(A=M;A<e.length&&F.length<t.value.length;A++)F+=e[A].value;if(d(F,t.value)){for(;M<A;)b();t=o}else t=a;break;default:throw new Error("Unknown node type: "+t.type)}switch(u+=S,x){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),x="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",E=null;break;case l:for(;null!==_;)y();break;default:E=null}return{tokens:e,reason:x,iterations:S,match:E,longestMatch:T}}e.exports={matchAsList:function(e,t,n){var i=m(e,t,n||{});if(null!==i.match){var r=h(i.match).prev;for(i.match=[];null!==r;){switch(r.type){case 0:break;case 2:case 3:i.match.push({type:r.type,syntax:r.syntax});break;default:i.match.push({token:r.token.value,node:r.token.node})}r=r.prev}}return i},matchAsTree:function(e,t,n){var i=m(e,t,n||{});if(null===i.match)return i;var r=i.match,o=i.match={syntax:t.syntax||null,match:[]},a=[o];for(r=h(r).prev;null!==r;){switch(r.type){case 2:o.match.push(o={syntax:r.syntax,match:[]}),a.push(o);break;case 3:a.pop(),o=a[a.length-1];break;default:o.match.push({syntax:r.syntax||null,token:r.token.value,node:r.token.node})}r=r.prev}return i},getTotalIterationCount:function(){return u}}},"QPu+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.reduce=function(e,t){return arguments.length>=2?i.reduce(e,t)(this):i.reduce(e)(this)}},QTCG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.takeWhile=function(e){return i.takeWhile(e)(this)}},QXri:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.throw=i.throwError,i.Observable.throwError=i.throwError},Qbza:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("1gRP");i.Observable.prototype.materialize=r.materialize},Qc63:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return p})),n("SDrh");var i=n("tK18"),r=n("Gqt4"),o=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),a=n("CsSr"),s=n("7Ki+");function c(e,t,n){if(t in e){var i=e[t],r=n(i);if("function"==typeof r)try{r.prototype=r.prototype||{},Object.defineProperties(r,{__sentry_original__:{enumerable:!1,value:i}})}catch(o){}e[t]=r}}function l(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function u(e){if(Object(r.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}if(Object(r.f)(e)){var a=e,s={};s.type=a.type;try{s.target=Object(r.c)(a.target)?Object(i.a)(a.target):Object.prototype.toString.call(a.target)}catch(c){s.target="<unknown>"}try{s.currentTarget=Object(r.c)(a.currentTarget)?Object(i.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(c){s.currentTarget="<unknown>"}for(var o in"undefined"!=typeof CustomEvent&&Object(r.g)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,o)&&(s[o]=a);return s}return e}function h(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var i,r=f(e,t);return i=JSON.stringify(r),~-encodeURI(i).split(/%..|./).length>n?h(e,t-1,n):r}function d(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(r.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(a.a)(e)+"]":e}function f(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return function e(t,n,i,a){if(void 0===i&&(i=1/0),void 0===a&&(a=new o),0===i)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=d(e);return Object(r.i)(n)?n:t}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var s=d(n,t);if(Object(r.i)(s))return s;var c=u(n),l=Array.isArray(n)?[]:{};if(a.memoize(n))return"[Circular ~]";for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(l[h]=e(h,c[h],i-1,a));return a.unmemoize(n),l}(e,n,t)})))}catch(n){return"**non-serializable**"}}function p(e,t){void 0===t&&(t=40);var n=Object.keys(u(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(s.d)(n[0],t);for(var i=n.length;i>0;i--){var r=n.slice(0,i).join(", ");if(!(r.length>t))return i===n.length?r:Object(s.d)(r,t)}return""}},QsQ4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.withLatestFrom.apply(void 0,e)(this)}},QtPd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("LOr+");i.Observable.prototype.debounceTime=r.debounceTime},QtvL:function(e,t,n){var i=n("O36p");e.exports=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&e.children instanceof i==0&&(e.children=(new i).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof i&&(e.children=e.children.toArray())}}),t}}}},Qw2J:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("caIW");i.Observable.prototype.concatAll=r.concatAll},R9As:function(e,t,n){window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0;var i=function(){function e(){}return e.prototype.activate=function(e){this._terminal=e},e.prototype.dispose=function(){},e.prototype.fit=function(){var e=this.proposeDimensions();e&&this._terminal&&(this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(this._terminal._core._renderService.clear(),this._terminal.resize(e.cols,e.rows)))},e.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var e=this._terminal._core,t=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(t.getPropertyValue("height")),i=Math.max(0,parseInt(t.getPropertyValue("width"))),r=window.getComputedStyle(this._terminal.element),o=n-(parseInt(r.getPropertyValue("padding-top"))+parseInt(r.getPropertyValue("padding-bottom"))),a=i-(parseInt(r.getPropertyValue("padding-right"))+parseInt(r.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(a/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(o/e._renderService.dimensions.actualCellHeight))}}},e}();t.FitAddon=i}])},RApX:function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},RFdt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("nueD");i.Observable.prototype.isEmpty=r.isEmpty},RFoL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.first=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.first.apply(void 0,e)(this)}},RT2N:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("eUyF");i.Observable.prototype.concatMapTo=r.concatMapTo},ReuC:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("foSv");function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(i.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}},RhlD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.interval=i.interval},SDrh:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c}));var i=function(e,t){return(i=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])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},STE7:function(e,t,n){var i=n("vd7W").TYPE.Ident;function r(){this.scanner.tokenType!==i&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}e.exports={name:"TypeSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),r.call(this)):(r.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),r.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},SeVD:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n("ngJS"),r=n("a7t3"),o=n("pLzU"),a=n("CRDf"),s=n("I55L"),c=n("c2HN"),l=n("XoHu"),u=n("Lhse"),h=n("kJWO"),d=function(e){if(e&&"function"==typeof e[h.a])return Object(a.a)(e);if(Object(s.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return Object(r.a)(e);if(e&&"function"==typeof e[u.a])return Object(o.a)(e);var t=Object(l.a)(e)?"an invalid object":"'".concat(e,"'"),n="You provided ".concat(t," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)}},Sean:function(e,t){var n="undefined"!=typeof Uint32Array?Uint32Array:Array;e.exports=function(e,t){return null===e||e.length<t?new n(Math.max(t+1024,16384)):e}},"Sj+y":function(e,t,n){"use strict";n.d(t,"g",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"i",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return k})),n.d(t,"a",(function(){return C})),n.d(t,"e",(function(){return x}));var i=n("ReuC"),r=n("foSv"),o=n("1OyB"),a=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),l=n("xJj7"),u=n("HDdC"),h=n("7o/Q"),d=n("lJxs");function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new _({method:"GET",url:e,headers:t})}function p(e,t,n){return new _({method:"POST",url:e,body:t,headers:n})}function m(e,t){return new _({method:"DELETE",url:e,headers:t})}function g(e,t,n){return new _({method:"PUT",url:e,body:t,headers:n})}function v(e,t,n){return new _({method:"PATCH",url:e,body:t,headers:n})}var b=Object(d.a)((function(e,t){return e.response}));function y(e,t){return b(new _({method:"GET",url:e,responseType:"json",headers:t}))}var _=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;Object(o.a)(this,n),i=t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?function(){if(l.a.XMLHttpRequest)return new l.a.XMLHttpRequest;if(l.a.XDomainRequest)return new l.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(l.a.XMLHttpRequest)return new l.a.XMLHttpRequest;var e;try{for(var t=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(new l.a.ActiveXObject(e=t[n]))break}catch(i){}return new l.a.ActiveXObject(e)}catch(i){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var a in e)e.hasOwnProperty(a)&&(r[a]=e[a]);return i.request=r,i}return Object(a.a)(n,[{key:"_subscribe",value:function(e){return new w(e,this.request)}}]),n}(u.a);return e.create=function(){var t=function(t){return new e(t)};return t.get=f,t.post=p,t.delete=m,t.put=g,t.patch=v,t.getJSON=y,t}(),e}(),w=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;Object(o.a)(this,n),(r=t.call(this,e)).request=i,r.done=!1;var a=i.headers=i.headers||{};return i.crossDomain||r.getHeader(a,"X-Requested-With")||(a["X-Requested-With"]="XMLHttpRequest"),r.getHeader(a,"Content-Type")||l.a.FormData&&i.body instanceof l.a.FormData||void 0===i.body||(a["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),i.body=r.serializeBody(i.body,r.getHeader(i.headers,"Content-Type")),r.send(),r}return Object(a.a)(n,[{key:"next",value:function(e){this.done=!0;var t,n=this.xhr,i=this.request,r=this.destination;try{t=new k(e,n,i)}catch(o){return r.error(o)}r.next(t)}},{key:"send",value:function(){var e=this.request,t=this.request,n=t.user,i=t.method,r=t.url,o=t.async,a=t.password,s=t.headers,c=t.body;try{var l=this.xhr=e.createXHR();this.setupEvents(l,e),n?l.open(i,r,o,n,a):l.open(i,r,o),o&&(l.timeout=e.timeout,l.responseType=e.responseType),"withCredentials"in l&&(l.withCredentials=!!e.withCredentials),this.setHeaders(l,s),c?l.send(c):l.send()}catch(u){this.error(u)}}},{key:"serializeBody",value:function(e,t){if(!e||"string"==typeof e)return e;if(l.a.FormData&&e instanceof l.a.FormData)return e;if(t){var n=t.indexOf(";");-1!==n&&(t=t.substring(0,n))}switch(t){case"application/x-www-form-urlencoded":return Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&");case"application/json":return JSON.stringify(e);default:return e}}},{key:"setHeaders",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setRequestHeader(n,t[n])}},{key:"getHeader",value:function(e,t){for(var n in e)if(n.toLowerCase()===t.toLowerCase())return e[n]}},{key:"setupEvents",value:function(e,t){var n,i,r=t.progressSubscriber;function o(e){var t,n=o.subscriber,i=o.progressSubscriber,r=o.request;i&&i.error(e);try{t=new x(this,r)}catch(a){t=a}n.error(t)}function a(e){}function s(e){var t=s.subscriber,n=s.progressSubscriber,i=s.request;if(4===this.readyState){var r=1223===this.status?204:this.status;if(0===r&&(r=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),r<400)n&&n.complete(),t.next(e),t.complete();else{var o;n&&n.error(e);try{o=new C("ajax error "+r,this,i)}catch(a){o=a}t.error(o)}}}e.ontimeout=o,o.request=t,o.subscriber=this,o.progressSubscriber=r,e.upload&&"withCredentials"in e&&(r&&(n=function(e){n.progressSubscriber.next(e)},l.a.XDomainRequest?e.onprogress=n:e.upload.onprogress=n,n.progressSubscriber=r),e.onerror=i=function(e){var t,n=i.progressSubscriber,r=i.subscriber,o=i.request;n&&n.error(e);try{t=new C("ajax error",this,o)}catch(a){t=a}r.error(t)},i.request=t,i.subscriber=this,i.progressSubscriber=r),e.onreadystatechange=a,a.subscriber=this,a.progressSubscriber=r,a.request=t,e.onload=s,s.subscriber=this,s.progressSubscriber=r,s.request=t}},{key:"unsubscribe",value:function(){var e=this.xhr;!this.done&&e&&4!==e.readyState&&"function"==typeof e.abort&&e.abort(),Object(i.a)(Object(r.a)(n.prototype),"unsubscribe",this).call(this)}}]),n}(h.a),k=function e(t,n,i){Object(o.a)(this,e),this.originalEvent=t,this.xhr=n,this.request=i,this.status=n.status,this.responseType=n.responseType||i.responseType,this.response=S(this.responseType,n)},C=function(){function e(e,t,n){return Error.call(this),this.message=e,this.name="AjaxError",this.xhr=t,this.request=n,this.status=t.status,this.responseType=t.responseType||n.responseType,this.response=S(this.responseType,t),this}return e.prototype=Object.create(Error.prototype),e}();function S(e,t){switch(e){case"json":return function(e){return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null")}(t);case"xml":return t.responseXML;case"text":default:return"response"in t?t.response:t.responseText}}var x=function(e,t){return C.call(this,"ajax timeout",e,t),this.name="AjaxTimeoutError",this}},SjmF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.min=function(e){return i.min(e)(this)}},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",(function(){return i}))},SxV6:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("sVev"),r=n("pLZG"),o=n("IzEk"),a=n("xbPD"),s=n("XDbj"),c=n("SpAZ");function l(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?Object(r.a)((function(t,n){return e(t,n,l)})):c.a,Object(o.a)(1),n?Object(a.a)(t):Object(s.a)((function(){return new i.a})))}}},T8ZO:function(e,t,n){e.exports=n("EiPP").create(function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}(n("KW4y"),n("oYUb"),n("acmg")))},TMm9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("0c70");i.Observable.prototype.toArray=r.toArray},TefO:function(e,t,n){e.exports={getNode:n("7GzS")}},Tnl3:function(e,t,n){var i=n("vd7W").isHexDigit,r=n("vd7W").cmpChar,o=n("vd7W").TYPE,a=n("vd7W").NAME,s=o.Ident,c=o.Number,l=o.Dimension;function u(e,t){for(var n=this.scanner.tokenStart+e,r=0;n<this.scanner.tokenEnd;n++){var o=this.scanner.source.charCodeAt(n);if(45===o&&t&&0!==r)return 0===u.call(this,e+r+1,!1)&&this.error(),-1;i(o)||this.error(t&&0!==r?"HyphenMinus"+(r<6?" or hex digit":"")+" is expected":r<6?"Hex digit is expected":"Unexpected input",n),++r>6&&this.error("Too many hex digits",n)}return this.scanner.next(),r}function h(e){for(var t=0;this.scanner.isDelim(63);)++t>e&&this.error("Too many question marks"),this.scanner.next()}function d(e){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e&&this.error(a[e]+" is expected")}function f(){var e=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===s?void((e=u.call(this,0,!0))>0&&h.call(this,6-e)):this.scanner.isDelim(63)?(this.scanner.next(),void h.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===c?(d.call(this,43),e=u.call(this,1,!0),this.scanner.isDelim(63)?void h.call(this,6-e):this.scanner.tokenType===l||this.scanner.tokenType===c?(d.call(this,45),void u.call(this,1,!1)):void 0):this.scanner.tokenType===l?(d.call(this,43),void((e=u.call(this,1,!0))>0&&h.call(this,6-e))):void this.error()}e.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return r(this.scanner.source,e,117)||this.error("U is expected"),r(this.scanner.source,e+1,43)||this.error("Plus sign is expected"),this.scanner.next(),f.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}}},TpWx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.windowCount=function(e,t){return void 0===t&&(t=0),i.windowCount(e,t)(this)}},Tpyv:function(e,t,n){var i=n("vd7W").TYPE.WhiteSpace,r=Object.freeze({type:"WhiteSpace",loc:null,value:" "});e.exports={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(i),r},generate:function(e){this.chunk(e.value)}}},TqLU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.find=function(e,t){return i.find(e,t)(this)}},TwXD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("7y2s");i.Observable.prototype.distinctUntilKeyChanged=r.distinctUntilKeyChanged},UCR5:function(e,t,n){var i=n("Vywy"),r=n("Cbry"),o=n("KavO").ArraySet,a=n("sQiz").MappingList;function s(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=t&&(i.source=r.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),n.addMapping(i)})),e.sources.forEach((function(i){var o=i;null!==t&&(o=r.relative(t,i)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(i);null!=a&&n.setSourceContent(i,a)})),n},s.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),i=r.getArg(e,"source",null),o=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,i,o),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:i,name:o})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var i=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var a=this._sourceRoot;null!=a&&(i=r.relative(a,i));var s=new o,c=new o;this._mappings.unsortedForEach((function(t){if(t.source===i&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=r.join(n,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var i=e.sourceContentFor(t);null!=i&&(null!=n&&(t=r.join(n,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,i))}),this)},s.prototype._validateMapping=function(e,t,n,i){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||i)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:i}))},s.prototype._serializeMappings=function(){for(var e,t,n,o,a=0,s=1,c=0,l=0,u=0,h=0,d="",f=this._mappings.toArray(),p=0,m=f.length;p<m;p++){if(e="",(t=f[p]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(p>0){if(!r.compareByGeneratedPositionsInflated(t,f[p-1]))continue;e+=","}e+=i.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=i.encode(o-h),h=o,e+=i.encode(t.originalLine-1-l),l=t.originalLine-1,e+=i.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=i.encode(n-u),u=n)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},UE8N:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.sequenceEqual=function(e,t){return i.sequenceEqual(e,t)(this)}},UGdY:function(e,t,n){var i=n("UCR5").SourceMapGenerator,r={Atrule:!0,Selector:!0,Declaration:!0};e.exports=function(e){var t=new i,n=1,o=0,a={line:1,column:0},s={line:0,column:0},c=!1,l={line:1,column:0},u={generated:l},h=e.node;e.node=function(e){if(e.loc&&e.loc.start&&r.hasOwnProperty(e.type)){var i=e.loc.start.line,d=e.loc.start.column-1;s.line===i&&s.column===d||(s.line=i,s.column=d,a.line=n,a.column=o,c&&(c=!1,a.line===l.line&&a.column===l.column||t.addMapping(u)),c=!0,t.addMapping({source:e.loc.source,original:s,generated:a}))}h.call(this,e),c&&r.hasOwnProperty(e.type)&&(l.line=n,l.column=o)};var d=e.chunk;e.chunk=function(e){for(var t=0;t<e.length;t++)10===e.charCodeAt(t)?(n++,o=0):o++;d(e)};var f=e.result;return e.result=function(){return c&&t.addMapping(u),{css:f(),map:t}},e}},UXun:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("jtHE");function r(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,a=e.windowTime,s=void 0===a?Number.POSITIVE_INFINITY:a,c=e.refCount,l=e.scheduler,u=0,h=!1,d=!1;return function(e){var r;u++,!t||h?(h=!1,t=new i.a(o,s,l),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){h=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}})):r=t.subscribe(this),this.add((function(){u--,r.unsubscribe(),n&&!d&&c&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}},UwDK:function(e,t,n){var i=n("vd7W").TYPE.RightParenthesis;e.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart,o=this.consumeFunctionName(),a=o.toLowerCase();return n=t.hasOwnProperty(a)?t[a].call(this,t):e.call(this,t),this.scanner.eof||this.eat(i),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:o,children:n}},generate:function(e){this.chunk(e.name),this.chunk("("),this.children(e),this.chunk(")")},walkContext:"function"}},VRG1:function(e,t,n){e.exports=n("2pxp")},VRyK:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("HDdC"),r=n("z+Ro"),o=n("bHdf"),a=n("yCtX");function s(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];var l=s[s.length-1];return Object(r.a)(l)?(t=s.pop(),s.length>1&&"number"==typeof s[s.length-1]&&(e=s.pop())):"number"==typeof l&&(e=s.pop()),null===t&&1===s.length&&s[0]instanceof i.a?s[0]:Object(o.a)(e)(Object(a.a)(s,t))}},VSOP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("l4jP");i.Observable.prototype.share=r.share},Vj1t:function(e,t,n){var i=n("vd7W").TYPE,r=i.LeftParenthesis,o=i.RightParenthesis;e.exports={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var n,i=this.scanner.tokenStart;return this.eat(r),n=e.call(this,t),this.scanner.eof||this.eat(o),{type:"Parentheses",loc:this.getLocation(i,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("("),this.children(e),this.chunk(")")}}},VlMj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("bKLx");i.Observable.prototype.timeInterval=r.timeInterval},VmLd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("w0v+");t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&r.isArray(e[0])&&(e=e[0].slice()),this.lift.call(i.of.apply(void 0,[this].concat(e)),new r.CombineLatestOperator(n))}},Vywy:function(e,t,n){var i=n("Jcck");t.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=i.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,o,a,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&o),l+=(o&=31)<<u,u+=5}while(r);n.value=(s=(a=l)>>1,1==(1&a)?-s:s),n.rest=t}},Vzig:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("w0v+"),o=n("kU1M");t.throttleTime=function(e,t,n){return void 0===t&&(t=i.asyncScheduler),void 0===n&&(n=r.defaultThrottleConfig),o.throttleTime(e,t,n)(this)}},"W/jz":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("A5T5");i.Observable.prototype.repeatWhen=r.repeatWhen},W5YF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("oXC5");i.Observable.prototype.switchMapTo=r.switchMapTo},WMd4:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var i=n("1OyB"),r=n("vuIU"),o=n("EY2u"),a=n("LRne"),s=n("z6cu"),c=function(e){return e.NEXT="N",e.ERROR="E",e.COMPLETE="C",e}({}),l=function(){var e=function(){function e(t,n,r){Object(i.a)(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return Object(r.a)(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(a.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(o.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},WyKG:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("7o/Q"),r=n("2QA8"),o=n("gRHU");function a(e,t,n){if(e){if(e instanceof i.a)return e;if(e[r.a])return e[r.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}},XC4j:function(e,t){},XDL1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.elementAt=function(e,t){return i.elementAt.apply(void 0,arguments)(this)}},XDbj:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("sVev"),c=n("7o/Q");function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return function(t){return t.lift(new u(e))}}var u=function(){function e(t){Object(o.a)(this,e),this.errorFactory=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.errorFactory))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return Object(a.a)(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(c.a);function d(){return new s.a}},XDwu:function(e,t){e.exports=function(e,t){var n=Object.create(SyntaxError.prototype),i=new Error;return n.name=e,n.message=t,Object.defineProperty(n,"stack",{get:function(){return(i.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}}),n}},XNiG:function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v}));var i=n("vuIU"),r=n("ReuC"),o=n("foSv"),a=n("1OyB"),s=n("Ji7U"),c=n("LK+K"),l=n("HDdC"),u=n("7o/Q"),h=n("quSY"),d=n("9ppp"),f=n("Ylt2"),p=n("2QA8"),m=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e)).destination=e,i}return n}(u.a),g=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Object(i.a)(n,[{key:p.a,value:function(){return new m(this)}},{key:"lift",value:function(e){var t=new v(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new d.a;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new d.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new d.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new d.a;return Object(r.a)(Object(o.a)(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new d.a;return this.hasError?(e.error(this.thrownError),h.a.EMPTY):this.isStopped?(e.complete(),h.a.EMPTY):(this.observers.push(e),new f.a(this,e))}},{key:"asObservable",value:function(){var e=new l.a;return e.source=this,e}}]),n}(l.a);return e.create=function(e,t){return new v(e,t)},e}(),v=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this)).destination=e,r.source=i,r}return Object(i.a)(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):h.a.EMPTY}}]),n}(g)},XPuz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.empty=i.empty},Xh4i:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.window=function(e){return i.window(e)(this)}},Xj2z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.fromEvent=i.fromEvent},Xk39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t._catch=function(e){return i.catchError(e)(this)}},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return i}))},Xs6s:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("M6P7");i.Observable.prototype.finally=r._finally,i.Observable.prototype._finally=r._finally},"Y+H1":function(e,t,n){var i=n("vd7W").TYPE.Comment;e.exports={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.tokenEnd;return this.eat(i),t-e+2>=2&&42===this.scanner.source.charCodeAt(t-2)&&47===this.scanner.source.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)}},generate:function(e){this.chunk("/*"),this.chunk(e.value),this.chunk("*/")}}},"Y/cZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("1OyB"),r=n("vuIU"),o=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;Object(i.a)(this,e),this.SchedulerAction=t,this.now=n}return Object(r.a)(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}()},Y0sX:function(e,t,n){var i=n("O36p"),r=Object.prototype.hasOwnProperty;function o(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function a(e){return Boolean(e)&&o(e.offset)&&o(e.line)&&o(e.column)}function s(e,t){return function(n,o){if(!n||n.constructor!==Object)return o(n,"Type of node should be an Object");for(var s in n){var c=!0;if(!1!==r.call(n,s)){if("type"===s)n.type!==e&&o(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===s){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)s+=".source";else if(a(n.loc.start)){if(a(n.loc.end))continue;s+=".end"}else s+=".start";c=!1}else if(t.hasOwnProperty(s)){var l=0;for(c=!1;!c&&l<t[s].length;l++){var u=t[s][l];switch(u){case String:c="string"==typeof n[s];break;case Boolean:c="boolean"==typeof n[s];break;case null:c=null===n[s];break;default:"string"==typeof u?c=n[s]&&n[s].type===u:Array.isArray(u)&&(c=n[s]instanceof i)}}}else o(n,"Unknown field `"+s+"` for "+e+" node type");c||o(n,"Bad value for `"+e+"."+s+"`")}}for(var s in t)r.call(t,s)&&!1===r.call(n,s)&&o(n,"Field `"+e+"."+s+"` is missed")}}function c(e,t){var n=t.structure,i={type:String,loc:!0},o={type:'"'+e+'"'};for(var a in n)if(!1!==r.call(n,a)){for(var c=[],l=i[a]=Array.isArray(n[a])?n[a].slice():[n[a]],u=0;u<l.length;u++){var h=l[u];if(h===String||h===Boolean)c.push(h.name);else if(null===h)c.push("null");else if("string"==typeof h)c.push("<"+h+">");else{if(!Array.isArray(h))throw new Error("Wrong value `"+h+"` in `"+e+"."+a+"` structure definition");c.push("List")}}o[a]=c.join(" | ")}return{docs:o,check:s(e,i)}}e.exports={getStructureFromConfig:function(e){var t={};if(e.node)for(var n in e.node)if(r.call(e.node,n)){var i=e.node[n];if(!i.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=c(n,i)}return t}}},Y6u4:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},Y7AG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.partition=function(e,t){return i.partition(e,t)(this)}},Y7HM:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("DH7j");function r(e){return!Object(i.a)(e)&&e-parseFloat(e)+1>=0}},"YA+d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("cYpg");i.Observable.prototype.bufferWhen=r.bufferWhen},YiA4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.windowWhen=function(e){return i.windowWhen(e)(this)}},Ylt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("1OyB"),r=n("vuIU"),o=n("Ji7U"),a=n("LK+K"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this)).subject=e,o.subscriber=r,o.closed=!1,o}return Object(r.a)(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(n("quSY").a)},YwoP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("RFoL");i.Observable.prototype.first=r.first},ZHaO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.multicast=function(e,t){return i.multicast(e,t)(this)}},ZHpM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.take=function(e){return i.take(e)(this)}},ZR4w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.map=function(e,t){return i.map(e,t)(this)}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("51Dv"),r=n("SeVD"),o=n("HDdC");function a(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new i.a(e,n,a);if(!s.closed)return t instanceof o.a?t.subscribe(s):Object(r.a)(t)(s)}},ZVk9:function(e,t,n){var i=n("vd7W").isWhiteSpace,r=n("vd7W").cmpStr,o=n("vd7W").TYPE,a=o.Function,s=o.Url,c=o.RightParenthesis;e.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var e,t=this.scanner.tokenStart;switch(this.scanner.tokenType){case s:for(var n=t+4,o=this.scanner.tokenEnd-1;n<o&&i(this.scanner.source.charCodeAt(n));)n++;for(;n<o&&i(this.scanner.source.charCodeAt(o-1));)o--;e={type:"Raw",loc:this.getLocation(n,o),value:this.scanner.source.substring(n,o)},this.eat(s);break;case a:r(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(a),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(c);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(e){this.chunk("url"),this.chunk("("),this.node(e.value),this.chunk(")")}}},"Zw/6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("BSEn");i.Observable.prototype.bufferToggle=r.bufferToggle},Zy1z:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(){return function(e){return e.lift(new l)}}var l=function(){function e(){Object(o.a)(this,e)}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).hasPrev=!1,i}return Object(a.a)(n,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}]),n}(s.a)},a3WO:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return i}))},a3y9:function(e,t){e.exports=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}},a7t3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("NJ4a"),r=function(e){return function(t){return e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t}}},aMoL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("jtHT");i.Observable.prototype.publish=r.publish},aP66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.timeout=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.timeout(e,t)(this)}},aUQo:function(e,t,n){var i=n("vd7W").TYPE.CDC;e.exports={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},acmg:function(e,t,n){e.exports={node:n("585i")}},atJV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.last=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.last.apply(void 0,e)(this)}},avj0:function(e,t,n){e.exports={dir:n("RApX"),has:n("te+T"),lang:n("zuyY"),matches:n("VRG1"),not:n("wDXs"),"nth-child":n("twrC"),"nth-last-child":n("yJif"),"nth-last-of-type":n("dsX3"),"nth-of-type":n("B3CK"),slotted:n("d/Fg")}},"b/PJ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.skipUntil=function(e){return i.skipUntil(e)(this)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("5+tZ"),r=n("SpAZ");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(i.b)(r.a,e)}},bHhB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("n6Nf");i.Observable.prototype.windowToggle=r.windowToggle},bKLx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.timeInterval=function(e){return void 0===e&&(e=i.asyncScheduler),r.timeInterval(e)(this)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("5+tZ");function r(e,t){return Object(i.b)(e,t,1)}},bUWp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Myac");i.Observable.prototype.race=r.race},"bb3/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.timestamp=function(e){return void 0===e&&(e=i.asyncScheduler),r.timestamp(e)(this)}},bcPL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.onErrorResumeNext.apply(void 0,e)(this)}},bd5T:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.delay=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.delay(e,t)(this)}},bgAe:function(e,t,n){var i=n("O36p");e.exports=function e(t){var n={};for(var r in t){var o=t[r];o&&(Array.isArray(o)||o instanceof i?o=o.map(e):o.constructor===Object&&(o=e(o))),n[r]=o}return n}},bi34:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("laIk");i.Observable.ajax=r.ajax},bxbb:function(e,t,n){var i=n("vd7W").TYPE,r=i.String,o=i.Ident,a=i.Url,s=i.Function,c=i.LeftParenthesis;e.exports={parse:{prelude:function(){var e=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case r:e.push(this.String());break;case a:case s:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==o&&this.lookupNonWSType(0)!==c||(e.push(this.WhiteSpace()),e.push(this.MediaQueryList())),e},block:null}}},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return i}))},c7jc:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=1,r=function(){return Promise.resolve()}(),o={};function a(e){return e in o&&(delete o[e],!0)}var s={setImmediate:function(e){var t=i++;return o[t]=!0,r.then((function(){return a(t)&&e()})),t},clearImmediate:function(e){a(e)}}},cD4w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.timer=i.timer},cLIC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.every=function(e,t){return i.every(e,t)(this)}},cPnI:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("02G1");i.Observable.prototype.merge=r.merge},cYpg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.bufferWhen=function(e){return i.bufferWhen(e)(this)}},caIW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.concatAll=function(){return i.concatAll()(this)}},cf52:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("QsQ4");i.Observable.prototype.withLatestFrom=r.withLatestFrom},ciat:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.audit=function(e){return i.audit(e)(this)}},cp0P:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("KQm4"),r=n("HDdC"),o=n("DH7j"),a=n("lJxs"),s=n("XoHu"),c=n("Cfvw");function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if(Object(o.a)(r))return u(r,null);if(Object(s.a)(r)&&Object.getPrototypeOf(r)===Object.prototype){var c=Object.keys(r);return u(c.map((function(e){return r[e]})),c)}}if("function"==typeof t[t.length-1]){var l=t.pop();return u(t=1===t.length&&Object(o.a)(t[0])?t[0]:t,null).pipe(Object(a.a)((function(e){return l.apply(void 0,Object(i.a)(e))})))}return u(t,null)}function u(e,t){return new r.a((function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=Object(c.a)(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce((function(e,t,n){return e[t]=r[n],e}),{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()}))}},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},czqU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.using=i.using},"d/Fg":function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.Selector())}}},dB5I:function(e,t,n){var i=n("vd7W").TYPE.Hash;e.exports={name:"IdSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"IdSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.name)}}},dL1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.buffer=function(e){return i.buffer(e)(this)}},dlYL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("ciat");i.Observable.prototype.audit=r.audit},dsX3:function(e,t,n){e.exports=n("lXnc")},dv2O:function(e,t){e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},e1rG:function(e,t,n){var i=n("vd7W").TYPE,r=n("4njK").mode,o=i.WhiteSpace,a=i.Comment,s=i.Semicolon;function c(e){return this.Raw(e,r.semicolonIncluded,!0)}e.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var e=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case o:case a:case s:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,c))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,(function(e){"Declaration"===e.type&&this.chunk(";")}))}}},eAxx:function(e,t){e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},eIep:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n("ReuC"),r=n("foSv"),o=n("Ji7U"),a=n("LK+K"),s=n("1OyB"),c=n("vuIU"),l=n("lJxs"),u=n("Cfvw"),h=n("zx2A");function d(e,t){return"function"==typeof t?function(n){return n.pipe(d((function(n,i){return Object(u.a)(e(n,i)).pipe(Object(l.a)((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new f(e))}}var f=function(){function e(t){Object(s.a)(this,e),this.project=t}return Object(c.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new p(e,this.project))}}]),e}(),p=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i){var r;return Object(s.a)(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return Object(c.a)(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new h.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(h.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||Object(i.a)(Object(r.a)(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&Object(i.a)(Object(r.a)(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(h.b)},eNwd:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return Object(r.a)(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?Object(o.a)(Object(a.a)(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return Object(o.a)(Object(a.a)(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),u=new(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(n("IjjT").a))(l),h=u},eUyF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.concatMapTo=function(e){return i.concatMapTo(e)(this)}},eWth:function(e,t,n){var i=n("q8iP"),r=function(e){this.str=e,this.pos=0};r.prototype={charCodeAt:function(e){return e<this.str.length?this.str.charCodeAt(e):0},charCode:function(){return this.charCodeAt(this.pos)},nextCharCode:function(){return this.charCodeAt(this.pos+1)},nextNonWsCode:function(e){return this.charCodeAt(this.findWsEnd(e))},findWsEnd:function(e){for(;e<this.str.length;e++){var t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e},substringToPos:function(e){return this.str.substring(this.pos,this.pos=e)},eat:function(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++},peek:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""},error:function(e){throw new i(e,this.str,this.pos)}},e.exports=r},eYtX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("NEMR");i.Observable.prototype.retryWhen=r.retryWhen},"elu/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.scan=function(e,t){return arguments.length>=2?i.scan(e,t)(this):i.scan(e)(this)}},errG:function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.Nth(!0))}}},eyjB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("mQn8");i.Observable.prototype.mergeScan=r.mergeScan},fElF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("aP66");i.Observable.prototype.timeout=r.timeout},fUwU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.skip=function(e){return i.skip(e)(this)}},fY5S:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");t.zipProto=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(i.zip.apply(void 0,[this].concat(e)))}},fmF7:function(e,t,n){e.exports={SyntaxError:n("q8iP"),parse:n("tZmI"),generate:n("vI5D"),walk:n("Fm6d")}},fnh7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.from=i.from},foSv:function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return i}))},g0lY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("SjmF");i.Observable.prototype.min=r.min},gCdt:function(e,t,n){var i=n("vd7W").TYPE,r=i.LeftSquareBracket,o=i.RightSquareBracket;e.exports={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var n,i=this.scanner.tokenStart;return this.eat(r),n=e.call(this,t),this.scanner.eof||this.eat(o),{type:"Brackets",loc:this.getLocation(i,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("["),this.children(e),this.chunk("]")}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("2fFW"),r=n("NJ4a"),o={closed:!0,next:function(e){},error:function(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete:function(){}}},gSmF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("LM6Q");i.Observable.prototype.startWith=r.startWith},gTGj:function(e,t,n){var i=n("vd7W").TYPE.Ident;e.exports={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(46)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk("."),this.chunk(e.name)}}},gzwt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.count=function(e){return i.count(e)(this)}},hf5g:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("9xAK");i.Observable.prototype.bufferTime=r.bufferTime},hswa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("ADT6");i.Observable.prototype.filter=r.filter},iD44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.mergeMap=function(e,t){return void 0===t&&(t=Number.POSITIVE_INFINITY),i.mergeMap(e,t)(this)}},iKkX:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return d}));var i=n("ReuC"),r=n("foSv"),o=n("1OyB"),a=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),l=n("3N8a"),u=n("IjjT"),h=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return Object(o.a)(this,n),(e=t.call(this,i,(function(){return e.frame}))).maxFrames=r,e.frame=0,e.index=-1,e}return Object(a.a)(n,[{key:"flush",value:function(){for(var e,t,n=this.actions,i=this.maxFrames;(t=n[0])&&t.delay<=i&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}}}]),n}(u.a);return e.frameTimeFactor=10,e}(),d=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.index+=1;return Object(o.a)(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.index=a,r.active=!0,r.index=e.index=a,r}return Object(a.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return Object(i.a)(Object(r.a)(n.prototype),"schedule",this).call(this,e,t);this.active=!1;var o=new n(this.scheduler,this.work);return this.add(o),o.schedule(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=e.frame+i;var r=e.actions;return r.push(this),r.sort(n.sortActions),!0}},{key:"recycleAsyncId",value:function(e,t){}},{key:"_execute",value:function(e,t){if(!0===this.active)return Object(i.a)(Object(r.a)(n.prototype),"_execute",this).call(this,e,t)}}],[{key:"sortActions",value:function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}]),n}(l.a)},imBb:function(e,t,n){var i;!function(r,o,a){if(r){for(var s,c={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},h={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)c[111+d]="f"+d;for(d=0;d<=9;++d)c[d+96]=d.toString();b.prototype.bind=function(e,t,n){var i=this;return i._bindMultiple.call(i,e=e instanceof Array?e:[e],t,n),i},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==o&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[t]=e[t]);s=null},b.init=function(){var e=b(o);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),r.Mousetrap=b,e.exports&&(e.exports=b),void 0===(i=(function(){return b}).call(t,n,t,e))||(e.exports=i)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return c[e.which]?c[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function g(e,t,n){return n||(n=function(){if(!s)for(var e in s={},c)e>95&&e<112||c.hasOwnProperty(e)&&(s[c[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,i,r,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r<n.length;++r)h[i=n[r]]&&(i=h[i]),t&&"keypress"!=t&&u[i]&&(i=u[i],o.push("shift")),m(i)&&o.push(i);return{key:i,modifiers:o,action:t=g(i,o,t)}}function b(e){var t=this;if(e=e||o,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,i={},r=!1,a=!1,s=!1;function c(e){e=e||{};var t,n=!1;for(t in i)e[t]?n=!0:i[t]=0;n||(s=!1)}function l(e,n,r,o,a,s){var c,l,u,h=[],d=r.type;if(!t._callbacks[e])return[];for("keyup"==d&&m(e)&&(n=[e]),c=0;c<t._callbacks[e].length;++c)l=t._callbacks[e][c],(o||!l.seq||i[l.seq]==l.level)&&d==l.action&&(("keypress"!=d||r.metaKey||r.ctrlKey)&&(u=l.modifiers,n.sort().join(",")!==u.sort().join(","))||((!o&&l.combo==a||o&&l.seq==o&&l.level==s)&&t._callbacks[e].splice(c,1),h.push(l)));return h}function u(e,n,i,r){t.stopCallback(n,n.target||n.srcElement,i,r)||!1===e(n,i)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function h(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=p(e);n&&("keyup"!=e.type||r!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):r=!1)}function d(e,o,a,h,f){t._directMap[e+":"+a]=o;var m,g=(e=e.replace(/\s+/g," ")).split(" ");g.length>1?function(e,t,o,a){function l(t){return function(){s=t,++i[e],clearTimeout(n),n=setTimeout(c,1e3)}}function h(t){u(o,t,e),"keyup"!==a&&(r=p(t)),setTimeout(c,10)}i[e]=0;for(var f=0;f<t.length;++f){var m=f+1===t.length?h:l(a||v(t[f+1]).action);d(t[f],m,a,e,f)}}(e,g,o,a):(m=v(e,a),t._callbacks[m.key]=t._callbacks[m.key]||[],l(m.key,m.modifiers,{type:m.action},h,e,f),t._callbacks[m.key][h?"unshift":"push"]({callback:o,modifiers:m.modifiers,action:m.action,seq:h,level:f,combo:e}))}t._handleKey=function(e,t,n){var i,r=l(e,t,n),o={},h=0,d=!1;for(i=0;i<r.length;++i)r[i].seq&&(h=Math.max(h,r[i].level));for(i=0;i<r.length;++i)if(r[i].seq){if(r[i].level!=h)continue;d=!0,o[r[i].seq]=1,u(r[i].callback,n,r[i].combo,r[i].seq)}else d||u(r[i].callback,n,r[i].combo);var f="keypress"==n.type&&a;n.type!=s||m(e)||f||c(o),a=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)d(e[i],t,n)},f(e,"keypress",h),f(e,"keydown",h),f(e,"keyup",h)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},"itJ+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.bufferCount=function(e,t){return void 0===t&&(t=null),i.bufferCount(e,t)(this)}},itXk:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return p}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("z+Ro"),c=n("DH7j"),l=n("l7GE"),u=n("ZUHj"),h=n("yCtX"),d={};function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return Object(s.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Object(c.a)(t[0])&&(t=t[0]),Object(h.a)(t,r).lift(new p(i))}var p=function(){function e(t){Object(o.a)(this,e),this.resultSelector=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new m(e,this.resultSelector))}}]),e}(),m=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return Object(a.a)(n,[{key:"_next",value:function(e){this.values.push(d),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(Object(u.a)(this,i,void 0,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===d?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(l.a)},j5kd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("w0v+"),o=n("kU1M");t.windowTime=function(e){var t=i.asyncScheduler,n=null,a=Number.POSITIVE_INFINITY;return r.isScheduler(arguments[3])&&(t=arguments[3]),r.isScheduler(arguments[2])?t=arguments[2]:r.isNumeric(arguments[2])&&(a=Number(arguments[2])),r.isScheduler(arguments[1])?t=arguments[1]:r.isNumeric(arguments[1])&&(n=Number(arguments[1])),o.windowTime(e,n,a,t)(this)}},jIeU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("5LO2");i.Observable.prototype.exhaust=r.exhaust},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("HDdC"),r=n("quSY");function o(e,t){return new i.a((function(n){var i=new r.a,o=0;return i.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}},jdlx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Mw3v");i.Observable.prototype.pluck=r.pluck},jpu9:function(e,t,n){var i=n("UGdY"),r=Object.prototype.hasOwnProperty;function o(e,t){var n=null;e.children.forEach("function"!=typeof t?this.node:function(e){null!==n&&t.call(this,n),this.node(e),n=e},this)}e.exports=function(e){function t(e){if(!r.call(n,e.type))throw new Error("Unknown node type: "+e.type);n[e.type].call(this,e)}var n={};if(e.node)for(var a in e.node)n[a]=e.node[a].generate;return function(e,n){var r="",a={children:o,node:t,chunk:function(e){r+=e},result:function(){return r}};return n&&("function"==typeof n.decorator&&(a=n.decorator(a)),n.sourceMap&&(a=i(a))),a.node(e),a.result()}}},jtHE:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=n("XNiG"),u=n("qgXg"),h=n("quSY"),d=n("pxpQ"),f=n("9ppp"),p=n("Ylt2"),m=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return Object(i.a)(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=o<1?1:o,o===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return Object(r.a)(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}Object(o.a)(Object(a.a)(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new g(this._getNow(),e)),this._trimBufferThenGetEvents()),Object(o.a)(Object(a.a)(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new f.a;if(this.isStopped||this.hasError?t=h.a.EMPTY:(this.observers.push(e),t=new p.a(this,e)),r&&e.add(e=new d.a(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||u.a).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(l.b),g=function e(t,n){Object(i.a)(this,e),this.time=t,this.value=n}},jtHT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.publish=function(e){return i.publish(e)(this)}},kIY7:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},kPWa:function(e,t,n){var i=n("P3uw").consumeNumber,r=n("vd7W").TYPE.Percentage;e.exports={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=i(this.scanner.source,e);return this.eat(r),{type:"Percentage",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t)}},generate:function(e){this.chunk(e.value),this.chunk("%")}}},kU1M:function(e,t,n){"use strict";n.r(t),n.d(t,"audit",(function(){return i.a})),n.d(t,"auditTime",(function(){return r.a})),n.d(t,"buffer",(function(){return h})),n.d(t,"bufferCount",(function(){return v})),n.d(t,"bufferTime",(function(){return C})),n.d(t,"bufferToggle",(function(){return I})),n.d(t,"bufferWhen",(function(){return L})),n.d(t,"catchError",(function(){return B.a})),n.d(t,"combineAll",(function(){return z})),n.d(t,"combineLatest",(function(){return G})),n.d(t,"concat",(function(){return K})),n.d(t,"concatAll",(function(){return X.a})),n.d(t,"concatMap",(function(){return Y.a})),n.d(t,"concatMapTo",(function(){return Z})),n.d(t,"count",(function(){return Q.a})),n.d(t,"debounce",(function(){return $})),n.d(t,"debounceTime",(function(){return te.a})),n.d(t,"defaultIfEmpty",(function(){return ne.a})),n.d(t,"delay",(function(){return ie.a})),n.d(t,"delayWhen",(function(){return oe})),n.d(t,"dematerialize",(function(){return ue})),n.d(t,"distinct",(function(){return fe})),n.d(t,"distinctUntilChanged",(function(){return ge.a})),n.d(t,"distinctUntilKeyChanged",(function(){return ve})),n.d(t,"elementAt",(function(){return ke})),n.d(t,"endWith",(function(){return Se})),n.d(t,"every",(function(){return xe})),n.d(t,"exhaust",(function(){return Te})),n.d(t,"exhaustMap",(function(){return Ae})),n.d(t,"expand",(function(){return Re})),n.d(t,"filter",(function(){return ye.a})),n.d(t,"finalize",(function(){return Ne.a})),n.d(t,"find",(function(){return Be})),n.d(t,"findIndex",(function(){return Ve})),n.d(t,"first",(function(){return qe.a})),n.d(t,"groupBy",(function(){return Ue.b})),n.d(t,"ignoreElements",(function(){return Ge})),n.d(t,"isEmpty",(function(){return Xe})),n.d(t,"last",(function(){return Qe.a})),n.d(t,"map",(function(){return je.a})),n.d(t,"mapTo",(function(){return $e.a})),n.d(t,"materialize",(function(){return et})),n.d(t,"max",(function(){return st})),n.d(t,"merge",(function(){return lt})),n.d(t,"mergeAll",(function(){return ut.a})),n.d(t,"mergeMap",(function(){return ht.b})),n.d(t,"flatMap",(function(){return ht.a})),n.d(t,"mergeMapTo",(function(){return dt})),n.d(t,"mergeScan",(function(){return ft})),n.d(t,"min",(function(){return gt})),n.d(t,"multicast",(function(){return vt.a})),n.d(t,"observeOn",(function(){return bt.b})),n.d(t,"onErrorResumeNext",(function(){return yt})),n.d(t,"pairwise",(function(){return kt.a})),n.d(t,"partition",(function(){return St})),n.d(t,"pluck",(function(){return xt})),n.d(t,"publish",(function(){return Tt})),n.d(t,"publishBehavior",(function(){return Pt})),n.d(t,"publishLast",(function(){return At})),n.d(t,"publishReplay",(function(){return Dt})),n.d(t,"race",(function(){return Lt})),n.d(t,"reduce",(function(){return at})),n.d(t,"repeat",(function(){return Nt})),n.d(t,"repeatWhen",(function(){return zt})),n.d(t,"retry",(function(){return Ut})),n.d(t,"retryWhen",(function(){return Kt})),n.d(t,"refCount",(function(){return Zt.a})),n.d(t,"sample",(function(){return Qt})),n.d(t,"sampleTime",(function(){return en})),n.d(t,"scan",(function(){return it.a})),n.d(t,"sequenceEqual",(function(){return on})),n.d(t,"share",(function(){return ln.a})),n.d(t,"shareReplay",(function(){return un.a})),n.d(t,"single",(function(){return dn})),n.d(t,"skip",(function(){return mn.a})),n.d(t,"skipLast",(function(){return gn})),n.d(t,"skipUntil",(function(){return yn})),n.d(t,"skipWhile",(function(){return kn})),n.d(t,"startWith",(function(){return xn.a})),n.d(t,"subscribeOn",(function(){return Mn})),n.d(t,"switchAll",(function(){return jn})),n.d(t,"switchMap",(function(){return En.a})),n.d(t,"switchMapTo",(function(){return An})),n.d(t,"take",(function(){return we.a})),n.d(t,"takeLast",(function(){return rt.a})),n.d(t,"takeUntil",(function(){return In.a})),n.d(t,"takeWhile",(function(){return Dn.a})),n.d(t,"tap",(function(){return Rn.a})),n.d(t,"throttle",(function(){return Ln.b})),n.d(t,"throttleTime",(function(){return Fn})),n.d(t,"throwIfEmpty",(function(){return _e.a})),n.d(t,"timeInterval",(function(){return zn.b})),n.d(t,"timeout",(function(){return Xn})),n.d(t,"timeoutWith",(function(){return Un})),n.d(t,"timestamp",(function(){return Yn.b})),n.d(t,"toArray",(function(){return Qn})),n.d(t,"window",(function(){return $n})),n.d(t,"windowCount",(function(){return ti})),n.d(t,"windowTime",(function(){return oi})),n.d(t,"windowToggle",(function(){return di})),n.d(t,"windowWhen",(function(){return mi})),n.d(t,"withLatestFrom",(function(){return bi})),n.d(t,"zip",(function(){return ki})),n.d(t,"zipAll",(function(){return Ci}));var i=n("tnsW"),r=n("3UWI"),o=n("JX7q"),a=n("Ji7U"),s=n("LK+K"),c=n("1OyB"),l=n("vuIU"),u=n("zx2A");function h(e){return function(t){return t.lift(new d(e))}}var d=function(){function e(t){Object(c.a)(this,e),this.closingNotifier=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.closingNotifier))}}]),e}(),f=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).buffer=[],r.add(Object(u.c)(i,new u.a(Object(o.a)(r)))),r}return Object(l.a)(n,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"notifyNext",value:function(){var e=this.buffer;this.buffer=[],this.destination.next(e)}}]),n}(u.b),p=n("ReuC"),m=n("foSv"),g=n("7o/Q");function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){return n.lift(new b(e,t))}}var b=function(){function e(t,n){Object(c.a)(this,e),this.bufferSize=t,this.startBufferEvery=n,this.subscriberClass=n&&t!==n?_:y}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}]),e}(),y=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).bufferSize=i,r.buffer=[],r}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}},{key:"_complete",value:function(){var e=this.buffer;e.length>0&&this.destination.next(e),Object(p.a)(Object(m.a)(n.prototype),"_complete",this).call(this)}}]),n}(g.a),_=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,e)).bufferSize=i,o.startBufferEvery=r,o.buffers=[],o.count=0,o}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(e),a.length===t&&(i.splice(o,1),this.destination.next(a))}}},{key:"_complete",value:function(){for(var e=this.buffers,t=this.destination;e.length>0;){var i=e.shift();i.length>0&&t.next(i)}Object(p.a)(Object(m.a)(n.prototype),"_complete",this).call(this)}}]),n}(g.a),w=n("D0XW"),k=n("z+Ro");function C(e){var t=arguments.length,n=w.a;Object(k.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new S(e,i,r,n))}}var S=function(){function e(t,n,i,r){Object(c.a)(this,e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=r}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new O(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),e}(),x=function e(){Object(c.a)(this,e),this.buffer=[]},O=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,a,s){var l;Object(c.a)(this,n),(l=t.call(this,e)).bufferTimeSpan=i,l.bufferCreationInterval=r,l.maxBufferSize=a,l.scheduler=s,l.contexts=[];var u=l.openContext();if(l.timespanOnly=null==r||r<0,l.timespanOnly){var h={subscriber:Object(o.a)(l),context:u,bufferTimeSpan:i};l.add(u.closeAction=s.schedule(M,i,h))}else{var d={subscriber:Object(o.a)(l),context:u},f={bufferTimeSpan:i,bufferCreationInterval:r,subscriber:Object(o.a)(l),scheduler:s};l.add(u.closeAction=s.schedule(E,i,d)),l.add(s.schedule(T,r,f))}return l}return Object(l.a)(n,[{key:"_next",value:function(e){for(var t,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)}},{key:"_error",value:function(e){this.contexts.length=0,Object(p.a)(Object(m.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){for(var e=this.contexts,t=this.destination;e.length>0;){var i=e.shift();t.next(i.buffer)}Object(p.a)(Object(m.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(M,n,{subscriber:this,context:e,bufferTimeSpan:n}))}}},{key:"openContext",value:function(){var e=new x;return this.contexts.push(e),e}},{key:"closeContext",value:function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}]),n}(g.a);function M(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function T(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,r=e.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(E,n,{subscriber:i,context:o})),this.schedule(e,t))}function E(e){e.subscriber.closeContext(e.context)}var P=n("quSY"),j=n("ZUHj"),A=n("l7GE");function I(e,t){return function(n){return n.lift(new D(e,t))}}var D=function(){function e(t,n){Object(c.a)(this,e),this.openings=t,this.closingSelector=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new R(e,this.openings,this.closingSelector))}}]),e}(),R=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var a;return Object(c.a)(this,n),(a=t.call(this,e)).closingSelector=r,a.contexts=[],a.add(Object(j.a)(Object(o.a)(a),i)),a}return Object(l.a)(n,[{key:"_next",value:function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)}},{key:"_error",value:function(e){for(var t=this.contexts;t.length>0;){var i=t.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,Object(p.a)(Object(m.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){for(var e=this.contexts;e.length>0;){var t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,Object(p.a)(Object(m.a)(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t){e?this.closeBuffer(e):this.openBuffer(t)}},{key:"notifyComplete",value:function(e){this.closeBuffer(e.context)}},{key:"openBuffer",value:function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(n){this._error(n)}}},{key:"closeBuffer",value:function(e){var t=this.contexts;if(t&&e){var n=e.subscription;this.destination.next(e.buffer),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}}},{key:"trySubscribe",value:function(e){var t=this.contexts,n=new P.a,i={buffer:[],subscription:n};t.push(i);var r=Object(j.a)(this,e,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))}}]),n}(A.a);function L(e){return function(t){return t.lift(new F(e))}}var F=function(){function e(t){Object(c.a)(this,e),this.closingSelector=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new N(e,this.closingSelector))}}]),e}(),N=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).closingSelector=i,r.subscribing=!1,r.openBuffer(),r}return Object(l.a)(n,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"_complete",value:function(){var e=this.buffer;e&&this.destination.next(e),Object(p.a)(Object(m.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{e=(0,this.closingSelector)()}catch(n){return this.error(n)}t=new P.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(u.c)(e,new u.a(this))),this.subscribing=!1}}]),n}(u.b),B=n("JIr8"),H=n("itXk");function z(e){return function(t){return t.lift(new H.a(e))}}var V=n("KQm4"),q=n("DH7j"),U=n("Cfvw");function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=null;return"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Object(q.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(U.a)([e].concat(Object(V.a)(t))),new H.a(i))}}var W=n("GyhO");function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.lift.call(W.a.apply(void 0,[e].concat(t)))}}var X=n("0EUg"),Y=n("bOdf");function Z(e,t){return Object(Y.a)((function(){return e}),t)}var Q=n("HrJb");function $(e){return function(t){return t.lift(new J(e))}}var J=function(){function e(t){Object(c.a)(this,e),this.durationSelector=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new ee(e,this.durationSelector))}}]),e}(),ee=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return Object(l.a)(n,[{key:"_next",value:function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(n){this.destination.error(n)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(u.c)(t,new u.a(this)))&&!n.closed&&this.add(this.durationSubscription=n)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var e=this.value,t=this.durationSubscription;t&&(this.durationSubscription=void 0,t.unsubscribe(),this.remove(t)),this.value=void 0,this.hasValue=!1,Object(p.a)(Object(m.a)(n.prototype),"_next",this).call(this,e)}}}]),n}(u.b),te=n("Kj3r"),ne=n("xbPD"),ie=n("3E0/"),re=n("HDdC");function oe(e,t){return t?function(n){return new ce(n,t).lift(new ae(e))}:function(t){return t.lift(new ae(e))}}var ae=function(){function e(t){Object(c.a)(this,e),this.delayDurationSelector=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.delayDurationSelector))}}]),e}(),se=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).delayDurationSelector=i,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return Object(l.a)(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(e),this.removeSubscription(r),this.tryComplete()}},{key:"notifyError",value:function(e,t){this._error(e)}},{key:"notifyComplete",value:function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}},{key:"_next",value:function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(i){this.destination.error(i)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}},{key:"tryDelay",value:function(e,t){var n=Object(j.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),n}(A.a),ce=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this)).source=e,r.subscriptionDelay=i,r}return Object(l.a)(n,[{key:"_subscribe",value:function(e){this.subscriptionDelay.subscribe(new le(e,this.source))}}]),n}(re.a),le=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this)).parent=e,r.source=i,r.sourceSubscribed=!1,r}return Object(l.a)(n,[{key:"_next",value:function(e){this.subscribeToSource()}},{key:"_error",value:function(e){this.unsubscribe(),this.parent.error(e)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),n}(g.a);function ue(){return function(e){return e.lift(new he)}}var he=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new de(e))}}]),e}(),de=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){return Object(c.a)(this,n),t.call(this,e)}return Object(l.a)(n,[{key:"_next",value:function(e){e.observe(this.destination)}}]),n}(g.a);function fe(e,t){return function(n){return n.lift(new pe(e,t))}}var pe=function(){function e(t,n){Object(c.a)(this,e),this.keySelector=t,this.flushes=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new me(e,this.keySelector,this.flushes))}}]),e}(),me=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var a;return Object(c.a)(this,n),(a=t.call(this,e)).keySelector=i,a.values=new Set,r&&a.add(Object(u.c)(r,new u.a(Object(o.a)(a)))),a}return Object(l.a)(n,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"_next",value:function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}},{key:"_useKeySelector",value:function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(i){return void n.error(i)}this._finalizeNext(t,e)}},{key:"_finalizeNext",value:function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))}}]),n}(u.b),ge=n("/uUt");function ve(e,t){return Object(ge.a)((function(n,i){return t?t(n[e],i[e]):n[e]===i[e]}))}var be=n("4I5i"),ye=n("pLZG"),_e=n("XDbj"),we=n("IzEk");function ke(e,t){if(e<0)throw new be.a;var n=arguments.length>=2;return function(i){return i.pipe(Object(ye.a)((function(t,n){return n===e})),Object(we.a)(1),n?Object(ne.a)(t):Object(_e.a)((function(){return new be.a})))}}var Ce=n("LRne");function Se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return Object(W.a)(e,Ce.a.apply(void 0,t))}}function xe(e,t){return function(n){return n.lift(new Oe(e,t,n))}}var Oe=function(){function e(t,n,i){Object(c.a)(this,e),this.predicate=t,this.thisArg=n,this.source=i}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Me(e,this.predicate,this.thisArg,this.source))}}]),e}(),Me=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,a){var s;return Object(c.a)(this,n),(s=t.call(this,e)).predicate=i,s.thisArg=r,s.source=a,s.index=0,s.thisArg=r||Object(o.a)(s),s}return Object(l.a)(n,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(g.a);function Te(){return function(e){return e.lift(new Ee)}}var Ee=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Pe(e))}}]),e}(),Pe=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var i;return Object(c.a)(this,n),(i=t.call(this,e)).hasCompleted=!1,i.hasSubscription=!1,i}return Object(l.a)(n,[{key:"_next",value:function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(u.c)(e,new u.a(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(u.b),je=n("lJxs");function Ae(e,t){return t?function(n){return n.pipe(Ae((function(n,i){return Object(U.a)(e(n,i)).pipe(Object(je.a)((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Ie(e))}}var Ie=function(){function e(t){Object(c.a)(this,e),this.project=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new De(e,this.project))}}]),e}(),De=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return Object(l.a)(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new u.a(this),n=this.destination;n.add(t);var i=Object(u.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(u.b);function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0;return t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new Le(e,t,n))}}var Le=function(){function e(t,n,i){Object(c.a)(this,e),this.project=t,this.concurrent=n,this.scheduler=i}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Fe(e,this.project,this.concurrent,this.scheduler))}}]),e}(),Fe=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,o){var a;return Object(c.a)(this,n),(a=t.call(this,e)).project=i,a.concurrent=r,a.scheduler=o,a.index=0,a.active=0,a.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(a.buffer=[]),a}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this.destination;if(t.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){t.next(e);try{var r=(0,this.project)(e,i);this.scheduler?this.destination.add(this.scheduler.schedule(n.dispatch,0,{subscriber:this,result:r,value:e,index:i})):this.subscribeToProjection(r,e,i)}catch(o){t.error(o)}}else this.buffer.push(e)}}},{key:"subscribeToProjection",value:function(e,t,n){this.active++,this.destination.add(Object(u.c)(e,new u.a(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this._next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(e){e.subscriber.subscribeToProjection(e.result,e.value,e.index)}}]),n}(u.b),Ne=n("nYR2");function Be(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new He(e,n,!1,t))}}var He=function(){function e(t,n,i,r){Object(c.a)(this,e),this.predicate=t,this.source=n,this.yieldIndex=i,this.thisArg=r}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new ze(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),e}(),ze=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,o,a){var s;return Object(c.a)(this,n),(s=t.call(this,e)).predicate=i,s.source=r,s.yieldIndex=o,s.thisArg=a,s.index=0,s}return Object(l.a)(n,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()}},{key:"_next",value:function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(r){this.destination.error(r)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),n}(g.a);function Ve(e,t){return function(n){return n.lift(new He(e,n,!0,t))}}var qe=n("SxV6"),Ue=n("OQgR");function Ge(){return function(e){return e.lift(new We)}}var We=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Ke(e))}}]),e}(),Ke=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(l.a)(n,[{key:"_next",value:function(e){}}]),n}(g.a);function Xe(){return function(e){return e.lift(new Ye)}}var Ye=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Ze(e))}}]),e}(),Ze=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){return Object(c.a)(this,n),t.call(this,e)}return Object(l.a)(n,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"_next",value:function(e){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(g.a),Qe=n("NJ9Y"),$e=n("CqXF"),Je=n("WMd4");function et(){return function(e){return e.lift(new tt)}}var tt=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new nt(e))}}]),e}(),nt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){return Object(c.a)(this,n),t.call(this,e)}return Object(l.a)(n,[{key:"_next",value:function(e){this.destination.next(Je.a.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next(Je.a.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next(Je.a.createComplete()),e.complete()}}]),n}(g.a),it=n("Kqap"),rt=n("BFxc"),ot=n("mCNh");function at(e,t){return arguments.length>=2?function(n){return Object(ot.a)(Object(it.a)(e,t),Object(rt.a)(1),Object(ne.a)(t))(n)}:function(t){return Object(ot.a)(Object(it.a)((function(t,n,i){return e(t,n,i+1)})),Object(rt.a)(1))(t)}}function st(e){return at("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var ct=n("VRyK");function lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.lift.call(ct.a.apply(void 0,[e].concat(t)))}}var ut=n("bHdf"),ht=n("5+tZ");function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?Object(ht.b)((function(){return e}),t,n):("number"==typeof t&&(n=t),Object(ht.b)((function(){return e}),n))}function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(i){return i.lift(new pt(e,t,n))}}var pt=function(){function e(t,n,i){Object(c.a)(this,e),this.accumulator=t,this.seed=n,this.concurrent=i}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new mt(e,this.accumulator,this.seed,this.concurrent))}}]),e}(),mt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,o){var a;return Object(c.a)(this,n),(a=t.call(this,e)).accumulator=i,a.acc=r,a.concurrent=o,a.hasValue=!1,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return Object(l.a)(n,[{key:"_next",value:function(e){if(this.active<this.concurrent){var t,n=this.index++,i=this.destination;try{t=(0,this.accumulator)(this.acc,e,n)}catch(r){return i.error(r)}this.active++,this._innerSub(t)}else this.buffer.push(e)}},{key:"_innerSub",value:function(e){var t=new u.a(this),n=this.destination;n.add(t);var i=Object(u.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(e){var t=this.destination;this.acc=e,this.hasValue=!0,t.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),n}(u.b);function gt(e){return at("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}var vt=n("oB13"),bt=n("pxpQ");function yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Object(q.a)(t[0])&&(t=t[0]),function(e){return e.lift(new _t(t))}}var _t=function(){function e(t){Object(c.a)(this,e),this.nextSources=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new wt(e,this.nextSources))}}]),e}(),wt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).destination=e,r.nextSources=i,r}return Object(l.a)(n,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(e){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var e=this.nextSources.shift();if(e){var t=new u.a(this),n=this.destination;n.add(t);var i=Object(u.c)(e,t);i!==t&&n.add(i)}else this.destination.complete()}}]),n}(u.b),kt=n("Zy1z"),Ct=n("F97/");function St(e,t){return function(n){return[Object(ye.a)(e,t)(n),Object(ye.a)(Object(Ct.a)(e,t))(n)]}}function xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.length;if(0===i)throw new Error("list of properties cannot be empty.");return function(e){return Object(je.a)(Ot(t,i))(e)}}function Ot(e,t){return function(n){for(var i=n,r=0;r<t;r++){var o=null!=i?i[e[r]]:void 0;if(void 0===o)return;i=o}return i}}var Mt=n("XNiG");function Tt(e){return e?Object(vt.a)((function(){return new Mt.b}),e):Object(vt.a)(new Mt.b)}var Et=n("2Vo4");function Pt(e){return function(t){return Object(vt.a)(new Et.a(e))(t)}}var jt=n("NHP+");function At(){return function(e){return Object(vt.a)(new jt.a)(e)}}var It=n("jtHE");function Dt(e,t,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new It.a(e,t,i);return function(e){return Object(vt.a)((function(){return o}),r)(e)}}var Rt=n("Nv8m");function Lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return 1===t.length&&Object(q.a)(t[0])&&(t=t[0]),e.lift.call(Rt.a.apply(void 0,[e].concat(Object(V.a)(t))))}}var Ft=n("EY2u");function Nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return 0===e?Object(Ft.b)():t.lift(new Bt(e<0?-1:e-1,t))}}var Bt=function(){function e(t,n){Object(c.a)(this,e),this.count=t,this.source=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Ht(e,this.count,this.source))}}]),e}(),Ht=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,e)).count=i,o.source=r,o}return Object(l.a)(n,[{key:"complete",value:function(){if(!this.isStopped){var e=this.source,t=this.count;if(0===t)return Object(p.a)(Object(m.a)(n.prototype),"complete",this).call(this);t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}]),n}(g.a);function zt(e){return function(t){return t.lift(new Vt(e))}}var Vt=function(){function e(t){Object(c.a)(this,e),this.notifier=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new qt(e,this.notifier,t))}}]),e}(),qt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,e)).notifier=i,o.source=r,o.sourceIsBeingSubscribedTo=!0,o}return Object(l.a)(n,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return Object(p.a)(Object(m.a)(n.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return Object(p.a)(Object(m.a)(n.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._unsubscribe;return this._unsubscribe=null,Object(p.a)(Object(m.a)(n.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=e,this}},{key:"subscribeToRetries",value:function(){var e;this.notifications=new Mt.b;try{e=(0,this.notifier)(this.notifications)}catch(t){return Object(p.a)(Object(m.a)(n.prototype),"complete",this).call(this)}this.retries=e,this.retriesSubscription=Object(u.c)(e,new u.a(this))}}]),n}(u.b);function Ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new Gt(e,t))}}var Gt=function(){function e(t,n){Object(c.a)(this,e),this.count=t,this.source=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Wt(e,this.count,this.source))}}]),e}(),Wt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,e)).count=i,o.source=r,o}return Object(l.a)(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.source,i=this.count;if(0===i)return Object(p.a)(Object(m.a)(n.prototype),"error",this).call(this,e);i>-1&&(this.count=i-1),t.subscribe(this._unsubscribeAndRecycle())}}}]),n}(g.a);function Kt(e){return function(t){return t.lift(new Xt(e,t))}}var Xt=function(){function e(t,n){Object(c.a)(this,e),this.notifier=t,this.source=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Yt(e,this.notifier,this.source))}}]),e}(),Yt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,e)).notifier=i,o.source=r,o}return Object(l.a)(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{t=new Mt.b;try{i=(0,this.notifier)(t)}catch(o){return Object(p.a)(Object(m.a)(n.prototype),"error",this).call(this,o)}r=Object(u.c)(i,new u.a(this))}this._unsubscribeAndRecycle(),this.errors=t,this.retries=i,this.retriesSubscription=r,t.next(e)}}},{key:"_unsubscribe",value:function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}]),n}(u.b),Zt=n("x+ZX");function Qt(e){return function(t){return t.lift(new $t(e))}}var $t=function(){function e(t){Object(c.a)(this,e),this.notifier=t}return Object(l.a)(e,[{key:"call",value:function(e,t){var n=new Jt(e),i=t.subscribe(n);return i.add(Object(u.c)(this.notifier,new u.a(n))),i}}]),e}(),Jt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.apply(this,arguments)).hasValue=!1,e}return Object(l.a)(n,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),n}(u.b);function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.a;return function(n){return n.lift(new tn(e,t))}}var tn=function(){function e(t,n){Object(c.a)(this,e),this.period=t,this.scheduler=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new nn(e,this.period,this.scheduler))}}]),e}(),nn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var a;return Object(c.a)(this,n),(a=t.call(this,e)).period=i,a.scheduler=r,a.hasValue=!1,a.add(r.schedule(rn,i,{subscriber:Object(o.a)(a),period:i})),a}return Object(l.a)(n,[{key:"_next",value:function(e){this.lastValue=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),n}(g.a);function rn(e){var t=e.period;e.subscriber.notifyNext(),this.schedule(e,t)}function on(e,t){return function(n){return n.lift(new an(e,t))}}var an=function(){function e(t,n){Object(c.a)(this,e),this.compareTo=t,this.comparator=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new sn(e,this.compareTo,this.comparator))}}]),e}(),sn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var a;return Object(c.a)(this,n),(a=t.call(this,e)).compareTo=i,a.comparator=r,a._a=[],a._b=[],a._oneComplete=!1,a.destination.add(i.subscribe(new cn(e,Object(o.a)(a)))),a}return Object(l.a)(n,[{key:"_next",value:function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),r=t.shift(),o=!1;try{o=n?n(i,r):i===r}catch(a){this.destination.error(a)}o||this.emit(!1)}}},{key:"emit",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"nextB",value:function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),n}(g.a),cn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).parent=i,r}return Object(l.a)(n,[{key:"_next",value:function(e){this.parent.nextB(e)}},{key:"_error",value:function(e){this.parent.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),n}(g.a),ln=n("w1tV"),un=n("UXun"),hn=n("sVev");function dn(e){return function(t){return t.lift(new fn(e,t))}}var fn=function(){function e(t,n){Object(c.a)(this,e),this.predicate=t,this.source=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new pn(e,this.predicate,this.source))}}]),e}(),pn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,e)).predicate=i,o.source=r,o.seenValue=!1,o.index=0,o}return Object(l.a)(n,[{key:"applySingleValue",value:function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}},{key:"_next",value:function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}},{key:"tryNext",value:function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}},{key:"_complete",value:function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new hn.a)}}]),n}(g.a),mn=n("zP0r");function gn(e){return function(t){return t.lift(new vn(e))}}var vn=function(){function e(t){if(Object(c.a)(this,e),this._skipCount=t,this._skipCount<0)throw new be.a}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(0===this._skipCount?new g.a(e):new bn(e,this._skipCount))}}]),e}(),bn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e))._skipCount=i,r._count=0,r._ring=new Array(i),r}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,r=this._ring,o=r[i];r[i]=e,this.destination.next(o)}}}]),n}(g.a);function yn(e){return function(t){return t.lift(new _n(e))}}var _n=function(){function e(t){Object(c.a)(this,e),this.notifier=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new wn(e,this.notifier))}}]),e}(),wn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;Object(c.a)(this,n),(r=t.call(this,e)).hasValue=!1;var a=new u.a(Object(o.a)(r));r.add(a),r.innerSubscription=a;var s=Object(u.c)(i,a);return s!==a&&(r.add(s),r.innerSubscription=s),r}return Object(l.a)(n,[{key:"_next",value:function(e){this.hasValue&&Object(p.a)(Object(m.a)(n.prototype),"_next",this).call(this,e)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),n}(u.b);function kn(e){return function(t){return t.lift(new Cn(e))}}var Cn=function(){function e(t){Object(c.a)(this,e),this.predicate=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Sn(e,this.predicate))}}]),e}(),Sn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).predicate=i,r.skipping=!0,r.index=0,r}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}},{key:"tryCallPredicate",value:function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(n){this.destination.error(n)}}}]),n}(g.a),xn=n("JX91"),On=n("O4y0");function Mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Tn(e,t))}}var Tn=function(){function e(t,n){Object(c.a)(this,e),this.scheduler=t,this.delay=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return new On.a(t,this.delay,this.scheduler).subscribe(e)}}]),e}(),En=n("eIep"),Pn=n("SpAZ");function jn(){return Object(En.a)(Pn.a)}function An(e,t){return t?Object(En.a)((function(){return e}),t):Object(En.a)((function(){return e}))}var In=n("1G5W"),Dn=n("GJmQ"),Rn=n("vkgz"),Ln=n("yuhW");function Fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ln.a;return function(i){return i.lift(new Nn(e,t,n.leading,n.trailing))}}var Nn=function(){function e(t,n,i,r){Object(c.a)(this,e),this.duration=t,this.scheduler=n,this.leading=i,this.trailing=r}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Bn(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),Bn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,o,a){var s;return Object(c.a)(this,n),(s=t.call(this,e)).duration=i,s.scheduler=r,s.leading=o,s.trailing=a,s._hasTrailingValue=!1,s._trailingValue=null,s}return Object(l.a)(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Hn,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}]),n}(g.a);function Hn(e){e.subscriber.clearThrottle()}var zn=n("4hIw"),Vn=n("Y6u4"),qn=n("mlxB");function Un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.a;return function(i){var r=Object(qn.a)(e),o=r?+e-n.now():Math.abs(e);return i.lift(new Gn(o,r,t,n))}}var Gn=function(){function e(t,n,i,r){Object(c.a)(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=i,this.scheduler=r}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Wn(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),Wn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,o,a){var s;return Object(c.a)(this,n),(s=t.call(this,e)).absoluteTimeout=i,s.waitFor=r,s.withObservable=o,s.scheduler=a,s.scheduleTimeout(),s}return Object(l.a)(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),Object(p.a)(Object(m.a)(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(u.c)(t,new u.a(e)))}}]),n}(u.b),Kn=n("z6cu");function Xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.a;return Un(e,Object(Kn.a)(new Vn.a),t)}var Yn=n("r0WS");function Zn(e,t,n){return 0===n?[t]:(e.push(t),e)}function Qn(){return at(Zn,[])}function $n(e){return function(t){return t.lift(new Jn(e))}}var Jn=function(){function e(t){Object(c.a)(this,e),this.windowBoundaries=t}return Object(l.a)(e,[{key:"call",value:function(e,t){var n=new ei(e),i=t.subscribe(n);return i.closed||n.add(Object(u.c)(this.windowBoundaries,new u.a(n))),i}}]),e}(),ei=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var i;return Object(c.a)(this,n),(i=t.call(this,e)).window=new Mt.b,e.next(i.window),i}return Object(l.a)(n,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(e){this.window.next(e)}},{key:"_error",value:function(e){this.window.error(e),this.destination.error(e)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new Mt.b;t.next(n)}}]),n}(u.b);function ti(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new ni(e,t))}}var ni=function(){function e(t,n){Object(c.a)(this,e),this.windowSize=t,this.startWindowEvery=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new ii(e,this.windowSize,this.startWindowEvery))}}]),e}(),ii=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,e)).destination=e,o.windowSize=i,o.startWindowEvery=r,o.windows=[new Mt.b],o.count=0,e.next(o.windows[0]),o}return Object(l.a)(n,[{key:"_next",value:function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,a=0;a<o&&!this.closed;a++)r[a].next(e);var s=this.count-i+1;if(s>=0&&s%t==0&&!this.closed&&r.shift().complete(),++this.count%t==0&&!this.closed){var c=new Mt.b;r.push(c),n.next(c)}}},{key:"_error",value:function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),n}(g.a),ri=n("Y7HM");function oi(e){var t=w.a,n=null,i=Number.POSITIVE_INFINITY;return Object(k.a)(arguments[3])&&(t=arguments[3]),Object(k.a)(arguments[2])?t=arguments[2]:Object(ri.a)(arguments[2])&&(i=Number(arguments[2])),Object(k.a)(arguments[1])?t=arguments[1]:Object(ri.a)(arguments[1])&&(n=Number(arguments[1])),function(r){return r.lift(new ai(e,n,i,t))}}var ai=function(){function e(t,n,i,r){Object(c.a)(this,e),this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=i,this.scheduler=r}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new ci(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),e}(),si=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.apply(this,arguments))._numberOfNextedValues=0,e}return Object(l.a)(n,[{key:"next",value:function(e){this._numberOfNextedValues++,Object(p.a)(Object(m.a)(n.prototype),"next",this).call(this,e)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),n}(Mt.b),ci=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r,a,s){var l;Object(c.a)(this,n),(l=t.call(this,e)).destination=e,l.windowTimeSpan=i,l.windowCreationInterval=r,l.maxWindowSize=a,l.scheduler=s,l.windows=[];var u=l.openWindow();if(null!==r&&r>=0){var h={subscriber:Object(o.a)(l),window:u,context:null},d={windowTimeSpan:i,windowCreationInterval:r,subscriber:Object(o.a)(l),scheduler:s};l.add(s.schedule(hi,i,h)),l.add(s.schedule(ui,r,d))}else{var f={subscriber:Object(o.a)(l),window:u,windowTimeSpan:i};l.add(s.schedule(li,i,f))}return l}return Object(l.a)(n,[{key:"_next",value:function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var r=t[i];r.closed||(r.next(e),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}}},{key:"_error",value:function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var e=new si;return this.windows.push(e),this.destination.next(e),e}},{key:"closeWindow",value:function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)}}]),n}(g.a);function li(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function ui(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,r=e.windowCreationInterval,o=n.openWindow(),a=this,s={action:a,subscription:null};s.subscription=i.schedule(hi,t,{subscriber:n,window:o,context:s}),a.add(s.subscription),a.schedule(e,r)}function hi(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function di(e,t){return function(n){return n.lift(new fi(e,t))}}var fi=function(){function e(t,n){Object(c.a)(this,e),this.openings=t,this.closingSelector=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new pi(e,this.openings,this.closingSelector))}}]),e}(),pi=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var a;return Object(c.a)(this,n),(a=t.call(this,e)).openings=i,a.closingSelector=r,a.contexts=[],a.add(a.openSubscription=Object(j.a)(Object(o.a)(a),i,i)),a}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)}},{key:"_error",value:function(e){var t=this.contexts;if(this.contexts=null,t)for(var i=t.length,r=-1;++r<i;){var o=t[r];o.window.error(e),o.subscription.unsubscribe()}Object(p.a)(Object(m.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,i=-1;++i<t;){var r=e[i];r.window.complete(),r.subscription.unsubscribe()}Object(p.a)(Object(m.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}}},{key:"notifyNext",value:function(e,t,n,i,r){if(e===this.openings){var o;try{o=(0,this.closingSelector)(t)}catch(u){return this.error(u)}var a=new Mt.b,s=new P.a,c={window:a,subscription:s};this.contexts.push(c);var l=Object(j.a)(this,o,c);l.closed?this.closeWindow(this.contexts.length-1):(l.context=c,s.add(l)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))}},{key:"notifyError",value:function(e){this.error(e)}},{key:"notifyComplete",value:function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))}},{key:"closeWindow",value:function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,r=n.subscription;t.splice(e,1),i.complete(),r.unsubscribe()}}}]),n}(A.a);function mi(e){return function(t){return t.lift(new gi(e))}}var gi=function(){function e(t){Object(c.a)(this,e),this.closingSelector=t}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new vi(e,this.closingSelector))}}]),e}(),vi=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this,e)).destination=e,r.closingSelector=i,r.openWindow(),r}return Object(l.a)(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.openWindow(r)}},{key:"notifyError",value:function(e){this._error(e)}},{key:"notifyComplete",value:function(e){this.openWindow(e)}},{key:"_next",value:function(e){this.window.next(e)}},{key:"_error",value:function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,i=this.window=new Mt.b;this.destination.next(i);try{var r=this.closingSelector;n=r()}catch(o){return this.destination.error(o),void this.window.error(o)}this.add(this.closingNotification=Object(j.a)(this,n))}}]),n}(A.a);function bi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new yi(t,n))}}var yi=function(){function e(t,n){Object(c.a)(this,e),this.observables=t,this.project=n}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new _i(e,this.observables,this.project))}}]),e}(),_i=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var a;Object(c.a)(this,n),(a=t.call(this,e)).observables=i,a.project=r,a.toRespond=[];var s=i.length;a.values=new Array(s);for(var l=0;l<s;l++)a.toRespond.push(l);for(var u=0;u<s;u++){var h=i[u];a.add(Object(j.a)(Object(o.a)(a),h,void 0,u))}return a}return Object(l.a)(n,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(Object(V.a)(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(A.a),wi=n("1uah");function ki(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.lift.call(wi.b.apply(void 0,[e].concat(t)))}}function Ci(e){return function(t){return t.lift(new wi.a(e))}}},kiQV:function(e){e.exports=JSON.parse('{"name":"gns3-web-ui","version":"2020.4.0-beta.1","author":{"name":"GNS3 Technology Inc.","email":"developers@gns3.com"},"description":"Graphical Network Simulator-3 is a network software emulator.","license":"GPLv3","main":"main.js","repository":{"type":"git","url":"https://github.com/GNS3/gns3-web-ui.git"},"scripts":{"ng":"ng","start":"ng serve","startforelectron":"ng serve --configuration=electronDev","build":"ng build","buildforelectron":"ng build --configuration=electronProd","buildforgithub":"ng build --configuration=githubProd","test":"ng test","lint":"ng lint","e2e":"ng e2e","electron":"electron .","electrondev":"concurrently -k \\"yarn startforelectron\\" \\"electron . -e dev\\"","distlinux":"yarn buildforelectron && electron-builder --linux --x64","distwin":"yarn buildforelectron && electron-builder --win --x64","distmac":"yarn buildforelectron && electron-builder --mac --x64","release":"build","coverage":"ng test --watch=false --code-coverage","prettier:base":"prettier","prettier:check":"yarn prettier:base -- --list-different \\"src/**/*.{ts,js,html,scss}\\"","prettier:write":"yarn prettier:base -- --write \\"src/**/*.{ts,js,html,scss}\\"","generate-licenses-file":"yarn license-checker --production --csv --out licenses.csv","prebuildforelectron":"node set-variables-in-env.js --set src/environments/environment.electron.prod.ts","postbuildforelectron":"node set-variables-in-env.js --unset src/environments/environment.electron.prod.ts","snyk-protect":"snyk protect","prepare":"yarn run snyk-protect"},"private":true,"dependencies":{"@angular/animations":"^10.1.2","@angular/cdk":"^10.2.2","@angular/common":"^10.1.2","@angular/compiler":"^10.1.2","@angular/core":"^10.1.2","@angular/forms":"^10.1.2","@angular/http":"^7.2.16","@angular/material":"^10.2.2","@angular/platform-browser":"^10.1.2","@angular/platform-browser-dynamic":"^10.1.2","@angular/router":"^10.1.2","@sentry/browser":"^5.24.2","@types/jest":"^26.0.14","@types/mocha":"^8.0.3","angular-draggable-droppable":"^4.5.4","angular-persistence":"^1.0.1","angular-resizable-element":"^3.3.3","angular2-draggable":"^2.3.2","angular2-hotkeys":"^2.2.0","angular2-indexeddb":"^1.2.3","bootstrap":"4.5.2","command-exists":"^1.2.9","core-js":"^3.6.5","css-tree":"^1.0.0-alpha.36","d3-ng2-service":"^2.1.0","file-saver":"^2.0.2","ini":"^1.3.5","material-design-icons":"^3.0.1","ng-circle-progress":"^1.5.1","ng2-file-upload":"^1.3.0","ngx-childprocess":"^0.0.6","ngx-device-detector":"^2.0.0","ngx-electron":"^2.1.1","node-fetch":"^2.6.1","notosans-fontface":"1.2.2","rxjs":"^6.6.3","rxjs-compat":"^6.6.3","save-html-as-image":"^1.3.4","save-svg-as-png":"^1.4.14","snyk":"^1.399.1","svg-crowbar":"^0.6.1","tree-kill":"^1.2.1","tslib":"^2.0.1","typeface-roboto":"^0.0.75","xterm":"^4.9.0","xterm-addon-attach":"^0.6.0","xterm-addon-fit":"^0.4.0","yargs":"^16.0.3","zone.js":"~0.11.1"},"devDependencies":{"@angular-devkit/build-angular":"~0.1001.2","@angular/cli":"^10.1.2","@angular/compiler-cli":"^10.1.2","@angular/language-service":"^10.1.2","@sentry/cli":"^1.57.0","@sentry/electron":"^2.0.1","@types/jasmine":"^3.5.14","@types/jasminewd2":"^2.0.8","@types/node":"14.11.2","codelyzer":"^6.0.0","electron":"^10.1.2","electron-builder":"22.8.1","file-loader":"^6.1.0","jasmine-core":"^3.6.0","jasmine-spec-reporter":"^6.0.0","jquery":"^3.5.1","karma":"^5.2.2","karma-chrome-launcher":"^3.1.0","karma-cli":"^2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"^4.0.1","karma-jasmine-html-reporter":"^1.5.4","license-checker":"^25.0.1","node-sass":"^4.14.1","popper.js":"^1.16.1","prettier":"^2.1.2","protractor":"^7.0.0","replace":"^1.2.0","rxjs-tslint":"^0.1.8","ts-mockito":"^2.6.1","ts-node":"~9.0.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.3","webpack":"^4.44.2"},"greenkeeper":{"ignore":["typescript"]},"snyk":true}')},klIg:function(e,t,n){var i=n("P3uw").consumeNumber,r=n("vd7W").TYPE.Dimension;e.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart,t=i(this.scanner.source,e);return this.eat(r),{type:"Dimension",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t),unit:this.scanner.source.substring(t,this.scanner.tokenStart)}},generate:function(e){this.chunk(e.value),this.chunk(e.unit)}}},ksOG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("JM0U");i.Observable.prototype.auditTime=r.auditTime},l3KV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("CuWV");i.Observable.prototype.publishLast=r.publishLast},l4jP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.share=function(){return i.share()(this)}},l53z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.zipAll=function(e){return i.zipAll(e)(this)}},l5mm:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("HDdC"),r=n("D0XW"),o=n("Y7HM");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return(!Object(o.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=r.a),new i.a((function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n}))}function s(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("1OyB"),r=n("vuIU"),o=n("Ji7U"),a=n("LK+K"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("JX7q"),r=n("Ji7U"),o=n("LK+K"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function l(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new u(e,t))}}var u=function(){function e(t,n){Object(a.a)(this,e),this.project=t,this.thisArg=n}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.project,this.thisArg))}}]),e}(),h=function(e){Object(r.a)(n,e);var t=Object(o.a)(n);function n(e,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,e)).project=r,s.count=0,s.thisArg=o||Object(i.a)(s),s}return Object(s.a)(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(c.a)},lK5c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.defer=i.defer},lXds:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.delayWhen=function(e,t){return i.delayWhen(e,t)(this)}},lXnc:function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.Nth(!1))}}},lYZj:function(e,t,n){"use strict";n.r(t),n.d(t,"TestScheduler",(function(){return v}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=n("HDdC"),u=n("WMd4"),h=n("quSY"),d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Object(i.a)(this,e),this.subscribedFrame=t,this.unsubscribedFrame=n},f=(n("Of7M"),function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this,(function(e){var t=this,n=t.logSubscribedFrame(),i=new h.a;return i.add(new h.a((function(){t.logUnsubscribedFrame(n)}))),t.scheduleMessages(e),i}))).messages=e,o.subscriptions=[],o.scheduler=r,o}return Object(r.a)(n,[{key:"scheduleMessages",value:function(e){for(var t=this.messages.length,n=0;n<t;n++){var i=this.messages[n];e.add(this.scheduler.schedule((function(e){e.message.notification.observe(e.subscriber)}),i.frame,{message:i,subscriber:e}))}}}]),n}(l.a)),p=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this)).messages=e,o.subscriptions=[],o.scheduler=r,o}return Object(r.a)(n,[{key:"_subscribe",value:function(e){var t=this,i=t.logSubscribedFrame(),r=new h.a;return r.add(new h.a((function(){t.logUnsubscribedFrame(i)}))),r.add(Object(o.a)(Object(a.a)(n.prototype),"_subscribe",this).call(this,e)),r}},{key:"setup",value:function(){for(var e=this,t=e.messages.length,n=0;n<t;n++)!function(){var t=e.messages[n];e.scheduler.schedule((function(){t.notification.observe(e)}),t.frame)}()}}]),n}(n("XNiG").b),m=n("iKkX"),g=n("IjjT"),v=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this,m.a,750)).assertDeepEqual=e,r.hotObservables=[],r.coldObservables=[],r.flushTests=[],r.runMode=!1,r}return Object(r.a)(n,[{key:"createTime",value:function(e){var t=e.indexOf("|");if(-1===t)throw new Error('marble diagram for time should have a completion marker "|"');return t*n.frameTimeFactor}},{key:"createColdObservable",value:function(e,t,i){if(-1!==e.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==e.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var r=n.parseMarbles(e,t,i,void 0,this.runMode),o=new f(r,this);return this.coldObservables.push(o),o}},{key:"createHotObservable",value:function(e,t,i){if(-1!==e.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var r=n.parseMarbles(e,t,i,void 0,this.runMode),o=new p(r,this);return this.hotObservables.push(o),o}},{key:"materializeInnerObservable",value:function(e,t){var n=this,i=[];return e.subscribe((function(e){i.push({frame:n.frame-t,notification:u.a.createNext(e)})}),(function(e){i.push({frame:n.frame-t,notification:u.a.createError(e)})}),(function(){i.push({frame:n.frame-t,notification:u.a.createComplete()})})),i}},{key:"expectObservable",value:function(e){var t,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=[],a={actual:o,ready:!1},s=n.parseMarblesAsSubscriptions(r,this.runMode),c=s.subscribedFrame===Number.POSITIVE_INFINITY?0:s.subscribedFrame,h=s.unsubscribedFrame;this.schedule((function(){t=e.subscribe((function(e){var t=e;e instanceof l.a&&(t=i.materializeInnerObservable(t,i.frame)),o.push({frame:i.frame,notification:u.a.createNext(t)})}),(function(e){o.push({frame:i.frame,notification:u.a.createError(e)})}),(function(){o.push({frame:i.frame,notification:u.a.createComplete()})}))}),c),h!==Number.POSITIVE_INFINITY&&this.schedule((function(){return t.unsubscribe()}),h),this.flushTests.push(a);var d=this.runMode;return{toBe:function(e,t,i){a.ready=!0,a.expected=n.parseMarbles(e,t,i,!0,d)}}}},{key:"expectSubscriptions",value:function(e){var t={actual:e,ready:!1};this.flushTests.push(t);var i=this.runMode;return{toBe:function(e){var r="string"==typeof e?[e]:e;t.ready=!0,t.expected=r.map((function(e){return n.parseMarblesAsSubscriptions(e,i)}))}}}},{key:"flush",value:function(){for(var e=this,t=this.hotObservables;t.length>0;)t.shift().setup();Object(o.a)(Object(a.a)(n.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter((function(t){return!t.ready||(e.assertDeepEqual(t.actual,t.expected),!1)}))}},{key:"run",value:function(e){var t=n.frameTimeFactor,i=this.maxFrames;n.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,g.a.delegate=this;var r={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var o=e(r);return this.flush(),o}finally{n.frameTimeFactor=t,this.maxFrames=i,this.runMode=!1,g.a.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)return new d(Number.POSITIVE_INFINITY);for(var i=e.length,r=-1,o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,s=0,c=0;c<i;c++){var l=s,u=function(e){l+=e*t.frameTimeFactor},h=e[c];switch(h){case" ":n||u(1);break;case"-":u(1);break;case"(":r=s,u(1);break;case")":r=-1,u(1);break;case"^":if(o!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");o=r>-1?r:s,u(1);break;case"!":if(a!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");a=r>-1?r:s;break;default:if(n&&h.match(/^[0-9]$/)&&(0===c||" "===e[c-1])){var f=e.slice(c),p=f.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(p){c+=p[0].length-1;var m=parseFloat(p[1]),g=p[2],v=void 0;switch(g){case"ms":v=m;break;case"s":v=1e3*m;break;case"m":v=1e3*m*60}u(v/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+h+"'.")}s=l}return a<0?new d(o):new d(o,a)}},{key:"parseMarbles",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==e.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var a=e.length,s=[],c=o?e.replace(/^[ ]+/,"").indexOf("^"):e.indexOf("^"),l=-1===c?0:c*-this.frameTimeFactor,h="object"!=typeof t?function(e){return e}:function(e){return r&&t[e]instanceof f?t[e].messages:t[e]},d=-1,p=0;p<a;p++){var m=l,g=function(e){m+=e*i.frameTimeFactor},v=void 0,b=e[p];switch(b){case" ":o||g(1);break;case"-":g(1);break;case"(":d=l,g(1);break;case")":d=-1,g(1);break;case"|":v=u.a.createComplete(),g(1);break;case"^":g(1);break;case"#":v=u.a.createError(n||"error"),g(1);break;default:if(o&&b.match(/^[0-9]$/)&&(0===p||" "===e[p-1])){var y=e.slice(p),_=y.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_){p+=_[0].length-1;var w=parseFloat(_[1]),k=_[2],C=void 0;switch(k){case"ms":C=w;break;case"s":C=1e3*w;break;case"m":C=1e3*w*60}g(C/this.frameTimeFactor);break}}v=u.a.createNext(h(b)),g(1)}v&&s.push({frame:d>-1?d:l,notification:v}),l=m}return s}}]),n}(m.b)},laIk:function(e,t,n){"use strict";n.r(t);var i=n("19/K");n.d(t,"ajax",(function(){return i.a}));var r=n("Sj+y");n.d(t,"AjaxResponse",(function(){return r.c})),n.d(t,"AjaxError",(function(){return r.a})),n.d(t,"AjaxTimeoutError",(function(){return r.e}))},lcII:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("wxn8");function r(e){return new i.a(e)}},m1gp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.zip=i.zip},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("SpAZ");function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(t)}function o(e){return 0===e.length?i.a:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}},mK1g:function(e,t,n){var i=n("CwTu").SyntaxReferenceError,r=n("CwTu").MatchError,o=n("t1UP"),a=n("CJ5M"),s=n("tZmI"),c=n("vI5D"),l=n("Fm6d"),u=n("Du80"),h=n("KcB0").buildMatchGraph,d=n("QKsE").matchAsTree,f=n("/+5V"),p=n("ofj6"),m=n("Y0sX").getStructureFromConfig,g=h("inherit | initial | unset"),v=h("inherit | initial | unset | <-ms-legacy-expression>");function b(e,t,n){var i={};for(var r in e)e[r].syntax&&(i[r]=n?e[r].syntax:c(e[r].syntax,{compact:t}));return i}function y(e,t,n){return{matched:e,iterations:n,error:t,getTrace:f.getTrace,isType:f.isType,isProperty:f.isProperty,isKeyword:f.isKeyword}}function _(e,t,n,i){var o,a=u(n,e.syntax);return function(e){for(var t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(a)?y(null,new Error("Matching for a tree with var() is not supported")):(i&&(o=d(a,e.valueCommonSyntax,e)),i&&o.match||(o=d(a,t.match,e)).match?y(o.match,null,o.iterations):y(null,new r(o.reason,t.syntax,n,o),o.iterations))}var w=function(e,t,n){if(this.valueCommonSyntax=g,this.syntax=t,this.generic=!1,this.atrules={},this.properties={},this.types={},this.structure=n||m(e),e){if(e.types)for(var i in e.types)this.addType_(i,e.types[i]);if(e.generic)for(var i in this.generic=!0,a)this.addType_(i,a[i]);if(e.atrules)for(var i in e.atrules)this.addAtrule_(i,e.atrules[i]);if(e.properties)for(var i in e.properties)this.addProperty_(i,e.properties[i])}};w.prototype={structure:{},checkStructure:function(e){function t(e,t){i.push({node:e,message:t})}var n=this.structure,i=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!i.length&&i},createDescriptor:function(e,t,n){var i={type:t,name:n},r={type:t,name:n,syntax:null,match:null};return"function"==typeof e?r.match=h(e,i):("string"==typeof e?Object.defineProperty(r,"syntax",{get:function(){return Object.defineProperty(r,"syntax",{value:s(e)}),r.syntax}}):r.syntax=e,Object.defineProperty(r,"match",{get:function(){return Object.defineProperty(r,"match",{value:h(r.syntax,i)}),r.match}})),r},addAtrule_:function(e,t){var n=this;this.atrules[e]={prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((function(e,i){return e[i]=n.createDescriptor(t.descriptors[i],"AtruleDescriptor",i),e}),{}):null}},addProperty_:function(e,t){this.properties[e]=this.createDescriptor(t,"Property",e)},addType_:function(e,t){this.types[e]=this.createDescriptor(t,"Type",e),t===a["-ms-legacy-expression"]&&(this.valueCommonSyntax=v)},matchAtrulePrelude:function(e,t){var n=o.keyword(e),r=n.vendor?this.getAtrulePrelude(n.name)||this.getAtrulePrelude(n.basename):this.getAtrulePrelude(n.name);return r?_(this,r,t,!0):y(null,n.basename in this.atrules?new Error("At-rule `"+e+"` should not contain a prelude"):new i("Unknown at-rule",e))},matchAtruleDescriptor:function(e,t,n){var r=o.keyword(e),a=o.keyword(t),s=r.vendor?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name];if(!s)return y(null,new i("Unknown at-rule",e));if(!s.descriptors)return y(null,new Error("At-rule `"+e+"` has no known descriptors"));var c=a.vendor?s.descriptors[a.name]||s.descriptors[a.basename]:s.descriptors[a.name];return c?_(this,c,n,!0):y(null,new i("Unknown at-rule descriptor",t))},matchDeclaration:function(e){return"Declaration"!==e.type?y(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)},matchProperty:function(e,t){var n=o.property(e);if(n.custom)return y(null,new Error("Lexer matching doesn't applicable for custom properties"));var r=n.vendor?this.getProperty(n.name)||this.getProperty(n.basename):this.getProperty(n.name);return r?_(this,r,t,!0):y(null,new i("Unknown property",e))},matchType:function(e,t){var n=this.getType(e);return n?_(this,n,t,!1):y(null,new i("Unknown type",e))},match:function(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),_(this,e,t,!1)):y(null,new i("Bad syntax"))},findValueFragments:function(e,t,n,i){return p.matchFragments(this,t,this.matchProperty(e,t),n,i)},findDeclarationValueFragments:function(e,t,n){return p.matchFragments(this,e.value,this.matchDeclaration(e),t,n)},findAllFragments:function(e,t,n){var i=[];return this.syntax.walk(e,{visit:"Declaration",enter:(function(e){i.push.apply(i,this.findDeclarationValueFragments(e,t,n))}).bind(this)}),i},getAtrulePrelude:function(e){return this.atrules.hasOwnProperty(e)?this.atrules[e].prelude:null},getAtruleDescriptor:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null},getProperty:function(e){return this.properties.hasOwnProperty(e)?this.properties[e]:null},getType:function(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function(){function e(i,r,o,a){if(o.hasOwnProperty(r))return o[r];o[r]=!1,null!==a.syntax&&l(a.syntax,(function(a){if("Type"===a.type||"Property"===a.type){var s="Type"===a.type?i.types:i.properties,c="Type"===a.type?t:n;s.hasOwnProperty(a.name)&&!e(i,a.name,c,s[a.name])||(o[r]=!0)}}),this)}var t={},n={};for(var i in this.types)e(this,i,t,this.types[i]);for(var i in this.properties)e(this,i,n,this.properties[i]);return t=Object.keys(t).filter((function(e){return t[e]})),n=Object.keys(n).filter((function(e){return n[e]})),t.length||n.length?{types:t,properties:n}:null},dump:function(e,t){return{generic:this.generic,types:b(this.types,!t,e),properties:b(this.properties,!t,e)}},toString:function(){return JSON.stringify(this.dump())}},e.exports=w},mQn8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.mergeScan=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),i.mergeScan(e,t,n)(this)}},mb2m:function(e,t,n){var i=n("vd7W").TYPE.Number;e.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(i)}},generate:function(e){this.chunk(e.value)}}},md7G:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return o}));var r=n("JX7q");function o(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?Object(r.a)(e):t}},mfsk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.defaultIfEmpty=function(e){return void 0===e&&(e=null),i.defaultIfEmpty(e)(this)}},mlxB:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",(function(){return i}))},mx47:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.merge=i.merge},"n/gj":function(e,t,n){e.exports={getNode:n("7GzS"),"-moz-element":n("P2RB"),element:n("P2RB"),expression:n("a3y9"),var:n("+Kd2")}},n2g9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("bd5T");i.Observable.prototype.delay=r.delay},n6Bp:function(e,t){e.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(e){this.scanner.skipSC();var t,n=this.scanner.tokenStart,i=n,r=null;return t=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),e&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),r=this.SelectorList(),this.needPositions&&(i=this.getLastListNode(r.children).loc.end.offset)):this.needPositions&&(i=t.loc.end.offset),{type:"Nth",loc:this.getLocation(n,i),nth:t,selector:r}},generate:function(e){this.node(e.nth),null!==e.selector&&(this.chunk(" of "),this.node(e.selector))}}},n6Nf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.windowToggle=function(e,t){return i.windowToggle(e,t)(this)}},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",(function(){return i}))},nYR2:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q"),c=n("quSY");function l(e){return function(t){return t.lift(new u(e))}}var u=function(){function e(t){Object(o.a)(this,e),this.callback=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.callback))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).add(new c.a(i)),r}return n}(s.a)},nZYK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.switchMap=function(e){return i.switchMap(e)(this)}},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},nueD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.isEmpty=function(){return i.isEmpty()(this)}},oB13:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("1OyB"),r=n("vuIU"),o=n("EQ5u");function a(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new s(i,t));var r=Object.create(n,o.b);return r.source=n,r.subjectFactory=i,r}}var s=function(){function e(t,n){Object(i.a)(this,e),this.subjectFactory=t,this.selector=n}return Object(r.a)(e,[{key:"call",value:function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r}}]),e}()},oKp4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("ZHpM");i.Observable.prototype.take=r.take},oXC5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.switchMapTo=function(e){return i.switchMapTo(e)(this)}},oYUb:function(e,t,n){e.exports={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:n("82qP"),atrule:n("6dTv"),pseudo:n("avj0"),node:n("585i")}},ob0Y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("QPu+");i.Observable.prototype.reduce=r.reduce},odkN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.letProto=function(e){return e(this)}},ofYe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("l53z");i.Observable.prototype.zipAll=r.zipAll},ofj6:function(e,t,n){var i=n("O36p");e.exports={matchFragments:function(e,t,n,r,o){var a=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===o){var c=function e(t){return"node"in t?t.node:e(t.match[0])}(s),l=function e(t){return"node"in t?t.node:e(t.match[t.match.length-1])}(s);e.syntax.walk(t,(function(e,t,n){if(e===c){var r=new i;do{if(r.appendData(t.data),t.data===l)break;t=t.next}while(null!==t);a.push({parent:n,nodes:r})}}))}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),a}}},"ojb+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.range=i.range},okVX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("pv6b");i.Observable.prototype.switch=r._switch,i.Observable.prototype._switch=r._switch},omlZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("r+37");i.Observable.prototype.takeUntil=r.takeUntil},ovWV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(i.concat.apply(void 0,[this].concat(e)))}},pLZG:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e,t){return function(n){return n.lift(new l(e,t))}}var l=function(){function e(t,n){Object(o.a)(this,e),this.predicate=t,this.thisArg=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return Object(a.a)(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(s.a)},pLzU:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Lhse"),r=function(e){return function(t){for(var n=e[i.a]();;){var r=void 0;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t}}},"pe+M":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("fUwU");i.Observable.prototype.skip=r.skip},pjAE:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},pv6b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t._switch=function(){return i.switchAll()(this)}},pxpQ:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return h}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q"),c=n("WMd4");function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new u(e,t))}}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(o.a)(this,e),this.scheduler=t,this.delay=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.scheduler,this.delay))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Object(o.a)(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return Object(a.a)(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new d(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(c.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(c.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(c.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){e.notification.observe(e.destination),this.unsubscribe()}}]),n}(s.a),d=function e(t,n){Object(o.a)(this,e),this.notification=t,this.destination=n}},q8iP:function(e,t,n){var i=n("XDwu");e.exports=function(e,t,n){var r=i("SyntaxError",e);return r.input=t,r.offset=n,r.rawMessage=e,r.message=r.rawMessage+"\n "+r.input+"\n--"+new Array((r.offset||r.input.length)+1).join("-")+"^",r}},q8yx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("XDL1");i.Observable.prototype.elementAt=r.elementAt},qCKp:function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",(function(){return i.a})),n.d(t,"ConnectableObservable",(function(){return r.a})),n.d(t,"GroupedObservable",(function(){return o.a})),n.d(t,"observable",(function(){return a.a})),n.d(t,"Subject",(function(){return s.b})),n.d(t,"BehaviorSubject",(function(){return c.a})),n.d(t,"ReplaySubject",(function(){return l.a})),n.d(t,"AsyncSubject",(function(){return u.a})),n.d(t,"asap",(function(){return h.a})),n.d(t,"asapScheduler",(function(){return h.b})),n.d(t,"async",(function(){return d.a})),n.d(t,"asyncScheduler",(function(){return d.b})),n.d(t,"queue",(function(){return f.a})),n.d(t,"queueScheduler",(function(){return f.b})),n.d(t,"animationFrame",(function(){return p.a})),n.d(t,"animationFrameScheduler",(function(){return p.b})),n.d(t,"VirtualTimeScheduler",(function(){return m.b})),n.d(t,"VirtualAction",(function(){return m.a})),n.d(t,"Scheduler",(function(){return g.a})),n.d(t,"Subscription",(function(){return v.a})),n.d(t,"Subscriber",(function(){return b.a})),n.d(t,"Notification",(function(){return y.a})),n.d(t,"NotificationKind",(function(){return y.b})),n.d(t,"pipe",(function(){return _.a})),n.d(t,"noop",(function(){return w.a})),n.d(t,"identity",(function(){return k.a})),n.d(t,"isObservable",(function(){return C.a})),n.d(t,"ArgumentOutOfRangeError",(function(){return S.a})),n.d(t,"EmptyError",(function(){return x.a})),n.d(t,"ObjectUnsubscribedError",(function(){return O.a})),n.d(t,"UnsubscriptionError",(function(){return M.a})),n.d(t,"TimeoutError",(function(){return T.a})),n.d(t,"bindCallback",(function(){return D})),n.d(t,"bindNodeCallback",(function(){return F})),n.d(t,"combineLatest",(function(){return z.b})),n.d(t,"concat",(function(){return V.a})),n.d(t,"defer",(function(){return q.a})),n.d(t,"empty",(function(){return U.b})),n.d(t,"forkJoin",(function(){return G.a})),n.d(t,"from",(function(){return W.a})),n.d(t,"fromEvent",(function(){return K.a})),n.d(t,"fromEventPattern",(function(){return Y})),n.d(t,"generate",(function(){return Z})),n.d(t,"iif",(function(){return $})),n.d(t,"interval",(function(){return J.a})),n.d(t,"merge",(function(){return ee.a})),n.d(t,"never",(function(){return ne})),n.d(t,"of",(function(){return ie.a})),n.d(t,"onErrorResumeNext",(function(){return re})),n.d(t,"pairs",(function(){return oe})),n.d(t,"partition",(function(){return ue})),n.d(t,"race",(function(){return he.a})),n.d(t,"range",(function(){return de.b})),n.d(t,"throwError",(function(){return fe.a})),n.d(t,"timer",(function(){return pe.a})),n.d(t,"using",(function(){return me})),n.d(t,"zip",(function(){return ge.b})),n.d(t,"scheduled",(function(){return ve.a})),n.d(t,"EMPTY",(function(){return U.a})),n.d(t,"NEVER",(function(){return te})),n.d(t,"config",(function(){return be.a}));var i=n("HDdC"),r=n("EQ5u"),o=n("OQgR"),a=n("kJWO"),s=n("XNiG"),c=n("2Vo4"),l=n("jtHE"),u=n("NHP+"),h=n("7Hc7"),d=n("D0XW"),f=n("qgXg"),p=n("eNwd"),m=n("iKkX"),g=n("Y/cZ"),v=n("quSY"),b=n("7o/Q"),y=n("WMd4"),_=n("mCNh"),w=n("KqfI"),k=n("SpAZ"),C=n("7+OI"),S=n("4I5i"),x=n("sVev"),O=n("9ppp"),M=n("pjAE"),T=n("Y6u4"),E=n("KQm4"),P=n("lJxs"),j=n("8Qeq"),A=n("DH7j"),I=n("z+Ro");function D(e,t,n){if(t){if(!Object(I.a)(t))return function(){return D(e,n).apply(void 0,arguments).pipe(Object(P.a)((function(e){return Object(A.a)(e)?t.apply(void 0,Object(E.a)(e)):t(e)})))};n=t}return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a,s=this,c={context:s,subject:a,callbackFunc:e,scheduler:n};return new i.a((function(t){if(n)return n.schedule(R,0,{args:r,subscriber:t,params:c});if(!a){a=new u.a;try{e.apply(s,[].concat(r,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.next(t.length<=1?t[0]:t),a.complete()}]))}catch(i){Object(j.a)(a)?a.error(i):console.warn(i)}}return a.subscribe(t)}))}}function R(e){var t=this,n=e.args,i=e.subscriber,r=e.params,o=r.callbackFunc,a=r.context,s=r.scheduler,c=r.subject;if(!c){c=r.subject=new u.a;try{o.apply(a,[].concat(Object(E.a)(n),[function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.add(s.schedule(L,0,{value:n.length<=1?n[0]:n,subject:c}))}]))}catch(l){c.error(l)}}this.add(c.subscribe(i))}function L(e){var t=e.subject;t.next(e.value),t.complete()}function F(e,t,n){if(t){if(!Object(I.a)(t))return function(){return F(e,n).apply(void 0,arguments).pipe(Object(P.a)((function(e){return Object(A.a)(e)?t.apply(void 0,Object(E.a)(e)):t(e)})))};n=t}return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a={subject:void 0,args:r,callbackFunc:e,scheduler:n,context:this};return new i.a((function(t){var i=a.context,o=a.subject;if(n)return n.schedule(N,0,{params:a,subscriber:t,context:i});if(!o){o=a.subject=new u.a;try{e.apply(i,[].concat(r,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.shift();i?o.error(i):(o.next(t.length<=1?t[0]:t),o.complete())}]))}catch(s){Object(j.a)(o)?o.error(s):console.warn(s)}}return o.subscribe(t)}))}}function N(e){var t=this,n=e.params,i=e.subscriber,r=e.context,o=n.callbackFunc,a=n.args,s=n.scheduler,c=n.subject;if(!c){c=n.subject=new u.a;try{o.apply(r,[].concat(Object(E.a)(a),[function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.shift();t.add(r?s.schedule(H,0,{err:r,subject:c}):s.schedule(B,0,{value:n.length<=1?n[0]:n,subject:c}))}]))}catch(l){this.add(s.schedule(H,0,{err:l,subject:c}))}}this.add(c.subscribe(i))}function B(e){var t=e.subject;t.next(e.value),t.complete()}function H(e){e.subject.error(e.err)}var z=n("itXk"),V=n("GyhO"),q=n("NXyV"),U=n("EY2u"),G=n("cp0P"),W=n("Cfvw"),K=n("xgIS"),X=n("n6bG");function Y(e,t,n){return n?Y(e,t).pipe(Object(P.a)((function(e){return Object(A.a)(e)?n.apply(void 0,Object(E.a)(e)):n(e)}))):new i.a((function(n){var i,r=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n.next(1===t.length?t[0]:t)};try{i=e(r)}catch(o){return void n.error(o)}if(Object(X.a)(t))return function(){return t(r,i)}}))}function Z(e,t,n,r,o){var a,s;return 1==arguments.length?(s=e.initialState,t=e.condition,n=e.iterate,a=e.resultSelector||k.a,o=e.scheduler):void 0===r||Object(I.a)(r)?(s=e,a=k.a,o=r):(s=e,a=r),new i.a((function(e){var i=s;if(o)return o.schedule(Q,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:i});for(;;){if(t){var r=void 0;try{r=t(i)}catch(l){return void e.error(l)}if(!r){e.complete();break}}var c=void 0;try{c=a(i)}catch(l){return void e.error(l)}if(e.next(c),e.closed)break;try{i=n(i)}catch(l){return void e.error(l)}}}))}function Q(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(o){return void t.error(o)}else e.needIterate=!0;if(n){var i;try{i=n(e.state)}catch(o){return void t.error(o)}if(!i)return void t.complete();if(t.closed)return}var r;try{r=e.resultSelector(e.state)}catch(o){return void t.error(o)}if(!t.closed&&(t.next(r),!t.closed))return this.schedule(e)}}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.a;return Object(q.a)((function(){return e()?t:n}))}var J=n("l5mm"),ee=n("VRyK"),te=new i.a(w.a);function ne(){return te}var ie=n("LRne");function re(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return U.a;var r=t[0],o=t.slice(1);return 1===t.length&&Object(A.a)(r)?re.apply(void 0,Object(E.a)(r)):new i.a((function(e){var t=function(){return e.add(re.apply(void 0,Object(E.a)(o)).subscribe(e))};return Object(W.a)(r).subscribe({next:function(t){e.next(t)},error:t,complete:t})}))}function oe(e,t){return new i.a(t?function(n){var i=Object.keys(e),r=new v.a;return r.add(t.schedule(ae,0,{keys:i,index:0,subscriber:n,subscription:r,obj:e})),r}:function(t){for(var n=Object.keys(e),i=0;i<n.length&&!t.closed;i++){var r=n[i];e.hasOwnProperty(r)&&t.next([r,e[r]])}t.complete()})}function ae(e){var t=e.keys,n=e.index,i=e.subscriber,r=e.subscription,o=e.obj;if(!i.closed)if(n<t.length){var a=t[n];i.next([a,o[a]]),r.add(this.schedule({keys:t,index:n+1,subscriber:i,subscription:r,obj:o}))}else i.complete()}var se=n("F97/"),ce=n("SeVD"),le=n("pLZG");function ue(e,t,n){return[Object(le.a)(t,n)(new i.a(Object(ce.a)(e))),Object(le.a)(Object(se.a)(t,n))(new i.a(Object(ce.a)(e)))]}var he=n("Nv8m"),de=n("NNCq"),fe=n("z6cu"),pe=n("PqYM");function me(e,t){return new i.a((function(n){var i,r;try{i=e()}catch(a){return void n.error(a)}try{r=t(i)}catch(a){return void n.error(a)}var o=(r?Object(W.a)(r):U.a).subscribe(n);return function(){o.unsubscribe(),i&&i.unsubscribe()}}))}var ge=n("1uah"),ve=n("7HRe"),be=n("2fFW")},qIMP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.pairwise=function(){return i.pairwise()(this)}},qgXg:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?Object(o.a)(Object(a.a)(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?Object(o.a)(Object(a.a)(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?Object(o.a)(Object(a.a)(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(n("3N8a").a),u=new(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return n}(n("IjjT").a))(l),h=u},quSY:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("1OyB"),r=n("vuIU"),o=n("DH7j"),a=n("XoHu"),s=n("n6bG"),c=n("pjAE"),l=function(){var e,t=function(){function e(t){Object(i.a)(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return Object(r.a)(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var h=0;h<n.length;++h)n[h].remove(this);if(Object(s.a)(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(m){t=m instanceof c.a?u(m.errors):[m]}}if(Object(o.a)(l))for(var d=-1,f=l.length;++d<f;){var p=l[d];if(Object(a.a)(p))try{p.unsubscribe()}catch(m){t=t||[],m instanceof c.a?t=t.concat(u(m.errors)):t.push(m)}}if(t)throw new c.a(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return t.EMPTY=((e=new t).closed=!0,e),t}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof c.a?t.errors:t)}),[])}},"r+37":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.takeUntil=function(e){return i.takeUntil(e)(this)}},r0WS:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n("1OyB"),r=n("D0XW"),o=n("lJxs");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.a;return Object(o.a)((function(t){return new s(t,e.now())}))}var s=function e(t,n){Object(i.a)(this,e),this.value=t,this.timestamp=n}},r1XK:function(e,t,n){var i=n("vd7W").TYPE.String;e.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(i)}},generate:function(e){this.chunk(e.value)}}},rSqW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("8LQU");i.Observable.prototype.subscribeOn=r.subscribeOn},rqY6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("zDpS");i.Observable.prototype.timeoutWith=r.timeoutWith},s4An:function(e,t,n){"use strict";function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return i}))},sNY3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.combineLatest=i.combineLatest},sQiz:function(e,t,n){var i=n("Cbry");function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,o;(o=(n=e).generatedLine)>(r=(t=this._last).generatedLine)||o==r&&n.generatedColumn>=t.generatedColumn||i.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=r},sRqT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("xwTN");i.Observable.prototype.flatMapTo=r.mergeMapTo,i.Observable.prototype.mergeMapTo=r.mergeMapTo},sVev:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},sjkp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("6mJ0");i.Observable.prototype.findIndex=r.findIndex},t0XI:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.onErrorResumeNext=i.onErrorResumeNext},t1UP:function(e,t){var n=Object.prototype.hasOwnProperty,i=Object.create(null),r=Object.create(null);function o(e,t){return e.length-(t=t||0)>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function a(e,t){if(e.length-(t=t||0)>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}e.exports={keyword:function(e){if(n.call(i,e))return i[e];var t=e.toLowerCase();if(n.call(i,t))return i[e]=i[t];var r=o(t,0),s=r?"":a(t,0);return i[e]=Object.freeze({basename:t.substr(s.length),name:t,vendor:s,prefix:s,custom:r})},property:function(e){if(n.call(r,e))return r[e];var t=e,i=e[0];"/"===i?i="/"===e[1]?"//":"/":"_"!==i&&"*"!==i&&"$"!==i&&"#"!==i&&"+"!==i&&"&"!==i&&(i="");var s=o(t,i.length);if(!s&&(t=t.toLowerCase(),n.call(r,t)))return r[e]=r[t];var c=s?"":a(t,i.length),l=t.substr(0,i.length+c.length);return r[e]=Object.freeze({basename:t.substr(l.length),name:t.substr(i.length),hack:i,vendor:c,prefix:l,custom:s})},isCustomProperty:o,vendorPrefix:a}},tK18:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Gqt4");function r(e){try{for(var t=e,n=[],i=0,r=0,a=" > ".length,s=void 0;t&&i++<5&&!("html"===(s=o(t))||i>1&&r+n.length*a+s.length>=80);)n.push(s),r+=s.length,t=t.parentNode;return n.reverse().join(" > ")}catch(c){return"<unknown>"}}function o(e){var t,n,r,o,a,s=e,c=[];if(!s||!s.tagName)return"";if(c.push(s.tagName.toLowerCase()),s.id&&c.push("#"+s.id),(t=s.className)&&Object(i.k)(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)c.push("."+n[a]);var l=["type","name","title","alt"];for(a=0;a<l.length;a++)(o=s.getAttribute(r=l[a]))&&c.push("["+r+'="'+o+'"]');return c.join("")}},tZmI:function(e,t,n){var i=n("eWth"),r=123,o=function(e){for(var t="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),n=0;n<128;n++)t[n]=(i=String.fromCharCode(n),/[a-zA-Z0-9\-]/.test(i)?1:0);var i;return t}(),a={" ":1,"&&":2,"||":3,"|":4};function s(e){return e.substringToPos(e.findWsEnd(e.pos))}function c(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n>=128||0===o[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function l(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function u(e){var t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function h(e){var t,n=null;return e.eat(r),t=l(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(n=l(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function d(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,t=e.charCode()===r?h(e):{min:1,max:0};break;case r:t=h(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,n):t}function f(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function p(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}for(t=Object.keys(t).sort((function(e,t){return a[e]-a[t]}));t.length>0;){for(var i=t.shift(),r=0,o=0;r<e.length;r++){var s=e[r];"Combinator"===s.type&&(s.value===i?(-1===o&&(o=r-1),e.splice(r,1),r--):(-1!==o&&r-o>1&&(e.splice(o,r-o,n(e.slice(o,r),i)),r=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,r-o,n(e.slice(o,r),i))}return i}function m(e){for(var t,n=[],i={},r=null,o=e.pos;t=g(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==r&&"Combinator"!==r.type||(e.pos=o,e.error("Unexpected combinator")),i[t.value]=!0):null!==r&&"Combinator"!==r.type&&(i[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),r=t,o=e.pos);return null!==r&&"Combinator"===r.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:p(n,i)||" ",disallowEmpty:!1,explicit:!1}}function g(e){var t=e.charCode();if(t<128&&1===o[t])return function(e){var t;return t=c(e),40===e.charCode()?(e.pos++,{type:"Function",name:t}):d(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return d(e,function(e){var t;return e.eat(91),t=m(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){var t;return e.eat(60),e.eat(39),t=c(e),e.eat(39),e.eat(62),d(e,{type:"Property",name:t})}(e):function(e){var t,n=null;return e.eat(60),t=c(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(s(e),n=function(e){var t=null,n=null,i=1;return e.eat(91),45===e.charCode()&&(e.peek(),i=-1),-1==i&&8734===e.charCode()?e.peek():t=i*Number(l(e)),s(e),e.eat(44),s(e),8734===e.charCode()?e.peek():(i=1,45===e.charCode()&&(e.peek(),i=-1),n=i*Number(l(e))),e.eat(93),null===t&&null===n?null:{type:"Range",min:t,max:n}}(e)),e.eat(62),d(e,{type:"Type",name:t,opts:n})}(e);case 124:return{type:"Combinator",value:e.substringToPos(124===e.nextCharCode()?e.pos+2:e.pos+1)};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return d(e,{type:"String",value:u(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:s(e)};case 64:return(t=e.nextCharCode())<128&&1===o[t]?(e.pos++,{type:"AtKeyword",name:c(e)}):f(e);case 42:case 43:case 63:case 35:case 33:break;case r:if((t=e.nextCharCode())<48||t>57)return f(e);break;default:return f(e)}}function v(e){var t=new i(e),n=m(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type&&(n=n.terms[0]),n}v("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),e.exports=v},"te+T":function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},tnsW:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("zx2A");function c(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(t){Object(o.a)(this,e),this.durationSelector=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.durationSelector))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return Object(a.a)(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=Object(s.c)(t,new s.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(s.b)},twQA:function(e,t){var n={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},i=Object.keys(n).reduce((function(e,t){return e[n[t]]=t,e}),{});e.exports={TYPE:n,NAME:i}},twrC:function(e,t,n){e.exports=n("errG")},u5kB:function(e,t,n){var i=n("KjDf"),r=n("1aLD"),o=n("8wsT"),a=n("O36p"),s=n("vd7W"),c=n("twQA"),l=n("P3uw").findWhiteSpaceStart,u=n("OohF"),h=function(){},d=c.TYPE,f=c.NAME,p=d.WhiteSpace,m=d.Ident,g=d.Function,v=d.Url,b=d.Hash,y=d.Percentage,_=d.Number;function w(e){return function(){return this[e]()}}e.exports=function(e){var t={scanner:new o,locationMap:new i,filename:"<unknown>",needPositions:!1,onParseError:h,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:u,createList:function(){return new a},createSingleNodeList:function(e){return(new a).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,t){var n=this.scanner.tokenIndex;try{return e.call(this)}catch(r){if(this.onParseErrorThrow)throw r;var i=t.call(this,n);return this.onParseErrorThrow=!0,this.onParseError(r,i),this.onParseErrorThrow=!1,i}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==p)return t}while(0!==t);return 0},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart,n=f[e]+" is expected";switch(e){case m:this.scanner.tokenType===g||this.scanner.tokenType===v?(t=this.scanner.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case b:this.scanner.isDelim(35)&&(this.scanner.next(),t++,n="Name is expected");break;case y:this.scanner.tokenType===_&&(t=this.scanner.tokenEnd,n="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===e&&(t+=1)}this.error(n,t)}this.scanner.next()},consume:function(e){var t=this.scanner.getTokenValue();return this.eat(e),t},consumeFunctionName:function(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(g),e},getLocation:function(e,t){return this.needPositions?this.locationMap.getLocationRange(e,t,this.filename):null},getLocationFromList:function(e){if(this.needPositions){var t=this.getFirstListNode(e),n=this.getLastListNode(e);return this.locationMap.getLocationRange(null!==t?t.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==n?n.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,t){var n=this.locationMap.getLocation(void 0!==t&&t<this.scanner.source.length?t:this.scanner.eof?l(this.scanner.source,this.scanner.source.length-1):this.scanner.tokenStart);throw new r(e||"Unexpected input",this.scanner.source,n.offset,n.line,n.column)}};for(var n in e=function(e){var t={context:{},scope:{},atrule:{},pseudo:{}};if(e.parseContext)for(var n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=w(e.parseContext[n])}if(e.scope)for(var n in e.scope)t.scope[n]=e.scope[n];if(e.atrule)for(var n in e.atrule){var i=e.atrule[n];i.parse&&(t.atrule[n]=i.parse)}if(e.pseudo)for(var n in e.pseudo){var r=e.pseudo[n];r.parse&&(t.pseudo[n]=r.parse)}if(e.node)for(var n in e.node)t[n]=e.node[n].parse;return t}(e||{}))t[n]=e[n];return function(e,n){var i,r=(n=n||{}).context||"default";if(s(e,t.scanner),t.locationMap.setSource(e,n.offset,n.line,n.column),t.filename=n.filename||"<unknown>",t.needPositions=Boolean(n.positions),t.onParseError="function"==typeof n.onParseError?n.onParseError:h,t.onParseErrorThrow=!1,t.parseAtrulePrelude=!("parseAtrulePrelude"in n)||Boolean(n.parseAtrulePrelude),t.parseRulePrelude=!("parseRulePrelude"in n)||Boolean(n.parseRulePrelude),t.parseValue=!("parseValue"in n)||Boolean(n.parseValue),t.parseCustomProperty="parseCustomProperty"in n&&Boolean(n.parseCustomProperty),!t.context.hasOwnProperty(r))throw new Error("Unknown context `"+r+"`");return i=t.context[r].call(t,n),t.scanner.eof||t.error(),i}}},uARb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.debounce=function(e){return i.debounce(e)(this)}},uGYe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.if=i.iif},uMcE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.shareReplay=function(e,t,n){return e&&"object"==typeof e?i.shareReplay(e)(this):i.shareReplay(e,t,n)(this)}},uO2z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("3uOa");i.Observable.webSocket=r.webSocket},v87U:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.single=function(e){return i.single(e)(this)}},vAVA:function(e,t,n){"use strict";var i;!function(){var n=t||{}||this||window;void 0===(i=(function(){return n}).apply(t,[]))||(e.exports=i),n.default=n;var r="http://www.w3.org/2000/xmlns/",o="http://www.w3.org/2000/svg",a=/url\(["']?(.+?)["']?\)/,s={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},c=function(e){return e instanceof HTMLElement||e instanceof SVGElement},l=function(e){if(!c(e))throw new Error("an HTMLElement or SVGElement is required; got "+e)},u=function(e){return new Promise((function(t,n){c(e)?t(e):n(new Error("an HTMLElement or SVGElement is required; got "+e))}))},h=function(e,t,n){var i=e.viewBox&&e.viewBox.baseVal&&e.viewBox.baseVal[n]||null!==t.getAttribute(n)&&!t.getAttribute(n).match(/%$/)&&parseInt(t.getAttribute(n))||e.getBoundingClientRect()[n]||parseInt(t.style[n])||parseInt(window.getComputedStyle(e).getPropertyValue(n));return null==i||isNaN(parseFloat(i))?0:i},d=function(e){for(var t=window.atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),r=new Uint8Array(i),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return new Blob([i],{type:n})},f={},p=null,m=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};n.prepareSvg=function(e,t,n){l(e);var i=t||{},c=i.left,u=void 0===c?0:c,d=i.top,m=void 0===d?0:d,g=i.width,v=i.height,b=i.scale,y=void 0===b?1:b,_=i.responsive,w=void 0!==_&&_,k=i.excludeCss,C=void 0!==k&&k;return function(e){return Promise.all(Array.from(e.querySelectorAll("image")).map((function(e){var t,n=e.getAttributeNS("http://www.w3.org/1999/xlink","href")||e.getAttribute("href");return n?((t=n)&&0===t.lastIndexOf("http",0)&&-1===t.lastIndexOf(window.location.host)&&(n+=(-1===n.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise((function(t,i){var r=document.createElement("canvas"),o=new Image;o.crossOrigin="anonymous",o.src=n,o.onerror=function(){return i(new Error("Could not load "+n))},o.onload=function(){r.width=o.width,r.height=o.height,r.getContext("2d").drawImage(o,0,0),e.setAttributeNS("http://www.w3.org/1999/xlink","href",r.toDataURL("image/png")),t(!0)}}))):Promise.resolve(null)})))}(e).then((function(){var i=e.cloneNode(!0);i.style.backgroundColor=(t||{}).backgroundColor||e.style.backgroundColor;var c=function(e,t,n,i){if("svg"===e.tagName)return{width:n||h(e,t,"width"),height:i||h(e,t,"height")};if(e.getBBox){var r=e.getBBox();return{width:r.x+r.width,height:r.y+r.height}}}(e,i,g,v),l=c.width,d=c.height;if("svg"!==e.tagName){if(!e.getBBox)return void console.error("Attempted to render non-SVG element",e);null!=i.getAttribute("transform")&&i.setAttribute("transform",i.getAttribute("transform").replace(/translate\(.*?\)/,""));var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.appendChild(i),i=b}if(i.setAttribute("version","1.1"),i.setAttribute("viewBox",[u,m,l,d].join(" ")),i.getAttribute("xmlns")||i.setAttributeNS(r,"xmlns",o),i.getAttribute("xmlns:xlink")||i.setAttributeNS(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),w?(i.removeAttribute("width"),i.removeAttribute("height"),i.setAttribute("preserveAspectRatio","xMinYMin meet")):(i.setAttribute("width",l*y),i.setAttribute("height",d*y)),Array.from(i.querySelectorAll("foreignObject > *")).forEach((function(e){e.setAttributeNS(r,"xmlns","svg"===e.tagName?o:"http://www.w3.org/1999/xhtml")})),!C)return function(e,t){var n=t||{},i=n.selectorRemap,r=n.modifyStyle,o=n.fonts,c=n.excludeUnusedCss,l=n.modifyCss||function(e,t){return(i?i(e):e)+"{"+(r?r(t):t)+"}\n"},u=[],h=void 0===o,d=o||[];return(p||(p=Array.from(document.styleSheets).map((function(e){try{return{rules:e.cssRules,href:e.href}}catch(t){return console.warn("Stylesheet could not be loaded: "+e.href,t),{}}})))).forEach((function(t){var n=t.rules,i=t.href;n&&Array.from(n).forEach((function(t){if(void 0!==t.style)if(function(e,t){if(t)try{return e.querySelector(t)||e.parentNode&&e.parentNode.querySelector(t)}catch(n){console.warn('Invalid CSS selector "'+t+'"',n)}}(e,t.selectorText))u.push(l(t.selectorText,t.style.cssText));else if(h&&t.cssText.match(/^@font-face/)){var n=function(e,t){var n=e.cssText.match(a),i=n&&n[1]||"";if(i&&!i.match(/^data:/)&&"about:blank"!==i){var r,o,c=i.startsWith("../")?t+"/../"+i:i.startsWith("./")?t+"/."+i:i;return{text:e.cssText,format:(r=c,o=Object.keys(s).filter((function(e){return r.indexOf("."+e)>0})).map((function(e){return s[e]})),o?o[0]:(console.error("Unknown font format for "+r+". Fonts may not be working correctly."),"application/octet-stream")),url:c}}}(t,i);n&&d.push(n)}else c||u.push(t.cssText)}))})),function(e){return Promise.all(e.map((function(e){return new Promise((function(t,n){if(f[e.url])return t(f[e.url]);var i=new XMLHttpRequest;i.addEventListener("load",(function(){var n=function(e){for(var t="",n=new Uint8Array(e),i=0;i<n.byteLength;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}(i.response),r=e.text.replace(a,'url("data:'+e.format+";base64,"+n+'")')+"\n";f[e.url]=r,t(r)})),i.addEventListener("error",(function(n){console.warn("Failed to load font from: "+e.url,n),f[e.url]=null,t(null)})),i.addEventListener("abort",(function(n){console.warn("Aborted loading font from: "+e.url,n),t(null)})),i.open("GET",e.url),i.responseType="arraybuffer",i.send()}))}))).then((function(e){return e.filter((function(e){return e})).join("")}))}(d).then((function(e){return u.join("\n")+e}))}(e,t).then((function(e){var t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML="<![CDATA[\n"+e+"\n]]>";var r=document.createElement("defs");r.appendChild(t),i.insertBefore(r,i.firstChild);var o=document.createElement("div");o.appendChild(i);var a=o.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof n)return{src:a,width:l,height:d};n(a,l,d)}));var _=document.createElement("div");_.appendChild(i);var k=_.innerHTML;if("function"!=typeof n)return{src:k,width:l,height:d};n(k,l,d)}))},n.svgAsDataUri=function(e,t,i){return l(e),n.prepareSvg(e,t).then((function(e){var t=e.width,n=e.height,r="data:image/svg+xml;base64,"+window.btoa(decodeURIComponent(encodeURIComponent('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>'+e.src).replace(/%([0-9A-F]{2})/g,(function(e,t){var n=String.fromCharCode("0x"+t);return"%"===n?"%25":n}))));return"function"==typeof i&&i(r,t,n),r}))},n.svgAsPngUri=function(e,t,i){l(e);var r=t||{},o=r.encoderType,a=void 0===o?"image/png":o,s=r.encoderOptions,c=void 0===s?.8:s,u=r.canvg,h=function(e){var t=e.src,n=e.width,r=e.height,o=document.createElement("canvas"),s=o.getContext("2d"),l=window.devicePixelRatio||1;o.width=n*l,o.height=r*l,o.style.width=o.width+"px",o.style.height=o.height+"px",s.setTransform(l,0,0,l,0,0),u?u(o,t):s.drawImage(t,0,0);var h=void 0;try{h=o.toDataURL(a,c)}catch(d){if("undefined"!=typeof SecurityError&&d instanceof SecurityError||"SecurityError"===d.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw d}return"function"==typeof i&&i(h,o.width,o.height),Promise.resolve(h)};return u?n.prepareSvg(e,t).then(h):n.svgAsDataUri(e,t).then((function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){return t(h({src:i,width:i.width,height:i.height}))},i.onerror=function(){n("There was an error loading the data URI as an image on the following SVG\n"+window.atob(e.slice(26))+"Open the following link to see browser's diagnosis\n"+e)},i.src=e}))}))},n.download=function(e,t,n){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(d(t),e);else{var i=document.createElement("a");if("download"in i){i.download=e,i.style.display="none",document.body.appendChild(i);try{var r=d(t),o=URL.createObjectURL(r);i.href=o,i.onclick=function(){return requestAnimationFrame((function(){return URL.revokeObjectURL(o)}))}}catch(a){console.error(a),console.warn("Error while getting object URL. Falling back to string URL."),i.href=t}i.click(),document.body.removeChild(i)}else n&&n.popup&&(n.popup.document.title=e,n.popup.location.replace(t))}},n.saveSvg=function(e,t,i){var r=m();return u(e).then((function(e){return n.svgAsDataUri(e,i||{})})).then((function(e){return n.download(t,e,r)}))},n.saveSvgAsPng=function(e,t,i){var r=m();return u(e).then((function(e){return n.svgAsPngUri(e,i||{})})).then((function(e){return n.download(t,e,r)}))}}()},vI5D:function(e,t){function n(e){return e}e.exports=function(e,t){var i=n,r=!1,o=!1;return"function"==typeof t?i=t:t&&(r=Boolean(t.forceBraces),o=Boolean(t.compact),"function"==typeof t.decorate&&(i=t.decorate)),function e(t,n,i,r){var o,a;switch(t.type){case"Group":o=function(t,n,i,r){var o=" "===t.combinator||r?t.combinator:" "+t.combinator+" ",a=t.terms.map((function(t){return e(t,n,i,r)})).join(o);return(t.explicit||i)&&(a=(r||","===a[0]?"[":"[ ")+a+(r?"]":" ]")),a}(t,n,i,r)+(t.disallowEmpty?"!":"");break;case"Multiplier":return e(t.term,n,i,r)+n(0===(a=t).min&&0===a.max?"*":0===a.min&&1===a.max?"?":1===a.min&&0===a.max?a.comma?"#":"+":1===a.min&&1===a.max?"":(a.comma?"#":"")+(a.min===a.max?"{"+a.min+"}":"{"+a.min+","+(0!==a.max?a.max:"")+"}"),t);case"Type":o="<"+t.name+(t.opts?n(function(e){switch(e.type){case"Range":return" ["+(null===e.min?"-\u221e":e.min)+","+(null===e.max?"\u221e":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}(t.opts),t.opts):"")+">";break;case"Property":o="<'"+t.name+"'>";break;case"Keyword":o=t.name;break;case"AtKeyword":o="@"+t.name;break;case"Function":o=t.name+"(";break;case"String":case"Token":o=t.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+t.type+"`")}return n(o,t)}(e,i,r,o)}},vQc4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("itJ+");i.Observable.prototype.bufferCount=r.bufferCount},vTln:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.distinct=function(e,t){return i.distinct(e,t)(this)}},vd7W:function(e,t,n){var i=n("8wsT"),r=n("Sean"),o=n("twQA"),a=o.TYPE,s=n("3XNy"),c=s.isNewline,l=s.isName,u=s.isValidEscape,h=s.isNumberStart,d=s.isIdentifierStart,f=s.charCodeCategory,p=s.isBOM,m=n("P3uw"),g=m.cmpStr,v=m.getNewlineLength,b=m.findWhiteSpaceEnd,y=m.consumeEscaped,_=m.consumeName,w=m.consumeNumber,k=m.consumeBadUrlRemnants,C=16777215,S=24;function x(e,t){function n(t){return t<x?e.charCodeAt(t):0}function o(){return P=w(e,P),d(n(P),n(P+1),n(P+2))?(R=a.Dimension,void(P=_(e,P))):37===n(P)?(R=a.Percentage,void P++):void(R=a.Number)}function s(){var t=P;return P=_(e,P),g(e,t,P,"url")&&40===n(P)?34===n(P=b(e,P+1))||39===n(P)?(R=a.Function,void(P=t+4)):void function(){for(R=a.Url,P=b(e,P);P<e.length;P++){var t=e.charCodeAt(P);switch(f(t)){case 41:return void P++;case f.Eof:return;case f.WhiteSpace:return 41===n(P=b(e,P))||P>=e.length?void(P<e.length&&P++):(P=k(e,P),void(R=a.BadUrl));case 34:case 39:case 40:case f.NonPrintable:return P=k(e,P),void(R=a.BadUrl);case 92:if(u(t,n(P+1))){P=y(e,P)-1;break}return P=k(e,P),void(R=a.BadUrl)}}}():40===n(P)?(R=a.Function,void P++):void(R=a.Ident)}function m(t){for(t||(t=n(P++)),R=a.String;P<e.length;P++){var i=e.charCodeAt(P);switch(f(i)){case t:return void P++;case f.Eof:return;case f.WhiteSpace:if(c(i))return P+=v(e,P,i),void(R=a.BadString);break;case 92:if(P===e.length-1)break;var r=n(P+1);c(r)?P+=v(e,P+1,r):u(i,r)&&(P=y(e,P)-1)}}}t||(t=new i);for(var x=(e=String(e||"")).length,O=r(t.offsetAndType,x+1),M=r(t.balance,x+1),T=0,E=p(n(0)),P=E,j=0,A=0,I=0;P<x;){var D=e.charCodeAt(P),R=0;switch(M[T]=x,f(D)){case f.WhiteSpace:R=a.WhiteSpace,P=b(e,P+1);break;case 34:m();break;case 35:l(n(P+1))||u(n(P+1),n(P+2))?(R=a.Hash,P=_(e,P+1)):(R=a.Delim,P++);break;case 39:m();break;case 40:R=a.LeftParenthesis,P++;break;case 41:R=a.RightParenthesis,P++;break;case 43:h(D,n(P+1),n(P+2))?o():(R=a.Delim,P++);break;case 44:R=a.Comma,P++;break;case 45:h(D,n(P+1),n(P+2))?o():45===n(P+1)&&62===n(P+2)?(R=a.CDC,P+=3):d(D,n(P+1),n(P+2))?s():(R=a.Delim,P++);break;case 46:h(D,n(P+1),n(P+2))?o():(R=a.Delim,P++);break;case 47:42===n(P+1)?(R=a.Comment,1===(P=e.indexOf("*/",P+2)+2)&&(P=e.length)):(R=a.Delim,P++);break;case 58:R=a.Colon,P++;break;case 59:R=a.Semicolon,P++;break;case 60:33===n(P+1)&&45===n(P+2)&&45===n(P+3)?(R=a.CDO,P+=4):(R=a.Delim,P++);break;case 64:d(n(P+1),n(P+2),n(P+3))?(R=a.AtKeyword,P=_(e,P+1)):(R=a.Delim,P++);break;case 91:R=a.LeftSquareBracket,P++;break;case 92:u(D,n(P+1))?s():(R=a.Delim,P++);break;case 93:R=a.RightSquareBracket,P++;break;case 123:R=a.LeftCurlyBracket,P++;break;case 125:R=a.RightCurlyBracket,P++;break;case f.Digit:o();break;case f.NameStart:s();break;case f.Eof:break;default:R=a.Delim,P++}switch(R){case j:for(j=(A=M[I=A&C])>>S,M[T]=I,M[I++]=T;I<T;I++)M[I]===x&&(M[I]=T);break;case a.LeftParenthesis:case a.Function:M[T]=A,A=(j=a.RightParenthesis)<<S|T;break;case a.LeftSquareBracket:M[T]=A,A=(j=a.RightSquareBracket)<<S|T;break;case a.LeftCurlyBracket:M[T]=A,A=(j=a.RightCurlyBracket)<<S|T}O[T++]=R<<S|P}for(O[T]=a.EOF<<S|P,M[T]=x,M[x]=x;0!==A;)A=M[I=A&C],M[I]=x;return t.source=e,t.firstCharOffset=E,t.offsetAndType=O,t.tokenCount=T,t.balance=M,t.reset(),t.next(),t}Object.keys(o).forEach((function(e){x[e]=o[e]})),Object.keys(s).forEach((function(e){x[e]=s[e]})),Object.keys(m).forEach((function(e){x[e]=m[e]})),e.exports=x},vkgz:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("JX7q"),r=n("Ji7U"),o=n("LK+K"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q"),l=n("KqfI"),u=n("n6bG");function h(e,t,n){return function(i){return i.lift(new d(e,t,n))}}var d=function(){function e(t,n,i){Object(a.a)(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),f=function(e){Object(r.a)(n,e);var t=Object(o.a)(n);function n(e,r,o,s){var c;return Object(a.a)(this,n),(c=t.call(this,e))._tapNext=l.a,c._tapError=l.a,c._tapComplete=l.a,c._tapError=o||l.a,c._tapComplete=s||l.a,Object(u.a)(r)?(c._context=Object(i.a)(c),c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||l.a,c._tapError=r.error||l.a,c._tapComplete=r.complete||l.a),c}return Object(s.a)(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(c.a)},vuIU:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.d(t,"a",(function(){return r}))},"w0v+":function(e,t,n){"use strict";n.r(t),n.d(t,"config",(function(){return i.a})),n.d(t,"InnerSubscriber",(function(){return r.a})),n.d(t,"OuterSubscriber",(function(){return o.a})),n.d(t,"Scheduler",(function(){return a.a})),n.d(t,"AnonymousSubject",(function(){return s.a})),n.d(t,"SubjectSubscription",(function(){return c.a})),n.d(t,"Subscriber",(function(){return l.a})),n.d(t,"fromPromise",(function(){return f})),n.d(t,"fromIterable",(function(){return g})),n.d(t,"ajax",(function(){return b.a})),n.d(t,"webSocket",(function(){return y.a})),n.d(t,"ajaxGet",(function(){return _.g})),n.d(t,"ajaxPost",(function(){return _.j})),n.d(t,"ajaxDelete",(function(){return _.f})),n.d(t,"ajaxPut",(function(){return _.k})),n.d(t,"ajaxPatch",(function(){return _.i})),n.d(t,"ajaxGetJSON",(function(){return _.h})),n.d(t,"AjaxObservable",(function(){return _.b})),n.d(t,"AjaxSubscriber",(function(){return _.d})),n.d(t,"AjaxResponse",(function(){return _.c})),n.d(t,"AjaxError",(function(){return _.a})),n.d(t,"AjaxTimeoutError",(function(){return _.e})),n.d(t,"WebSocketSubject",(function(){return w.a})),n.d(t,"CombineLatestOperator",(function(){return k.a})),n.d(t,"dispatch",(function(){return C.a})),n.d(t,"SubscribeOnObservable",(function(){return S.a})),n.d(t,"Timestamp",(function(){return x.a})),n.d(t,"TimeInterval",(function(){return O.a})),n.d(t,"GroupedObservable",(function(){return M.a})),n.d(t,"defaultThrottleConfig",(function(){return T.a})),n.d(t,"rxSubscriber",(function(){return E.a})),n.d(t,"iterator",(function(){return P.a})),n.d(t,"observable",(function(){return j.a})),n.d(t,"ArgumentOutOfRangeError",(function(){return A.a})),n.d(t,"EmptyError",(function(){return I.a})),n.d(t,"Immediate",(function(){return D.a})),n.d(t,"ObjectUnsubscribedError",(function(){return R.a})),n.d(t,"TimeoutError",(function(){return L.a})),n.d(t,"UnsubscriptionError",(function(){return F.a})),n.d(t,"applyMixins",(function(){return N.a})),n.d(t,"errorObject",(function(){return B})),n.d(t,"hostReportError",(function(){return H.a})),n.d(t,"identity",(function(){return z.a})),n.d(t,"isArray",(function(){return V.a})),n.d(t,"isArrayLike",(function(){return q.a})),n.d(t,"isDate",(function(){return U.a})),n.d(t,"isFunction",(function(){return G.a})),n.d(t,"isIterable",(function(){return W.a})),n.d(t,"isNumeric",(function(){return K.a})),n.d(t,"isObject",(function(){return X.a})),n.d(t,"isObservable",(function(){return Y.a})),n.d(t,"isPromise",(function(){return Z.a})),n.d(t,"isScheduler",(function(){return Q.a})),n.d(t,"noop",(function(){return $.a})),n.d(t,"not",(function(){return J.a})),n.d(t,"pipe",(function(){return ee.a})),n.d(t,"root",(function(){return te.a})),n.d(t,"subscribeTo",(function(){return ne.a})),n.d(t,"subscribeToArray",(function(){return ie.a})),n.d(t,"subscribeToIterable",(function(){return p.a})),n.d(t,"subscribeToObservable",(function(){return re.a})),n.d(t,"subscribeToPromise",(function(){return h.a})),n.d(t,"subscribeToResult",(function(){return oe.a})),n.d(t,"toSubscriber",(function(){return ae.a})),n.d(t,"tryCatch",(function(){return ce}));var i=n("2fFW"),r=n("51Dv"),o=n("l7GE"),a=n("Y/cZ"),s=n("XNiG"),c=n("Ylt2"),l=n("7o/Q"),u=n("HDdC"),h=n("a7t3"),d=n("4yVj");function f(e,t){return t?Object(d.a)(e,t):new u.a(Object(h.a)(e))}var p=n("pLzU"),m=n("MBAA");function g(e,t){if(!e)throw new Error("Iterable cannot be null");return t?Object(m.a)(e,t):new u.a(Object(p.a)(e))}var v,b=n("19/K"),y=n("lcII"),_=n("Sj+y"),w=n("wxn8"),k=n("itXk"),C=n("NNCq"),S=n("O4y0"),x=n("r0WS"),O=n("4hIw"),M=n("OQgR"),T=n("yuhW"),E=n("2QA8"),P=n("Lhse"),j=n("kJWO"),A=n("4I5i"),I=n("sVev"),D=n("c7jc"),R=n("9ppp"),L=n("Y6u4"),F=n("pjAE"),N=n("Of7M"),B={e:{}},H=n("NJ4a"),z=n("SpAZ"),V=n("DH7j"),q=n("I55L"),U=n("mlxB"),G=n("n6bG"),W=n("CMyj"),K=n("Y7HM"),X=n("XoHu"),Y=n("QIAL"),Z=n("c2HN"),Q=n("z+Ro"),$=n("KqfI"),J=n("F97/"),ee=n("mCNh"),te=n("xJj7"),ne=n("SeVD"),ie=n("ngJS"),re=n("CRDf"),oe=n("ZUHj"),ae=n("WyKG");function se(){B.e=void 0;try{return v.apply(this,arguments)}catch(e){return B.e=e,B}finally{v=void 0}}function ce(e){return v=e,se}},w1tV:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("oB13"),r=n("x+ZX"),o=n("XNiG");function a(){return new o.b}function s(){return function(e){return Object(r.a)()(Object(i.a)(a)(e))}}},wDXs:function(e,t,n){e.exports=n("2pxp")},wGW3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("iD44");i.Observable.prototype.mergeMap=r.mergeMap,i.Observable.prototype.flatMap=r.mergeMap},wWu8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Lsvf");i.Observable.prototype.ignoreElements=r.ignoreElements},wfyD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("lXds");i.Observable.prototype.delayWhen=r.delayWhen},wxn8:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),l=n("XNiG"),u=n("7o/Q"),h=n("HDdC"),d=n("quSY"),f=n("jtHE"),p={url:"",deserializer:function(e){return JSON.parse(e.data)},serializer:function(e){return JSON.stringify(e)}},m=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;if(Object(i.a)(this,n),o=t.call(this),e instanceof h.a)o.destination=r,o.source=e;else{var a=o._config=Object.assign({},p);if(o._output=new l.b,"string"==typeof e)a.url=e;else for(var s in e)e.hasOwnProperty(s)&&(a[s]=e[s]);if(!a.WebSocketCtor&&WebSocket)a.WebSocketCtor=WebSocket;else if(!a.WebSocketCtor)throw new Error("no WebSocket constructor can be found");o.destination=new f.a}return o}return Object(r.a)(n,[{key:"lift",value:function(e){var t=new n(this._config,this.destination);return t.operator=e,t.source=this,t}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new f.a),this._output=new l.b}},{key:"multiplex",value:function(e,t,n){var i=this;return new h.a((function(r){try{i.next(e())}catch(a){r.error(a)}var o=i.subscribe((function(e){try{n(e)&&r.next(e)}catch(a){r.error(a)}}),(function(e){return r.error(e)}),(function(){return r.complete()}));return function(){try{i.next(t())}catch(a){r.error(a)}o.unsubscribe()}}))}},{key:"_connectSocket",value:function(){var e=this,t=this._config,n=t.WebSocketCtor,i=t.protocol,r=t.url,o=t.binaryType,a=this._output,s=null;try{s=i?new n(r,i):new n(r),this._socket=s,o&&(this._socket.binaryType=o)}catch(l){return void a.error(l)}var c=new d.a((function(){e._socket=null,s&&1===s.readyState&&s.close()}));s.onopen=function(t){if(!e._socket)return s.close(),void e._resetState();var n=e._config.openObserver;n&&n.next(t);var i=e.destination;e.destination=u.a.create((function(n){if(1===s.readyState)try{s.send((0,e._config.serializer)(n))}catch(t){e.destination.error(t)}}),(function(t){var n=e._config.closingObserver;n&&n.next(void 0),t&&t.code?s.close(t.code,t.reason):a.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e._resetState()}),(function(){var t=e._config.closingObserver;t&&t.next(void 0),s.close(),e._resetState()})),i&&i instanceof f.a&&c.add(i.subscribe(e.destination))},s.onerror=function(t){e._resetState(),a.error(t)},s.onclose=function(t){e._resetState();var n=e._config.closeObserver;n&&n.next(t),t.wasClean?a.complete():a.error(t)},s.onmessage=function(t){try{a.next((0,e._config.deserializer)(t))}catch(n){a.error(n)}}}},{key:"_subscribe",value:function(e){var t=this,n=this.source;return n?n.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add((function(){var e=t._socket;0===t._output.observers.length&&(e&&1===e.readyState&&e.close(),t._resetState())})),e)}},{key:"unsubscribe",value:function(){var e=this._socket;e&&1===e.readyState&&e.close(),this._resetState(),Object(o.a)(Object(a.a)(n.prototype),"unsubscribe",this).call(this)}}]),n}(l.a)},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(){return function(e){return e.lift(new l(e))}}var l=function(){function e(t){Object(o.a)(this,e),this.connectable=t}return Object(a.a)(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new u(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).connectable=i,r}return Object(a.a)(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(s.a)},xDdU:function(e,t,n){var i,r,o=n("4fRq"),a=n("I2ZF"),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],h=(e=e||{}).node||i,d=void 0!==e.clockseq?e.clockseq:r;if(null==h||null==d){var f=o();null==h&&(h=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=r=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=p-s+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||p>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,c=m,r=d;var v=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var b=p/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var y=0;y<6;++y)u[l+y]=h[y];return t||a(u)}},xJj7:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o="undefined"!=typeof global&&global,a=i||o||r},xODi:function(e,t){e.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new l(e))}}var l=function(){function e(t){Object(o.a)(this,e),this.defaultValue=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.defaultValue))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return Object(a.a)(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(s.a)},xgIS:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("KQm4"),r=n("HDdC"),o=n("DH7j"),a=n("n6bG"),s=n("lJxs");function c(e,t,n,l){return Object(a.a)(n)&&(l=n,n=void 0),l?c(e,t,n).pipe(Object(s.a)((function(e){return Object(o.a)(e)?l.apply(void 0,Object(i.a)(e)):l(e)}))):new r.a((function(i){!function e(t,n,i,r,o){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,i,o),a=function(){return s.removeEventListener(n,i,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var c=t;t.on(n,i),a=function(){return c.off(n,i)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var l=t;t.addListener(n,i),a=function(){return l.removeListener(n,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,h=t.length;u<h;u++)e(t[u],n,i,r,o)}r.add(a)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)}))}},xk4V:function(e,t,n){var i=n("4fRq"),r=n("I2ZF");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||r(a)}},xwTN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.mergeMapTo=function(e,t){return void 0===t&&(t=Number.POSITIVE_INFINITY),i.mergeMapTo(e,t)(this)}},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("HDdC"),r=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new i.a(Object(r.a)(e))}},yJif:function(e,t,n){e.exports=n("errG")},yTw5:function(e,t,n){var i=n("vd7W").TYPE,r=n("4njK").mode,o=i.LeftCurlyBracket;function a(e){return this.Raw(e,r.leftCurlyBracket,!0)}function s(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.scanner.eof&&this.scanner.tokenType!==o&&this.error(),e}e.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var e,t,n=this.scanner.tokenIndex,i=this.scanner.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(s,a):a.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(i,this.scanner.tokenStart),prelude:e,block:t}},generate:function(e){this.node(e.prelude),this.node(e.block)},walkContext:"rule"}},yuhW:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("zx2A"),c={leading:!0,trailing:!1};function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return function(n){return n.lift(new u(e,!!t.leading,!!t.trailing))}}var u=function(){function e(t,n,i){Object(o.a)(this,e),this.durationSelector=t,this.leading=n,this.trailing=i}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.durationSelector,this.leading,this.trailing))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r,a){var s;return Object(o.a)(this,n),(s=t.call(this,e)).destination=e,s.durationSelector=i,s._leading=r,s._trailing=a,s._hasValue=!1,s}return Object(a.a)(n,[{key:"_next",value:function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}},{key:"send",value:function(){var e=this._sendValue;this._hasValue&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(s.c)(t,new s.a(this)))}},{key:"tryDurationSelector",value:function(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}},{key:"throttlingDone",value:function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),n}(s.b)},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return i}))},z6cu:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("HDdC");function r(e,t){return new i.a(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){e.subscriber.error(e.error)}},zDpS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.timeoutWith=function(e,t,n){return void 0===n&&(n=i.asyncScheduler),r.timeoutWith(e,t,n)(this)}},zNuj:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return o})),n.d(t,"j",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return v})),n.d(t,"g",(function(){return b}));var i=n("BBZ9"),r=(n("7Ki+"),{});function o(){return Object(i.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var i=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return i(n[0])+i(n[1])+i(n[2])+i(n[3])+i(n[4])+i(n[5])+i(n[6])+i(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return t?{host:t[4],path:t[5],protocol:t[2],relative:t[5]+(t[6]||"")+(t[8]||"")}:{}}function c(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function l(e){var t=o();if(!("console"in t))return e();var n=t.console,i={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(i[e]=n[e],n[e]=n[e].__sentry_original__)}));var r=e();return Object.keys(i).forEach((function(e){n[e]=i[e]})),r}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function h(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(n){}}function d(){try{return document.location.href}catch(e){return""}}var f=Date.now(),p=0,m={now:function(){var e=Date.now()-f;return e<p&&(e=p),p=e,e},timeOrigin:f},g=function(){if("ReactNative"===(null===(t=o().navigator)||void 0===t?void 0:t.product))return function(){var e=o().performance;if(e&&"function"==typeof e.now){var t=e.now();return{now:function(){return e.now()-t},timeOrigin:f}}return m}();var t;if(Object(i.b)())try{return Object(i.a)(e,"perf_hooks").performance}catch(r){return m}var n=o().performance;return n&&n.now?(void 0===n.timeOrigin&&(n.timeOrigin=n.timing&&n.timing.navigationStart||f),n):m}();function v(){return(g.timeOrigin+g.now())/1e3}function b(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var i=Date.parse(""+t);return isNaN(i)?6e4:i-e}}).call(this,n("kIY7")(e))},zP0r:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(t){Object(o.a)(this,e),this.total=t}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.total))}}]),e}(),u=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Object(a.a)(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(s.a)},zUnb:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"bisect",(function(){return E_})),n.d(i,"bisectRight",(function(){return M_})),n.d(i,"bisectLeft",(function(){return T_})),n.d(i,"ascending",(function(){return S_})),n.d(i,"bisector",(function(){return x_})),n.d(i,"cross",(function(){return A_})),n.d(i,"descending",(function(){return I_})),n.d(i,"deviation",(function(){return L_})),n.d(i,"extent",(function(){return F_})),n.d(i,"histogram",(function(){return Q_})),n.d(i,"thresholdFreedmanDiaconis",(function(){return J_})),n.d(i,"thresholdScott",(function(){return ew})),n.d(i,"thresholdSturges",(function(){return Z_})),n.d(i,"max",(function(){return tw})),n.d(i,"mean",(function(){return nw})),n.d(i,"median",(function(){return iw})),n.d(i,"merge",(function(){return rw})),n.d(i,"min",(function(){return ow})),n.d(i,"pairs",(function(){return P_})),n.d(i,"permute",(function(){return aw})),n.d(i,"quantile",(function(){return $_})),n.d(i,"range",(function(){return q_})),n.d(i,"scan",(function(){return sw})),n.d(i,"shuffle",(function(){return cw})),n.d(i,"sum",(function(){return lw})),n.d(i,"ticks",(function(){return K_})),n.d(i,"tickIncrement",(function(){return X_})),n.d(i,"tickStep",(function(){return Y_})),n.d(i,"transpose",(function(){return uw})),n.d(i,"variance",(function(){return R_})),n.d(i,"zip",(function(){return dw})),n.d(i,"axisTop",(function(){return kw})),n.d(i,"axisRight",(function(){return Cw})),n.d(i,"axisBottom",(function(){return Sw})),n.d(i,"axisLeft",(function(){return xw})),n.d(i,"brush",(function(){return OO})),n.d(i,"brushX",(function(){return SO})),n.d(i,"brushY",(function(){return xO})),n.d(i,"brushSelection",(function(){return CO})),n.d(i,"chord",(function(){return RO})),n.d(i,"ribbon",(function(){return ZO})),n.d(i,"nest",(function(){return tM})),n.d(i,"set",(function(){return lM})),n.d(i,"map",(function(){return eM})),n.d(i,"keys",(function(){return uM})),n.d(i,"values",(function(){return hM})),n.d(i,"entries",(function(){return dM})),n.d(i,"color",(function(){return xC})),n.d(i,"rgb",(function(){return EC})),n.d(i,"hsl",(function(){return IC})),n.d(i,"lab",(function(){return UC})),n.d(i,"hcl",(function(){return QC})),n.d(i,"cubehelix",(function(){return aS})),n.d(i,"contours",(function(){return wM})),n.d(i,"contourDensity",(function(){return OM})),n.d(i,"dispatch",(function(){return Aw})),n.d(i,"drag",(function(){return IM})),n.d(i,"dragDisable",(function(){return aC})),n.d(i,"dragEnable",(function(){return sC})),n.d(i,"dsvFormat",(function(){return FM})),n.d(i,"csvParse",(function(){return BM})),n.d(i,"csvParseRows",(function(){return HM})),n.d(i,"csvFormat",(function(){return zM})),n.d(i,"csvFormatRows",(function(){return VM})),n.d(i,"tsvParse",(function(){return UM})),n.d(i,"tsvParseRows",(function(){return GM})),n.d(i,"tsvFormat",(function(){return WM})),n.d(i,"tsvFormatRows",(function(){return KM})),n.d(i,"easeLinear",(function(){return XM})),n.d(i,"easeQuad",(function(){return QM})),n.d(i,"easeQuadIn",(function(){return YM})),n.d(i,"easeQuadOut",(function(){return ZM})),n.d(i,"easeQuadInOut",(function(){return QM})),n.d(i,"easeCubic",(function(){return Qx})),n.d(i,"easeCubicIn",(function(){return Yx})),n.d(i,"easeCubicOut",(function(){return Zx})),n.d(i,"easeCubicInOut",(function(){return Qx})),n.d(i,"easePoly",(function(){return eT})),n.d(i,"easePolyIn",(function(){return $M})),n.d(i,"easePolyOut",(function(){return JM})),n.d(i,"easePolyInOut",(function(){return eT})),n.d(i,"easeSin",(function(){return oT})),n.d(i,"easeSinIn",(function(){return iT})),n.d(i,"easeSinOut",(function(){return rT})),n.d(i,"easeSinInOut",(function(){return oT})),n.d(i,"easeExp",(function(){return cT})),n.d(i,"easeExpIn",(function(){return aT})),n.d(i,"easeExpOut",(function(){return sT})),n.d(i,"easeExpInOut",(function(){return cT})),n.d(i,"easeCircle",(function(){return hT})),n.d(i,"easeCircleIn",(function(){return lT})),n.d(i,"easeCircleOut",(function(){return uT})),n.d(i,"easeCircleInOut",(function(){return hT})),n.d(i,"easeBounce",(function(){return pT})),n.d(i,"easeBounceIn",(function(){return fT})),n.d(i,"easeBounceOut",(function(){return pT})),n.d(i,"easeBounceInOut",(function(){return mT})),n.d(i,"easeBack",(function(){return yT})),n.d(i,"easeBackIn",(function(){return vT})),n.d(i,"easeBackOut",(function(){return bT})),n.d(i,"easeBackInOut",(function(){return yT})),n.d(i,"easeElastic",(function(){return kT})),n.d(i,"easeElasticIn",(function(){return wT})),n.d(i,"easeElasticOut",(function(){return kT})),n.d(i,"easeElasticInOut",(function(){return CT})),n.d(i,"forceCenter",(function(){return ST})),n.d(i,"forceCollide",(function(){return FT})),n.d(i,"forceLink",(function(){return HT})),n.d(i,"forceManyBody",(function(){return WT})),n.d(i,"forceRadial",(function(){return KT})),n.d(i,"forceSimulation",(function(){return GT})),n.d(i,"forceX",(function(){return XT})),n.d(i,"forceY",(function(){return YT})),n.d(i,"formatDefaultLocale",(function(){return lE})),n.d(i,"format",(function(){return rE})),n.d(i,"formatPrefix",(function(){return oE})),n.d(i,"formatLocale",(function(){return cE})),n.d(i,"formatSpecifier",(function(){return tE})),n.d(i,"precisionFixed",(function(){return uE})),n.d(i,"precisionPrefix",(function(){return hE})),n.d(i,"precisionRound",(function(){return dE})),n.d(i,"geoArea",(function(){return rP})),n.d(i,"geoBounds",(function(){return ZP})),n.d(i,"geoCentroid",(function(){return cj})),n.d(i,"geoCircle",(function(){return yj})),n.d(i,"geoClipAntimeridian",(function(){return Pj})),n.d(i,"geoClipCircle",(function(){return jj})),n.d(i,"geoClipExtent",(function(){return Nj})),n.d(i,"geoClipRectangle",(function(){return Dj})),n.d(i,"geoContains",(function(){return nA})),n.d(i,"geoDistance",(function(){return Kj})),n.d(i,"geoGraticule",(function(){return oA})),n.d(i,"geoGraticule10",(function(){return aA})),n.d(i,"geoInterpolate",(function(){return hA})),n.d(i,"geoLength",(function(){return Uj})),n.d(i,"geoPath",(function(){return lI})),n.d(i,"geoAlbers",(function(){return TI})),n.d(i,"geoAlbersUsa",(function(){return EI})),n.d(i,"geoAzimuthalEqualArea",(function(){return II})),n.d(i,"geoAzimuthalEqualAreaRaw",(function(){return AI})),n.d(i,"geoAzimuthalEquidistant",(function(){return RI})),n.d(i,"geoAzimuthalEquidistantRaw",(function(){return DI})),n.d(i,"geoConicConformal",(function(){return zI})),n.d(i,"geoConicConformalRaw",(function(){return HI})),n.d(i,"geoConicEqualArea",(function(){return MI})),n.d(i,"geoConicEqualAreaRaw",(function(){return OI})),n.d(i,"geoConicEquidistant",(function(){return GI})),n.d(i,"geoConicEquidistantRaw",(function(){return UI})),n.d(i,"geoEquirectangular",(function(){return qI})),n.d(i,"geoEquirectangularRaw",(function(){return VI})),n.d(i,"geoGnomonic",(function(){return KI})),n.d(i,"geoGnomonicRaw",(function(){return WI})),n.d(i,"geoIdentity",(function(){return YI})),n.d(i,"geoProjection",(function(){return CI})),n.d(i,"geoProjectionMutator",(function(){return SI})),n.d(i,"geoMercator",(function(){return FI})),n.d(i,"geoMercatorRaw",(function(){return LI})),n.d(i,"geoNaturalEarth1",(function(){return QI})),n.d(i,"geoNaturalEarth1Raw",(function(){return ZI})),n.d(i,"geoOrthographic",(function(){return JI})),n.d(i,"geoOrthographicRaw",(function(){return $I})),n.d(i,"geoStereographic",(function(){return tD})),n.d(i,"geoStereographicRaw",(function(){return eD})),n.d(i,"geoTransverseMercator",(function(){return iD})),n.d(i,"geoTransverseMercatorRaw",(function(){return nD})),n.d(i,"geoRotation",(function(){return gj})),n.d(i,"geoStream",(function(){return ZE})),n.d(i,"geoTransform",(function(){return uI})),n.d(i,"cluster",(function(){return sD})),n.d(i,"hierarchy",(function(){return lD})),n.d(i,"pack",(function(){return DD})),n.d(i,"packSiblings",(function(){return TD})),n.d(i,"packEnclose",(function(){return mD})),n.d(i,"partition",(function(){return HD})),n.d(i,"stratify",(function(){return GD})),n.d(i,"tree",(function(){return $D})),n.d(i,"treemap",(function(){return iR})),n.d(i,"treemapBinary",(function(){return rR})),n.d(i,"treemapDice",(function(){return BD})),n.d(i,"treemapSlice",(function(){return JD})),n.d(i,"treemapSliceDice",(function(){return oR})),n.d(i,"treemapSquarify",(function(){return nR})),n.d(i,"treemapResquarify",(function(){return aR})),n.d(i,"interpolate",(function(){return PS})),n.d(i,"interpolateArray",(function(){return CS})),n.d(i,"interpolateBasis",(function(){return lS})),n.d(i,"interpolateBasisClosed",(function(){return uS})),n.d(i,"interpolateDate",(function(){return SS})),n.d(i,"interpolateNumber",(function(){return xS})),n.d(i,"interpolateObject",(function(){return OS})),n.d(i,"interpolateRound",(function(){return jS})),n.d(i,"interpolateString",(function(){return ES})),n.d(i,"interpolateTransformCss",(function(){return LS})),n.d(i,"interpolateTransformSvg",(function(){return FS})),n.d(i,"interpolateZoom",(function(){return HS})),n.d(i,"interpolateRgb",(function(){return mS})),n.d(i,"interpolateRgbBasis",(function(){return wS})),n.d(i,"interpolateRgbBasisClosed",(function(){return kS})),n.d(i,"interpolateHsl",(function(){return VS})),n.d(i,"interpolateHslLong",(function(){return qS})),n.d(i,"interpolateLab",(function(){return US})),n.d(i,"interpolateHcl",(function(){return WS})),n.d(i,"interpolateHclLong",(function(){return KS})),n.d(i,"interpolateCubehelix",(function(){return QS})),n.d(i,"interpolateCubehelixLong",(function(){return $S})),n.d(i,"quantize",(function(){return JS})),n.d(i,"path",(function(){return UO})),n.d(i,"polygonArea",(function(){return sR})),n.d(i,"polygonCentroid",(function(){return cR})),n.d(i,"polygonHull",(function(){return hR})),n.d(i,"polygonContains",(function(){return dR})),n.d(i,"polygonLength",(function(){return fR})),n.d(i,"quadtree",(function(){return jT})),n.d(i,"randomUniform",(function(){return mR})),n.d(i,"randomNormal",(function(){return gR})),n.d(i,"randomLogNormal",(function(){return vR})),n.d(i,"randomBates",(function(){return yR})),n.d(i,"randomIrwinHall",(function(){return bR})),n.d(i,"randomExponential",(function(){return _R})),n.d(i,"scaleBand",(function(){return OR})),n.d(i,"scalePoint",(function(){return MR})),n.d(i,"scaleIdentity",(function(){return NR})),n.d(i,"scaleLinear",(function(){return FR})),n.d(i,"scaleLog",(function(){return WR})),n.d(i,"scaleOrdinal",(function(){return xR})),n.d(i,"scaleImplicit",(function(){return SR})),n.d(i,"scalePow",(function(){return XR})),n.d(i,"scaleSqrt",(function(){return YR})),n.d(i,"scaleQuantile",(function(){return ZR})),n.d(i,"scaleQuantize",(function(){return QR})),n.d(i,"scaleThreshold",(function(){return $R})),n.d(i,"scaleTime",(function(){return WN})),n.d(i,"scaleUtc",(function(){return KN})),n.d(i,"scaleSequential",(function(){return XN})),n.d(i,"schemeCategory10",(function(){return ZN})),n.d(i,"schemeAccent",(function(){return QN})),n.d(i,"schemeDark2",(function(){return $N})),n.d(i,"schemePaired",(function(){return JN})),n.d(i,"schemePastel1",(function(){return eB})),n.d(i,"schemePastel2",(function(){return tB})),n.d(i,"schemeSet1",(function(){return nB})),n.d(i,"schemeSet2",(function(){return iB})),n.d(i,"schemeSet3",(function(){return rB})),n.d(i,"interpolateBrBG",(function(){return sB})),n.d(i,"schemeBrBG",(function(){return aB})),n.d(i,"interpolatePRGn",(function(){return lB})),n.d(i,"schemePRGn",(function(){return cB})),n.d(i,"interpolatePiYG",(function(){return hB})),n.d(i,"schemePiYG",(function(){return uB})),n.d(i,"interpolatePuOr",(function(){return fB})),n.d(i,"schemePuOr",(function(){return dB})),n.d(i,"interpolateRdBu",(function(){return mB})),n.d(i,"schemeRdBu",(function(){return pB})),n.d(i,"interpolateRdGy",(function(){return vB})),n.d(i,"schemeRdGy",(function(){return gB})),n.d(i,"interpolateRdYlBu",(function(){return yB})),n.d(i,"schemeRdYlBu",(function(){return bB})),n.d(i,"interpolateRdYlGn",(function(){return wB})),n.d(i,"schemeRdYlGn",(function(){return _B})),n.d(i,"interpolateSpectral",(function(){return CB})),n.d(i,"schemeSpectral",(function(){return kB})),n.d(i,"interpolateBuGn",(function(){return xB})),n.d(i,"schemeBuGn",(function(){return SB})),n.d(i,"interpolateBuPu",(function(){return MB})),n.d(i,"schemeBuPu",(function(){return OB})),n.d(i,"interpolateGnBu",(function(){return EB})),n.d(i,"schemeGnBu",(function(){return TB})),n.d(i,"interpolateOrRd",(function(){return jB})),n.d(i,"schemeOrRd",(function(){return PB})),n.d(i,"interpolatePuBuGn",(function(){return IB})),n.d(i,"schemePuBuGn",(function(){return AB})),n.d(i,"interpolatePuBu",(function(){return RB})),n.d(i,"schemePuBu",(function(){return DB})),n.d(i,"interpolatePuRd",(function(){return FB})),n.d(i,"schemePuRd",(function(){return LB})),n.d(i,"interpolateRdPu",(function(){return BB})),n.d(i,"schemeRdPu",(function(){return NB})),n.d(i,"interpolateYlGnBu",(function(){return zB})),n.d(i,"schemeYlGnBu",(function(){return HB})),n.d(i,"interpolateYlGn",(function(){return qB})),n.d(i,"schemeYlGn",(function(){return VB})),n.d(i,"interpolateYlOrBr",(function(){return GB})),n.d(i,"schemeYlOrBr",(function(){return UB})),n.d(i,"interpolateYlOrRd",(function(){return KB})),n.d(i,"schemeYlOrRd",(function(){return WB})),n.d(i,"interpolateBlues",(function(){return YB})),n.d(i,"schemeBlues",(function(){return XB})),n.d(i,"interpolateGreens",(function(){return QB})),n.d(i,"schemeGreens",(function(){return ZB})),n.d(i,"interpolateGreys",(function(){return JB})),n.d(i,"schemeGreys",(function(){return $B})),n.d(i,"interpolatePurples",(function(){return tH})),n.d(i,"schemePurples",(function(){return eH})),n.d(i,"interpolateReds",(function(){return iH})),n.d(i,"schemeReds",(function(){return nH})),n.d(i,"interpolateOranges",(function(){return oH})),n.d(i,"schemeOranges",(function(){return rH})),n.d(i,"interpolateCubehelixDefault",(function(){return aH})),n.d(i,"interpolateRainbow",(function(){return uH})),n.d(i,"interpolateWarm",(function(){return sH})),n.d(i,"interpolateCool",(function(){return cH})),n.d(i,"interpolateViridis",(function(){return dH})),n.d(i,"interpolateMagma",(function(){return fH})),n.d(i,"interpolateInferno",(function(){return pH})),n.d(i,"interpolatePlasma",(function(){return mH})),n.d(i,"create",(function(){return Xk})),n.d(i,"creator",(function(){return Nw})),n.d(i,"local",(function(){return Zk})),n.d(i,"matcher",(function(){return Ww})),n.d(i,"mouse",(function(){return eC})),n.d(i,"namespace",(function(){return Rw})),n.d(i,"namespaces",(function(){return Dw})),n.d(i,"clientPoint",(function(){return Jk})),n.d(i,"select",(function(){return Kk})),n.d(i,"selectAll",(function(){return tC})),n.d(i,"selection",(function(){return Wk})),n.d(i,"selector",(function(){return Hw})),n.d(i,"selectorAll",(function(){return Vw})),n.d(i,"style",(function(){return ck})),n.d(i,"touch",(function(){return nC})),n.d(i,"touches",(function(){return iC})),n.d(i,"window",(function(){return rk})),n.d(i,"event",(function(){return Ik})),n.d(i,"customEvent",(function(){return Bk})),n.d(i,"arc",(function(){return KH})),n.d(i,"area",(function(){return JH})),n.d(i,"line",(function(){return $H})),n.d(i,"pie",(function(){return nz})),n.d(i,"areaRadial",(function(){return cz})),n.d(i,"radialArea",(function(){return cz})),n.d(i,"lineRadial",(function(){return sz})),n.d(i,"radialLine",(function(){return sz})),n.d(i,"pointRadial",(function(){return lz})),n.d(i,"linkHorizontal",(function(){return vz})),n.d(i,"linkVertical",(function(){return bz})),n.d(i,"linkRadial",(function(){return yz})),n.d(i,"symbol",(function(){return Nz})),n.d(i,"symbols",(function(){return Fz})),n.d(i,"symbolCircle",(function(){return _z})),n.d(i,"symbolCross",(function(){return wz})),n.d(i,"symbolDiamond",(function(){return Sz})),n.d(i,"symbolSquare",(function(){return Ez})),n.d(i,"symbolStar",(function(){return Tz})),n.d(i,"symbolTriangle",(function(){return jz})),n.d(i,"symbolWye",(function(){return Lz})),n.d(i,"curveBasisClosed",(function(){return Uz})),n.d(i,"curveBasisOpen",(function(){return Wz})),n.d(i,"curveBasis",(function(){return Vz})),n.d(i,"curveBundle",(function(){return Xz})),n.d(i,"curveCardinalClosed",(function(){return Jz})),n.d(i,"curveCardinalOpen",(function(){return tV})),n.d(i,"curveCardinal",(function(){return Qz})),n.d(i,"curveCatmullRomClosed",(function(){return aV})),n.d(i,"curveCatmullRomOpen",(function(){return cV})),n.d(i,"curveCatmullRom",(function(){return rV})),n.d(i,"curveLinearClosed",(function(){return uV})),n.d(i,"curveLinear",(function(){return YH})),n.d(i,"curveMonotoneX",(function(){return bV})),n.d(i,"curveMonotoneY",(function(){return yV})),n.d(i,"curveNatural",(function(){return kV})),n.d(i,"curveStep",(function(){return SV})),n.d(i,"curveStepAfter",(function(){return OV})),n.d(i,"curveStepBefore",(function(){return xV})),n.d(i,"stack",(function(){return PV})),n.d(i,"stackOffsetExpand",(function(){return jV})),n.d(i,"stackOffsetDiverging",(function(){return AV})),n.d(i,"stackOffsetNone",(function(){return MV})),n.d(i,"stackOffsetSilhouette",(function(){return IV})),n.d(i,"stackOffsetWiggle",(function(){return DV})),n.d(i,"stackOrderAscending",(function(){return RV})),n.d(i,"stackOrderDescending",(function(){return FV})),n.d(i,"stackOrderInsideOut",(function(){return NV})),n.d(i,"stackOrderNone",(function(){return TV})),n.d(i,"stackOrderReverse",(function(){return BV})),n.d(i,"timeInterval",(function(){return tL})),n.d(i,"timeMillisecond",(function(){return iL})),n.d(i,"timeMilliseconds",(function(){return rL})),n.d(i,"utcMillisecond",(function(){return iL})),n.d(i,"utcMilliseconds",(function(){return rL})),n.d(i,"timeSecond",(function(){return hL})),n.d(i,"timeSeconds",(function(){return dL})),n.d(i,"utcSecond",(function(){return hL})),n.d(i,"utcSeconds",(function(){return dL})),n.d(i,"timeMinute",(function(){return pL})),n.d(i,"timeMinutes",(function(){return mL})),n.d(i,"timeHour",(function(){return vL})),n.d(i,"timeHours",(function(){return bL})),n.d(i,"timeDay",(function(){return _L})),n.d(i,"timeDays",(function(){return wL})),n.d(i,"timeWeek",(function(){return CL})),n.d(i,"timeWeeks",(function(){return PL})),n.d(i,"timeSunday",(function(){return CL})),n.d(i,"timeSundays",(function(){return PL})),n.d(i,"timeMonday",(function(){return SL})),n.d(i,"timeMondays",(function(){return jL})),n.d(i,"timeTuesday",(function(){return xL})),n.d(i,"timeTuesdays",(function(){return AL})),n.d(i,"timeWednesday",(function(){return OL})),n.d(i,"timeWednesdays",(function(){return IL})),n.d(i,"timeThursday",(function(){return ML})),n.d(i,"timeThursdays",(function(){return DL})),n.d(i,"timeFriday",(function(){return TL})),n.d(i,"timeFridays",(function(){return RL})),n.d(i,"timeSaturday",(function(){return EL})),n.d(i,"timeSaturdays",(function(){return LL})),n.d(i,"timeMonth",(function(){return NL})),n.d(i,"timeMonths",(function(){return BL})),n.d(i,"timeYear",(function(){return zL})),n.d(i,"timeYears",(function(){return VL})),n.d(i,"utcMinute",(function(){return UL})),n.d(i,"utcMinutes",(function(){return GL})),n.d(i,"utcHour",(function(){return KL})),n.d(i,"utcHours",(function(){return XL})),n.d(i,"utcDay",(function(){return ZL})),n.d(i,"utcDays",(function(){return QL})),n.d(i,"utcWeek",(function(){return JL})),n.d(i,"utcWeeks",(function(){return aF})),n.d(i,"utcSunday",(function(){return JL})),n.d(i,"utcSundays",(function(){return aF})),n.d(i,"utcMonday",(function(){return eF})),n.d(i,"utcMondays",(function(){return sF})),n.d(i,"utcTuesday",(function(){return tF})),n.d(i,"utcTuesdays",(function(){return cF})),n.d(i,"utcWednesday",(function(){return nF})),n.d(i,"utcWednesdays",(function(){return lF})),n.d(i,"utcThursday",(function(){return iF})),n.d(i,"utcThursdays",(function(){return uF})),n.d(i,"utcFriday",(function(){return rF})),n.d(i,"utcFridays",(function(){return hF})),n.d(i,"utcSaturday",(function(){return oF})),n.d(i,"utcSaturdays",(function(){return dF})),n.d(i,"utcMonth",(function(){return pF})),n.d(i,"utcMonths",(function(){return mF})),n.d(i,"utcYear",(function(){return vF})),n.d(i,"utcYears",(function(){return bF})),n.d(i,"timeFormatDefaultLocale",(function(){return NN})),n.d(i,"timeFormat",(function(){return SF})),n.d(i,"timeParse",(function(){return xF})),n.d(i,"utcFormat",(function(){return OF})),n.d(i,"utcParse",(function(){return MF})),n.d(i,"timeFormatLocale",(function(){return kF})),n.d(i,"isoFormat",(function(){return HN})),n.d(i,"isoParse",(function(){return zN})),n.d(i,"now",(function(){return cx})),n.d(i,"timer",(function(){return hx})),n.d(i,"timerFlush",(function(){return dx})),n.d(i,"timeout",(function(){return gx})),n.d(i,"interval",(function(){return HV})),n.d(i,"transition",(function(){return Wx})),n.d(i,"active",(function(){return tO})),n.d(i,"interrupt",(function(){return Cx})),n.d(i,"voronoi",(function(){return xq})),n.d(i,"zoom",(function(){return Bq})),n.d(i,"zoomTransform",(function(){return Pq})),n.d(i,"zoomIdentity",(function(){return Eq}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return tve})),n.d(r,"InboundFilters",(function(){return rve}));var o=n("ReuC"),a=n("foSv"),s=n("JX7q"),c=n("BsWD");function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(c){r=!0,o=c}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||Object(c.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=n("KQm4");function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(c.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n("25BE");var f=n("Ji7U"),p=n("LK+K"),m=n("1OyB"),g=n("vuIU"),v=n("s4An"),b=n("2WcH");function y(e,t,n){return(y=Object(b.a)()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&Object(v.a)(r,n.prototype),r}).apply(null,arguments)}var _=n("quSY"),w=n("XNiG"),k=n("HDdC"),C=n("VRyK"),S=n("w1tV");function x(e){return{toString:e}.toString()}var O="__parameters__";function M(e,t,n){return x((function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=y(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty(O)?e[O]:Object.defineProperty(e,O,{value:[]})[O];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r}))}var T=M("Inject",(function(e){return{token:e}})),E=M("Optional"),P=M("Self"),j=M("SkipSelf"),A=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function I(e){for(var t in e)if(e[t]===I)return t;throw Error("Could not find renamed property on target object.")}function D(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var L=R;function F(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function N(e){return B(e,e[z])||B(e,e[U])}function B(e,t){return t&&t.token===e?t:null}function H(e){return e&&(e.hasOwnProperty(V)||e.hasOwnProperty(G))?e[V]:null}var z=I({"\u0275prov":I}),V=I({"\u0275inj":I}),q=I({"\u0275provFallback":I}),U=I({ngInjectableDef:I}),G=I({ngInjectorDef:I});function W(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(W).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function K(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var X=I({__forward_ref__:I});function Y(e){return e.__forward_ref__=Y,e.toString=function(){return W(this())},e}function Z(e){return Q(e)?e():e}function Q(e){return"function"==typeof e&&e.hasOwnProperty(X)&&e.__forward_ref__===Y}var $,J="undefined"!=typeof globalThis&&globalThis,ee="undefined"!=typeof window&&window,te="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ne="undefined"!=typeof global&&global,ie=J||ne||ee||te,re=I({"\u0275cmp":I}),oe=I({"\u0275dir":I}),ae=I({"\u0275pipe":I}),se=I({"\u0275mod":I}),ce=I({"\u0275loc":I}),le=I({"\u0275fac":I}),ue=I({__NG_ELEMENT_ID__:I}),he=function(){function e(t,n){Object(m.a)(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=R({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return Object(g.a)(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),de=new he("INJECTOR",-1),fe={},pe=/\n/gm,me="__source",ge=I({provide:String,useValue:I}),ve=void 0;function be(e){var t=ve;return ve=e,t}function ye(e){var t=$;return $=e,t}function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.Default;if(void 0===ve)throw new Error("inject() must be called from an injection context");return null===ve?Ce(e,void 0,t):ve.get(e,t&A.Optional?null:void 0,t)}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.Default;return($||_e)(Z(e),t)}var ke=we;function Ce(e,t,n){var i=N(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&A.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(W(e),"]"))}function Se(e){for(var t=[],n=0;n<e.length;n++){var i=Z(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=A.Default,a=0;a<i.length;a++){var s=i[a];s instanceof E||"Optional"===s.ngMetadataName||s===E?o|=A.Optional:s instanceof j||"SkipSelf"===s.ngMetadataName||s===j?o|=A.SkipSelf:s instanceof P||"Self"===s.ngMetadataName||s===P?o|=A.Self:r=s instanceof T||s===T?s.token:s}t.push(we(r,o))}else t.push(we(i))}return t}var xe=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe;if(t===fe){var n=new Error("NullInjectorError: No provider for ".concat(W(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}();function Oe(e,t,n,i){var r=e.ngTempTokenPath;throw t[me]&&r.unshift(t[me]),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=W(t);if(Array.isArray(t))r=t.map(W).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):W(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(pe,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Me=function e(){Object(m.a)(this,e)},Te=function e(){Object(m.a)(this,e)};function Ee(e,t){e.forEach((function(e){return Array.isArray(e)?Ee(e,t):t(e)}))}function Pe(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function je(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ae(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ie(e,t,n){var i=Re(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function De(e,t){var n=Re(e,t);if(n>=0)return e[1|n]}function Re(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Le=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Fe=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ne={},Be=[],He=0;function ze(e){return x((function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Le.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Fe.Emulated,id:"c",styles:e.styles||Be,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=He++,n.inputs=We(e.inputs,t),n.outputs=We(e.outputs),r&&r.forEach((function(e){return e(n)})),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Ve)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(qe)}:null,n}))}function Ve(e){return Ye(e)||function(e){return e[oe]||null}(e)}function qe(e){return function(e){return e[ae]||null}(e)}var Ue={};function Ge(e){var t={type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&x((function(){Ue[e.id]=e.type})),t}function We(e,t){if(null==e)return Ne;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var Ke=ze;function Xe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ye(e){return e[re]||null}function Ze(e,t){return e.hasOwnProperty(le)?e[le]:null}function Qe(e,t){var n=e[se]||null;if(!n&&!0===t)throw new Error("Type ".concat(W(e)," does not have '\u0275mod' property."));return n}var $e=20,Je=10;function et(e){return Array.isArray(e)&&"object"==typeof e[1]}function tt(e){return Array.isArray(e)&&!0===e[1]}function nt(e){return 0!=(8&e.flags)}function it(e){return 2==(2&e.flags)}function rt(e){return 1==(1&e.flags)}function ot(e){return null!==e.template}function at(e){return 0!=(512&e[2])}var st=function(){function e(t,n,i){Object(m.a)(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return Object(g.a)(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ct(){return lt}function lt(e){return e.type.prototype.ngOnChanges&&(e.setInput=ht),ut}function ut(){var e=dt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Ne)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function ht(e,t,n,i){var r=dt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Ne,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],c=a[s];o[s]=new st(c&&c.currentValue,t,a===Ne),e[i]=t}function dt(e){return e.__ngSimpleChanges__||null}ct.ngInherit=!0;var ft="http://www.w3.org/2000/svg",pt=void 0;function mt(){return void 0!==pt?pt:"undefined"!=typeof document?document:void 0}function gt(e){return!!e.listen}var vt={createRenderer:function(e,t){return mt()}};function bt(e){for(;Array.isArray(e);)e=e[0];return e}function yt(e,t){return bt(t[e+$e])}function _t(e,t){return bt(t[e.index])}function wt(e,t){return e.data[t+$e]}function kt(e,t){return e[t+$e]}function Ct(e,t){var n=t[e];return et(n)?n:n[0]}function St(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function xt(e){return 4==(4&e[2])}function Ot(e){return 128==(128&e[2])}function Mt(e,t){return null===e||null==t?null:e[t]}function Tt(e){e[18]=0}function Et(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Pt={lFrame:Jt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function jt(){return Pt.bindingsEnabled}function At(){return Pt.lFrame.lView}function It(){return Pt.lFrame.tView}function Dt(e){Pt.lFrame.contextLView=e}function Rt(){return Pt.lFrame.previousOrParentTNode}function Lt(e,t){Pt.lFrame.previousOrParentTNode=e,Pt.lFrame.isParent=t}function Ft(){return Pt.lFrame.isParent}function Nt(){Pt.lFrame.isParent=!1}function Bt(){return Pt.checkNoChangesMode}function Ht(e){Pt.checkNoChangesMode=e}function zt(){var e=Pt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vt(){return Pt.lFrame.bindingIndex}function qt(){return Pt.lFrame.bindingIndex++}function Ut(e){var t=Pt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Gt(e,t){var n=Pt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Wt(t)}function Wt(e){Pt.lFrame.currentDirectiveIndex=e}function Kt(e){var t=Pt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Xt(){return Pt.lFrame.currentQueryIndex}function Yt(e){Pt.lFrame.currentQueryIndex=e}function Zt(e,t){var n=$t();Pt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Qt(e,t){var n=$t(),i=e[1];Pt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=i,n.contextLView=e,n.bindingIndex=i.bindingStartIndex}function $t(){var e=Pt.lFrame,t=null===e?null:e.child;return null===t?Jt(e):t}function Jt(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function en(){var e=Pt.lFrame;return Pt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var tn=en;function nn(){var e=en();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rn(e){return(Pt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Pt.lFrame.contextLView))[8]}function on(){return Pt.lFrame.selectedIndex}function an(e){Pt.lFrame.selectedIndex=e}function sn(){var e=Pt.lFrame;return wt(e.tView,e.selectedIndex)}function cn(){Pt.lFrame.currentNamespace=ft}function ln(){Pt.lFrame.currentNamespace=null}function un(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,c=r.ngAfterViewChecked,l=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),c&&((e.viewHooks||(e.viewHooks=[])).push(n,c),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,c)),null!=l&&(e.destroyHooks||(e.destroyHooks=[])).push(n,l)}}function hn(e,t,n){pn(e,t,3,n)}function dn(e,t,n,i){(3&e[2])===n&&pn(e,t,n,i)}function fn(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function pn(e,t,n,i){for(var r=null!=i?i:-1,o=0,a=void 0!==i?65535&e[18]:0;a<t.length;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=i&&o>=i)break}else t[a]<0&&(e[18]+=65536),(o<r||-1==r)&&(mn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function mn(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var gn=function e(t,n,i){Object(m.a)(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function vn(e,t,n){for(var i=gt(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],c=n[r++];i?e.setAttribute(t,s,c,a):t.setAttributeNS(a,s,c)}else{var l=o,u=n[++r];yn(l)?i&&e.setProperty(t,l,u):i?e.setAttribute(t,l,u):t.setAttribute(l,u),r++}}return r}function bn(e){return 3===e||4===e||6===e}function yn(e){return 64===e.charCodeAt(0)}function _n(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||wn(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function wn(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var c=e[o];if("number"==typeof c)break;if(c===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function kn(e){return-1!==e}function Cn(e){return 32767&e}function Sn(e){return e>>16}function xn(e,t){for(var n=Sn(e),i=t;n>0;)i=i[15],n--;return i}function On(e){return"string"==typeof e?e:null==e?"":""+e}function Mn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():On(e)}var Tn=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ie)}();function En(e){return{name:"window",target:e.ownerDocument.defaultView}}function Pn(e){return{name:"document",target:e.ownerDocument}}function jn(e){return{name:"body",target:e.ownerDocument.body}}function An(e){return e instanceof Function?e():e}var In=!0;function Dn(e){var t=In;return In=e,t}var Rn=0;function Ln(e,t){var n=Nn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Fn(i.data,e),Fn(t,null),Fn(i.blueprint,null));var r=Bn(e,t),o=e.injectorIndex;if(kn(r))for(var a=Cn(r),s=xn(r,t),c=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|c[a+l];return t[o+8]=r,o}function Fn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Bn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],i=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Hn(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ue)&&(i=n[ue]),null==i&&(i=n[ue]=Rn++);var r=255&i,o=1<<r,a=64&r,s=32&r,c=t.data;128&r?a?s?c[e+7]|=o:c[e+6]|=o:s?c[e+5]|=o:c[e+4]|=o:a?s?c[e+3]|=o:c[e+2]|=o:s?c[e+1]|=o:c[e]|=o}(e,t,n)}function zn(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=Wn(n);if("function"==typeof o){Zt(t,e);try{var a=o();if(null!=a||i&A.Optional)return a;throw new Error("No provider for ".concat(Mn(n),"!"))}finally{tn()}}else if("number"==typeof o){if(-1===o)return new Yn(e,t);var s=null,c=Nn(e,t),l=-1,u=i&A.Host?t[16][6]:null;for((-1===c||i&A.SkipSelf)&&(l=-1===c?Bn(e,t):t[c+8],Xn(i,!1)?(s=t[1],c=Cn(l),t=xn(l,t)):c=-1);-1!==c;){l=t[c+8];var h=t[1];if(Kn(o,c,h.data)){var d=qn(c,t,n,s,i,u);if(d!==Vn)return d}Xn(i,t[1].data[c+8]===u)&&Kn(o,c,t)?(s=h,c=Cn(l),t=xn(l,t)):c=-1}}}if(i&A.Optional&&void 0===r&&(r=null),0==(i&(A.Self|A.Host))){var f=t[9],p=ye(void 0);try{return f?f.get(n,r,i&A.Optional):Ce(n,r,i&A.Optional)}finally{ye(p)}}if(i&A.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(Mn(n),"]"))}var Vn={};function qn(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],c=Un(s,a,n,null==i?it(s)&&In:i!=a&&3===s.type,r&A.Host&&o===s);return null!==c?Gn(t,a,c,s):Vn}function Un(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,c=e.directiveStart,l=o>>20,u=r?s+l:e.directiveEnd,h=i?s:s+l;h<u;h++){var d=a[h];if(h<c&&n===d||h>=c&&d.type===n)return h}if(r){var f=a[c];if(f&&ot(f)&&f.type===n)return c}return null}function Gn(e,t,n,i){var r=e[n],o=t.data;if(r instanceof gn){var a=r;if(a.resolving)throw new Error("Circular dep for ".concat(Mn(o[n])));var s,c=Dn(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=ye(a.injectImpl)),Zt(e,i);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=lt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{a.injectImpl&&ye(s),Dn(c),a.resolving=!1,tn()}}return r}function Wn(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ue)?e[ue]:void 0;return"number"==typeof t&&t>0?255&t:t}function Kn(e,t,n){var i=64&e,r=32&e;return!!((128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t])&1<<e)}function Xn(e,t){return!(e&A.Self||e&A.Host&&t)}var Yn=function(){function e(t,n){Object(m.a)(this,e),this._tNode=t,this._lView=n}return Object(g.a)(e,[{key:"get",value:function(e,t){return zn(this._tNode,this._lView,e,void 0,t)}}]),e}();function Zn(e){var t=e;if(Q(e))return function(){var e=Zn(Z(t));return e?e():null};var n=Ze(t);if(null===n){var i=H(t);n=i&&i.factory}return n||null}function Qn(e){return x((function(){for(var t=e.prototype.constructor,n=t[le]||Zn(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[le]||Zn(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}}))}function $n(e){return e.ngDebugContext}function Jn(e){return e.ngOriginalError}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var ti=function(){function e(){Object(m.a)(this,e),this._console=console}return Object(g.a)(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||ei}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?$n(e)?$n(e):this._findContext(Jn(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Jn(e);t&&Jn(t);)t=Jn(t);return t}}]),e}(),ni=function(){function e(t){Object(m.a)(this,e),this.changingThisBreaksApplicationSecurity=t}return Object(g.a)(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),e}(),ii=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(ni),ri=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(ni),oi=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(ni),ai=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(ni),si=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(ni);function ci(e){return e instanceof ni?e.changingThisBreaksApplicationSecurity:e}function li(e,t){var n=ui(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return n===t}function ui(e){return e instanceof ni&&e.getTypeName()||null}var hi=!0,di=!1;function fi(){return di=!0,hi}var pi=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}}]),e}(),mi=function(){function e(t){if(Object(m.a)(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return Object(g.a)(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),gi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,vi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function bi(e){return(e=String(e)).match(gi)||e.match(vi)?e:(fi()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(e," (see http://g.co/ng/security#xss)")),"unsafe:"+e)}function yi(e){var t,n={},i=d(e.split(","));try{for(i.s();!(t=i.n()).done;)n[t.value]=!0}catch(r){i.e(r)}finally{i.f()}return n}function _i(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var wi,ki=yi("area,br,col,hr,img,wbr"),Ci=yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Si=yi("rp,rt"),xi=_i(Si,Ci),Oi=_i(ki,_i(Ci,yi("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")),_i(Si,yi("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")),xi),Mi=yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ti=yi("srcset"),Ei=_i(Mi,Ti,yi("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"),yi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Pi=yi("script,style,template"),ji=function(){function e(){Object(m.a)(this,e),this.sanitizedSomething=!1,this.buf=[]}return Object(g.a)(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!Oi.hasOwnProperty(n))return this.sanitizedSomething=!0,!Pi.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(Ei.hasOwnProperty(s)){var c=o.value;Mi[s]&&(c=bi(c)),Ti[s]&&(t=c,c=(t=String(t)).split(",").map((function(e){return bi(e.trim())})).join(", ")),this.buf.push(" ",a,'="',Di(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Oi.hasOwnProperty(t)&&!ki.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Di(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),Ai=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ii=/([^\#-~ |!])/g;function Di(e){return e.replace(/&/g,"&amp;").replace(Ai,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Ii,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ri(e,t){var n=null;try{wi=wi||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new pi:new mi(e)}(e);var i=t?String(t):"";n=wi.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==o);var a=new ji,s=a.sanitizeChildren(Li(n)||n);return fi()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var c=Li(n)||n;c.firstChild;)c.removeChild(c.firstChild)}}function Li(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Fi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ni(e){var t=zi();return t?t.sanitize(Fi.HTML,e)||"":li(e,"HTML")?ci(e):Ri(mt(),On(e))}function Bi(e){var t=zi();return t?t.sanitize(Fi.STYLE,e)||"":li(e,"Style")?ci(e):On(e)}function Hi(e){var t=zi();return t?t.sanitize(Fi.URL,e)||"":li(e,"URL")?ci(e):bi(On(e))}function zi(){var e=At();return e&&e[12]}function Vi(e,t){e.__ngContext__=t}function qi(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}var Ui="ng-template";function Gi(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==qi((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Wi(e){return 0===e.type&&e.tagName!==Ui}function Ki(e,t,n){return t===(0!==e.type||n?e.tagName:Ui)}function Xi(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(bn(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var c=t[s];if("number"!=typeof c){if(!a)if(4&i){if(i=2|1&i,""!==c&&!Ki(e,c,n)||""===c&&1===t.length){if(Yi(i))return!1;a=!0}}else{var l=8&i?c:t[++s];if(8&i&&null!==e.attrs){if(!Gi(e.attrs,l,n)){if(Yi(i))return!1;a=!0}continue}var u=Zi(8&i?"class":c,r,Wi(e),n);if(-1===u){if(Yi(i))return!1;a=!0;continue}if(""!==l){var h;h=u>o?"":r[u+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==qi(d,l,0)||2&i&&l!==h){if(Yi(i))return!1;a=!0}}}}else{if(!a&&!Yi(i)&&!Yi(c))return!1;if(a&&Yi(c))continue;a=!1,i=c|1&i}}return Yi(i)||a}function Yi(e){return 0==(1&e)}function Zi(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Qi(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(Xi(e,t[i],n))return!0;return!1}function $i(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Ji(e,t){return e?":not("+t.trim()+")":t}function er(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||Yi(a)||(t+=Ji(o,r),r=""),i=a,o=o||!Yi(i);n++}return""!==r&&(t+=Ji(o,r)),t}var tr={};function nr(e){var t=e[3];return tt(t)?t[3]:t}function ir(e){return or(e[13])}function rr(e){return or(e[4])}function or(e){for(;null!==e&&!tt(e);)e=e[4];return e}function ar(e){sr(It(),At(),on()+e,Bt())}function sr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&hn(t,r,n)}else{var o=e.preOrderHooks;null!==o&&dn(t,o,0,n)}an(n)}function cr(e,t){return e<<17|t<<2}function lr(e){return e>>17&32767}function ur(e){return 2|e}function hr(e){return(131068&e)>>2}function dr(e,t){return-131069&e|t<<2}function fr(e){return 1|e}function pr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var o=e.data[r];Yt(n[i]),o.contentQueries(2,t[r],r)}}}function mr(e,t,n){return gt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function gr(e,t,n,i,r,o,a,s,c,l){var u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Tt(u),u[3]=u[15]=e,u[8]=n,u[10]=a||e&&e[10],u[11]=s||e&&e[11],u[12]=c||e&&e[12]||null,u[9]=l||e&&e[9]||null,u[6]=o,u[16]=2==t.type?e[16]:u,u}function vr(e,t,n,i,r,o){var a=n+$e,s=e.data[a]||function(e,t,n,i,r,o){var a=Rt(),s=Ft(),c=s?a:a&&a.parent,l=e.data[n]=Tr(0,c&&c!==t?c:null,i,n,r,o);return null===e.firstChild&&(e.firstChild=l),a&&(!s||null!=a.child||null===l.parent&&2!==a.type?s||(a.next=l):a.child=l),l}(e,t,a,i,r,o);return Lt(s,!0),s}function br(e,t,n){Qt(t,t[6]);try{var i=e.viewQuery;null!==i&&Qr(1,i,n);var r=e.template;null!==r&&wr(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&pr(e,t),e.staticViewQueries&&Qr(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)Wr(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,nn()}}function yr(e,t,n,i){var r=t[2];if(256!=(256&r)){Qt(t,t[6]);var o=Bt();try{Tt(t),Pt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&wr(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&hn(t,s,null)}else{var c=e.preOrderHooks;null!==c&&dn(t,c,0,null),fn(t,0)}if(function(e){for(var t=ir(e);null!==t;t=rr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&Et(r[3],1),r[2]|=1024}}(t),function(e){for(var t=ir(e);null!==t;t=rr(t))for(var n=Je;n<t.length;n++){var i=t[n],r=i[1];Ot(i)&&yr(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&pr(e,t),!o)if(a){var l=e.contentCheckHooks;null!==l&&hn(t,l)}else{var u=e.contentHooks;null!==u&&dn(t,u,1),fn(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var i=e.expandoStartIndex,r=-1,o=0;o<n.length;o++){var a=n[o];"number"==typeof a?a<=0?(an(0-a),r=i+=9+n[++o]):i+=a:(null!==a&&(Gt(i,r),a(2,t[r])),r++)}}finally{an(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)Gr(e,t[n])}(t,h);var d=e.viewQuery;if(null!==d&&Qr(2,d,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&hn(t,f)}else{var p=e.viewHooks;null!==p&&dn(t,p,2),fn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Et(t[3],-1))}finally{nn()}}}function _r(e,t,n,i){var r=t[10],o=!Bt(),a=xt(t);try{o&&!a&&r.begin&&r.begin(),a&&br(e,t,i),yr(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function wr(e,t,n,i,r){var o=on();try{an(-1),2&i&&t.length>$e&&sr(e,t,0,Bt()),n(i,r)}finally{an(o)}}function kr(e,t,n){if(nt(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function Cr(e,t,n){jt()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Ln(n,t),Vi(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var c=e.data[s],l=ot(c);l&&Hr(t,n,c);var u=Gn(t,e,s,n);Vi(u,t),null!==a&&Vr(0,s-r,u,c,0,a),l&&(Ct(n.index,t)[8]=u)}}(e,t,n,_t(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=e.expandoInstructions,a=e.firstCreatePass,s=n.index-$e,c=Pt.lFrame.currentDirectiveIndex;try{an(s);for(var l=i;l<r;l++){var u=e.data[l],h=t[l];Wt(l),null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs?Dr(u,h):a&&o.push(null)}}finally{an(-1),Wt(c)}}(e,t,n))}function Sr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_t,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function xr(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Or(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Or(e,t,n,i,r,o,a,s,c,l){var u=$e+i,h=u+r,d=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:tr);return n}(u,h),f="function"==typeof l?l():l;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:s,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:c,consts:f,incompleteFirstPass:!1}}function Mr(e,t,n,i){var r=Jr(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(i,r.length-1)}function Tr(e,t,n,i,r,o){return{type:n,index:i,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Er(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Pr(e,t,n,i,r,o,a,s){var c,l,u=_t(t,n),h=t.inputs;!s&&null!=h&&(c=h[i])?(no(e,n,c,i,r),it(t)&&function(e,t){var n=Ct(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(i="class"===(l=i)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,r=null!=a?a(r,t.tagName||"",i):r,gt(o)?o.setProperty(u,i,r):yn(i)||(u.setProperty?u.setProperty(i,r):u[i]=r))}function jr(e,t,n,i){var r=!1;if(jt()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];Qi(n,a.selectors,!1)&&(r||(r=[]),Hn(Ln(n,t),e,a.type),ot(a)?(Lr(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){var s=0;r=!0,Nr(n,e.data.length,o.length);for(var c=0;c<o.length;c++){var l=o[c];l.providersResolver&&l.providersResolver(l)}Rr(e,n,o.length);for(var u=!1,h=!1,d=0;d<o.length;d++){var f=o[d];n.mergedAttrs=_n(n.mergedAttrs,f.hostAttrs),Br(e,t,f),Fr(e.data.length-1,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-$e),u=!0),h||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-$e),h=!0),Ar(e,f),s+=f.hostVars}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,c=t.directiveStart;c<n;c++){var l=i[c],u=l.inputs,h=null===r||Wi(t)?null:qr(u,r);o.push(h),a=Er(u,c,a),s=Er(l.outputs,c,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n),Ir(e,t,s)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new Error("Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=_n(n.mergedAttrs,n.attrs),r}function Ar(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function Ir(e,t,n){for(var i=0;i<n;i++)t.push(tr),e.blueprint.push(tr),e.data.push(null)}function Dr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Rr(e,t,n){var i=$e-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(i,r,n)}function Lr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Fr(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ot(t)&&(n[""]=e)}}function Nr(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Br(e,t,n){e.data.push(n);var i=n.factory||(n.factory=Ze(n.type)),r=new gn(i,ot(n),null);e.blueprint.push(r),t.push(r)}function Hr(e,t,n){var i=_t(t,e),r=xr(n),o=e[10],a=Kr(e,gr(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n)));e[t.index]=a}function zr(e,t,n,i,r,o){var a=_t(e,t),s=t[11];if(null==i)gt(s)?s.removeAttribute(a,n,o):a.removeAttribute(n);else{var c=null==r?On(i):r(i,e.tagName||"",n);gt(s)?s.setAttribute(a,n,c,o):o?a.setAttributeNS(o,n,c):a.setAttribute(n,c)}}function Vr(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,c=0;c<a.length;){var l=a[c++],u=a[c++],h=a[c++];null!==s?i.setInput(n,h,l,u):n[u]=h}}function qr(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Ur(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Gr(e,t){var n=Ct(t,e);if(Ot(n)){var i=n[1];80&n[2]?yr(i,n,i.template,n[8]):n[5]>0&&function e(t){for(var n=ir(t);null!==n;n=rr(n))for(var i=Je;i<n.length;i++){var r=n[i];if(1024&r[2]){var o=r[1];yr(o,r,o.template,r[8])}else r[5]>0&&e(r)}var a=t[1].components;if(null!==a)for(var s=0;s<a.length;s++){var c=Ct(a[s],t);Ot(c)&&c[5]>0&&e(c)}}(n)}}function Wr(e,t){var n=Ct(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),br(i,n,n[8])}function Kr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Xr(e){for(;e;){e[2]|=64;var t=nr(e);if(at(e)&&!t)return e;e=t}return null}function Yr(e,t,n){var i=t[10];i.begin&&i.begin();try{yr(e,t,e.template,n)}catch(r){throw to(t,r),r}finally{i.end&&i.end()}}function Zr(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=St(n),r=i[1];_r(r,i,r.template,n)}}(e[8])}function Qr(e,t,n){Yt(0),t(e,n)}var $r=function(){return Promise.resolve(null)}();function Jr(e){return e[7]||(e[7]=[])}function eo(e,t,n){return(null===e||ot(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function to(e,t){var n=e[9],i=n?n.get(ti,null):null;i&&i.handleError(t)}function no(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],c=t[a],l=e.data[a];null!==l.setInput?l.setInput(c,r,i,s):c[s]=r}}function io(e,t,n){var i=yt(t,e),r=e[11];gt(r)?r.setValue(i,n):i.textContent=n}function ro(e,t){var n=t[3];return-1===e.index?tt(n)?n:null:n}function oo(e,t){var n=ro(e,t);return n?yo(t[11],n[7]):null}function ao(e,t,n,i,r){if(null!=i){var o,a=!1;tt(i)?o=i:et(i)&&(a=!0,i=i[0]);var s=bt(i);0===e&&null!==n?null==r?vo(t,n,s):go(t,n,s,r||null):1===e&&null!==n?go(t,n,s,r||null):2===e?function(e,t,n){var i=yo(e,t);i&&function(e,t,n,i){gt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==bt(n)&&ao(t,e,i,o,r);for(var a=Je;a<n.length;a++){var s=n[a];So(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function so(e,t){return gt(t)?t.createText(e):t.createTextNode(e)}function co(e,t,n,i){var r=oo(e.node,t);r&&So(e,t,t[11],n?1:2,r,i)}function lo(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Et(r,-1)),n.splice(i,1)}function uo(e,t){if(!(e.length<=Je)){var n=Je+t,i=e[n];if(i){var r=i[17];null!==r&&r!==e&&lo(r,i),t>0&&(e[n-1][4]=i[4]);var o=je(e,Je+t);co(i[1],i,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function ho(e,t){if(!(256&t[2])){var n=t[11];gt(n)&&n.destroyNode&&So(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return po(e[1],e);for(;t;){var n=null;if(et(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)et(t)&&po(t[1],t),t=fo(t,e);null===t&&(t=e),et(t)&&po(t[1],t),n=t&&t[4]}t=n}}(t)}}function fo(e,t){var n;return et(e)&&(n=e[6])&&2===n.type?ro(n,e):e[3]===t?null:e[3]}function po(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof gn)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var i=t[7],r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){var o=n[r+1],a="function"==typeof o?o(t):bt(t[o]),s=n[r+3];"boolean"==typeof s?a.removeEventListener(n[r],i[n[r+2]],s):s>=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&gt(t[11])&&t[11].destroy();var i=t[17];if(null!==i&&tt(t[3])){i!==t[3]&&lo(i,t);var r=t[19];null!==r&&r.detachView(e)}}}function mo(e,t,n){for(var i=t.parent;null!=i&&(4===i.type||5===i.type);)i=(t=i).parent;if(null==i){var r=n[6];return 2===r.type?oo(r,n):n[0]}if(t&&5===t.type&&4&t.flags)return _t(t,n).parentNode;if(2&i.flags){var o=e.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==Fe.ShadowDom&&a!==Fe.Native)return null}return _t(i,n)}function go(e,t,n,i){gt(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function vo(e,t,n){gt(e)?e.appendChild(t,n):t.appendChild(n)}function bo(e,t,n,i){null!==i?go(e,t,n,i):vo(e,t,n)}function yo(e,t){return gt(e)?e.parentNode(t):t.parentNode}function _o(e,t){if(2===e.type){var n=ro(e,t);return null===n?null:ko(n.indexOf(t,Je)-Je,n)}return 4===e.type||5===e.type?_t(e,t):null}function wo(e,t,n,i){var r=mo(e,i,t);if(null!=r){var o=t[11],a=_o(i.parent||t[6],t);if(Array.isArray(n))for(var s=0;s<n.length;s++)bo(o,r,n[s],a);else bo(o,r,n,a)}}function ko(e,t){var n=Je+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return function e(t,n){if(null!==n){var i=n.type;if(3===i)return _t(n,t);if(0===i)return ko(-1,t[n.index]);if(4===i||5===i){var r=n.child;if(null!==r)return e(t,r);var o=t[n.index];return tt(o)?ko(-1,o):bt(o)}var a=t[16],s=a[6],c=nr(a),l=s.projection[n.projection];return null!=l?e(c,l):e(t,n.next)}return null}(i,r)}return t[7]}function Co(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],c=n.type;a&&0===t&&(s&&Vi(bt(s),i),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(Co(e,t,n.child,i,r,o,!1),ao(t,e,r,s,o)):1===c?Oo(e,t,i,n,r,o):ao(t,e,r,s,o)),n=a?n.projectionNext:n.next}}function So(e,t,n,i,r,o){Co(n,i,e.node.child,t,r,o,!1)}function xo(e,t,n){Oo(t[11],0,t,n,mo(e,n,t),_o(n.parent||t[6],t))}function Oo(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var c=0;c<s.length;c++)ao(t,e,r,s[c],o);else Co(e,t,s,a[3],r,o,!0)}function Mo(e,t,n){gt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function To(e,t,n){gt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var Eo,Po,jo,Ao=function(){function e(t,n){Object(m.a)(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}return Object(g.a)(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ho(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Mr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Xr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Yr(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Ht(!0);try{Yr(e,t,n)}finally{Ht(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,So(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,i,r){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=n[i.index];if(null!==a&&r.push(bt(a)),tt(a))for(var s=Je;s<a.length;s++){var c=a[s],l=c[1].firstChild;null!==l&&e(c[1],c,l,r)}var h=i.type;if(4===h||5===h)e(t,n,i.child,r);else if(1===h){var d=n[16],f=d[6],p=f.projection[i.projection];if(Array.isArray(p))r.push.apply(r,Object(u.a)(p));else{var m=nr(d);e(m[1],m,p,r,!0)}}i=o?i.projectionNext:i.next}return r}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),Io=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this,e))._view=e,i}return Object(g.a)(n,[{key:"detectChanges",value:function(){Zr(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Ht(!0);try{Zr(e)}finally{Ht(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Ao);function Do(e,t,n){return Eo||(Eo=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(e)),new Eo(_t(t,n))}function Ro(e,t,n,i){return Po||(Po=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this))._declarationView=e,o._declarationTContainer=i,o.elementRef=r,o}return Object(g.a)(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=gr(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),br(t,n,e),new Ao(n)}}]),n}(e)),0===n.type?new Po(i,n,Do(t,n,i)):null}function Lo(e,t,n,i){var r;jo||(jo=function(e){Object(f.a)(i,e);var n=Object(p.a)(i);function i(e,t,r){var o;return Object(m.a)(this,i),(o=n.call(this))._lContainer=e,o._hostTNode=t,o._hostView=r,o}return Object(g.a)(i,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Me,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),tt(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],a=new jo(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,i){var r=Je+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-Je?(t[4]=n[r],Pe(n,Je+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,this._lContainer,s),co(i,n,!0,ko(s,this._lContainer)),e.attachToViewContainerRef(this),Pe(this._lContainer[8],s,e),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=this._lContainer[8];return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=uo(this._lContainer,t);n&&(je(this._lContainer[8],t),ho(n[1],n))}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=uo(this._lContainer,t);return n&&null!=je(this._lContainer[8],t)?new Ao(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Do(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Yn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Bn(this._hostTNode,this._hostView),t=xn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=Sn(e),a=t,s=t[6];o>1;)s=(a=a[15])[6],o--;return s}(e,this._hostView,this._hostTNode);return kn(e)&&null!=n?new Yn(n,t):new Yn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-Je}}]),i}(e));var o=i[n.index];if(tt(o))r=o;else{var a;if(4===n.type)a=bt(o);else if(a=i[11].createComment(""),at(i)){var s=i[11],c=_t(n,i);go(s,yo(s,c),a,function(e,t){return gt(e)?e.nextSibling(t):t.nextSibling}(s,c))}else wo(i[1],i,a,n);i[n.index]=r=Ur(o,i,a,n),Kr(i,r)}return new jo(r,n,i)}function Fo(e,t,n){if(!n&&it(e)){var i=Ct(e.index,t);return new Ao(i,i)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Ao(t[16],t):null}var No=function(){var e=function e(){Object(m.a)(this,e)};return e.__NG_ELEMENT_ID__=function(){return Bo()},e}(),Bo=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Fo(Rt(),At(),e)},Ho=Function,zo=new he("Set Injector scope."),Vo={},qo={},Uo=[],Go=void 0;function Wo(){return void 0===Go&&(Go=new xe),Go}function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Xo(e,n,t||Wo(),i)}var Xo=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Object(m.a)(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ee(n,(function(e){return r.processProvider(e,t,n)})),Ee([t],(function(e){return r.processInjectorType(e,[],a)})),this.records.set(de,Qo(void 0,this));var s=this.records.get(zo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:W(t))}return Object(g.a)(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A.Default;this.assertNotDestroyed();var i=be(this);try{if(!(n&A.SkipSelf)){var r=this.records.get(e);if(void 0===r){var o=ea(e)&&N(e);r=o&&this.injectableDefInScope(o)?Qo(Yo(e),Vo):null,this.records.set(e,r)}if(null!=r)return this.hydrate(e,r)}var a=n&A.Self?Wo():this.parent;return a.get(e,t=n&A.Optional&&t===fe?null:t)}catch(c){if("NullInjectorError"===c.name){var s=c.ngTempTokenPath=c.ngTempTokenPath||[];if(s.unshift(W(e)),i)throw c;return Oe(c,e,"R3InjectorError",this.source)}throw c}finally{be(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(W(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Z(e)))return!1;var r=H(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=H(o)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(a);try{Ee(r.imports,(function(e){i.processInjectorType(e,t,n)&&(void 0===c&&(c=[]),c.push(e))}))}finally{}if(void 0!==c)for(var l=function(e){var t=c[e],n=t.ngModule,r=t.providers;Ee(r,(function(e){return i.processProvider(e,n,r||Uo)}))},u=0;u<c.length;u++)l(u)}this.injectorDefTypes.add(a),this.records.set(a,Qo(r.factory,Vo));var h=r.providers;if(null!=h&&!s){var d=e;Ee(h,(function(e){return i.processProvider(e,d,h)}))}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=Jo(e=Z(e))?e:Z(e&&e.provide),r=function(e,t,n){return $o(e)?Qo(void 0,e.useValue):Qo(Zo(e),Vo)}(e);if(Jo(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=Qo(void 0,Vo,!0)).factory=function(){return Se(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Vo&&(t.value=qo,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function Yo(e){var t=N(e),n=null!==t?t.factory:Ze(e);if(null!==n)return n;var i=H(e);if(null!==i)return i.factory;if(e instanceof he)throw new Error("Token ".concat(W(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Ae(t,"?");throw new Error("Can't resolve all parameters for ".concat(W(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[z]||e[U]||e[q]&&e[q]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Zo(e,t,n){var i,r=void 0;if(Jo(e)){var o=Z(e);return Ze(o)||Yo(o)}if($o(e))r=function(){return Z(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,Object(u.a)(Se(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return we(Z(e.useExisting))};else{var a=Z(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ze(a)||Yo(a);r=function(){return y(a,Object(u.a)(Se(e.deps)))}}return r}function Qo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function $o(e){return null!==e&&"object"==typeof e&&ge in e}function Jo(e){return"function"==typeof e}function ea(e){return"function"==typeof e||"object"==typeof e&&e instanceof he}var ta=function(e,t,n){return function(e){var t=Ko(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},na=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ta(e,t,""):ta(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=fe,e.NULL=new xe,e.\u0275prov=R({token:e,providedIn:"any",factory:function(){return we(de)}}),e.__NG_ELEMENT_ID__=-1,e}(),ia=new he("AnalyzeForEntryComponents");function ra(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=K(r,s):2==o&&(i=K(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var oa=null;function aa(){if(!oa){var e=ie.Symbol;if(e&&e.iterator)oa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(oa=i)}}return oa}var sa=function(){function e(t){Object(m.a)(this,e),this.wrapped=t}return Object(g.a)(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function ca(e){return!!la(e)&&(Array.isArray(e)||!(e instanceof Map)&&aa()in e)}function la(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ua(e,t,n){return e[t]=n}function ha(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function da(e,t,n,i){var r=ha(e,t,n);return ha(e,t+1,i)||r}function fa(e,t,n,i){var r=At();return ha(r,qt(),t)&&(It(),zr(sn(),r,e,t,n,i)),fa}function pa(e,t,n,i){return ha(e,qt(),n)?t+On(n)+i:tr}function ma(e,t,n,i,r,o){var a=da(e,Vt(),n,r);return Ut(2),a?t+On(n)+i+On(r)+o:tr}function ga(e,t,n,i,r,o){var a=At(),s=pa(a,t,n,i);return s!==tr&&zr(sn(),a,e,s,r,o),ga}function va(e,t,n,i,r,o,a,s){var c=At(),l=ma(c,t,n,i,r,o);return l!==tr&&zr(sn(),c,e,l,a,s),va}function ba(e,t,n,i,r,o,a,s){var c=At(),l=It(),u=e+$e,h=l.firstCreatePass?function(e,t,n,i,r,o,a,s,c){var l=t.consts,u=vr(t,n[6],e,0,a||null,Mt(l,s));jr(t,n,u,Mt(l,c)),un(t,u);var h=u.tViews=Or(2,-1,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l),d=Tr(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==t.queries&&(t.queries.template(t,u),h.queries=t.queries.embeddedTView(u)),u}(e,l,c,t,n,i,r,o,a):l.data[u];Lt(h,!1);var d=c[11].createComment("");wo(l,c,d,h),Vi(d,c),Kr(c,c[u]=Ur(d,c,d,h)),rt(h)&&Cr(l,c,h),null!=a&&Sr(c,h,s)}function ya(e){return kt(Pt.lFrame.contextLView,e)}function _a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.Default,n=At();if(null==n)return we(e,t);var i=Rt();return zn(i,n,Z(e),t)}function wa(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(bn(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(Rt(),e)}function ka(e,t,n){var i=At();return ha(i,qt(),t)&&Pr(It(),sn(),i,e,t,i[11],n,!1),ka}function Ca(e,t,n,i,r){var o=r?"class":"style";no(e,n,t.inputs[o],o,i)}function Sa(e,t,n,i){var r=At(),o=It(),a=$e+e,s=r[11],c=r[a]=mr(t,s,Pt.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,c=Mt(s,o),l=vr(t,n[6],e,3,r,c);return jr(t,n,l,Mt(s,a)),null!==l.attrs&&ra(l,l.attrs,!1),null!==l.mergedAttrs&&ra(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(e,o,r,0,t,n,i):o.data[a];Lt(l,!0);var u=l.mergedAttrs;null!==u&&vn(s,c,u);var h=l.classes;null!==h&&To(s,c,h);var d=l.styles;null!==d&&Mo(s,c,d),wo(o,r,c,l),0===Pt.lFrame.elementDepthCount&&Vi(c,r),Pt.lFrame.elementDepthCount++,rt(l)&&(Cr(o,r,l),kr(o,l,r)),null!==i&&Sr(r,l)}function xa(){var e=Rt();Ft()?Nt():Lt(e=e.parent,!1);var t=e;Pt.lFrame.elementDepthCount--;var n=It();n.firstCreatePass&&(un(n,e),nt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Ca(n,t,At(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Ca(n,t,At(),t.stylesWithoutHost,!1)}function Oa(e,t,n,i){Sa(e,t,n,i),xa()}function Ma(e,t,n){var i=At(),r=It(),o=e+$e,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Mt(o,i),s=vr(t,n[6],e,4,"ng-container",a);return null!==a&&ra(s,a,!0),jr(t,n,s,Mt(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,r,i,t,n):r.data[o];Lt(a,!0);var s=i[o]=i[11].createComment("");wo(r,i,s,a),Vi(s,i),rt(a)&&(Cr(r,i,a),kr(r,a,i)),null!=n&&Sr(i,a)}function Ta(){var e=Rt(),t=It();Ft()?Nt():Lt(e=e.parent,!1),t.firstCreatePass&&(un(t,e),nt(e)&&t.queries.elementEnd(e))}function Ea(e,t,n){Ma(e,t,n),Ta()}function Pa(){return At()}function ja(e){return!!e&&"function"==typeof e.then}function Aa(e){return!!e&&"function"==typeof e.subscribe}function Ia(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=At(),o=It(),a=Rt();return La(o,r,r[11],a,e,t,n,i),Ia}function Da(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Rt(),o=At(),a=It(),s=Kt(a.data),c=eo(s,r,o);return La(a,o,c,r,e,t,n,i),Da}function Ra(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],c=r[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}function La(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=rt(i),l=e.firstCreatePass,u=l&&(e.cleanup||(e.cleanup=[])),h=Jr(t),d=!0;if(3===i.type){var f=_t(i,t),p=s?s(f):Ne,m=p.target||f,g=h.length,v=s?function(e){return s(bt(e[i.index])).target}:i.index;if(gt(n)){var b=null;if(!s&&c&&(b=Ra(e,t,r,i.index)),null!==b){var y=b.__ngLastListenerFn__||b;y.__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,d=!1}else{o=Na(i,t,o,!1);var _=n.listen(p.name||m,r,o);h.push(o,_),u&&u.push(r,v,g,g+1)}}else o=Na(i,t,o,!0),m.addEventListener(r,o,a),h.push(o),u&&u.push(r,v,g,a)}var w,k=i.outputs;if(d&&null!==k&&(w=k[r])){var C=w.length;if(C)for(var S=0;S<C;S+=2){var x=w[S],O=w[S+1],M=t[x],T=M[O],E=T.subscribe(o),P=h.length;h.push(o,E),u&&u.push(r,i.index,P,-(P+1))}}}function Fa(e,t,n){try{return!1!==t(n)}catch(i){return to(e,i),!1}}function Na(e,t,n,i){return function r(o){if(o===Function)return n;var a=2&e.flags?Ct(e.index,t):t;0==(32&t[2])&&Xr(a);for(var s=Fa(t,n,o),c=r.__ngNextListenerFn__;c;)s=Fa(t,c,o)&&s,c=c.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return rn(e)}function Ha(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?Qi(e,o,!0):$i(i,o))return r}else n=r}return n}function za(e){var t=At()[16][6];if(!t.projection)for(var n=t.projection=Ae(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Ha(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=At(),r=It(),o=vr(r,i[6],e,1,null,n||null);null===o.projection&&(o.projection=t),Nt(),xo(r,i,o)}function qa(e,t,n){return Ua(e,"",t,"",n),qa}function Ua(e,t,n,i,r){var o=At(),a=pa(o,t,n,i);return a!==tr&&Pr(It(),sn(),o,e,a,o[11],r,!1),Ua}function Ga(e,t,n,i,r,o,a){var s=At(),c=ma(s,t,n,i,r,o);return c!==tr&&Pr(It(),sn(),s,e,c,s[11],a,!1),Ga}var Wa=[];function Ka(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?lr(o):hr(o),c=!1;0!==s&&(!1===c||a);){var l=e[s+1];Xa(e[s],t)&&(c=!0,e[s+1]=i?fr(l):ur(l)),s=i?lr(l):hr(l)}c&&(e[n+1]=i?ur(o):fr(o))}function Xa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Re(e,t)>=0}var Ya={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Za(e){return e.substring(Ya.key,Ya.keyEnd)}function Qa(e){return e.substring(Ya.value,Ya.valueEnd)}function $a(e,t){var n=Ya.textEnd;return n===t?-1:(t=Ya.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ya.key=t,n),ts(e,t,n))}function Ja(e,t){var n=Ya.textEnd,i=Ya.key=ts(e,t,n);return n===i?-1:(i=Ya.keyEnd=function(e,t,n){for(var i;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=ns(e,i,n),i=Ya.value=ts(e,i,n),i=Ya.valueEnd=function(e,t,n){for(var i=-1,r=-1,o=-1,a=t,s=a;a<n;){var c=e.charCodeAt(a++);if(59===c)return s;34===c||39===c?s=a=is(e,c,a,n):t===a-4&&85===o&&82===r&&76===i&&40===c?s=a=is(e,41,a,n):c>32&&(s=a),o=r,r=i,i=-33&c}return s}(e,i,n),ns(e,i,n))}function es(e){Ya.key=0,Ya.keyEnd=0,Ya.value=0,Ya.valueEnd=0,Ya.textEnd=e.length}function ts(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ns(e,t,n,i){return(t=ts(e,t,n))<n&&t++,t}function is(e,t,n,i){for(var r=-1,o=n;o<i;){var a=e.charCodeAt(o++);if(a==t&&92!==r)return o;r=92==a&&92===r?0:a}throw new Error}function rs(e,t,n){return ls(e,t,n,!1),rs}function os(e,t){return ls(e,t,null,!0),os}function as(e){us(ms,ss,e,!1)}function ss(e,t){for(var n=function(e){return es(e),Ja(e,ts(e,0,Ya.textEnd))}(t);n>=0;n=Ja(t,n))ms(e,Za(t),Qa(t))}function cs(e,t){for(var n=function(e){return es(e),$a(e,ts(e,0,Ya.textEnd))}(t);n>=0;n=$a(t,n))Ie(e,Za(t),!0)}function ls(e,t,n,i){var r=At(),o=It(),a=Ut(2);o.firstUpdatePass&&ds(o,e,a,i),t!==tr&&ha(r,a,t)&&gs(o,o.data[on()+$e],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=W(ci(e)))),e}(t,n),i,a)}function us(e,t,n,i){var r=It(),o=Ut(2);r.firstUpdatePass&&ds(r,null,o,i);var a=At();if(n!==tr&&ha(a,o,n)){var s=r.data[on()+$e];if(ys(s,i)&&!hs(r,o)){var c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=K(c,n||"")),Ca(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===tr&&(r=Wa);for(var c=0,l=0,u=0<r.length?r[0]:null,h=0<o.length?o[0]:null;null!==u||null!==h;){var d=c<r.length?r[c+1]:void 0,f=l<o.length?o[l+1]:void 0,p=null,m=void 0;u===h?(c+=2,l+=2,d!==f&&(p=h,m=f)):null===h||null!==u&&u<h?(c+=2,p=u):(l+=2,p=h,m=f),null!==p&&gs(e,t,n,i,p,m,a,s),u=c<r.length?r[c]:null,h=l<o.length?o[l]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return Wa;var i=[],r=ci(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,o)}}function hs(e,t){return t>=e.expandoStartIndex}function ds(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[on()+$e],a=hs(e,n);ys(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=Kt(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=ps(n=fs(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=fs(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==hr(i))return e[lr(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[lr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=ps(s=fs(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=ps(i,e[o].hostAttrs,n);return ps(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=lr(a),c=hr(a);e[i]=n;var l,u=!1;if(Array.isArray(n)?(null===(l=n[1])||Re(n,l)>0)&&(u=!0):l=n,r)if(0!==c){var h=lr(e[s+1]);e[i+1]=cr(h,s),0!==h&&(e[h+1]=dr(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=cr(s,0),0!==s&&(e[s+1]=dr(e[s+1],i)),s=i;else e[i+1]=cr(c,0),0===s?s=i:e[c+1]=dr(e[c+1],i),c=i;u&&(e[i+1]=ur(e[i+1])),Ka(e,l,i,!0),Ka(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Re(o,t)>=0&&(n[i+1]=fr(n[i+1]))}(t,l,e,i,o),a=cr(s,c),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function fs(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=ps(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function ps(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ie(e,a,!!n||t[++o]))}return void 0===e?null:e}function ms(e,t,n){Ie(e,t,ci(n))}function gs(e,t,n,i,r,o,a,s){if(3===t.type){var c=e.data,l=c[s+1];bs(1==(1&l)?vs(c,t,n,r,hr(l),a):void 0)||(bs(o)||2==(2&l)&&(o=vs(c,null,n,r,s,a)),function(e,t,n,i,r){var o=gt(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1==i.indexOf("-")?void 0:2;null==r?o?e.removeStyle(n,i,a):n.style.removeProperty(i):o?e.setStyle(n,i,r,a):n.style.setProperty(i,r)}}(i,a,yt(on(),n),r,o))}}function vs(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var c=e[r],l=Array.isArray(c),u=l?c[1]:c,h=null===u,d=n[r+1];d===tr&&(d=h?Wa:void 0);var f=h?De(d,i):u===i?d:void 0;if(l&&!bs(f)&&(f=De(c,i)),bs(f)&&(s=f,a))return s;var p=e[r+1];r=a?lr(p):hr(p)}if(null!==t){var m=o?t.residualClasses:t.residualStyles;null!=m&&(s=De(m,i))}return s}function bs(e){return void 0!==e}function ys(e,t){return 0!=(e.flags&(t?16:32))}function _s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=At(),i=It(),r=e+$e,o=i.firstCreatePass?vr(i,n[6],e,3,null,null):i.data[r],a=n[r]=so(t,n[11]);wo(i,n,a,o),Lt(o,!1)}function ws(e){return ks("",e,""),ws}function ks(e,t,n){var i=At(),r=pa(i,e,t,n);return r!==tr&&io(i,on(),r),ks}function Cs(e,t,n,i,r){var o=At(),a=ma(o,e,t,n,i,r);return a!==tr&&io(o,on(),a),Cs}function Ss(e,t,n,i,r,o,a){var s=At(),c=function(e,t,n,i,r,o,a,s){var c=function(e,t,n,i,r){var o=da(e,t,n,i);return ha(e,t+2,r)||o}(e,Vt(),n,r,a);return Ut(3),c?t+On(n)+i+On(r)+o+On(a)+s:tr}(s,e,t,n,i,r,o,a);return c!==tr&&io(s,on(),c),Ss}function xs(e,t,n){us(Ie,cs,pa(At(),e,t,n),!0)}function Os(e,t,n){var i=At();return ha(i,qt(),t)&&Pr(It(),sn(),i,e,t,i[11],n,!0),Os}function Ms(e,t,n){var i=At();if(ha(i,qt(),t)){var r=It(),o=sn();Pr(r,o,i,e,t,eo(Kt(r.data),o,i),n,!0)}return Ms}function Ts(e,t){var n=St(e)[1],i=n.data.length-1;un(n,{directiveStart:i,directiveEnd:i+1})}function Es(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(ot(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Ps(e.inputs),o.declaredInputs=Ps(e.declaredInputs),o.outputs=Ps(e.outputs);var a=r.hostBindings;a&&Is(e,a);var s=r.viewQuery,c=r.contentQueries;if(s&&js(e,s),c&&As(e,c),D(e.inputs,r.inputs),D(e.declaredInputs,r.declaredInputs),D(e.outputs,r.outputs),ot(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var u=r.features;if(u)for(var h=0;h<u.length;h++){var d=u[h];d&&d.ngInherit&&d(e),d===Es&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=_n(r.hostAttrs,n=_n(n,r.hostAttrs))}}(i)}function Ps(e){return e===Ne?{}:e===Be?[]:e}function js(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function As(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Is(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}function Ds(e,t,n){var i=It();if(i.firstCreatePass){var r=ot(e);Rs(n,i.data,i.blueprint,r,!0),Rs(t,i.data,i.blueprint,r,!1)}}function Rs(e,t,n,i,r){if(e=Z(e),Array.isArray(e))for(var o=0;o<e.length;o++)Rs(e[o],t,n,i,r);else{var a=It(),s=At(),c=Jo(e)?e:Z(e.provide),l=Zo(e),u=Rt(),h=1048575&u.providerIndexes,d=u.directiveStart,f=u.providerIndexes>>20;if(Jo(e)||!e.multi){var p=new gn(l,r,_a),m=Ns(c,t,r?h:h+f,d);-1===m?(Hn(Ln(u,s),a,c),Ls(a,e,t.length),t.push(c),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var g=Ns(c,t,h+f,d),v=Ns(c,t,h,h+f),b=v>=0&&n[v];if(r&&!b||!r&&!(g>=0&&n[g])){Hn(Ln(u,s),a,c);var y=function(e,t,n,i,r){var o=new gn(e,n,_a);return o.multi=[],o.index=t,o.componentProviders=0,Fs(o,r,i&&!n),o}(r?Hs:Bs,n.length,r,i,l);!r&&b&&(n[v].providerFactory=y),Ls(a,e,t.length,0),t.push(c),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(y),s.push(y)}else Ls(a,e,g>-1?g:v,Fs(n[r?v:g],l,!r&&i));!r&&i&&b&&n[v].componentProviders++}}}function Ls(e,t,n,i){var r=Jo(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Fs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ns(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function Bs(e,t,n,i){return zs(this.multi,[])}function Hs(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=Gn(n,n[1],this.providerFactory.index,i);zs(o,r=s.slice(0,a));for(var c=a;c<s.length;c++)r.push(s[c])}else zs(o,r=[]);return r}function zs(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function Vs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return Ds(n,i?i(e):e,t)}}}var qs=function e(){Object(m.a)(this,e)},Us=function e(){Object(m.a)(this,e)},Gs=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(W(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ws=function(){var e=function e(){Object(m.a)(this,e)};return e.NULL=new Gs,e}(),Ks=function(){var e=function e(t){Object(m.a)(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return Xs(e)},e}(),Xs=function(e){return Do(e,Rt(),At())},Ys=function e(){Object(m.a)(this,e)},Zs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Qs=function(){var e=function e(){Object(m.a)(this,e)};return e.__NG_ELEMENT_ID__=function(){return $s()},e}(),$s=function(){var e=At(),t=Ct(Rt().index,e);return function(e){var t=e[11];if(gt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(et(t)?t:e)},Js=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275prov=R({token:e,providedIn:"root",factory:function(){return null}}),e}(),ec=function e(t){Object(m.a)(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},tc=new ec("10.1.2"),nc=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"supports",value:function(e){return ca(e)}},{key:"create",value:function(e){return new rc(e)}}]),e}(),ic=function(e,t){return t},rc=function(){function e(t){Object(m.a)(this,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=t||ic}return Object(g.a)(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<cc(n,i,r)?t:n,a=cc(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var c=a-i,l=s-i;if(c!=l){for(var u=0;u<c;u++){var h=u<r.length?r[u]:r[u]=0,d=h+u;l<=d&&d<c&&(r[u]=h+1)}r[o.previousIndex]=l-c}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!ca(e))throw new Error("Error trying to diff '".concat(W(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=e[s]),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[aa()]();!(i=r.next()).done;)t(i.value)}(e,(function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):e=this._addAfter(new oc(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new sc),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),oc=function e(t,n){Object(m.a)(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},ac=function(){function e(){Object(m.a)(this,e),this._head=null,this._tail=null}return Object(g.a)(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),sc=function(){function e(){Object(m.a)(this,e),this.map=new Map}return Object(g.a)(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new ac,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function cc(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var lc=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"supports",value:function(e){return e instanceof Map||la(e)}},{key:"create",value:function(){return new uc}}]),e}(),uc=function(){function e(){Object(m.a)(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object(g.a)(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||la(e)))throw new Error("Error trying to diff '".concat(W(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new hc(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),hc=function e(t){Object(m.a)(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},dc=function(){var e=function(){function e(t){Object(m.a)(this,e),this.factories=t}return Object(g.a)(e,[{key:"find",value:function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new j,new E]]}}}]),e}();return e.\u0275prov=R({token:e,providedIn:"root",factory:function(){return new e([new nc])}}),e}(),fc=function(){var e=function(){function e(t){Object(m.a)(this,e),this.factories=t}return Object(g.a)(e,[{key:"find",value:function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new j,new E]]}}}]),e}();return e.\u0275prov=R({token:e,providedIn:"root",factory:function(){return new e([new lc])}}),e}(),pc=[new lc],mc=new dc([new nc]),gc=new fc(pc),vc=function(){var e=function e(){Object(m.a)(this,e)};return e.__NG_ELEMENT_ID__=function(){return bc(e,Ks)},e}(),bc=function(e,t){return Ro(e,t,Rt(),At())},yc=function(){var e=function e(){Object(m.a)(this,e)};return e.__NG_ELEMENT_ID__=function(){return _c(e,Ks)},e}(),_c=function(e,t){return Lo(e,t,Rt(),At())},wc={},kc=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this)).ngModule=e,i}return Object(g.a)(n,[{key:"resolveComponentFactory",value:function(e){var t=Ye(e);return new xc(t,this.ngModule)}}]),n}(Ws);function Cc(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Sc=new he("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Tn}}),xc=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(er).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return Object(g.a)(n,[{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,wc,r);return o!==wc||i===wc?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Ys,vt),c=a.get(Js,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(gt(e))return e.selectRootElement(t,n===Fe.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):mr(u,s.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?ft:"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Tn,clean:$r,playerHandler:null,flags:0},p=Or(0,-1,null,1,0,null,null,null,null,null),m=gr(null,p,f,d,null,null,s,l,c,a);Qt(m,null);try{var g=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=vr(a,null,0,3,null,null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(ra(s,c,!0),null!==e&&(vn(r,e,c),null!==s.classes&&To(r,e,s.classes),null!==s.styles&&Mo(r,e,s.styles)));var l=i.createRenderer(e,t),u=gr(n,xr(t),null,t.onPush?64:16,n[20],s,i,l,void 0);return a.firstCreatePass&&(Hn(Ln(s,n),a,t.type),Lr(a,s),Nr(s,n.length,1)),Kr(n,u),n[20]=u}(h,this.componentDef,m,s,l);if(h)if(n)vn(l,h,["ng-version",tc.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!Yi(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),b=v.attrs,y=v.classes;b&&vn(l,h,b),y&&y.length>0&&To(l,h,y.join(" "))}if(o=wt(p,0),void 0!==t)for(var _=o.projection=[],w=0;w<this.ngContentSelectors.length;w++){var k=t[w];_.push(null!=k?Array.from(k):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=Rt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Rr(e,i,1),Br(e,t,n));var r=Gn(t,e,t.length-1,i);Vi(r,t);var o=_t(i,t);return o&&Vi(o,t),r}(o,n,t);i.components.push(a),e[8]=a,r&&r.forEach((function(e){return e(a,t)})),t.contentQueries&&t.contentQueries(1,a,n.length-1);var s=Rt();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){an(s.index-$e);var c=n[1];Ar(c,t),Ir(c,n,t.hostVars),Dr(t,a)}return a}(g,this.componentDef,m,f,[Ts]),br(p,m,null)}finally{nn()}var C=new Oc(this.componentType,r,Do(Ks,o,m),m,o);return p.node.child=o,C}},{key:"inputs",get:function(){return Cc(this.componentDef.inputs)}},{key:"outputs",get:function(){return Cc(this.componentDef.outputs)}}]),n}(Us),Oc=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){var s,c,l,u;return Object(m.a)(this,n),(s=t.call(this)).location=r,s._rootLView=o,s._tNode=a,s.destroyCbs=[],s.instance=i,s.hostView=s.changeDetectorRef=new Io(o),l=o,null==(u=(c=o[1]).node)&&(c.node=u=Tr(0,null,2,-1,null,null)),l[6]=u,s.componentType=e,s}return Object(g.a)(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Yn(this._tNode,this._rootLView)}}]),n}(qs),Mc=void 0,Tc=["en",[["a","p"],["AM","PM"],Mc],[["AM","PM"],Mc,Mc],[["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"]],Mc,[["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"]],Mc,[["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}",Mc,"{1} 'at' {0}",Mc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ec={};function Pc(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=jc(t);if(n)return n;var i=t.split("-")[0];if(n=jc(i))return n;if("en"===i)return Tc;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function jc(e){return e in Ec||(Ec[e]=ie.ng&&ie.ng.common&&ie.ng.common.locales&&ie.ng.common.locales[e]),Ec[e]}var Ac=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),Ic="en-US";function Dc(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Rc=new Map,Lc=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;Object(m.a)(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=Object(s.a)(r),r.destroyCbs=[],r.componentFactoryResolver=new kc(Object(s.a)(r));var o=Qe(e),a=e[ce]||null;return a&&Dc(a),r._bootstrapComponents=An(o.bootstrap),r._r3Injector=Ko(e,i,[{provide:Me,useValue:Object(s.a)(r)},{provide:Ws,useValue:r.componentFactoryResolver}],W(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return Object(g.a)(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:na.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A.Default;return e===na||e===Me||e===de?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Me),Fc=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this)).moduleType=e,null!==Qe(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(W(t)," vs ").concat(W(t.name)))})(n,Rc.get(n),t),Rc.set(n,t)}var i=t.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(t){return e(t)}))}(e),i}return Object(g.a)(n,[{key:"create",value:function(e){return new Lc(this.moduleType,e)}}]),n}(Te);function Nc(e,t,n){var i=zt()+e,r=At();return r[i]===tr?ua(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Bc(e,t,n,i){return Vc(At(),zt(),e,t,n,i)}function Hc(e,t,n,i,r){return qc(At(),zt(),e,t,n,i,r)}function zc(e,t){var n=e[t];return n===tr?void 0:n}function Vc(e,t,n,i,r,o){var a=t+n;return ha(e,a,r)?ua(e,a+1,o?i.call(o,r):i(r)):zc(e,a+1)}function qc(e,t,n,i,r,o,a){var s=t+n;return da(e,s,r,o)?ua(e,s+2,a?i.call(a,r,o):i(r,o)):zc(e,s+2)}function Uc(e,t){var n,i=It(),r=e+$e;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Ze(n.type)),a=ye(_a),s=Dn(!1),c=o();return Dn(s),ye(a),function(e,t,n,i){var r=n+$e;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=i}(i,At(),e,c),c}function Gc(e,t,n){var i=At(),r=kt(i,e);return Xc(i,Kc(i,e)?Vc(i,zt(),t,r.transform,n,r):r.transform(n))}function Wc(e,t,n,i){var r=At(),o=kt(r,e);return Xc(r,Kc(r,e)?qc(r,zt(),t,o.transform,n,i,o):o.transform(n,i))}function Kc(e,t){return e[1].data[t+$e].pure}function Xc(e,t){return sa.isWrapped(t)&&(t=sa.unwrap(t),e[Vt()]=tr),t}var Yc=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(m.a)(this,n),(e=t.call(this)).__isAsync=i,e}return Object(g.a)(n,[{key:"emit",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,s=function(e){return null},c=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(c=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),i&&(c=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var l=Object(o.a)(Object(a.a)(n.prototype),"subscribe",this).call(this,r,s,c);return e instanceof _.a&&e.add(l),l}}]),n}(w.b);function Zc(){return this._results[aa()]()}var Qc=function(){function e(){Object(m.a)(this,e),this.dirty=!0,this._results=[],this.changes=new Yc,this.length=0;var t=aa(),n=e.prototype;n[t]||(n[t]=Zc)}return Object(g.a)(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?(n===t&&(n=t.slice(0,i)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),$c=function(){function e(t){Object(m.a)(this,e),this.queryList=t,this.matches=null}return Object(g.a)(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Jc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(m.a)(this,e),this.queries=t}return Object(g.a)(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==gl(e,t).matches&&this.queries[t].setDirty()}}]),e}(),el=function e(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Object(m.a)(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=r},tl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(m.a)(this,e),this.queries=t}return Object(g.a)(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"track",value:function(e){this.queries.push(e)}},{key:"length",get:function(){return this.queries.length}}]),e}(),nl=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;Object(m.a)(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return Object(g.a)(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,il(t,r)),this.matchTNodeWithReadOption(e,t,Un(t,e,r,!1,!1))}else n===vc?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Un(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Ks||i===yc||i===vc&&0===t.type)this.addMatch(t.index,-2);else{var r=Un(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function il(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function rl(e,t,n,i){return-1===n?function(e,t){return 3===e.type||4===e.type?Do(Ks,e,t):0===e.type?Ro(vc,Ks,e,t):null}(t,e):-2===n?function(e,t,n){return n===Ks?Do(Ks,t,e):n===vc?Ro(vc,Ks,t,e):n===yc?Lo(yc,Ks,t,e):void 0}(e,t,i):Gn(e,e[1],n,t)}function ol(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],c=0;c<a.length;c+=2){var l=a[c];s.push(l<0?null:rl(t,o[l],a[c+1],n.metadata.read))}r.matches=s}return r.matches}function al(e){var t=At(),n=It(),i=Xt();Yt(i+1);var r=gl(n,i);if(e.dirty&&xt(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?function e(t,n,i,r){var o=t.queries.getByIndex(i),a=o.matches;if(null!==a)for(var s=ol(t,n,o,i),c=0;c<a.length;c+=2){var l=a[c];if(l>0)r.push(s[c/2]);else{for(var u=a[c+1],h=n[-l],d=Je;d<h.length;d++){var f=h[d];f[17]===f[3]&&e(f[1],f,u,r)}if(null!==h[9])for(var p=h[9],m=0;m<p.length;m++){var g=p[m];e(g[1],g,u,r)}}}return r}(n,t,i,[]):ol(n,t,r,i);e.reset(o),e.notifyOnChanges()}return!0}return!1}function sl(e,t,n){ll(It(),At(),e,t,n,!0)}function cl(e,t,n){ll(It(),At(),e,t,n,!1)}function ll(e,t,n,i,r,o){e.firstCreatePass&&(ml(e,new el(n,i,o,r),-1),o&&(e.staticViewQueries=!0)),pl(e,t)}function ul(e,t,n,i){dl(It(),At(),t,n,i,!1,Rt(),e)}function hl(e,t,n,i){dl(It(),At(),t,n,i,!0,Rt(),e)}function dl(e,t,n,i,r,o,a,s){e.firstCreatePass&&(ml(e,new el(n,i,o,r),a.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,s),o&&(e.staticContentQueries=!0)),pl(e,t)}function fl(){return e=At(),t=Xt(),e[19].queries[t].queryList;var e,t}function pl(e,t){var n=new Qc;Mr(e,t,n,n.destroy),null===t[19]&&(t[19]=new Jc),t[19].queries.push(new $c(n))}function ml(e,t,n){null===e.queries&&(e.queries=new tl),e.queries.track(new nl(t,n))}function gl(e,t){return e.queries.getByIndex(t)}var vl=new he("Application Initializer"),bl=function(){var e=function(){function e(t){var n=this;Object(m.a)(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return Object(g.a)(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();ja(r)&&t.push(r)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(vl,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),yl=new he("AppId"),_l={provide:yl,useFactory:function(){return"".concat(wl()).concat(wl()).concat(wl())},deps:[]};function wl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var kl=new he("Platform Initializer"),Cl=new he("Platform ID"),Sl=new he("appBootstrapListener"),xl=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Ol=new he("LocaleId"),Ml=new he("DefaultCurrencyCode"),Tl=function e(t,n){Object(m.a)(this,e),this.ngModuleFactory=t,this.componentFactories=n},El=function(e){return new Fc(e)},Pl=El,jl=function(e){return Promise.resolve(El(e))},Al=function(e){var t=El(e),n=An(Qe(e).declarations).reduce((function(e,t){var n=Ye(t);return n&&e.push(new xc(n)),e}),[]);return new Tl(t,n)},Il=Al,Dl=function(e){return Promise.resolve(Al(e))},Rl=function(){var e=function(){function e(){Object(m.a)(this,e),this.compileModuleSync=Pl,this.compileModuleAsync=jl,this.compileModuleAndAllComponentsSync=Il,this.compileModuleAndAllComponentsAsync=Dl}return Object(g.a)(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Ll=function(){return Promise.resolve(0)}();function Fl(e){"undefined"==typeof Zone?Ll.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Nl=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,o=void 0!==r&&r;if(Object(m.a)(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Yc(!1),this.onMicrotaskEmpty=new Yc(!1),this.onStable=new Yc(!1),this.onError=new Yc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var a,s,c,l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.wtfZoneSpec&&(l._inner=l._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=o,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function(){var e=ie.requestAnimationFrame,t=ie.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,s=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ie,(function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(function(){e.lastRequestAnimationFrameId=-1,Vl(e),zl(e)}),void 0,(function(){}),(function(){}))),e.fakeTopEventTask.invoke()})),Vl(e))}(a)},(a=l)._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:c=!!a.shouldCoalesceEventChangeDetection&&a.nativeRequestAnimationFrame&&s},onInvokeTask:function(e,t,n,i,r,o){try{return ql(a),e.invokeTask(n,i,r,o)}finally{c&&"eventTask"===i.type&&c(),Ul(a)}},onInvoke:function(e,t,n,i,r,o,s){try{return ql(a),e.invoke(n,i,r,o,s)}finally{Ul(a)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(a._hasPendingMicrotasks=i.microTask,Vl(a),zl(a)):"macroTask"==i.change&&(a.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),a.runOutsideAngular((function(){return a.onError.emit(i)})),!1}})}return Object(g.a)(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,Hl,Bl,Bl);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function Bl(){}var Hl={};function zl(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 Vl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function ql(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ul(e){e._nesting--,zl(e)}var Gl,Wl=function(){function e(){Object(m.a)(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Yc,this.onMicrotaskEmpty=new Yc,this.onStable=new Yc,this.onError=new Yc}return Object(g.a)(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),Kl=function(){var e=function(){function e(t){var n=this;Object(m.a)(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return Object(g.a)(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){Nl.assertNotInAngularZone(),Fl((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Fl((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(e){return e.timeoutId!==r})),e(i._didWork,i.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Nl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Xl=function(){var e=function(){function e(){Object(m.a)(this,e),this._applications=new Map,Yl.addToWindow(this)}return Object(g.a)(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Yl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Yl=new(function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Zl=function(e,t,n){var i=new Fc(n);return Promise.resolve(i)},Ql=new he("AllowMultipleToken"),$l=function e(t,n){Object(m.a)(this,e),this.name=t,this.token=n};function Jl(e){if(Gl&&!Gl.destroyed&&!Gl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Gl=e.get(iu);var t=e.get(kl,null);return t&&t.forEach((function(e){return e()})),Gl}function eu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new he(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=nu();if(!o||o.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:zo,useValue:"platform"});Jl(na.create({providers:a,name:i}))}return tu(r)}}function tu(e){var t=nu();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}function nu(){return Gl&&!Gl.destroyed?Gl:null}var iu=function(){var e=function(){function e(t){Object(m.a)(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return Object(g.a)(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(i=t&&t.ngZoneEventCoalescing||!1,"noop"===(n=t?t.ngZone:void 0)?new Wl:("zone.js"===n?void 0:n)||new Nl({enableLongStackTrace:fi(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Nl,useValue:o}];return o.run((function(){var t=na.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(ti,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return au(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){i.handleError(e)}})})),function(e,t,i){try{var o=((a=n.injector.get(bl)).runInitializers(),a.donePromise.then((function(){return Dc(n.injector.get(Ol,Ic)||Ic),r._moduleDoBootstrap(n),n})));return ja(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(i,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=ru({},n);return Zl(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,i)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(ou);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(W(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)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(na))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}();function ru(e,t){return Array.isArray(t)?t.reduce(ru,e):Object.assign(Object.assign({},e),t)}var ou=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;Object(m.a)(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=fi(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var c=new k.a((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),l=new k.a((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){Nl.assertNotInAngularZone(),Fl((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){Nl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(C.a)(c,l.pipe(Object(S.a)()))}return Object(g.a)(e,[{key:"bootstrap",value:function(e,t){var n,i=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.");n=e instanceof Us?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Me),o=n.create(na.NULL,[],t||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(Kl,null);return a&&o.injector.get(Xl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),fi()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=d(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var i,r=d(this._views);try{for(r.s();!(i=r.n()).done;)i.value.checkNoChanges()}catch(o){r.e(o)}finally{r.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;au(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),au(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Nl),we(xl),we(na),we(ti),we(Ws),we(bl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}();function au(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var su=function e(){Object(m.a)(this,e)},cu=function e(){Object(m.a)(this,e)},lu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},uu=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._compiler=t,this._config=n||lu}return Object(g.a)(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=l(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("crnd")(r).then((function(e){return e[o]})).then((function(e){return hu(e,r,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=l(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(e){return e[r+o]})).then((function(e){return hu(e,i,r)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Rl),we(cu,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}();function hu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var du=eu(null,"core",[{provide:Cl,useValue:"unknown"},{provide:iu,deps:[na]},{provide:Xl,deps:[]},{provide:xl,deps:[]}]),fu=[{provide:ou,useClass:ou,deps:[Nl,xl,na,ti,Ws,bl]},{provide:Sc,deps:[Nl],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:bl,useClass:bl,deps:[[new E,vl]]},{provide:Rl,useClass:Rl,deps:[]},_l,{provide:dc,useFactory:function(){return mc},deps:[]},{provide:fc,useFactory:function(){return gc},deps:[]},{provide:Ol,useFactory:function(e){return Dc(e=e||"undefined"!=typeof $localize&&$localize.locale||Ic),e},deps:[[new T(Ol),new E,new j]]},{provide:Ml,useValue:"USD"}],pu=function(){var e=function e(t){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)(we(ou))},providers:fu}),e}(),mu=null;function gu(){return mu}var vu=function e(){Object(m.a)(this,e)},bu=new he("DocumentToken"),yu=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:_u,token:e,providedIn:"platform"}),e}();function _u(){return we(ku)}var wu=new he("Location Initialized"),ku=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this))._doc=e,i._init(),i}return Object(g.a)(n,[{key:"_init",value:function(){this.location=gu().getLocation(),this._history=gu().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return gu().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){gu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){gu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){Cu()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Cu()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(yu);return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({factory:Su,token:e,providedIn:"platform"}),e}();function Cu(){return!!window.history.pushState}function Su(){return new ku(we(bu))}function xu(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Ou(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Mu(e){return e&&"?"!==e[0]?"?"+e:e}var Tu=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:Eu,token:e,providedIn:"root"}),e}();function Eu(e){var t=we(bu).location;return new ju(we(yu),t&&t.origin||"")}var Pu=new he("appBaseHref"),ju=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;if(Object(m.a)(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,r}return Object(g.a)(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return xu(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Mu(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Mu(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Mu(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Tu);return e.\u0275fac=function(t){return new(t||e)(we(yu),we(Pu,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Au=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return Object(g.a)(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=xu(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Mu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Mu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Tu);return e.\u0275fac=function(t){return new(t||e)(we(yu),we(Pu,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Iu=function(){var e=function(){function e(t,n){var i=this;Object(m.a)(this,e),this._subject=new Yc,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Ou(Ru(r)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return Object(g.a)(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Mu(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ru(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Mu(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Mu(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Tu),we(yu))},e.normalizeQueryParams=Mu,e.joinWithSlash=xu,e.stripTrailingSlash=Ou,e.\u0275prov=R({factory:Du,token:e,providedIn:"root"}),e}();function Du(){return new Iu(we(Tu),we(yu))}function Ru(e){return e.replace(/\/index.html$/,"")}var Lu={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Fu=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),Nu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Bu=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),Hu=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),zu=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),Vu=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function qu(e,t){return Zu(Pc(e)[Ac.DateFormat],t)}function Uu(e,t){return Zu(Pc(e)[Ac.TimeFormat],t)}function Gu(e,t){return Zu(Pc(e)[Ac.DateTimeFormat],t)}function Wu(e,t){var n=Pc(e),i=n[Ac.NumberSymbols][t];if(void 0===i){if(t===Vu.CurrencyDecimal)return n[Ac.NumberSymbols][Vu.Decimal];if(t===Vu.CurrencyGroup)return n[Ac.NumberSymbols][Vu.Group]}return i}function Ku(e,t){return Pc(e)[Ac.NumberFormats][t]}function Xu(e){return Pc(e)[Ac.Currencies]}function Yu(e){if(!e[Ac.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[Ac.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Zu(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function Qu(e){var t=l(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}function $u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=Xu(n)[e]||Lu[e]||[],r=i[1];return"narrow"===t&&"string"==typeof r?r:i[0]||e}var Ju=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,eh={},th=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,nh=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),ih=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),rh=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function oh(e,t,n,i){var r=function(e){if(yh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=l(e.split("-").map((function(e){return+e})),3);return new Date(i[0],i[1]-1,i[2])}if(t=e.match(Ju))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,c=Number(e[6]||0),l=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,c,l),t}(t)}var r=new Date(e);if(!yh(r))throw new Error('Unable to convert "'.concat(e,'" into a date'));return r}(e);t=function e(t,n){var i=function(e){return Pc(e)[Ac.LocaleId]}(t);if(eh[i]=eh[i]||{},eh[i][n])return eh[i][n];var r="";switch(n){case"shortDate":r=qu(t,zu.Short);break;case"mediumDate":r=qu(t,zu.Medium);break;case"longDate":r=qu(t,zu.Long);break;case"fullDate":r=qu(t,zu.Full);break;case"shortTime":r=Uu(t,zu.Short);break;case"mediumTime":r=Uu(t,zu.Medium);break;case"longTime":r=Uu(t,zu.Long);break;case"fullTime":r=Uu(t,zu.Full);break;case"short":var o=e(t,"shortTime"),a=e(t,"shortDate");r=ah(Gu(t,zu.Short),[o,a]);break;case"medium":var s=e(t,"mediumTime"),c=e(t,"mediumDate");r=ah(Gu(t,zu.Medium),[s,c]);break;case"long":var l=e(t,"longTime"),u=e(t,"longDate");r=ah(Gu(t,zu.Long),[l,u]);break;case"full":var h=e(t,"fullTime"),d=e(t,"fullDate");r=ah(Gu(t,zu.Full),[h,d])}return r&&(eh[i][n]=r),r}(n,t)||t;for(var o,a=[];t;){if(!(o=th.exec(t))){a.push(t);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;t=s}var c=r.getTimezoneOffset();i&&(c=bh(i,c),r=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(bh(t,i)-i))}(r,i));var u="";return a.forEach((function(e){var t=function(e){if(vh[e])return vh[e];var t;switch(e){case"G":case"GG":case"GGG":t=hh(rh.Eras,Hu.Abbreviated);break;case"GGGG":t=hh(rh.Eras,Hu.Wide);break;case"GGGGG":t=hh(rh.Eras,Hu.Narrow);break;case"y":t=lh(ih.FullYear,1,0,!1,!0);break;case"yy":t=lh(ih.FullYear,2,0,!0,!0);break;case"yyy":t=lh(ih.FullYear,3,0,!1,!0);break;case"yyyy":t=lh(ih.FullYear,4,0,!1,!0);break;case"M":case"L":t=lh(ih.Month,1,1);break;case"MM":case"LL":t=lh(ih.Month,2,1);break;case"MMM":t=hh(rh.Months,Hu.Abbreviated);break;case"MMMM":t=hh(rh.Months,Hu.Wide);break;case"MMMMM":t=hh(rh.Months,Hu.Narrow);break;case"LLL":t=hh(rh.Months,Hu.Abbreviated,Bu.Standalone);break;case"LLLL":t=hh(rh.Months,Hu.Wide,Bu.Standalone);break;case"LLLLL":t=hh(rh.Months,Hu.Narrow,Bu.Standalone);break;case"w":t=gh(1);break;case"ww":t=gh(2);break;case"W":t=gh(1,!0);break;case"d":t=lh(ih.Date,1);break;case"dd":t=lh(ih.Date,2);break;case"E":case"EE":case"EEE":t=hh(rh.Days,Hu.Abbreviated);break;case"EEEE":t=hh(rh.Days,Hu.Wide);break;case"EEEEE":t=hh(rh.Days,Hu.Narrow);break;case"EEEEEE":t=hh(rh.Days,Hu.Short);break;case"a":case"aa":case"aaa":t=hh(rh.DayPeriods,Hu.Abbreviated);break;case"aaaa":t=hh(rh.DayPeriods,Hu.Wide);break;case"aaaaa":t=hh(rh.DayPeriods,Hu.Narrow);break;case"b":case"bb":case"bbb":t=hh(rh.DayPeriods,Hu.Abbreviated,Bu.Standalone,!0);break;case"bbbb":t=hh(rh.DayPeriods,Hu.Wide,Bu.Standalone,!0);break;case"bbbbb":t=hh(rh.DayPeriods,Hu.Narrow,Bu.Standalone,!0);break;case"B":case"BB":case"BBB":t=hh(rh.DayPeriods,Hu.Abbreviated,Bu.Format,!0);break;case"BBBB":t=hh(rh.DayPeriods,Hu.Wide,Bu.Format,!0);break;case"BBBBB":t=hh(rh.DayPeriods,Hu.Narrow,Bu.Format,!0);break;case"h":t=lh(ih.Hours,1,-12);break;case"hh":t=lh(ih.Hours,2,-12);break;case"H":t=lh(ih.Hours,1);break;case"HH":t=lh(ih.Hours,2);break;case"m":t=lh(ih.Minutes,1);break;case"mm":t=lh(ih.Minutes,2);break;case"s":t=lh(ih.Seconds,1);break;case"ss":t=lh(ih.Seconds,2);break;case"S":t=lh(ih.FractionalSeconds,1);break;case"SS":t=lh(ih.FractionalSeconds,2);break;case"SSS":t=lh(ih.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=fh(nh.Short);break;case"ZZZZZ":t=fh(nh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=fh(nh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=fh(nh.Long);break;default:return null}return vh[e]=t,t}(e);u+=t?t(r,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),u}function ah(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function sh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length<t;)a="0"+a;return i&&(a=a.substr(a.length-t)),o+a}function ch(e,t){return sh(e,3).substr(0,t)}function lh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s=uh(e,o);if((n>0||s>-n)&&(s+=n),e===ih.Hours)0===s&&-12===n&&(s=12);else if(e===ih.FractionalSeconds)return ch(s,t);var c=Wu(a,Vu.MinusSign);return sh(s,t,c,i,r)}}function uh(e,t){switch(e){case ih.FullYear:return t.getFullYear();case ih.Month:return t.getMonth();case ih.Date:return t.getDate();case ih.Hours:return t.getHours();case ih.Minutes:return t.getMinutes();case ih.Seconds:return t.getSeconds();case ih.FractionalSeconds:return t.getMilliseconds();case ih.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}function hh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bu.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,o){return dh(r,o,e,t,n,i)}}function dh(e,t,n,i,r,o){switch(n){case rh.Months:return function(e,t,n){var i=Pc(e),r=Zu([i[Ac.MonthsFormat],i[Ac.MonthsStandalone]],t);return Zu(r,n)}(t,r,i)[e.getMonth()];case rh.Days:return function(e,t,n){var i=Pc(e),r=Zu([i[Ac.DaysFormat],i[Ac.DaysStandalone]],t);return Zu(r,n)}(t,r,i)[e.getDay()];case rh.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var c=function(e){var t=Pc(e);return Yu(t),(t[Ac.ExtraData][2]||[]).map((function(e){return"string"==typeof e?Qu(e):[Qu(e[0]),Qu(e[1])]}))}(t),u=function(e,t,n){var i=Pc(e);Yu(i);var r=Zu([i[Ac.ExtraData][0],i[Ac.ExtraData][1]],t)||[];return Zu(r,n)||[]}(t,r,i),h=c.findIndex((function(e){if(Array.isArray(e)){var t=l(e,2),n=t[0],i=t[1],r=a>=n.hours&&s>=n.minutes,o=a<i.hours||a===i.hours&&s<i.minutes;if(n.hours<i.hours){if(r&&o)return!0}else if(r||o)return!0}else if(e.hours===a&&e.minutes===s)return!0;return!1}));if(-1!==h)return u[h]}return function(e,t,n){var i=Pc(e),r=Zu([i[Ac.DayPeriodsFormat],i[Ac.DayPeriodsStandalone]],t);return Zu(r,n)}(t,r,i)[a<12?0:1];case rh.Eras:return function(e,t){return Zu(Pc(e)[Ac.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(n))}}function fh(e){return function(t,n,i){var r=-1*i,o=Wu(n,Vu.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case nh.Short:return(r>=0?"+":"")+sh(a,2,o)+sh(Math.abs(r%60),2,o);case nh.ShortGMT:return"GMT"+(r>=0?"+":"")+sh(a,1,o);case nh.Long:return"GMT"+(r>=0?"+":"")+sh(a,2,o)+":"+sh(Math.abs(r%60),2,o);case nh.Extended:return 0===i?"Z":(r>=0?"+":"")+sh(a,2,o)+":"+sh(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function ph(e){var t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}function mh(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function gh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r;if(t){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,a=n.getDate();r=1+Math.floor((a+o)/7)}else{var s=mh(n),c=ph(s.getFullYear()),l=s.getTime()-c.getTime();r=1+Math.round(l/6048e5)}return sh(r,e,Wu(i,Vu.MinusSign))}}var vh={};function bh(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function yh(e){return e instanceof Date&&!isNaN(e.valueOf())}var _h=/^(\d+)?\.((\d+)(-(\d+))?)?$/,wh=".",kh="0",Ch="#";function Sh(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",c=!1;if(isFinite(e)){var l=Th(e);a&&(l=Mh(l));var u=t.minInt,h=t.minFrac,d=t.maxFrac;if(o){var f=o.match(_h);if(null===f)throw new Error("".concat(o," is not a valid digit info"));var p=f[1],m=f[3],g=f[5];null!=p&&(u=Ph(p)),null!=m&&(h=Ph(m)),null!=g?d=Ph(g):null!=m&&h>d&&(d=h)}Eh(l,h,d);var v=l.digits,b=l.integerLen,y=l.exponent,_=[];for(c=v.every((function(e){return!e}));b<u;b++)v.unshift(0);for(;b<0;b++)v.unshift(0);b>0?_=v.splice(b,v.length):(_=v,v=[0]);var w=[];for(v.length>=t.lgSize&&w.unshift(v.splice(-t.lgSize,v.length).join(""));v.length>t.gSize;)w.unshift(v.splice(-t.gSize,v.length).join(""));v.length&&w.unshift(v.join("")),s=w.join(Wu(n,i)),_.length&&(s+=Wu(n,r)+_.join("")),y&&(s+=Wu(n,Vu.Exponential)+"+"+y)}else s=Wu(n,Vu.Infinity);return e<0&&!c?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}function xh(e,t,n,i,r){var o=Oh(Ku(t,Fu.Currency),Wu(t,Vu.MinusSign));return o.minFrac=function(e){var t,n=Lu[e];return n&&(t=n[2]),"number"==typeof t?t:2}(i),o.maxFrac=o.minFrac,Sh(e,o,t,Vu.CurrencyGroup,Vu.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}function Oh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],o=i[1],a=-1!==r.indexOf(wh)?r.split(wh):[r.substring(0,r.lastIndexOf(kh)+1),r.substring(r.lastIndexOf(kh)+1)],s=a[0],c=a[1]||"";n.posPre=s.substr(0,s.indexOf(Ch));for(var l=0;l<c.length;l++){var u=c.charAt(l);u===kh?n.minFrac=n.maxFrac=l+1:u===Ch?n.maxFrac=l+1:n.posSuf+=u}var h=s.split(",");if(n.gSize=h[1]?h[1].length:0,n.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,o){var d=r.length-n.posPre.length-n.posSuf.length,f=o.indexOf(Ch);n.negPre=o.substr(0,f).replace(/'/g,""),n.negSuf=o.substr(f+d).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function Mh(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}function Th(e){var t,n,i,r,o,a=Math.abs(e)+"",s=0;for((n=a.indexOf(wh))>-1&&(a=a.replace(wh,"")),(i=a.search(/e/i))>0?(n<0&&(n=i),n+=+a.slice(i+1),a=a.substring(0,i)):n<0&&(n=a.length),i=0;a.charAt(i)===kh;i++);if(i===(o=a.length))t=[0],n=1;else{for(o--;a.charAt(o)===kh;)o--;for(n-=i,t=[],r=0;i<=o;i++,r++)t[r]=Number(a.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}function Eh(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var i=e.digits,r=i.length-e.integerLen,o=Math.min(Math.max(t,r),n),a=o+e.integerLen,s=i[a];if(a>0){i.splice(Math.max(e.integerLen,a));for(var c=a;c<i.length;c++)i[c]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,a=o+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var u=0;u>a;u--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[a-1]++;for(;r<Math.max(0,o);r++)i.push(0);var h=0!==o,d=t+e.integerLen,f=i.reduceRight((function(e,t,n,i){return i[n]=(t+=e)<10?t:t-10,h&&(0===i[n]&&n>=d?i.pop():h=!1),t>=10?1:0}),0);f&&(i.unshift(f),e.integerLen++)}function Ph(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var jh=function e(){Object(m.a)(this,e)};function Ah(e,t,n,i){var r="=".concat(e);if(t.indexOf(r)>-1)return r;if(r=n.getPluralCategory(e,i),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(e,'"'))}var Ih=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this)).locale=e,i}return Object(g.a)(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return Pc(e)[Ac.PluralCase]}(t||this.locale)(e)){case Nu.Zero:return"zero";case Nu.One:return"one";case Nu.Two:return"two";case Nu.Few:return"few";case Nu.Many:return"many";default:return"other"}}}]),n}(jh);return e.\u0275fac=function(t){return new(t||e)(we(Ol))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}();function Dh(e,t){t=encodeURIComponent(t);var n,i=d(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=l(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(c){i.e(c)}finally{i.f()}return null}var Rh=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object(g.a)(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(W(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ca(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(dc),_a(fc),_a(Ks),_a(Qs))},e.\u0275dir=Ke({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Lh=function(){var e=function(){function e(t){Object(m.a)(this,e),this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(Me);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(Ws)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(yc))},e.\u0275dir=Ke({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[ct]}),e}(),Fh=function(){function e(t,n,i,r){Object(m.a)(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return Object(g.a)(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Nh=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object(g.a)(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Fh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Bh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var c=new Bh(e,s);n.push(c)}}));for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(e){fi()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(vc),_a(dc))},e.\u0275dir=Ke({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),Bh=function e(t,n){Object(m.a)(this,e),this.record=t,this.view=n},Hh=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._viewContainer=t,this._context=new zh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return Object(g.a)(e,[{key:"_updateView",value: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)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Vh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Vh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),zh=function e(){Object(m.a)(this,e),this.$implicit=null,this.ngIf=null};function Vh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(W(t),"'."))}var qh=function(){function e(t,n){Object(m.a)(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return Object(g.a)(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Uh=function(){var e=function(){function e(){Object(m.a)(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object(g.a)(e,[{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}},{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),Gh=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this.ngSwitch=i,i._addCase(),this._view=new qh(t,n)}return Object(g.a)(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(vc),_a(Uh,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),Wh=function(){var e=function e(t,n,i){Object(m.a)(this,e),i._addDefault(new qh(t,n))};return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(vc),_a(Uh,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),Kh=function(){var e=function(){function e(t){Object(m.a)(this,e),this._localization=t,this._caseViews={}}return Object(g.a)(e,[{key:"addCase",value:function(e,t){this._caseViews[e]=t}},{key:"_updateView",value:function(){this._clearViews();var e=Object.keys(this._caseViews),t=Ah(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(e){e&&(this._activeView=e,this._activeView.create())}},{key:"ngPlural",set:function(e){this._switchValue=e,this._updateView()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(jh))},e.\u0275dir=Ke({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),e}(),Xh=function(){var e=function e(t,n,i,r){Object(m.a)(this,e),this.value=t;var o=!isNaN(Number(t));r.addCase(o?"=".concat(t):t,new qh(i,n))};return e.\u0275fac=function(t){return new(t||e)(wa("ngPluralCase"),_a(vc),_a(yc),_a(Kh,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngPluralCase",""]]}),e}(),Yh=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return Object(g.a)(e,[{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=l(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem((function(e){return t._setStyle(e.key,null)})),e.forEachAddedItem((function(e){return t._setStyle(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._setStyle(e.key,e.currentValue)}))}},{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(fc),_a(Qs))},e.\u0275dir=Ke({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),Zh=function(){var e=function(){function e(t){Object(m.a)(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){if(this._shouldRecreateView(e)){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}},{key:"_hasContextShapeChanged",value:function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){var i,r=d(n);try{for(r.s();!(i=r.n()).done;)if(-1===t.indexOf(i.value))return!0}catch(o){r.e(o)}finally{r.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(yc))},e.\u0275dir=Ke({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ct]}),e}();function Qh(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(W(e),"'"))}var $h=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),Jh=new(function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"createSubscription",value:function(e,t){return e.then(t,(function(e){throw e}))}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),ed=new $h,td=function(){var e=function(){function e(t){Object(m.a)(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,(function(n){return t._updateLatestValue(e,n)}))}},{key:"_selectStrategy",value:function(t){if(ja(t))return Jh;if(Aa(t))return ed;throw Qh(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(No))},e.\u0275pipe=Xe({name:"async",type:e,pure:!1}),e}(),nd=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw Qh(e,t);return t.toLowerCase()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"lowercase",type:e,pure:!0}),e}(),id=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,rd=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw Qh(e,t);return t.replace(id,(function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"titlecase",type:e,pure:!0}),e}(),od=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw Qh(e,t);return t.toUpperCase()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"uppercase",type:e,pure:!0}),e}(),ad=function(){var e=function(){function e(t){Object(m.a)(this,e),this.locale=t}return Object(g.a)(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return oh(t,n,r||this.locale,i)}catch(o){throw Qh(e,o.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ol))},e.\u0275pipe=Xe({name:"date",type:e,pure:!0}),e}(),sd=/#/g,cd=function(){var e=function(){function e(t){Object(m.a)(this,e),this._localization=t}return Object(g.a)(e,[{key:"transform",value:function(t,n,i){if(null==t)return"";if("object"!=typeof n||null===n)throw Qh(e,n);return n[Ah(t,Object.keys(n),this._localization,i)].replace(sd,t.toString())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(jh))},e.\u0275pipe=Xe({name:"i18nPlural",type:e,pure:!0}),e}(),ld=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"transform",value:function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw Qh(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"i18nSelect",type:e,pure:!0}),e}(),ud=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"transform",value:function(e){return JSON.stringify(e,null,2)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"json",type:e,pure:!1}),e}();function hd(e,t){return{key:e,value:t}}var dd=function(){var e=function(){function e(t){Object(m.a)(this,e),this.differs=t,this.keyValues=[]}return Object(g.a)(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var i=this.differ.diff(e);return i&&(this.keyValues=[],i.forEachItem((function(e){t.keyValues.push(hd(e.key,e.currentValue))})),this.keyValues.sort(n)),this.keyValues}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(fc))},e.\u0275pipe=Xe({name:"keyvalue",type:e,pure:!1}),e}();function fd(e,t){var n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;var r=String(n),o=String(i);return r==o?0:r<o?-1:1}var pd=function(){var e=function(){function e(t){Object(m.a)(this,e),this._locale=t}return Object(g.a)(e,[{key:"transform",value:function(t,n,i){if(vd(t))return null;i=i||this._locale;try{return function(e,t,n){return Sh(e,Oh(Ku(t,Fu.Decimal),Wu(t,Vu.MinusSign)),t,Vu.Group,Vu.Decimal,n)}(bd(t),i,n)}catch(r){throw Qh(e,r.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ol))},e.\u0275pipe=Xe({name:"number",type:e,pure:!0}),e}(),md=function(){var e=function(){function e(t){Object(m.a)(this,e),this._locale=t}return Object(g.a)(e,[{key:"transform",value:function(t,n,i){if(vd(t))return null;i=i||this._locale;try{return function(e,t,n){return Sh(e,Oh(Ku(t,Fu.Percent),Wu(t,Vu.MinusSign)),t,Vu.Group,Vu.Decimal,n,!0).replace(new RegExp("%","g"),Wu(t,Vu.PercentSign))}(bd(t),i,n)}catch(r){throw Qh(e,r.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ol))},e.\u0275pipe=Xe({name:"percent",type:e,pure:!0}),e}(),gd=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";Object(m.a)(this,e),this._locale=t,this._defaultCurrencyCode=n}return Object(g.a)(e,[{key:"transform",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(vd(t))return null;o=o||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");var a=n||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?$u(a,"symbol"===i?"wide":"narrow",o):i);try{var s=bd(t);return xh(s,o,a,n,r)}catch(c){throw Qh(e,c.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ol),_a(Ml))},e.\u0275pipe=Xe({name:"currency",type:e,pure:!0}),e}();function vd(e){return null==e||""===e||e!=e}function bd(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var yd=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"transform",value:function(t,n,i){if(null==t)return t;if(!this.supports(t))throw Qh(e,t);return t.slice(n,i)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"slice",type:e,pure:!1}),e}(),_d=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[{provide:jh,useClass:Ih}]}),e}();function wd(e){return"browser"===e}var kd=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275prov=R({token:e,providedIn:"root",factory:function(){return new Cd(we(bu),window,we(ti))}}),e}(),Cd=function(){function e(t,n,i){Object(m.a)(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return Object(g.a)(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=Sd(this.window.history)||Sd(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function Sd(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var xd,Od=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Md||(Md=document.querySelector("base"))?Md.getAttribute("href"):null;return null==n?null:(t=n,xd||(xd=document.createElement("a")),xd.setAttribute("href",t),"/"===xd.pathname.charAt(0)?xd.pathname:"/"+xd.pathname)}},{key:"resetBaseElement",value:function(){Md=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Dh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,mu||(mu=e)}}]),n}(function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.call(this)}return Object(g.a)(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(vu)),Md=null,Td=new he("TRANSITION_ID"),Ed=[{provide:vl,useFactory:function(e,t,n){return function(){n.get(bl).donePromise.then((function(){var n=gu();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[Td,bu,na],multi:!0}],Pd=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"addToWindow",value:function(e){ie.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},ie.getAllAngularTestabilities=function(){return e.getAllTestabilities()},ie.getAllAngularRootElements=function(){return e.getAllRootElements()},ie.frameworkStabilizers||(ie.frameworkStabilizers=[]),ie.frameworkStabilizers.push((function(e){var t=ie.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach((function(e){e.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?gu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Yl=t}}]),e}(),jd=new he("EventManagerPlugins"),Ad=function(){var e=function(){function e(t,n){var i=this;Object(m.a)(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=i})),this._plugins=t.slice().reverse()}return Object(g.a)(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(jd),we(Nl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Id=function(){function e(t){Object(m.a)(this,e),this._doc=t}return Object(g.a)(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=gu().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Dd=function(){var e=function(){function e(){Object(m.a)(this,e),this._stylesSet=new Set}return Object(g.a)(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Rd=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return Object(g.a)(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return gu().remove(e)}))}}]),n}(Dd);return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Ld={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Fd=/%COMP%/g,Nd="%COMP%",Bd="_nghost-".concat(Nd),Hd="_ngcontent-".concat(Nd);function zd(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?zd(e,r,n):(r=r.replace(Fd,e),n.push(r))}return n}function Vd(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var qd=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Ud(t)}return Object(g.a)(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Fe.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Gd(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case Fe.Native:case Fe.ShadowDom:return new Wd(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=zd(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Ad),we(Rd),we(yl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Ud=function(){function e(t){Object(m.a)(this,e),this.eventManager=t,this.data=Object.create(null)}return Object(g.a)(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Ld[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=Ld[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=Ld[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&Zs.DashCase?e.style.setProperty(t,n,i&Zs.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Zs.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Vd(n)):this.eventManager.addEventListener(e,t,Vd(n))}}]),e}(),Gd=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;Object(m.a)(this,n),(a=t.call(this,e)).component=r;var s=zd(o+"-"+r.id,r.styles,[]);return i.addStyles(s),a.contentAttr=Hd.replace(Fd,o+"-"+r.id),a.hostAttr=Bd.replace(Fd,o+"-"+r.id),a}return Object(g.a)(n,[{key:"applyToHost",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var i=Object(o.a)(Object(a.a)(n.prototype),"createElement",this).call(this,e,t);return Object(o.a)(Object(a.a)(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}(Ud),Wd=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;Object(m.a)(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.component=o,a.shadowRoot=o.encapsulation===Fe.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=zd(o.id,o.styles,[]),c=0;c<s.length;c++){var l=document.createElement("style");l.textContent=s[c],a.shadowRoot.appendChild(l)}return a}return Object(g.a)(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return Object(o.a)(Object(a.a)(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,i){return Object(o.a)(Object(a.a)(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,i)}},{key:"removeChild",value:function(e,t){return Object(o.a)(Object(a.a)(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(Object(o.a)(Object(a.a)(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Ud),Kd=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){return Object(m.a)(this,n),t.call(this,e)}return Object(g.a)(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Id);return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Xd=["alt","control","meta","shift"],Yd={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Zd={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Qd={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},$d=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){return Object(m.a)(this,n),t.call(this,e)}return Object(g.a)(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return gu().onAndCancel(e,r.domEventName,o)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(Xd.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Zd.hasOwnProperty(t)&&(t=Zd[t]))}return Yd[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Xd.forEach((function(i){i!=n&&(0,Qd[i])(e)&&(t+=i+".")})),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded((function(){return t(r)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Id);return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Jd=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:function(){return we(ef)},token:e,providedIn:"root"}),e}(),ef=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this))._doc=e,i}return Object(g.a)(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Fi.NONE:return t;case Fi.HTML:return li(t,"HTML")?ci(t):Ri(this._doc,String(t));case Fi.STYLE:return li(t,"Style")?ci(t):t;case Fi.SCRIPT:if(li(t,"Script"))return ci(t);throw new Error("unsafe value used in a script context");case Fi.URL:return ui(t),li(t,"URL")?ci(t):bi(String(t));case Fi.RESOURCE_URL:if(li(t,"ResourceURL"))return ci(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new ii(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new ri(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new oi(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new ai(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new si(e)}}]),n}(Jd);return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({factory:function(){return e=we(de),new ef(e.get(bu));var e},token:e,providedIn:"root"}),e}(),tf=eu(du,"browser",[{provide:Cl,useValue:"browser"},{provide:kl,useValue:function(){Od.makeCurrent(),Pd.init()},multi:!0},{provide:bu,useFactory:function(){return function(e){pt=e}(document),document},deps:[]}]),nf=[[],{provide:zo,useValue:"root"},{provide:ti,useFactory:function(){return new ti},deps:[]},{provide:jd,useClass:Kd,multi:!0,deps:[bu,Nl,Cl]},{provide:jd,useClass:$d,multi:!0,deps:[bu]},[],{provide:qd,useClass:qd,deps:[Ad,Rd,yl]},{provide:Ys,useExisting:qd},{provide:Dd,useExisting:Rd},{provide:Rd,useClass:Rd,deps:[bu]},{provide:Kl,useClass:Kl,deps:[Nl]},{provide:Ad,useClass:Ad,deps:[jd,Nl]},[]],rf=function(){var e=function(){function e(t){if(Object(m.a)(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return Object(g.a)(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:yl,useValue:t.appId},{provide:Td,useExisting:yl},Ed]}}}]),e}();return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)(we(e,12))},providers:nf,imports:[_d,pu]}),e}();function of(){return new sf(we(bu))}var af,sf=function(){var e=function(){function e(t){Object(m.a)(this,e),this._doc=t}return Object(g.a)(e,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({factory:of,token:e,providedIn:"root"}),e}(),cf="undefined"!=typeof window&&window||{},lf=function e(t,n){Object(m.a)(this,e),this.msPerTick=t,this.numTicks=n},uf=function(){function e(t){Object(m.a)(this,e),this.appRef=t.injector.get(ou)}return Object(g.a)(e,[{key:"timeChangeDetection",value:function(e){var t=e&&e.record,n="Change Detection",i=null!=cf.console.profile;t&&i&&cf.console.profile(n);for(var r=gu().performanceNow(),o=0;o<5||gu().performanceNow()-r<500;)this.appRef.tick(),o++;var a=gu().performanceNow();t&&i&&cf.console.profileEnd(n);var s=(a-r)/o;return cf.console.log("ran ".concat(o," change detection cycles")),cf.console.log("".concat(s.toFixed(2)," ms per check")),new lf(s,o)}}]),e}();n("md7G"),"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var hf="%COMP%";"_nghost-".concat(hf),"_ngcontent-".concat(hf);var df=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(df,"]"),"[".concat(df,"]{2,}"),h(af={},4,4),h(af,1,1),h(af,2,2),h(af,0,0),h(af,3,3);var ff=n("cp0P"),pf=n("Cfvw"),mf=n("lJxs"),gf=new he("NgValueAccessor"),vf={provide:gf,useExisting:Y((function(){return bf})),multi:!0},bf=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return Object(g.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Ia("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[Vs([vf])]}),e}(),yf={provide:gf,useExisting:Y((function(){return wf})),multi:!0},_f=new he("CompositionEventMode"),wf=function(){var e=function(){function e(t,n,i){var r;Object(m.a)(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=gu()?gu().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return Object(g.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks),_a(_f,8))},e.\u0275dir=Ke({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&Ia("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[Vs([yf])]}),e}(),kf=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e}(),Cf=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(kf);return e.\u0275fac=function(t){return Sf(t||e)},e.\u0275dir=Ke({type:e,features:[Es]}),e}(),Sf=Qn(Cf),xf=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(g.a)(n,[{key:"validator",get:function(){}},{key:"asyncValidator",get:function(){}}]),n}(kf),Of=function(){function e(t){Object(m.a)(this,e),this._cd=t}return Object(g.a)(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),Mf=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){return Object(m.a)(this,n),t.call(this,e)}return n}(Of);return e.\u0275fac=function(t){return new(t||e)(_a(xf,2))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&os("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Es]}),e}(),Tf=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){return Object(m.a)(this,n),t.call(this,e)}return n}(Of);return e.\u0275fac=function(t){return new(t||e)(_a(Cf,2))},e.\u0275dir=Ke({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&os("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Es]}),e}();function Ef(e){return null==e||0===e.length}function Pf(e){return null!=e&&"number"==typeof e.length}var jf=new he("NgValidators"),Af=new he("NgAsyncValidators"),If=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Df=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"min",value:function(e){return function(t){if(Ef(t.value)||Ef(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(Ef(t.value)||Ef(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Ef(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Ef(e.value)||If.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return Ef(t.value)||!Pf(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"maxLength",value:function(e){return function(t){return Pf(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(Ef(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Rf);return 0==t.length?null:function(e){return Ff(Nf(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Rf);return 0==t.length?null:function(e){var n=Nf(e,t).map(Lf);return Object(ff.a)(n).pipe(Object(mf.a)(Ff))}}}]),e}();function Rf(e){return null!=e}function Lf(e){var t=ja(e)?Object(pf.a)(e):e;return Aa(t),t}function Ff(e){var t={};return e.forEach((function(e){t=null!=e?Object.assign(Object.assign({},t),e):t})),0===Object.keys(t).length?null:t}function Nf(e,t){return t.map((function(t){return t(e)}))}function Bf(e){return e.map((function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}}))}var Hf={provide:gf,useExisting:Y((function(){return zf})),multi:!0},zf=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return Object(g.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Ia("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[Vs([Hf])]}),e}(),Vf={provide:gf,useExisting:Y((function(){return Uf})),multi:!0},qf=function(){var e=function(){function e(){Object(m.a)(this,e),this._accessors=[]}return Object(g.a)(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value: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)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Uf=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(xf),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks),_a(qf),_a(na))},e.\u0275dir=Ke({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ia("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Vs([Vf])]}),e}(),Gf={provide:gf,useExisting:Y((function(){return Wf})),multi:!0},Wf=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return Object(g.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ia("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[Vs([Gf])]}),e}(),Kf={provide:gf,useExisting:Y((function(){return Yf})),multi:!0};function Xf(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var Yf=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return Object(g.a)(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Xf(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},{key:"compareWith",set:function(e){this._compareWith=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Ia("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Vs([Kf])]}),e}(),Zf=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}return Object(g.a)(e,[{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Xf(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Qs),_a(Yf,9))},e.\u0275dir=Ke({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e}(),Qf={provide:gf,useExisting:Y((function(){return Jf})),multi:!0};function $f(e,t){return null==e?"".concat(t):("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var Jf=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return Object(g.a)(e,[{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(var c=n.options,l=0;l<c.length;l++){var u=c.item(l);if(u.selected){var h=t._getOptionValue(u.value);i.push(h)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},{key:"compareWith",set:function(e){this._compareWith=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Ia("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Vs([Qf])]}),e}(),ep=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}return Object(g.a)(e,[{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue($f(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue($f(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Qs),_a(Jf,9))},e.\u0275dir=Ke({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e}();function tp(e,t){return[].concat(Object(u.a)(t.path),[e])}function np(e,t){e.validator=Df.compose([e.validator,t.validator]),e.asyncValidator=Df.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ip(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ip(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function ip(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function rp(e,t){e.validator=Df.compose([e.validator,t.validator]),e.asyncValidator=Df.composeAsync([e.asyncValidator,t.asyncValidator])}function op(e){return null!=e?Df.compose(Bf(e)):null}function ap(e){return null!=e?Df.composeAsync(Bf(e)):null}function sp(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}var cp=[bf,Wf,zf,Yf,Jf,Uf];function lp(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function up(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach((function(e){var t;e.constructor===wf?n=e:(t=e,cp.some((function(e){return t.constructor===e}))?i=e:r=e)})),r||i||n||null}function hp(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function dp(e,t,n,i){fi()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var fp="VALID",pp="INVALID",mp="PENDING",gp="DISABLED";function vp(e){return(wp(e)?e.validators:e)||null}function bp(e){return Array.isArray(e)?op(e):e||null}function yp(e,t){return(wp(t)?t.asyncValidators:e)||null}function _p(e){return Array.isArray(e)?ap(e):e||null}function wp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var kp=function(){function e(t,n){Object(m.a)(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=bp(this._rawValidators),this._composedAsyncValidatorFn=_p(this._rawAsyncValidators)}return Object(g.a)(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=bp(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=_p(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=mp,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=gp,this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=fp,this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==fp&&this.status!==mp||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?gp:fp}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=mp,this._hasOwnPendingAsyncValidator=!0;var n=Lf(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach((function(e){i=i instanceof Sp?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof xp&&i.at(e)||null})),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Yc,this.statusChanges=new Yc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?gp:this.errors?pp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mp)?mp:this._anyControlsHaveStatus(pp)?pp:fp}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){wp(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===fp}},{key:"invalid",get:function(){return this.status===pp}},{key:"pending",get:function(){return this.status==mp}},{key:"disabled",get:function(){return this.status===gp}},{key:"enabled",get:function(){return this.status!==gp}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Cp=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return Object(m.a)(this,n),(e=t.call(this,vp(r),yp(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return Object(g.a)(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(kp),Sp=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,vp(i),yp(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(g.a)(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Cp?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(kp),xp=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,vp(i),yp(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(g.a)(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof Cp?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value: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 ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=d(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(kp),Op={provide:Cf,useExisting:Y((function(){return Tp}))},Mp=function(){return Promise.resolve(null)}(),Tp=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Yc,r.form=new Sp({},op(e),ap(i)),r}return Object(g.a)(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Mp.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),np(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Mp.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),hp(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;Mp.then((function(){var n=t._findContainer(e.path),i=new Sp({});rp(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Mp.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Mp.then((function(){n.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lp(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(Cf);return e.\u0275fac=function(t){return new(t||e)(_a(jf,10),_a(Af,10))},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Ia("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vs([Op]),Es]}),e}(),Ep=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return tp(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return op(this._validators)}},{key:"asyncValidator",get:function(){return ap(this._asyncValidators)}}]),n}(Cf);return e.\u0275fac=function(t){return Pp(t||e)},e.\u0275dir=Ke({type:e,features:[Es]}),e}(),Pp=Qn(Ep),jp={provide:Cf,useExisting:Y((function(){return Ap}))},Ap=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this))._parent=e,o._validators=i,o._asyncValidators=r,o}return Object(g.a)(n,[{key:"_checkParentType",value:function(){}}]),n}(Ep);return e.\u0275fac=function(t){return new(t||e)(_a(Cf,5),_a(jf,10),_a(Af,10))},e.\u0275dir=Ke({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Vs([jp]),Es]}),e}(),Ip={provide:xf,useExisting:Y((function(){return Rp}))},Dp=function(){return Promise.resolve(null)}(),Rp=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this)).control=new Cp,a._registered=!1,a.update=new Yc,a._parent=e,a._rawValidators=i||[],a._rawAsyncValidators=r||[],a.valueAccessor=up(Object(s.a)(a),o),a}return Object(g.a)(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),sp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){np(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Dp.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Dp.then((function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?tp(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return op(this._rawValidators)}},{key:"asyncValidator",get:function(){return ap(this._rawAsyncValidators)}}]),n}(xf);return e.\u0275fac=function(t){return new(t||e)(_a(Cf,9),_a(jf,10),_a(Af,10),_a(gf,10))},e.\u0275dir=Ke({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Vs([Ip]),Es,ct]}),e}(),Lp=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Fp=new he("NgModelWithFormControlWarning"),Np={provide:xf,useExisting:Y((function(){return Bp}))},Bp=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new Yc,a._ngModelWarningSent=!1,a._rawValidators=e||[],a._rawAsyncValidators=i||[],a.valueAccessor=up(Object(s.a)(a),r),a}return Object(g.a)(n,[{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(np(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),sp(e,this.viewModel)&&(dp(0,n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return op(this._rawValidators)}},{key:"asyncValidator",get:function(){return ap(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(xf);return e.\u0275fac=function(t){return new(t||e)(_a(jf,10),_a(Af,10),_a(gf,10),_a(Fp,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Vs([Np]),Es,ct]}),e._ngModelWarningSentOnce=!1,e}(),Hp={provide:Cf,useExisting:Y((function(){return zp}))},zp=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this))._validators=e,r._asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Yc,r}return Object(g.a)(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return np(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){hp(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);rp(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);rp(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lp(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&np(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=op(this._validators);this.form.validator=Df.compose([this.form.validator,e]);var t=ap(this._asyncValidators);this.form.asyncValidator=Df.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(Cf);return e.\u0275fac=function(t){return new(t||e)(_a(jf,10),_a(Af,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Ia("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vs([Hp]),Es,ct]}),e}(),Vp={provide:Cf,useExisting:Y((function(){return qp}))},qp=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this))._parent=e,o._validators=i,o._asyncValidators=r,o}return Object(g.a)(n,[{key:"_checkParentType",value:function(){Wp(this._parent)}}]),n}(Ep);return e.\u0275fac=function(t){return new(t||e)(_a(Cf,13),_a(jf,10),_a(Af,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Vs([Vp]),Es]}),e}(),Up={provide:Cf,useExisting:Y((function(){return Gp}))},Gp=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this))._parent=e,o._validators=i,o._asyncValidators=r,o}return Object(g.a)(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){Wp(this._parent)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return tp(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return op(this._validators)}},{key:"asyncValidator",get:function(){return ap(this._asyncValidators)}}]),n}(Cf);return e.\u0275fac=function(t){return new(t||e)(_a(Cf,13),_a(jf,10),_a(Af,10))},e.\u0275dir=Ke({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Vs([Up]),Es]}),e}();function Wp(e){return!(e instanceof qp||e instanceof zp||e instanceof Gp)}var Kp={provide:xf,useExisting:Y((function(){return Xp}))},Xp=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){var c;return Object(m.a)(this,n),(c=t.call(this))._ngModelWarningConfig=a,c._added=!1,c.update=new Yc,c._ngModelWarningSent=!1,c._parent=e,c._rawValidators=i||[],c._rawAsyncValidators=r||[],c.valueAccessor=up(Object(s.a)(c),o),c}return Object(g.a)(n,[{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),sp(e,this.viewModel)&&(dp(0,n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return tp(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return op(this._rawValidators)}},{key:"asyncValidator",get:function(){return ap(this._rawAsyncValidators)}}]),n}(xf);return e.\u0275fac=function(t){return new(t||e)(_a(Cf,13),_a(jf,10),_a(Af,10),_a(gf,10),_a(Fp,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Vs([Kp]),Es,ct]}),e._ngModelWarningSentOnce=!1,e}(),Yp={provide:jf,useExisting:Y((function(){return Qp})),multi:!0},Zp={provide:jf,useExisting:Y((function(){return $p})),multi:!0},Qp=function(){var e=function(){function e(){Object(m.a)(this,e),this._required=!1}return Object(g.a)(e,[{key:"validate",value:function(e){return this.required?Df.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!=="".concat(e),this._onChange&&this._onChange()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&fa("required",t.required?"":null)},inputs:{required:"required"},features:[Vs([Yp])]}),e}(),$p=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"validate",value:function(e){return this.required?Df.requiredTrue(e):null}}]),n}(Qp);return e.\u0275fac=function(t){return Jp(t||e)},e.\u0275dir=Ke({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&fa("required",t.required?"":null)},features:[Vs([Zp]),Es]}),e}(),Jp=Qn($p),em={provide:jf,useExisting:Y((function(){return tm})),multi:!0},tm=function(){var e=function(){function e(){Object(m.a)(this,e),this._enabled=!1}return Object(g.a)(e,[{key:"validate",value:function(e){return this._enabled?Df.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"email",set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Vs([em])]}),e}(),nm={provide:jf,useExisting:Y((function(){return im})),multi:!0},im=function(){var e=function(){function e(){Object(m.a)(this,e),this._validator=Df.nullValidator}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Df.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&fa("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[Vs([nm]),ct]}),e}(),rm={provide:jf,useExisting:Y((function(){return om})),multi:!0},om=function(){var e=function(){function e(){Object(m.a)(this,e),this._validator=Df.nullValidator}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Df.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&fa("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Vs([rm]),ct]}),e}(),am={provide:jf,useExisting:Y((function(){return sm})),multi:!0},sm=function(){var e=function(){function e(){Object(m.a)(this,e),this._validator=Df.nullValidator}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Df.pattern(this.pattern)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&fa("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[Vs([am]),ct]}),e}(),cm=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}();function lm(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var um=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(lm(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Sp(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new Cp(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map((function(e){return i._createControl(e)}));return new xp(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(i){n[i]=t._createControl(e[i])})),n}},{key:"_createControl",value:function(e){return e instanceof Cp||e instanceof Sp||e instanceof xp?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),hm=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[qf],imports:[cm]}),e}(),dm=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Fp,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[um,qf],imports:[cm]}),e}(),fm=new he("cdk-dir-doc",{providedIn:"root",factory:function(){return ke(bu)}}),pm=function(){var e=function(){function e(t){if(Object(m.a)(this,e),this.value="ltr",this.change=new Yc,t){var n=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(fm,8))},e.\u0275prov=R({factory:function(){return new e(we(fm,8))},token:e,providedIn:"root"}),e}(),mm=function(){var e=function(){function e(){Object(m.a)(this,e),this._dir="ltr",this._isInitialized=!1,this.change=new Yc}return Object(g.a)(e,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(e){var t=this._dir,n=e?e.toLowerCase():e;this._rawDir=e,this._dir="ltr"===n||"rtl"===n?n:"ltr",t!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","dir",""]],hostVars:1,hostBindings:function(e,t){2&e&&fa("dir",t._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Vs([{provide:pm,useExisting:e}])]}),e}(),gm=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}();function vm(e){return null!=e&&"false"!=="".concat(e)}function bm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ym(e)?Number(e):t}function ym(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function _m(e){return Array.isArray(e)?e:[e]}function wm(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function km(e){return e instanceof Ks?e.nativeElement:e}var Cm=n("7+OI"),Sm=n("LRne"),xm=function e(){Object(m.a)(this,e)};function Om(e){return e&&"function"==typeof e.connect}var Mm,Tm=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation((function(e,i,o){var a,s;if(null==e.previousIndex){var c=n(e,i,o);a=t.createEmbeddedView(c.templateRef,c.context,c.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})}))}},{key:"detach",value:function(){}}]),e}(),Em=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object(m.a)(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new w.b,i&&i.length&&(n?i.forEach((function(e){return t._markSelected(e)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return Object(g.a)(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(t){return e._markSelected(t)})),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(t){return e._unmarkSelected(t)})),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach((function(t){return e._unmarkSelected(t)}))}},{key:"_verifyValueAssignment",value:function(e){}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),e}(),Pm=function(){var e=function(){function e(){Object(m.a)(this,e),this._listeners=[]}return Object(g.a)(e,[{key:"notify",value:function(e,t){var n,i=d(this._listeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(e,t)}catch(r){i.e(r)}finally{i.f()}}},{key:"listen",value:function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter((function(t){return e!==t}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:function(){return new e},token:e,providedIn:"root"}),e}(),jm=new he("_ViewRepeater");try{Mm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(swe){Mm=!1}var Am,Im,Dm,Rm,Lm,Fm=function(){var e=function e(t){Object(m.a)(this,e),this._platformId=t,this.isBrowser=this._platformId?wd(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Mm)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(we(Cl))},e.\u0275prov=R({factory:function(){return new e(we(Cl))},token:e,providedIn:"root"}),e}(),Nm=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),Bm=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Hm(){if(Am)return Am;if("object"!=typeof document||!document)return Am=new Set(Bm);var e=document.createElement("input");return Am=new Set(Bm.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function zm(e){return function(){if(null==Im&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Im=!0}}))}finally{Im=Im||!1}return Im}()?e:!!e.capture}function Vm(){if("object"!=typeof document||!document)return 0;if(null==Dm){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),Dm=0,0===e.scrollLeft&&(e.scrollLeft=1,Dm=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return Dm}function qm(e){if(function(){if(null==Lm){var e="undefined"!=typeof document?document.head:null;Lm=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Lm}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var Um=n("2Vo4"),Gm=n("1G5W"),Wm=n("IzEk"),Km=n("xgIS"),Xm=n("eNwd"),Ym=n("7Hc7"),Zm=n("/uUt"),Qm=n("3UWI"),$m=n("pLZG"),Jm=n("JX91"),eg=n("Zy1z"),tg=n("eIep"),ng=n("UXun"),ig=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._ngZone=t,this._platform=n,this._scrolled=new w.b,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return Object(g.a)(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new k.a((function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Object(Qm.a)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Object(Sm.a)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,n){return e.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object($m.a)((function(e){return!e||n.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach((function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){var t=e._getWindow();return Object(Km.a)(t.document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Nl),we(Fm),we(bu,8))},e.\u0275prov=R({factory:function(){return new e(we(Nl),we(Fm),we(bu,8))},token:e,providedIn:"root"}),e}(),rg=function(){var e=function(){function e(t,n,i,r){var o=this;Object(m.a)(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new w.b,this._elementScrolled=new k.a((function(e){return o.ngZone.runOutsideAngular((function(){return Object(Km.a)(o.elementRef.nativeElement,"scroll").pipe(Object(Gm.a)(o._destroyed)).subscribe(e)}))}))}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=Vm()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Vm()?e.left=e.right:1==Vm()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;!function(){if(null==Rm)if("object"==typeof document&&document||(Rm=!1),"scrollBehavior"in document.documentElement.style)Rm=!0;else{var e=Element.prototype.scrollTo;Rm=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}return Rm}()?(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left)):t.scrollTo(e)}},{key:"measureScrollOffset",value:function(e){var t="left",n="right",i=this.elementRef.nativeElement;if("top"==e)return i.scrollTop;if("bottom"==e)return i.scrollHeight-i.clientHeight-i.scrollTop;var r=this.dir&&"rtl"==this.dir.value;return"start"==e?e=r?n:t:"end"==e&&(e=r?t:n),r&&2==Vm()?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==Vm()?e==t?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==t?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(ig),_a(Nl),_a(pm,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),og=function(){var e=function(){function e(t,n,i){var r=this;Object(m.a)(this,e),this._platform=t,this._change=new w.b,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular((function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe((function(){return r._updateViewportSize()}))}))}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(Object(Qm.a)(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Fm),we(Nl),we(bu,8))},e.\u0275prov=R({factory:function(){return new e(we(Fm),we(Nl),we(bu,8))},token:e,providedIn:"root"}),e}(),ag=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),sg=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[gm,Nm,ag],gm,ag]}),e}(),cg=[[["caption"]],[["colgroup"],["col"]]],lg=["caption","colgroup, col"];function ug(e,t){if(1&e&&(Sa(0,"th",3),_s(1),xa()),2&e){var n=Ba();rs("text-align",n.justify),ar(1),ks(" ",n.headerText," ")}}function hg(e,t){if(1&e&&(Sa(0,"td",4),_s(1),xa()),2&e){var n=t.$implicit,i=Ba();rs("text-align",i.justify),ar(1),ks(" ",i.dataAccessor(n,i.name)," ")}}function dg(e){return function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(m.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._sticky=!1,e._hasStickyChanged=!1,e}return Object(g.a)(n,[{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}},{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=vm(e),this._hasStickyChanged=t!==this._sticky}}]),n}(e)}var fg=new he("CDK_TABLE"),pg=new he("text-column-options"),mg=function(){var e=function e(t){Object(m.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkCellDef",""]]}),e}(),gg=function(){var e=function e(t){Object(m.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e}(),vg=function(){var e=function e(t){Object(m.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkFooterCellDef",""]]}),e}(),bg=dg((function e(){Object(m.a)(this,e)})),yg=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this))._table=e,i._stickyEnd=!1,i}return Object(g.a)(n,[{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}},{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=vm(e),this._hasStickyChanged=t!==this._stickyEnd}}]),n}(bg);return e.\u0275fac=function(t){return new(t||e)(_a(fg,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,mg,!0),ul(n,gg,!0),ul(n,vg,!0)),2&e&&(al(i=fl())&&(t.cell=i.first),al(i=fl())&&(t.headerCell=i.first),al(i=fl())&&(t.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Vs([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),Es]}),e}(),_g=function e(t,n){Object(m.a)(this,e);var i,r=n.nativeElement.classList,o=d(t._columnCssClassName);try{for(o.s();!(i=o.n()).done;)r.add(i.value)}catch(a){o.e(a)}finally{o.f()}},wg=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){return Object(m.a)(this,n),t.call(this,e,i)}return n}(_g);return e.\u0275fac=function(t){return new(t||e)(_a(yg),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Es]}),e}(),kg=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){return Object(m.a)(this,n),t.call(this,e,i)}return n}(_g);return e.\u0275fac=function(t){return new(t||e)(_a(yg),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[Es]}),e}(),Cg=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){return Object(m.a)(this,n),t.call(this,e,i)}return n}(_g);return e.\u0275fac=function(t){return new(t||e)(_a(yg),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[Es]}),e}(),Sg=function e(){Object(m.a)(this,e),this.tasks=[],this.endTasks=[]},xg=new he("_COALESCED_STYLE_SCHEDULER"),Og=function(){var e=function(){function e(t){Object(m.a)(this,e),this._ngZone=t,this._currentSchedule=null,this._destroyed=new w.b}return Object(g.a)(e,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new Sg,this._getScheduleObservable().pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var t=e._currentSchedule;e._currentSchedule=new Sg;var n,i=d(t.tasks);try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(a){i.e(a)}finally{i.f()}var r,o=d(t.endTasks);try{for(o.s();!(r=o.n()).done;)(0,r.value)()}catch(a){o.e(a)}finally{o.f()}}e._currentSchedule=null})))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?Object(pf.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(Wm.a)(1))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Nl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Mg=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this.template=t,this._differs=n}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof Eg?e.headerCell.template:this instanceof jg?e.footerCell.template:e.cell.template}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(vc),_a(dc))},e.\u0275dir=Ke({type:e,features:[ct]}),e}(),Tg=dg(function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Mg)),Eg=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i))._table=r,o}return Object(g.a)(n,[{key:"ngOnChanges",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Tg);return e.\u0275fac=function(t){return new(t||e)(_a(vc),_a(dc),_a(fg,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Es,ct]}),e}(),Pg=dg(function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Mg)),jg=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i))._table=r,o}return Object(g.a)(n,[{key:"ngOnChanges",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Pg);return e.\u0275fac=function(t){return new(t||e)(_a(vc),_a(dc),_a(fg,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Es,ct]}),e}(),Ag=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i))._table=r,o}return n}(Mg);return e.\u0275fac=function(t){return new(t||e)(_a(vc),_a(dc),_a(fg,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Es]}),e}(),Ig=function(){var e=function(){function e(t){Object(m.a)(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(yc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e}(),Dg=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[Ig],encapsulation:2}),e}(),Rg=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[Ig],encapsulation:2}),e}(),Lg=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[Ig],encapsulation:2}),e}(),Fg=function(){var e=function e(t){Object(m.a)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e}(),Ng=["top","bottom","left","right"],Bg=function(){function e(t,n,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];Object(m.a)(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a}return Object(g.a)(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],o=d(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s<a.children.length;s++)r.push(a.children[s])}}}catch(c){o.e(c)}finally{o.f()}this._scheduleStyleChanges((function(){var e,n=d(r);try{for(n.s();!(e=n.n()).done;)i._removeStickyStyle(e.value,t)}catch(c){n.e(c)}finally{n.f()}}))}},{key:"updateStickyColumns",value:function(e,t,n){var i=this;if(e.length&&this._isBrowser&&(t.some((function(e){return e}))||n.some((function(e){return e})))){var r=e[0],o=r.children.length,a=this._getCellWidths(r),s=this._getStickyStartColumnPositions(a,t),c=this._getStickyEndColumnPositions(a,n);this._scheduleStyleChanges((function(){var r,a="rtl"===i.direction,l=a?"right":"left",u=a?"left":"right",h=d(e);try{for(h.s();!(r=h.n()).done;)for(var f=r.value,p=0;p<o;p++){var m=f.children[p];t[p]&&i._addStickyStyle(m,l,s[p]),n[p]&&i._addStickyStyle(m,u,c[p])}}catch(g){h.e(g)}finally{h.f()}}))}}},{key:"stickRows",value:function(e,t,n){var i=this;if(this._isBrowser){for(var r="bottom"===n?e.slice().reverse():e,o="bottom"===n?t.slice().reverse():t,a=[],s=[],c=0,l=0;c<r.length;c++)if(a[c]=l,o[c]){var u=r[c];s[c]=this._isNativeHtmlTable?Array.from(u.children):[u],c!==r.length-1&&(l+=u.getBoundingClientRect().height)}this._scheduleStyleChanges((function(){for(var e=0;e<r.length;e++)if(o[e]){var t,c=a[e],l=d(s[e]);try{for(l.s();!(t=l.n()).done;)i._addStickyStyle(t.value,n,c)}catch(u){l.e(u)}finally{l.f()}}}))}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var i=e.querySelector("tfoot");this._scheduleStyleChanges((function(){t.some((function(e){return!e}))?n._removeStickyStyle(i,["bottom"]):n._addStickyStyle(i,"bottom",0)}))}}},{key:"_removeStickyStyle",value:function(e,t){var n,i=d(t);try{for(i.s();!(n=i.n()).done;)e.style[n.value]=""}catch(r){i.e(r)}finally{i.f()}Ng.some((function(n){return-1===t.indexOf(n)&&e.style[n]}))?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,t,n){e.classList.add(this._stickCellCss),e.style[t]="".concat(n,"px"),e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){var t,n={top:100,bottom:10,left:1,right:1},i=0,r=d(Ng);try{for(r.s();!(t=r.n()).done;){var o=t.value;e.style[o]&&(i+=n[o])}}catch(a){r.e(a)}finally{r.f()}return i?"".concat(i):""}},{key:"_getCellWidths",value:function(e){for(var t=[],n=e.children,i=0;i<n.length;i++)t.push(n[i].getBoundingClientRect().width);return t}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],i=0,r=0;r<e.length;r++)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],i=0,r=e.length;r>0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),Hg=function(){var e=function e(t,n){Object(m.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","rowOutlet",""]]}),e}(),zg=function(){var e=function e(t,n){Object(m.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),Vg=function(){var e=function e(t,n){Object(m.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),qg=function(){var e=function e(t,n){Object(m.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),Ug=function(){var e=function(){function e(t,n,i,r,o,a,s,c,l){Object(m.a)(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=l,this._onDestroy=new w.b,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new Um.a({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}))}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():e&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Om(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e,t=this;this._renderRows=this._getAllRenderRows();var n=this._dataDiffer.diff(this._renderRows);if(n){var i=this._rowOutlet.viewContainer;null===(e=this._viewRepeater)||void 0===e||e.applyChanges(n,i,(function(e,n,i){return t._getEmbeddedViewArgs(e.item,i)}),(function(e){return e.item.data}),(function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)})),this._updateRowIndexContext(),n.forEachIdentityChange((function(e){i.get(e.currentIndex).context.$implicit=e.item.data})),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(Object(u.a)(t),Object(u.a)(n),Object(u.a)(i)),["left","right"]),t.forEach((function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])})),this._rowDefs.forEach((function(t){for(var i=[],r=0;r<n.length;r++)e._renderRows[r].rowDef===t&&i.push(n[r]);e._addStickyColumnStyles(i,t)})),i.forEach((function(t,n){e._addStickyColumnStyles([t],e._footerRowDefs[n])})),Array.from(this._columnDefsByName.values()).forEach((function(e){return e.resetStickyChanged()}))}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var i=this._data[n],r=this._getRenderRowsForData(i,n,t.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var o=0;o<r.length;o++){var a=r[o],s=this._cachedRenderRowsMap.get(a.data);s.has(a.rowDef)?s.get(a.rowDef).push(a):s.set(a.rowDef,[a]),e.push(a)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map((function(i){var r=n&&n.has(i)?n.get(i):[];if(r.length){var o=r.shift();return o.dataIndex=t,o}return{data:e,rowDef:i,dataIndex:t}}))}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),Gg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach((function(t){e._columnDefsByName.has(t.name),e._columnDefsByName.set(t.name,t)}))}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=Gg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Gg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Gg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter((function(e){return!e.when}));this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(e,!1);n&&this._forceRenderHeaderRows();var i=this._footerRowDefs.reduce(e,!1);return i&&this._forceRenderFooterRows(),t||n||i}},{key:"_switchDataSource",value:function(e){this._data=[],Om(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e,t=this;this.dataSource&&(Om(this.dataSource)?e=this.dataSource.connect(this):Object(Cm.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(Sm.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(Gm.a)(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()})))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(t,n){return e._renderRow(e._headerRowOutlet,t,n)})),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(t,n){return e._renderRow(e._footerRowOutlet,t,n)})),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map((function(e){return n._columnDefsByName.get(e)})),r=i.map((function(e){return e.sticky})),o=i.map((function(e){return e.stickyEnd}));this._stickyStyler.updateStickyColumns(e,r,o)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var i=e.viewContainer.get(n);t.push(i.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter((function(n){return!n.when||n.when(t,e)}));else{var i=this._rowDefs.find((function(n){return n.when&&n.when(t,e)}))||this._defaultRowDef;i&&n.push(i)}return n}},{key:"_getEmbeddedViewArgs",value:function(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}},{key:"_renderRow",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=d(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;)Ig.mostRecentCellOutlet&&Ig.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,t)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var i=e.get(t).context;i.count=n,i.first=0===t,i.last=t===n-1,i.even=t%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[t].dataIndex,i.renderIndex=t):i.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,(function(n){var i=t._columnDefsByName.get(n);return e.extractCellTemplate(i)})):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),t=0,n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];t<n.length;t++){var i=n[t],r=this._document.createElement(i.tag);r.setAttribute("role","rowgroup");var o,a=d(i.outlets);try{for(a.s();!(o=a.n()).done;)r.appendChild(o.value.elementRef.nativeElement)}catch(s){a.e(s)}finally{a.f()}e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&this.updateStickyColumnStyles()}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new Bg(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(Sm.a)()).pipe(Object(Gm.a)(this._onDestroy)).subscribe((function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()}))}},{key:"_getOwnDefs",value:function(e){var t=this;return e.filter((function(e){return!e._table||e._table===t}))}},{key:"_updateNoDataRow",value:function(){if(this._noDataRow){var e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){var t=this._noDataRowOutlet.viewContainer;e?t.createEmbeddedView(this._noDataRow.templateRef):t.clear(),this._isShowingNoDataRow=e}}}},{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=vm(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(dc),_a(No),_a(Ks),wa("role"),_a(pm,8),_a(bu),_a(Fm),_a(jm,8),_a(xg,8))},e.\u0275cmp=ze({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,Fg,!0),ul(n,yg,!0),ul(n,Ag,!0),ul(n,Eg,!0),ul(n,jg,!0)),2&e&&(al(i=fl())&&(t._noDataRow=i.first),al(i=fl())&&(t._contentColumnDefs=i),al(i=fl())&&(t._contentRowDefs=i),al(i=fl())&&(t._contentHeaderRowDefs=i),al(i=fl())&&(t._contentFooterRowDefs=i))},viewQuery:function(e,t){var n;1&e&&(sl(Hg,!0),sl(zg,!0),sl(Vg,!0),sl(qg,!0)),2&e&&(al(n=fl())&&(t._rowOutlet=n.first),al(n=fl())&&(t._headerRowOutlet=n.first),al(n=fl())&&(t._footerRowOutlet=n.first),al(n=fl())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[Vs([{provide:fg,useExisting:e},{provide:jm,useClass:Tm},{provide:xg,useClass:Og}])],ngContentSelectors:lg,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(za(cg),Va(0),Va(1,1),Ea(2,0),Ea(3,1),Ea(4,2),Ea(5,3))},directives:[zg,Hg,qg,Vg],encapsulation:2}),e}();function Gg(e,t){return e.concat(Array.from(t))}var Wg=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._table=t,this._options=n,this.justify="start",this._options=n||{}}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,t){return e[t]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ug,8),_a(pg,8))},e.\u0275cmp=ze({type:e,selectors:[["cdk-text-column"]],viewQuery:function(e,t){var n;1&e&&(sl(yg,!0),sl(mg,!0),sl(gg,!0)),2&e&&(al(n=fl())&&(t.columnDef=n.first),al(n=fl())&&(t.cell=n.first),al(n=fl())&&(t.headerCell=n.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(e,t){1&e&&(Ma(0,0),ba(1,ug,2,3,"th",1),ba(2,hg,2,3,"td",2),Ta())},directives:[yg,gg,mg,wg,Cg],encapsulation:2}),e}(),Kg=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[sg]]}),e}(),Xg=n("bOdf"),Yg=function e(){Object(m.a)(this,e)},Zg=function e(){Object(m.a)(this,e)},Qg=function(){function e(t){var n=this;Object(m.a)(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}}))}:function(){n.headers=new Map,Object.keys(t).forEach((function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))}))}:this.headers=new Map}return Object(g.a)(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value: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))}},{key:"copyFrom",value: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))}))}},{key:"clone",value: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}},{key:"applyUpdate",value: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 i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,Object(u.a)(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter((function(e){return-1===r.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value: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}(),$g=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"encodeKey",value:function(e){return ev(e)}},{key:"encodeValue",value:function(e){return ev(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Jg(e,t){var n=new Map;return e.length>0&&e.split("&").forEach((function(e){var i=e.indexOf("="),r=l(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)})),n}function ev(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,"/")}var tv=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(m.a)(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new $g,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Jg(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])}))):this.map=null}return Object(g.a)(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value: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("&")})).filter((function(e){return""!==e})).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value: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 i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function nv(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function iv(e){return"undefined"!=typeof Blob&&e instanceof Blob}function rv(e){return"undefined"!=typeof FormData&&e instanceof FormData}var ov=function(){function e(t,n,i,r){var o;if(Object(m.a)(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,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 Qg),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new tv,this.urlWithParams=n}return Object(g.a)(e,[{key:"serializeBody",value:function(){return null===this.body?null:nv(this.body)||iv(this.body)||rv(this.body)||"string"==typeof this.body?this.body:this.body instanceof tv?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||rv(this.body)?null:iv(this.body)?this.body.type||null:nv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof tv?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((function(e,n){return e.set(n,t.setHeaders[n])}),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((function(e,n){return e.set(n,t.setParams[n])}),l)),new e(n,i,o,{params:l,headers:c,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),av=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),sv=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";Object(m.a)(this,e),this.headers=t.headers||new Qg,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},cv=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(m.a)(this,n),(e=t.call(this,i)).type=av.ResponseHeader,e}return Object(g.a)(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(sv),lv=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(m.a)(this,n),(e=t.call(this,i)).type=av.Response,e.body=void 0!==i.body?i.body:null,e}return Object(g.a)(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(sv),uv=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(sv);function hv(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var dv=function(){var e=function(){function e(t){Object(m.a)(this,e),this.handler=t}return Object(g.a)(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof ov)n=e;else{var o=void 0;o=r.headers instanceof Qg?r.headers:new Qg(r.headers);var a=void 0;r.params&&(a=r.params instanceof tv?r.params:new tv({fromObject:r.params})),n=new ov(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Object(Sm.a)(n).pipe(Object(Xg.a)((function(e){return i.handler.handle(e)})));if(e instanceof ov||"events"===r.observe)return s;var c=s.pipe(Object($m.a)((function(e){return e instanceof lv})));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(mf.a)((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return c.pipe(Object(mf.a)((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return c.pipe(Object(mf.a)((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 c.pipe(Object(mf.a)((function(e){return e.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new tv).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,hv(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,hv(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,hv(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Yg))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),fv=function(){function e(t,n){Object(m.a)(this,e),this.next=t,this.interceptor=n}return Object(g.a)(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),pv=new he("HTTP_INTERCEPTORS"),mv=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),gv=/^\)\]\}',?\n/,vv=function e(){Object(m.a)(this,e)},bv=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),yv=function(){var e=function(){function e(t){Object(m.a)(this,e),this.xhrFactory=t}return Object(g.a)(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new k.a((function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((function(e,t){return i.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Qg(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new cv({headers:r,status:t,statusText:n,url:o})},l=function(){var t=c(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var u=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(gv,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=h,u&&(u=!1,l={error:d,text:l})}}u?(n.next(new lv({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new uv({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},u=function(e){var t=c(),r=new uv({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t.url||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(c()),h=!0);var r={type:av.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:av.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",u),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:av.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",l),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(vv))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),_v=new he("XSRF_COOKIE_NAME"),wv=new he("XSRF_HEADER_NAME"),kv=function e(){Object(m.a)(this,e)},Cv=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return Object(g.a)(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Dh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(bu),we(Cl),we(_v))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Sv=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this.tokenService=t,this.headerName=n}return Object(g.a)(e,[{key:"intercept",value: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 i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(kv),we(wv))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),xv=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this.backend=t,this.injector=n,this.chain=null}return Object(g.a)(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(pv,[]);this.chain=t.reduceRight((function(e,t){return new fv(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Zg),we(na))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),Ov=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Sv,useClass:mv}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:_v,useValue:t.cookieName}:[],t.headerName?{provide:wv,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[Sv,{provide:pv,useExisting:Sv,multi:!0},{provide:kv,useClass:Cv},{provide:_v,useValue:"XSRF-TOKEN"},{provide:wv,useValue:"X-XSRF-TOKEN"}]}),e}(),Mv=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[dv,{provide:Yg,useClass:xv},yv,{provide:Zg,useExisting:yv},bv,{provide:vv,useExisting:bv}],imports:[[Ov.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Tv=function e(){Object(m.a)(this,e)},Ev=function e(){Object(m.a)(this,e)},Pv="*";function jv(e,t){return{type:7,name:e,definitions:t,options:{}}}function Av(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Iv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function Dv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Rv(e){return{type:6,styles:e,offset:null}}function Lv(e,t,n){return{type:0,name:e,styles:t,options:n}}function Fv(e){return{type:5,steps:e}}function Nv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Bv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Hv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function zv(e){Promise.resolve(null).then(e)}var Vv=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(m.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return Object(g.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;zv((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),qv=function(){function e(t){var n=this;Object(m.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?zv((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++i==a&&n._onFinish()})),e.onDestroy((function(){++r==a&&n._onDestroy()})),e.onStart((function(){++o==a&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return Object(g.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),Uv="!";function Gv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Wv(e){switch(e.length){case 0:return new Vv;case 1:return e[0];default:return new qv(e)}}function Kv(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],c=-1,l=null;if(i.forEach((function(e){var n=e.offset,i=n==c,u=i&&l||{};Object.keys(e).forEach((function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case Uv:s=r[n];break;case Pv:s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}u[i]=s})),i||s.push(u),l=u,c=n})),a.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(a.join(u)))}return s}function Xv(e,t,n,i){switch(t){case"start":e.onStart((function(){return i(n&&Yv(n,"start",e))}));break;case"done":e.onDone((function(){return i(n&&Yv(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return i(n&&Yv(n,"destroy",e))}))}}function Yv(e,t,n){var i=n.totalTime,r=Zv(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Zv(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Qv(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function $v(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Jv=function(e,t){return!1},eb=function(e,t){return!1},tb=function(e,t,n){return[]},nb=Gv();(nb||"undefined"!=typeof Element)&&(Jv=function(e,t){return e.contains(t)},eb=function(){if(nb||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:eb}(),tb=function(e,t,n){var i=[];if(n)i.push.apply(i,Object(u.a)(e.querySelectorAll(t)));else{var r=e.querySelector(t);r&&i.push(r)}return i});var ib=null,rb=!1;function ob(e){ib||(ib=("undefined"!=typeof document?document.body:null)||{},rb=!!ib.style&&"WebkitAppearance"in ib.style);var t=!0;return ib.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in ib.style)&&rb&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ib.style),t}var ab=eb,sb=Jv,cb=tb;function lb(e){var t={};return Object.keys(e).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]})),t}var ub=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"validateStyleProperty",value:function(e){return ob(e)}},{key:"matchesElement",value:function(e,t){return ab(e,t)}},{key:"containsElement",value:function(e,t){return sb(e,t)}},{key:"query",value:function(e,t,n){return cb(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new Vv(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),hb=function(){var e=function e(){Object(m.a)(this,e)};return e.NOOP=new ub,e}(),db="ng-enter",fb="ng-leave",pb="ng-trigger",mb=".ng-trigger",gb="ng-animating",vb=".ng-animating";function bb(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:yb(parseFloat(t[1]),t[2])}function yb(e,t){switch(t){case"s":return 1e3*e;default:return e}}function _b(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=yb(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=yb(parseFloat(s),a[4]));var c=a[5];c&&(o=c)}else i=e;if(!n){var l=!1,u=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(u,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function wb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function kb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else wb(e,n);return n}function Cb(e,t,n){return n?t+":"+n+";":""}function Sb(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Cb(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Cb(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function xb(e,t,n){e.style&&(Object.keys(t).forEach((function(i){var r=Ib(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]})),Gv()&&Sb(e))}function Ob(e,t){e.style&&(Object.keys(t).forEach((function(t){var n=Ib(t);e.style[n]=""})),Gv()&&Sb(e))}function Mb(e){return Array.isArray(e)?1==e.length?e[0]:Dv(e):e}var Tb=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Eb(e){var t=[];if("string"==typeof e){for(var n;n=Tb.exec(e);)t.push(n[1]);Tb.lastIndex=0}return t}function Pb(e,t,n){var i=e.toString(),r=i.replace(Tb,(function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()}));return r==i?e:r}function jb(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Ab=/-+([a-z0-9])/g;function Ib(e){return e.replace(Ab,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function Db(e,t){return 0===e||0===t}function Rb(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach((function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]})),o.length)for(var a=function(){var n=t[s];o.forEach((function(t){n[t]=Fb(e,t)}))},s=1;s<t.length;s++)a()}return t}function Lb(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function Fb(e,t){return window.getComputedStyle(e)[t]}var Nb="*",Bb=new Set(["true","1"]),Hb=new Set(["false","0"]);function zb(e,t){var n=Bb.has(e)||Hb.has(e),i=Bb.has(t)||Hb.has(t);return function(r,o){var a=e==Nb||e==r,s=t==Nb||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?Bb.has(e):Hb.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?Bb.has(t):Hb.has(t)),a&&s}}var Vb=":self",qb=new RegExp("s*".concat(Vb,"s*,?"),"g");function Ub(e,t,n){return new Gb(e).build(t,n)}var Gb=function(){function e(t){Object(m.a)(this,e),this._driver=t}return Object(g.a)(e,[{key:"build",value:function(e,t){var n=new Wb(t);return this._resetContextStyleTimingState(n),Lb(this,Mb(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach((function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,c=s.name;c.toString().split(/\s*,\s*/).forEach((function(e){s.name=e,o.push(n.visitState(s,t))})),s.name=c}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach((function(e){if(Kb(e)){var t=e;Object.keys(t).forEach((function(e){Eb(t[e]).forEach((function(e){o.hasOwnProperty(e)||r.add(e)}))}))}})),r.size){var a=jb(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=Lb(this,Mb(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(zb(o,s)),"<"!=a[0]||o==Nb&&s==Nb||t.push(zb(s,o))}(e,r,i)})):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Xb(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return Lb(n,e,t)})),options:Xb(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map((function(e){t.currentTime=i;var o=Lb(n,e,t);return r=Math.max(r,t.currentTime),o}));return t.currentTime=r,{type:3,steps:o,options:Xb(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Yb(_b(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var r=Yb(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Yb((n=n||_b(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Rv({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Rv(s)}t.currentTime+=i.duration+i.delay;var c=this.visitStyle(o,t);c.isEmptyStep=a,n=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?e==Pv?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var i=!1,r=null;return n.forEach((function(e){if(Kb(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,c,l=t.collectedStyles[t.currentQuerySelector],u=l[i],h=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(u.startTime,'ms" and "').concat(u.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),h=!1),o=u.startTime),h&&(l[i]={startTime:o,endTime:r}),t.options&&(a=t.errors,s=t.options.params||{},(c=Eb(e[i])).length&&c.forEach((function(e){s.hasOwnProperty(e)||a.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,c=0,l=e.steps.map((function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(Kb(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(Kb(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),u=0;return null!=l&&(r++,u=i.offset=l),s=s||u<0||u>1,a=a||u<c,c=u,o.push(u),i}));s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var u=e.steps.length,h=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(u-1));var d=u-1,f=t.currentTime,p=t.currentAnimateTimings,m=p.duration;return l.forEach((function(e,r){var a=h>0?r==d?1:h*r:o[r],s=a*m;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)})),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Lb(this,Mb(e.animation),t),options:Xb(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Xb(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Xb(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=l(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return e==Vb}));return t&&(e=e.replace(qb,"")),[e=e.replace(/@\*/g,mb).replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,vb),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,Qv(t.collectedStyles,t.currentQuerySelector,{});var s=Lb(this,Mb(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Xb(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:_b(e.timings,t.errors,!0);return{type:12,animation:Lb(this,Mb(e.animation),t),timings:n,options:null}}}]),e}(),Wb=function e(t){Object(m.a)(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Kb(e){return!Array.isArray(e)&&"object"==typeof e}function Xb(e){var t;return e?(e=wb(e)).params&&(e.params=(t=e.params)?wb(t):null):e={},e}function Yb(e,t,n){return{duration:e,delay:t,easing:n}}function Zb(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Qb=function(){function e(){Object(m.a)(this,e),this._map=new Map}return Object(g.a)(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,Object(u.a)(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),$b=new RegExp(":enter","g"),Jb=new RegExp(":leave","g");function ey(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ty).buildKeyframes(e,t,n,i,r,o,a,s,c,l)}var ty=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new Qb;var u=new iy(e,t,c,i,r,l,[]);u.options=s,u.currentTimeline.setStyles([o],null,u.errors,s),Lb(this,n,u);var h=u.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,u.errors,s)}return h.length?h.map((function(e){return e.buildKeyframes()})):[Zb(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?bb(n.duration):null,o=null!=n.delay?bb(n.delay):null;return 0!==r&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Lb(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ny);var a=bb(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach((function(e){return Lb(n,e,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?bb(e.options.delay):0;e.steps.forEach((function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),Lb(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return _b(t.params?Pb(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?bb(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ny);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach((function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(c=s.currentTimeline),Lb(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;Lb(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ny={},iy=function(){function e(t,n,i,r,o,a,s,c){Object(m.a)(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ny,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new ry(this._driver,n,0),s.push(this.currentTimeline)}return Object(g.a)(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=bb(i.duration)),null!=i.delay&&(r.delay=bb(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(e){t&&a.hasOwnProperty(e)||(a[e]=Pb(o[e],a,n.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ny,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new oy(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace($b,"."+this._enterClassName)).replace(Jb,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,Object(u.a)(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}},{key:"params",get:function(){return this.options.params}}]),e}(),ry=function(){function e(t,n,i,r){Object(m.a)(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return Object(g.a)(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||Pv,t._currentKeyframe[e]=Pv})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){i[e]=Pv})):kb(e,!1,i)})),i}(e,this._globalTimelineStyles);Object.keys(a).forEach((function(e){var t=Pb(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:Pv),r._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,a){var s=kb(o,!0);Object.keys(s).forEach((function(e){var i=s[e];i==Uv?t.add(e):i==Pv&&n.add(e)})),i||(s.offset=a/e.duration),r.push(s)}));var o=t.size?jb(t.values()):[],a=n.size?jb(n.values()):[];if(i){var s=r[0],c=wb(s);s.offset=0,c.offset=1,r=[s,c]}return Zb(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),oy=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Object(m.a)(this,n),(c=t.call(this,e,i,s.delay)).element=i,c.keyframes=r,c.preStyleProps=o,c.postStyleProps=a,c._stretchStartingKeyframe=l,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return Object(g.a)(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,c=kb(e[0],!1);c.offset=0,o.push(c);var l=kb(e[0],!1);l.offset=ay(s),o.push(l);for(var u=e.length-1,h=1;h<=u;h++){var d=kb(e[h],!1);d.offset=ay((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",e=o}return Zb(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(ry);function ay(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var sy=function e(){Object(m.a)(this,e)},cy=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"normalizePropertyName",value:function(e,t){return Ib(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(ly[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(sy),ly=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),t={},e.forEach((function(e){return t[e]=!0})),t;var e,t}();function uy(e,t,n,i,r,o,a,s,c,l,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}var hy={},dy=function(){function e(t,n,i){Object(m.a)(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return Object(g.a)(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some((function(e){return e(t,n,i,r)}))}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,c,l){var u=[],h=this.ast.options&&this.ast.options.params||hy,d=this.buildStyles(n,a&&a.params||hy,u),f=s&&s.params||hy,p=this.buildStyles(i,f,u),m=new Set,g=new Map,v=new Map,b="void"===i,y={params:Object.assign(Object.assign({},h),f)},_=l?[]:ey(e,t,this.ast.animation,r,o,d,p,y,c,u),w=0;if(_.forEach((function(e){w=Math.max(e.duration+e.delay,w)})),u.length)return uy(t,this._triggerName,n,i,b,d,p,[],[],g,v,w,u);_.forEach((function(e){var n=e.element,i=Qv(g,n,{});e.preStyleProps.forEach((function(e){return i[e]=!0}));var r=Qv(v,n,{});e.postStyleProps.forEach((function(e){return r[e]=!0})),n!==t&&m.add(n)}));var k=jb(m.values());return uy(t,this._triggerName,n,i,b,d,p,_,k,g,v,w)}}]),e}(),fy=function(){function e(t,n){Object(m.a)(this,e),this.styles=t,this.defaultParams=n}return Object(g.a)(e,[{key:"buildStyles",value:function(e,t){var n={},i=wb(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(i[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach((function(e){var o=r[e];o.length>1&&(o=Pb(o,i,t)),n[e]=o}))}})),n}}]),e}(),py=function(){function e(t,n){var i=this;Object(m.a)(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){i.states[e.name]=new fy(e.style,e.options&&e.options.params||{})})),my(this.states,"true","1"),my(this.states,"false","0"),n.transitions.forEach((function(e){i.transitionFactories.push(new dy(t,e,i.states))})),this.fallbackTransition=new dy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object(g.a)(e,[{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find((function(r){return r.match(e,t,n,i)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function my(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var gy=new Qb,vy=function(){function e(t,n,i){Object(m.a)(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return Object(g.a)(e,[{key:"register",value:function(e,t){var n=[],i=Ub(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Kv(this._driver,this._normalizer,i,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=ey(this._driver,t,a,db,fb,{},{},r,gy,o)).forEach((function(e){var t=Qv(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=i._driver.computeStyle(t,n,Pv)}))}));var c=n.map((function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)})),l=Wv(c);return this._playersById[e]=l,l.onDestroy((function(){return i.destroy(e)})),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=Zv(t,"","","");return Xv(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),by="ng-animate-queued",yy="ng-animate-disabled",_y=".ng-animate-disabled",wy="ng-star-inserted",ky=[],Cy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Sy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xy=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object(m.a)(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=jy(r),i){var o=wb(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object(g.a)(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),Oy="void",My=new xy(Oy),Ty=function(){function e(t,n,i){Object(m.a)(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ly(n,this._hostClassName)}return Object(g.a)(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Qv(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var c=Qv(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Ly(e,pb),Ly(e,"ng-trigger-"+t),c[t]=My),function(){o._engine.afterFlush((function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete c[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Py(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ly(e,pb),Ly(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],l=new xy(n,this.id),u=n&&n.hasOwnProperty("value");!u&&c&&l.absorbOptions(c.options),s[t]=l,c||(c=My);var h=l.value===Oy;if(h||c.value!==l.value){var d=Qv(this._engine.playersByElement,e,[]);d.forEach((function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()}));var f=o.matchTransition(c.value,l.value,e,l.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:c,toState:l,player:a,isFallbackTransition:p}),p||(Ly(e,by),a.onStart((function(){Fy(e,by)}))),a.onDone((function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}})),this.players.push(a),d.push(a),a}if(!By(c.params,l.params)){var m=[],g=o.matchStyles(c.value,c.params,m),v=o.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush((function(){Ob(e,g),xb(e,v)}))}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach((function(t,n){delete t[e]})),this._elementListeners.forEach((function(n,i){t._elementListeners.set(i,n.filter((function(t){return t.name!=e})))}))}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach((function(e){return e.destroy()})),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,mb,!0);i.forEach((function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach((function(n){return n.triggerLeaveAnimation(e,t,!1,!0)})):n.clearElementCache(e)}})),this._engine.afterFlushAnimationsDone((function(){return i.forEach((function(e){return n.clearElementCache(e)}))}))}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach((function(t){if(r._triggers[t]){var n=r.trigger(e,t,Oy,i);n&&a.push(n)}})),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Wv(a).onDone((function(){return r._engine.processLeaveNode(e)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e);if(n){var i=new Set;n.forEach((function(n){var r=n.name;if(!i.has(r)){i.add(r);var o=t._triggers[r].fallbackTransition,a=t._engine.statesByElement.get(e)[r]||My,s=new xy(Oy),c=new Py(t.id,r,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:r,transition:o,fromState:a,toState:s,player:c,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Cy||(i.afterFlush((function(){return n.clearElementCache(e)})),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Ly(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach((function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach((function(t){if(t.name==i.triggerName){var n=Zv(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,Xv(i.player,t.phase,n,t.callback)}})),r.markedForDestroy?t._engine.afterFlush((function(){r.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1}))}},{key:"destroy",value:function(e){this.players.forEach((function(e){return e.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find((function(t){return t.element===e}))||t}}]),e}(),Ey=function(){function e(t,n,i){Object(m.a)(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return Object(g.a)(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"createNamespace",value:function(e,t){var n=new Ty(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(Ay(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(Ay(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ly(e,yy)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Fy(e,yy))}},{key:"removeNode",value:function(e,t,n,i){if(Ay(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ay(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,mb,!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,vb,!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return Wv(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Cy,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,_y)&&this.markElementAsDisabled(e,!1),this.driver.query(e,_y,!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++){var r=this.collectedEnterElements[i];Ly(r,wy)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(var a=0;a<o.length;a++)o[a]()}}else for(var s=0;s<this.collectedLeaveElements.length;s++){var c=this.collectedLeaveElements[s];this.processLeaveNode(c)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(e){return e()})),this._flushFns=[],this._whenQuietFns.length){var l=this._whenQuietFns;this._whenQuietFns=[],n.length?Wv(n).onDone((function(){l.forEach((function(e){return e()}))})):l.forEach((function(e){return e()}))}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Qb,r=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,h=new Set;this.disabledNodes.forEach((function(e){h.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)h.add(t[i])}));var d=this.bodyNode,f=Array.from(this.statesByElement.keys()),p=Ry(f,this.collectedEnterElements),m=new Map,g=0;p.forEach((function(e,t){var n=db+g++;m.set(t,n),e.forEach((function(e){return Ly(e,n)}))}));for(var v=[],b=new Set,y=new Set,_=0;_<this.collectedLeaveElements.length;_++){var w=this.collectedLeaveElements[_],k=w.__ng_removed;k&&k.setForRemoval&&(v.push(w),b.add(w),k.hasAnimation?this.driver.query(w,".ng-star-inserted",!0).forEach((function(e){return b.add(e)})):y.add(w))}var C=new Map,S=Ry(f,Array.from(b));S.forEach((function(e,t){var n=fb+g++;C.set(t,n),e.forEach((function(e){return Ly(e,n)}))})),e.push((function(){p.forEach((function(e,t){var n=m.get(t);e.forEach((function(e){return Fy(e,n)}))})),S.forEach((function(e,t){var n=C.get(t);e.forEach((function(e){return Fy(e,n)}))})),v.forEach((function(e){n.processLeaveNode(e)}))}));for(var x=[],O=[],M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(t).forEach((function(e){var t=e.player,o=e.element;if(x.push(t),n.collectedEnterElements.length){var u=o.__ng_removed;if(u&&u.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,o),f=C.get(o),p=m.get(o),g=n._buildInstruction(e,i,p,f,h);if(g.errors&&g.errors.length)O.push(g);else{if(h)return t.onStart((function(){return Ob(o,g.fromStyles)})),t.onDestroy((function(){return xb(o,g.toStyles)})),void r.push(t);if(e.isFallbackTransition)return t.onStart((function(){return Ob(o,g.fromStyles)})),t.onDestroy((function(){return xb(o,g.toStyles)})),void r.push(t);g.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),i.append(o,g.timelines),a.push({instruction:g,player:t,element:o}),g.queriedElements.forEach((function(e){return Qv(s,e,[]).push(t)})),g.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach((function(e){return i.add(e)}))}})),g.postStyleProps.forEach((function(e,t){var n=Object.keys(e),i=l.get(t);i||l.set(t,i=new Set),n.forEach((function(e){return i.add(e)}))}))}}));if(O.length){var T=[];O.forEach((function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return T.push("- ".concat(e,"\n"))}))})),x.forEach((function(e){return e.destroy()})),this.reportError(T)}var E=new Map,P=new Map;a.forEach((function(e){var t=e.element;i.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,E))})),r.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){Qv(E,t,[]).push(e),e.destroy()}))}));var j=v.filter((function(e){return Hy(e,c,l)})),A=new Map;Dy(A,this.driver,y,l,Pv).forEach((function(e){Hy(e,c,l)&&j.push(e)}));var I=new Map;p.forEach((function(e,t){Dy(I,n.driver,new Set(e),c,Uv)})),j.forEach((function(e){var t=A.get(e),n=I.get(e);A.set(e,Object.assign(Object.assign({},t),n))}));var D=[],R=[],L={};a.forEach((function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(h.has(t))return a.onDestroy((function(){return xb(t,s.toStyles)})),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var c=L;if(P.size>1){for(var l=t,u=[];l=l.parentNode;){var d=P.get(l);if(d){c=d;break}u.push(l)}u.forEach((function(e){return P.set(e,c)}))}var f=n._buildAnimation(a.namespaceId,s,E,o,I,A);if(a.setRealPlayer(f),c===L)D.push(a);else{var p=n.playersByElement.get(c);p&&p.length&&(a.parentPlayer=Wv(p)),r.push(a)}}else Ob(t,s.fromStyles),a.onDestroy((function(){return xb(t,s.toStyles)})),R.push(a),h.has(t)&&r.push(a)})),R.forEach((function(e){var t=o.get(e.element);if(t&&t.length){var n=Wv(t);e.setRealPlayer(n)}})),r.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var F=0;F<v.length;F++){var N=v[F],B=N.__ng_removed;if(Fy(N,fb),!B||!B.hasAnimation){var H=[];if(s.size){var z=s.get(N);z&&z.length&&H.push.apply(H,Object(u.a)(z));for(var V=this.driver.query(N,vb,!0),q=0;q<V.length;q++){var U=s.get(V[q]);U&&U.length&&H.push.apply(H,Object(u.a)(U))}}var G=H.filter((function(e){return!e.destroyed}));G.length?Ny(this,N,G):this.processLeaveNode(N)}}return v.length=0,D.forEach((function(e){n.players.push(e),e.onDone((function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)})),e.play()})),D}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var c=!r||r==Oy;s.forEach((function(e){e.queued||(c||e.triggerName==i)&&o.push(e)}))}}return(n||i)&&(o=o.filter((function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)}))),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,c=d(t.timelines);try{var l=function(){var e=i.value.element,c=e!==o,l=Qv(n,e,[]);r._getPreviousPlayers(e,c,a,s,t.toState).forEach((function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))};for(c.s();!(i=c.n()).done;)l()}catch(u){c.e(u)}finally{c.f()}Ob(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,c=t.element,l=[],u=new Set,h=new Set,d=t.timelines.map((function(t){var d=t.element;u.add(d);var f=d.__ng_removed;if(f&&f.removedBeforeQueried)return new Vv(t.duration,t.delay);var p,m,g=d!==c,v=(p=(n.get(d)||ky).map((function(e){return e.getRealPlayer()})),m=[],function e(t,n){for(var i=0;i<t.length;i++){var r=t[i];r instanceof qv?e(r.players,n):n.push(r)}}(p,m),m).filter((function(e){return!!e.element&&e.element===d})),b=r.get(d),y=o.get(d),_=Kv(a.driver,a._normalizer,d,t.keyframes,b,y),w=a._buildPlayer(t,_,v);if(t.subTimeline&&i&&h.add(d),g){var k=new Py(e,s,d);k.setRealPlayer(w),l.push(k)}return w}));l.forEach((function(e){Qv(a.playersByQueriedElement,e.element,[]).push(e),e.onDone((function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)}))})),u.forEach((function(e){return Ly(e,gb)}));var f=Wv(d);return f.onDestroy((function(){u.forEach((function(e){return Fy(e,gb)})),xb(c,t.toStyles)})),h.forEach((function(e){Qv(i,e,[]).push(f)})),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Vv(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),Py=function(){function e(t,n,i){Object(m.a)(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Vv,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return Object(g.a)(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return Xv(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){Qv(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function jy(e){return null!=e?e:null}function Ay(e){return e&&1===e.nodeType}function Iy(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Dy(e,t,n,i,r){var o=[];n.forEach((function(e){return o.push(Iy(e))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Sy,a.push(i))})),e.set(i,o)}));var s=0;return n.forEach((function(e){return Iy(e,o[s++])})),a}function Ry(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var i=new Set(t),r=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=r.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:i.has(a)?1:e(a),r.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function Ly(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Fy(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Ny(e,t,n){Wv(n).onDone((function(){return e.processLeaveNode(t)}))}function By(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}function Hy(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach((function(e){return r.add(e)})):t.set(e,i),n.delete(e),!0}var zy=function(){function e(t,n,i){var r=this;Object(m.a)(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ey(t,n,i),this._timelineEngine=new vy(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return Object(g.a)(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],c=Ub(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new py(e,t)}(i,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=l($v(n),2);this._timelineEngine.command(r[0],t,r[1],i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=l($v(n),2);return this._timelineEngine.listen(o[0],t,o[1],r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function Vy(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Uy(t[0]),t.length>1&&(i=Uy(t[t.length-1]))):t&&(n=Uy(t)),n||i?new qy(e,n,i):null}var qy=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return Object(g.a)(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&xb(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(xb(this._element,this._initialStyles),this._endStyles&&(xb(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Ob(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ob(this._element,this._endStyles),this._endStyles=null),xb(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Uy(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];Gy(r)&&((t=t||{})[r]=e[r])}return t}function Gy(e){return"display"===e||"position"===e}var Wy="animation",Ky="animationend",Xy=function(){function e(t,n,i,r,o,a,s){var c=this;Object(m.a)(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return c._handleCallback(e)}}return Object(g.a)(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=e_(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),Jy(e,"",t),$y(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Yy(this._element,this._name,"paused")}},{key:"resume",value:function(){Yy(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=Zy(this._element,this._name);this._position=e*this._duration,Jy(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),$y(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(i=Qy(n=e_(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),Jy(e,"",n.join(","))))}}]),e}();function Yy(e,t,n){Jy(e,"PlayState",n,Zy(e,t))}function Zy(e,t){var n=e_(e,"");return n.indexOf(",")>0?Qy(n.split(","),t):Qy([n],t)}function Qy(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function $y(e,t,n){n?e.removeEventListener(Ky,t):e.addEventListener(Ky,t)}function Jy(e,t,n,i){var r=Wy+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function e_(e,t){return e.style[Wy+t]}var t_=function(){function e(t,n,i,r,o,a,s,c){Object(m.a)(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return Object(g.a)(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Xy(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Fb(e.element,i))}))}this.currentSnapshot=t}}]),e}(),n_=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=lb(i),r}return Object(g.a)(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),Object(o.a)(Object(a.a)(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),Object(o.a)(Object(a.a)(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,Object(o.a)(Object(a.a)(n.prototype),"destroy",this).call(this))}}]),n}(Vv),i_="gen_css_kf_",r_=function(){function e(){Object(m.a)(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return Object(g.a)(e,[{key:"validateStyleProperty",value:function(e){return ob(e)}},{key:"matchesElement",value:function(e,t){return ab(e,t)}},{key:"containsElement",value:function(e,t){return sb(e,t)}},{key:"query",value:function(e,t,n){return cb(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return lb(e)}));var i="@keyframes ".concat(t," {\n"),r="";n.forEach((function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}})),i+="".concat(r,"}\n")})),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(e){return e instanceof t_})),c={};Db(n,i)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return c[e]=t[e]}))}));var l=o_(t=Rb(e,t,c));if(0==n)return new n_(e,l);var u="".concat(i_).concat(this._count++),h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);var d=Vy(e,t),f=new t_(e,t,u,n,i,r,l,d);return f.onDestroy((function(){return a_(h)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}();function o_(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}function a_(e){e.parentNode.removeChild(e)}var s_=function(){function e(t,n,i,r){Object(m.a)(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return Object(g.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Fb(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),c_=function(){function e(){Object(m.a)(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(l_().toString()),this._cssKeyframesDriver=new r_}return Object(g.a)(e,[{key:"validateStyleProperty",value:function(e){return ob(e)}},{key:"matchesElement",value:function(e,t){return ab(e,t)}},{key:"containsElement",value:function(e,t){return sb(e,t)}},{key:"query",value:function(e,t,n){return cb(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var c=0==i?"both":"forwards",l={duration:n,delay:i,fill:c};r&&(l.easing=r);var u={},h=o.filter((function(e){return e instanceof s_}));Db(n,i)&&h.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return u[e]=t[e]}))}));var d=Vy(e,t=Rb(e,t=t.map((function(e){return kb(e,!1)})),u));return new s_(e,t,l,d)}}]),e}();function l_(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var u_=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Fe.None,styles:[],data:{animation:[]}}),r}return Object(g.a)(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Dv(e):e;return f_(this._renderer,null,t,"register",[n]),new h_(t,this._renderer)}}]),n}(Tv);return e.\u0275fac=function(t){return new(t||e)(we(Ys),we(bu))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),h_=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return Object(g.a)(n,[{key:"create",value:function(e,t){return new d_(this._id,e,t||{},this._renderer)}}]),n}(Ev),d_=function(){function e(t,n,i,r){Object(m.a)(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return Object(g.a)(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return f_(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){return 0}}]),e}();function f_(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var p_="@",m_="@.disabled",g_=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return Object(g.a)(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new v_("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach((function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)})),new b_(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then((function(){e._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run((function(){return t(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){i._zone.run((function(){i._animationCallbacksBuffer.forEach((function(e){var t=l(e,2);(0,t[0])(t[1])})),i._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Ys),we(zy),we(Nl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),v_=function(){function e(t,n,i){Object(m.a)(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return Object(g.a)(e,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==p_&&t==m_?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),b_=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return Object(g.a)(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==p_?"."==t.charAt(1)&&t==m_?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if(t.charAt(0)==p_){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),c="";if(s.charAt(0)!=p_){var u=l((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=u[0],c=u[1]}return this.engine.listen(this.namespaceId,a,s,c,(function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)}))}return this.delegate.listen(e,t,n)}}]),n}(v_),y_=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){return Object(m.a)(this,n),t.call(this,e.body,i,r)}return n}(zy);return e.\u0275fac=function(t){return new(t||e)(we(bu),we(hb),we(sy))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),__=new he("AnimationModuleType"),w_=[{provide:Tv,useClass:u_},{provide:sy,useFactory:function(){return new cy}},{provide:zy,useClass:y_},{provide:Ys,useFactory:function(e,t,n){return new g_(e,t,n)},deps:[qd,zy,Nl]}],k_=[{provide:hb,useFactory:function(){return"function"==typeof l_()?new c_:new r_}},{provide:__,useValue:"BrowserAnimations"}].concat(w_),C_=([{provide:hb,useClass:ub},{provide:__,useValue:"NoopAnimations"}].concat(w_),function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:k_,imports:[rf]}),e}()),S_=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},x_=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return S_(t(e),n)}),{left:function(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;e(t[o],n)<0?i=o+1:r=o}return i},right:function(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;e(t[o],n)>0?r=o:i=o+1}return i}}},O_=x_(S_),M_=O_.right,T_=O_.left,E_=M_,P_=function(e,t){null==t&&(t=j_);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return o};function j_(e,t){return[e,t]}var A_=function(e,t,n){var i,r,o,a,s=e.length,c=t.length,l=new Array(s*c);for(null==n&&(n=j_),i=o=0;i<s;++i)for(a=e[i],r=0;r<c;++r,++o)l[o]=n(a,t[r]);return l},I_=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},D_=function(e){return null===e?NaN:+e},R_=function(e,t){var n,i,r=e.length,o=0,a=-1,s=0,c=0;if(null==t)for(;++a<r;)isNaN(n=D_(e[a]))||(c+=(i=n-s)*(n-(s+=i/++o)));else for(;++a<r;)isNaN(n=D_(t(e[a],a,e)))||(c+=(i=n-s)*(n-(s+=i/++o)));if(o>1)return c/(o-1)},L_=function(e,t){var n=R_(e,t);return n?Math.sqrt(n):n},F_=function(e,t){var n,i,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(i=r=n;++a<o;)null!=(n=e[a])&&(i>n&&(i=n),r<n&&(r=n))}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(i=r=n;++a<o;)null!=(n=t(e[a],a,e))&&(i>n&&(i=n),r<n&&(r=n));return[i,r]},N_=Array.prototype,B_=N_.slice,H_=N_.map,z_=function(e){return function(){return e}},V_=function(e){return e},q_=function(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(r);++i<r;)o[i]=e+i*n;return o},U_=Math.sqrt(50),G_=Math.sqrt(10),W_=Math.sqrt(2),K_=function(e,t,n){var i,r,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((i=t<e)&&(r=e,e=t,t=r),0===(a=X_(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(r=Math.ceil(t-e+1));++s<r;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(r=Math.ceil(e-t+1));++s<r;)o[s]=(e-s)/a;return i&&o.reverse(),o};function X_(e,t,n){var i=(t-e)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=U_?10:o>=G_?5:o>=W_?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=U_?10:o>=G_?5:o>=W_?2:1)}function Y_(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=U_?r*=10:o>=G_?r*=5:o>=W_&&(r*=2),t<e?-r:r}var Z_=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},Q_=function(){var e=V_,t=F_,n=Z_;function i(i){var r,o,a=i.length,s=new Array(a);for(r=0;r<a;++r)s[r]=e(i[r],r,i);var c=t(s),l=c[0],u=c[1],h=n(s,l,u);Array.isArray(h)||(h=Y_(l,u,h),h=q_(Math.ceil(l/h)*h,u,h));for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>u;)h.pop(),--d;var f,p=new Array(d+1);for(r=0;r<=d;++r)(f=p[r]=[]).x0=r>0?h[r-1]:l,f.x1=r<d?h[r]:u;for(r=0;r<a;++r)l<=(o=s[r])&&o<=u&&p[E_(h,o,0,d)].push(i[r]);return p}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:z_(t),i):e},i.domain=function(e){return arguments.length?(t="function"==typeof e?e:z_([e[0],e[1]]),i):t},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?z_(B_.call(e)):z_(e),i):n},i},$_=function(e,t,n){if(null==n&&(n=D_),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,r=(i-1)*t,o=Math.floor(r),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(r-o)}},J_=function(e,t,n){return e=H_.call(e,D_).sort(S_),Math.ceil((n-t)/(2*($_(e,.75)-$_(e,.25))*Math.pow(e.length,-1/3)))},ew=function(e,t,n){return Math.ceil((n-t)/(3.5*L_(e)*Math.pow(e.length,-1/3)))},tw=function(e,t){var n,i,r=e.length,o=-1;if(null==t){for(;++o<r;)if(null!=(n=e[o])&&n>=n)for(i=n;++o<r;)null!=(n=e[o])&&n>i&&(i=n)}else for(;++o<r;)if(null!=(n=t(e[o],o,e))&&n>=n)for(i=n;++o<r;)null!=(n=t(e[o],o,e))&&n>i&&(i=n);return i},nw=function(e,t){var n,i=e.length,r=i,o=-1,a=0;if(null==t)for(;++o<i;)isNaN(n=D_(e[o]))?--r:a+=n;else for(;++o<i;)isNaN(n=D_(t(e[o],o,e)))?--r:a+=n;if(r)return a/r},iw=function(e,t){var n,i=e.length,r=-1,o=[];if(null==t)for(;++r<i;)isNaN(n=D_(e[r]))||o.push(n);else for(;++r<i;)isNaN(n=D_(t(e[r],r,e)))||o.push(n);return $_(o.sort(S_),.5)},rw=function(e){for(var t,n,i,r=e.length,o=-1,a=0;++o<r;)a+=e[o].length;for(n=new Array(a);--r>=0;)for(t=(i=e[r]).length;--t>=0;)n[--a]=i[t];return n},ow=function(e,t){var n,i,r=e.length,o=-1;if(null==t){for(;++o<r;)if(null!=(n=e[o])&&n>=n)for(i=n;++o<r;)null!=(n=e[o])&&i>n&&(i=n)}else for(;++o<r;)if(null!=(n=t(e[o],o,e))&&n>=n)for(i=n;++o<r;)null!=(n=t(e[o],o,e))&&i>n&&(i=n);return i},aw=function(e,t){for(var n=t.length,i=new Array(n);n--;)i[n]=e[t[n]];return i},sw=function(e,t){if(n=e.length){var n,i,r=0,o=0,a=e[o];for(null==t&&(t=S_);++r<n;)(t(i=e[r],a)<0||0!==t(a,a))&&(a=i,o=r);return 0===t(a,a)?o:void 0}},cw=function(e,t,n){for(var i,r,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)r=Math.random()*o--|0,i=e[o+t],e[o+t]=e[r+t],e[r+t]=i;return e},lw=function(e,t){var n,i=e.length,r=-1,o=0;if(null==t)for(;++r<i;)(n=+e[r])&&(o+=n);else for(;++r<i;)(n=+t(e[r],r,e))&&(o+=n);return o},uw=function(e){if(!(r=e.length))return[];for(var t=-1,n=ow(e,hw),i=new Array(n);++t<n;)for(var r,o=-1,a=i[t]=new Array(r);++o<r;)a[o]=e[o][t];return i};function hw(e){return e.length}var dw=function(){return uw(arguments)},fw=Array.prototype.slice,pw=function(e){return e},mw=1e-6;function gw(e){return"translate("+(e+.5)+",0)"}function vw(e){return"translate(0,"+(e+.5)+")"}function bw(e){return function(t){return+e(t)}}function yw(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function _w(){return!this.__axis}function ww(e,t){var n=[],i=null,r=null,o=6,a=6,s=3,c=1===e||4===e?-1:1,l=4===e||2===e?"x":"y",u=1===e||3===e?gw:vw;function h(h){var d=null==i?t.ticks?t.ticks.apply(t,n):t.domain():i,f=null==r?t.tickFormat?t.tickFormat.apply(t,n):pw:r,p=Math.max(o,0)+s,m=t.range(),g=+m[0]+.5,v=+m[m.length-1]+.5,b=(t.bandwidth?yw:bw)(t.copy()),y=h.selection?h.selection():h,_=y.selectAll(".domain").data([null]),w=y.selectAll(".tick").data(d,t).order(),k=w.exit(),C=w.enter().append("g").attr("class","tick"),S=w.select("line"),x=w.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(C),S=S.merge(C.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),x=x.merge(C.append("text").attr("fill","currentColor").attr(l,c*p).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),h!==y&&(_=_.transition(h),w=w.transition(h),S=S.transition(h),x=x.transition(h),k=k.transition(h).attr("opacity",mw).attr("transform",(function(e){return isFinite(e=b(e))?u(e):this.getAttribute("transform")})),C.attr("opacity",mw).attr("transform",(function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:b(e))}))),k.remove(),_.attr("d",4===e||2==e?a?"M"+c*a+","+g+"H0.5V"+v+"H"+c*a:"M0.5,"+g+"V"+v:a?"M"+g+","+c*a+"V0.5H"+v+"V"+c*a:"M"+g+",0.5H"+v),w.attr("opacity",1).attr("transform",(function(e){return u(b(e))})),S.attr(l+"2",c*o),x.attr(l,c*p).text(f),y.filter(_w).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),y.each((function(){this.__axis=b}))}return h.scale=function(e){return arguments.length?(t=e,h):t},h.ticks=function(){return n=fw.call(arguments),h},h.tickArguments=function(e){return arguments.length?(n=null==e?[]:fw.call(e),h):n.slice()},h.tickValues=function(e){return arguments.length?(i=null==e?null:fw.call(e),h):i&&i.slice()},h.tickFormat=function(e){return arguments.length?(r=e,h):r},h.tickSize=function(e){return arguments.length?(o=a=+e,h):o},h.tickSizeInner=function(e){return arguments.length?(o=+e,h):o},h.tickSizeOuter=function(e){return arguments.length?(a=+e,h):a},h.tickPadding=function(e){return arguments.length?(s=+e,h):s},h}function kw(e){return ww(1,e)}function Cw(e){return ww(2,e)}function Sw(e){return ww(3,e)}function xw(e){return ww(4,e)}var Ow={value:function(){}};function Mw(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e);i[e]=[]}return new Tw(i)}function Tw(e){this._=e}function Ew(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",i=e.indexOf(".");if(i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Pw(e,t){for(var n,i=0,r=e.length;i<r;++i)if((n=e[i]).name===t)return n.value}function jw(e,t,n){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=Ow,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}Tw.prototype=Mw.prototype={constructor:Tw,on:function(e,t){var n,i=this._,r=Ew(e+"",i),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=r[o]).type)i[n]=jw(i[n],e.name,t);else if(null==t)for(n in i)i[n]=jw(i[n],e.name,null);return this}for(;++o<a;)if((n=(e=r[o]).type)&&(n=Pw(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Tw(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(i=this._[e]).length;o<n;++o)i[o].value.apply(t,r)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)}};var Aw=Mw,Iw="http://www.w3.org/1999/xhtml",Dw={svg:"http://www.w3.org/2000/svg",xhtml:Iw,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Rw=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Dw.hasOwnProperty(t)?{space:Dw[t],local:e}:e};function Lw(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Iw&&t.documentElement.namespaceURI===Iw?t.createElement(e):t.createElementNS(n,e)}}function Fw(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var Nw=function(e){var t=Rw(e);return(t.local?Fw:Lw)(t)};function Bw(){}var Hw=function(e){return null==e?Bw:function(){return this.querySelector(e)}};function zw(){return[]}var Vw=function(e){return null==e?zw:function(){return this.querySelectorAll(e)}},qw=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Uw=document.documentElement;if(!Uw.matches){var Gw=Uw.webkitMatchesSelector||Uw.msMatchesSelector||Uw.mozMatchesSelector||Uw.oMatchesSelector;qw=function(e){return function(){return Gw.call(this,e)}}}}var Ww=qw,Kw=function(e){return new Array(e.length)};function Xw(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Yw(e,t,n,i,r,o){for(var a,s=0,c=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],i[s]=a):n[s]=new Xw(e,o[s]);for(;s<c;++s)(a=t[s])&&(r[s]=a)}function Zw(e,t,n,i,r,o,a){var s,c,l,u={},h=t.length,d=o.length,f=new Array(h);for(s=0;s<h;++s)(c=t[s])&&(f[s]=l="$"+a.call(c,c.__data__,s,t),l in u?r[s]=c:u[l]=c);for(s=0;s<d;++s)(c=u[l="$"+a.call(e,o[s],s,o)])?(i[s]=c,c.__data__=o[s],u[l]=null):n[s]=new Xw(e,o[s]);for(s=0;s<h;++s)(c=t[s])&&u[f[s]]===c&&(r[s]=c)}function Qw(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function $w(e){return function(){this.removeAttribute(e)}}function Jw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ek(e,t){return function(){this.setAttribute(e,t)}}function tk(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nk(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function ik(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}Xw.prototype={constructor:Xw,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var rk=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function ok(e){return function(){this.style.removeProperty(e)}}function ak(e,t,n){return function(){this.style.setProperty(e,t,n)}}function sk(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function ck(e,t){return e.style.getPropertyValue(t)||rk(e).getComputedStyle(e,null).getPropertyValue(t)}function lk(e){return function(){delete this[e]}}function uk(e,t){return function(){this[e]=t}}function hk(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function dk(e){return e.trim().split(/^|\s+/)}function fk(e){return e.classList||new pk(e)}function pk(e){this._node=e,this._names=dk(e.getAttribute("class")||"")}function mk(e,t){for(var n=fk(e),i=-1,r=t.length;++i<r;)n.add(t[i])}function gk(e,t){for(var n=fk(e),i=-1,r=t.length;++i<r;)n.remove(t[i])}function vk(e){return function(){mk(this,e)}}function bk(e){return function(){gk(this,e)}}function yk(e,t){return function(){(t.apply(this,arguments)?mk:gk)(this,e)}}function _k(){this.textContent=""}function wk(e){return function(){this.textContent=e}}function kk(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Ck(){this.innerHTML=""}function Sk(e){return function(){this.innerHTML=e}}function xk(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Ok(){this.nextSibling&&this.parentNode.appendChild(this)}function Mk(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Tk(){return null}function Ek(){var e=this.parentNode;e&&e.removeChild(this)}function Pk(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function jk(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}pk.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Ak={},Ik=null;function Dk(e,t,n){return e=Rk(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Rk(e,t,n){return function(i){var r=Ik;Ik=i;try{e.call(this,this.__data__,t,n)}finally{Ik=r}}}function Lk(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Fk(e){return function(){var t=this.__on;if(t){for(var n,i=0,r=-1,o=t.length;i<o;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?t.length=r:delete this.__on}}}function Nk(e,t,n){var i=Ak.hasOwnProperty(e.type)?Dk:Rk;return function(r,o,a){var s,c=this.__on,l=i(t,o,a);if(c)for(var u=0,h=c.length;u<h;++u)if((s=c[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=t);this.addEventListener(e.type,l,n),s={type:e.type,name:e.name,value:t,listener:l,capture:n},c?c.push(s):this.__on=[s]}}function Bk(e,t,n,i){var r=Ik;e.sourceEvent=Ik,Ik=e;try{return t.apply(n,i)}finally{Ik=r}}function Hk(e,t,n){var i=rk(e),r=i.CustomEvent;"function"==typeof r?r=new r(t,n):(r=i.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function zk(e,t){return function(){return Hk(this,e,t)}}function Vk(e,t){return function(){return Hk(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ak={mouseenter:"mouseover",mouseleave:"mouseout"}));var qk=[null];function Uk(e,t){this._groups=e,this._parents=t}function Gk(){return new Uk([[document.documentElement]],qk)}Uk.prototype=Gk.prototype={constructor:Uk,select:function(e){"function"!=typeof e&&(e=Hw(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,a,s=t[r],c=s.length,l=i[r]=new Array(c),u=0;u<c;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),l[u]=a);return new Uk(i,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=Vw(e));for(var t=this._groups,n=t.length,i=[],r=[],o=0;o<n;++o)for(var a,s=t[o],c=s.length,l=0;l<c;++l)(a=s[l])&&(i.push(e.call(a,a.__data__,l,s)),r.push(a));return new Uk(i,r)},filter:function(e){"function"!=typeof e&&(e=Ww(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,a=t[r],s=a.length,c=i[r]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&c.push(o);return new Uk(i,this._parents)},data:function(e,t){if(!e)return p=new Array(this.size()),u=-1,this.each((function(e){p[++u]=e})),p;var n,i=t?Zw:Yw,r=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),c=new Array(a),l=new Array(a),u=0;u<a;++u){var h=r[u],d=o[u],f=d.length,p=e.call(h,h&&h.__data__,u,r),m=p.length,g=c[u]=new Array(m),v=s[u]=new Array(m);i(h,d,g,v,l[u]=new Array(f),p,t);for(var b,y,_=0,w=0;_<m;++_)if(b=g[_]){for(_>=w&&(w=_+1);!(y=v[w])&&++w<m;);b._next=y||null}}return(s=new Uk(s,r))._enter=c,s._exit=l,s},enter:function(){return new Uk(this._enter||this._groups.map(Kw),this._parents)},exit:function(){return new Uk(this._exit||this._groups.map(Kw),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,i=t.length,r=Math.min(i,n.length),o=new Array(i),a=0;a<r;++a)for(var s,c=t[a],l=n[a],u=c.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=c[d]||l[d])&&(h[d]=s);for(;a<i;++a)o[a]=t[a];return new Uk(o,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,r=e[t],o=r.length-1,a=r[o];--o>=0;)(i=r[o])&&(a&&a!==i.nextSibling&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Qw);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var a,s=n[o],c=s.length,l=r[o]=new Array(c),u=0;u<c;++u)(a=s[u])&&(l[u]=a);l.sort(t)}return new Uk(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,o=i.length;r<o;++r){var a=i[r];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var r,o=t[n],a=0,s=o.length;a<s;++a)(r=o[a])&&e.call(r,r.__data__,a,o);return this},attr:function(e,t){var n=Rw(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?Jw:$w:"function"==typeof t?n.local?ik:nk:n.local?tk:ek)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?ok:"function"==typeof t?sk:ak)(e,t,null==n?"":n)):ck(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?lk:"function"==typeof t?hk:uk)(e,t)):this.node()[e]},classed:function(e,t){var n=dk(e+"");if(arguments.length<2){for(var i=fk(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof t?yk:t?vk:bk)(n,t))},text:function(e){return arguments.length?this.each(null==e?_k:("function"==typeof e?kk:wk)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Ck:("function"==typeof e?xk:Sk)(e)):this.node().innerHTML},raise:function(){return this.each(Ok)},lower:function(){return this.each(Mk)},append:function(e){var t="function"==typeof e?e:Nw(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Nw(e),i=null==t?Tk:"function"==typeof t?t:Hw(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(Ek)},clone:function(e){return this.select(e?jk:Pk)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,r,o=Lk(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Nk:Fk,null==n&&(n=!1),i=0;i<a;++i)this.each(s(o[i],t,n));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(i=0,c=s[l];i<a;++i)if((r=o[i]).type===c.type&&r.name===c.name)return c.value},dispatch:function(e,t){return this.each(("function"==typeof t?Vk:zk)(e,t))}};var Wk=Gk,Kk=function(e){return"string"==typeof e?new Uk([[document.querySelector(e)]],[document.documentElement]):new Uk([[e]],qk)},Xk=function(e){return Kk(Nw(e).call(document.documentElement))},Yk=0;function Zk(){return new Qk}function Qk(){this._="@"+(++Yk).toString(36)}Qk.prototype=Zk.prototype={constructor:Qk,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var $k=function(){for(var e,t=Ik;e=t.sourceEvent;)t=e;return t},Jk=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]},eC=function(e){var t=$k();return t.changedTouches&&(t=t.changedTouches[0]),Jk(e,t)},tC=function(e){return"string"==typeof e?new Uk([document.querySelectorAll(e)],[document.documentElement]):new Uk([null==e?[]:e],qk)},nC=function(e,t,n){arguments.length<3&&(n=t,t=$k().changedTouches);for(var i,r=0,o=t?t.length:0;r<o;++r)if((i=t[r]).identifier===n)return Jk(e,i);return null},iC=function(e,t){null==t&&(t=$k().touches);for(var n=0,i=t?t.length:0,r=new Array(i);n<i;++n)r[n]=Jk(e,t[n]);return r};function rC(){Ik.stopImmediatePropagation()}var oC=function(){Ik.preventDefault(),Ik.stopImmediatePropagation()},aC=function(e){var t=e.document.documentElement,n=Kk(e).on("dragstart.drag",oC,!0);"onselectstart"in t?n.on("selectstart.drag",oC,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")};function sC(e,t){var n=e.document.documentElement,i=Kk(e).on("dragstart.drag",null);t&&(i.on("click.drag",oC,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var cC=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function lC(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function uC(){}var hC=.7,dC=1/hC,fC="\\s*([+-]?\\d+)\\s*",pC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gC=/^#([0-9a-f]{3})$/,vC=/^#([0-9a-f]{6})$/,bC=new RegExp("^rgb\\("+[fC,fC,fC]+"\\)$"),yC=new RegExp("^rgb\\("+[mC,mC,mC]+"\\)$"),_C=new RegExp("^rgba\\("+[fC,fC,fC,pC]+"\\)$"),wC=new RegExp("^rgba\\("+[mC,mC,mC,pC]+"\\)$"),kC=new RegExp("^hsl\\("+[pC,mC,mC]+"\\)$"),CC=new RegExp("^hsla\\("+[pC,mC,mC,pC]+"\\)$"),SC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xC(e){var t;return e=(e+"").trim().toLowerCase(),(t=gC.exec(e))?new PC((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=vC.exec(e))?OC(parseInt(t[1],16)):(t=bC.exec(e))?new PC(t[1],t[2],t[3],1):(t=yC.exec(e))?new PC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_C.exec(e))?MC(t[1],t[2],t[3],t[4]):(t=wC.exec(e))?MC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kC.exec(e))?jC(t[1],t[2]/100,t[3]/100,1):(t=CC.exec(e))?jC(t[1],t[2]/100,t[3]/100,t[4]):SC.hasOwnProperty(e)?OC(SC[e]):"transparent"===e?new PC(NaN,NaN,NaN,0):null}function OC(e){return new PC(e>>16&255,e>>8&255,255&e,1)}function MC(e,t,n,i){return i<=0&&(e=t=n=NaN),new PC(e,t,n,i)}function TC(e){return e instanceof uC||(e=xC(e)),e?new PC((e=e.rgb()).r,e.g,e.b,e.opacity):new PC}function EC(e,t,n,i){return 1===arguments.length?TC(e):new PC(e,t,n,null==i?1:i)}function PC(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function jC(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new DC(e,t,n,i)}function AC(e){if(e instanceof DC)return new DC(e.h,e.s,e.l,e.opacity);if(e instanceof uC||(e=xC(e)),!e)return new DC;if(e instanceof DC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),o=Math.max(t,n,i),a=NaN,s=o-r,c=(o+r)/2;return s?(a=t===o?(n-i)/s+6*(n<i):n===o?(i-t)/s+2:(t-n)/s+4,s/=c<.5?o+r:2-o-r,a*=60):s=c>0&&c<1?0:a,new DC(a,s,c,e.opacity)}function IC(e,t,n,i){return 1===arguments.length?AC(e):new DC(e,t,n,null==i?1:i)}function DC(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function RC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cC(uC,xC,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),cC(PC,EC,lC(uC,{brighter:function(e){return e=null==e?dC:Math.pow(dC,e),new PC(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?hC:Math.pow(hC,e),new PC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),cC(DC,IC,lC(uC,{brighter:function(e){return e=null==e?dC:Math.pow(dC,e),new DC(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?hC:Math.pow(hC,e),new DC(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new PC(RC(e>=240?e-240:e+120,r,i),RC(e,r,i),RC(e<120?e+240:e-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var LC=Math.PI/180,FC=180/Math.PI,NC=.96422,BC=.82521,HC=4/29,zC=6/29,VC=3*zC*zC;function qC(e){if(e instanceof GC)return new GC(e.l,e.a,e.b,e.opacity);if(e instanceof $C){if(isNaN(e.h))return new GC(e.l,0,0,e.opacity);var t=e.h*LC;return new GC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof PC||(e=TC(e));var n,i,r=YC(e.r),o=YC(e.g),a=YC(e.b),s=WC((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?n=i=s:(n=WC((.4360747*r+.3850649*o+.1430804*a)/NC),i=WC((.0139322*r+.0971045*o+.7141733*a)/BC)),new GC(116*s-16,500*(n-s),200*(s-i),e.opacity)}function UC(e,t,n,i){return 1===arguments.length?qC(e):new GC(e,t,n,null==i?1:i)}function GC(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function WC(e){return e>.008856451679035631?Math.pow(e,1/3):e/VC+HC}function KC(e){return e>zC?e*e*e:VC*(e-HC)}function XC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function YC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ZC(e){if(e instanceof $C)return new $C(e.h,e.c,e.l,e.opacity);if(e instanceof GC||(e=qC(e)),0===e.a&&0===e.b)return new $C(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*FC;return new $C(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function QC(e,t,n,i){return 1===arguments.length?ZC(e):new $C(e,t,n,null==i?1:i)}function $C(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}cC(GC,UC,lC(uC,{brighter:function(e){return new GC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new GC(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new PC(XC(3.1338561*(t=NC*KC(t))-1.6168667*(e=1*KC(e))-.4906146*(n=BC*KC(n))),XC(-.9787684*t+1.9161415*e+.033454*n),XC(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),cC($C,QC,lC(uC,{brighter:function(e){return new $C(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new $C(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return qC(this).rgb()}}));var JC=-.29227,eS=-.90649,tS=1.97294,nS=-1.7884503806,iS=3.5172982438,rS=-.6557636667999999;function oS(e){if(e instanceof sS)return new sS(e.h,e.s,e.l,e.opacity);e instanceof PC||(e=TC(e));var t=e.g/255,n=e.b/255,i=(rS*n+nS*(e.r/255)-iS*t)/(rS+nS-iS),r=n-i,o=(tS*(t-i)-JC*r)/eS,a=Math.sqrt(o*o+r*r)/(tS*i*(1-i)),s=a?Math.atan2(o,r)*FC-120:NaN;return new sS(s<0?s+360:s,a,i,e.opacity)}function aS(e,t,n,i){return 1===arguments.length?oS(e):new sS(e,t,n,null==i?1:i)}function sS(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function cS(e,t,n,i,r){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*i+a*r)/6}cC(sS,aS,lC(uC,{brighter:function(e){return e=null==e?dC:Math.pow(dC,e),new sS(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?hC:Math.pow(hC,e),new sS(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*LC,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new PC(255*(t+n*(-.14861*i+1.78277*r)),255*(t+n*(JC*i+eS*r)),255*(t+n*(tS*i)),this.opacity)}}));var lS=function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],o=e[i+1];return cS((n-i/t)*t,i>0?e[i-1]:2*r-o,r,o,i<t-1?e[i+2]:2*o-r)}},uS=function(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t);return cS((n-i/t)*t,e[(i+t-1)%t],e[i%t],e[(i+1)%t],e[(i+2)%t])}},hS=function(e){return function(){return e}};function dS(e,t){return function(n){return e+n*t}}function fS(e,t){var n=t-e;return n?dS(e,n>180||n<-180?n-360*Math.round(n/360):n):hS(isNaN(e)?t:e)}function pS(e,t){var n=t-e;return n?dS(e,n):hS(isNaN(e)?t:e)}var mS=function e(t){var n=function(e){return 1==(e=+e)?pS:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):hS(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=EC(e)).r,(t=EC(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),a=pS(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function gS(e){return function(t){var n,i,r=t.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=EC(t[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=e(o),a=e(a),s=e(s),i.opacity=1,function(e){return i.r=o(e),i.g=a(e),i.b=s(e),i+""}}}var vS,bS,yS,_S,wS=gS(lS),kS=gS(uS),CS=function(e,t){var n,i=t?t.length:0,r=e?Math.min(i,e.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=PS(e[n],t[n]);for(;n<i;++n)a[n]=t[n];return function(e){for(n=0;n<r;++n)a[n]=o[n](e);return a}},SS=function(e,t){var n=new Date;return t-=e=+e,function(i){return n.setTime(e+t*i),n}},xS=function(e,t){return t-=e=+e,function(n){return e+t*n}},OS=function(e,t){var n,i={},r={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=PS(e[n],t[n]):r[n]=t[n];return function(e){for(n in i)r[n]=i[n](e);return r}},MS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,TS=new RegExp(MS.source,"g"),ES=function(e,t){var n,i,r,o=MS.lastIndex=TS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=MS.exec(e))&&(i=TS.exec(t));)(r=i.index)>o&&(r=t.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:xS(n,i)})),o=TS.lastIndex;return o<t.length&&(r=t.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,i=0;i<t;++i)s[(n=c[i]).i]=n.x(e);return s.join("")})},PS=function(e,t){var n,i=typeof t;return null==t||"boolean"===i?hS(t):("number"===i?xS:"string"===i?(n=xC(t))?(t=n,mS):ES:t instanceof xC?mS:t instanceof Date?SS:Array.isArray(t)?CS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?OS:xS)(e,t)},jS=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}},AS=180/Math.PI,IS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},DS=function(e,t,n,i,r,o){var a,s,c;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(c=e*n+t*i)&&(n-=e*c,i-=t*c),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,c/=s),e*i<t*n&&(e=-e,t=-t,c=-c,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(t,e)*AS,skewX:Math.atan(c)*AS,scaleX:a,scaleY:s}};function RS(e,t,n,i){function r(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],c=[];return o=e(o),a=e(a),function(e,i,r,o,a,s){if(e!==r||i!==o){var c=a.push("translate(",null,t,null,n);s.push({i:c-4,x:xS(e,r)},{i:c-2,x:xS(i,o)})}else(r||o)&&a.push("translate("+r+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,c),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:xS(e,t)})):t&&n.push(r(n)+"rotate("+t+i)}(o.rotate,a.rotate,s,c),function(e,t,n,o){e!==t?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:xS(e,t)}):t&&n.push(r(n)+"skewX("+t+i)}(o.skewX,a.skewX,s,c),function(e,t,n,i,o,a){if(e!==n||t!==i){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:xS(e,n)},{i:s-2,x:xS(t,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,c),o=a=null,function(e){for(var t,n=-1,i=c.length;++n<i;)s[(t=c[n]).i]=t.x(e);return s.join("")}}}var LS=RS((function(e){return"none"===e?IS:(vS||(vS=document.createElement("DIV"),bS=document.documentElement,yS=document.defaultView),vS.style.transform=e,e=yS.getComputedStyle(bS.appendChild(vS),null).getPropertyValue("transform"),bS.removeChild(vS),e=e.slice(7,-1).split(","),DS(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),FS=RS((function(e){return null==e?IS:(_S||(_S=document.createElementNS("http://www.w3.org/2000/svg","g")),_S.setAttribute("transform",e),(e=_S.transform.baseVal.consolidate())?DS((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):IS)}),", ",")",")"),NS=Math.SQRT2;function BS(e){return((e=Math.exp(e))+1/e)/2}var HS=function(e,t){var n,i,r=e[0],o=e[1],a=e[2],s=t[2],c=t[0]-r,l=t[1]-o,u=c*c+l*l;if(u<1e-12)i=Math.log(s/a)/NS,n=function(e){return[r+e*c,o+e*l,a*Math.exp(NS*e*i)]};else{var h=Math.sqrt(u),d=(s*s-a*a+4*u)/(2*a*2*h),f=(s*s-a*a-4*u)/(2*s*2*h),p=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(f*f+1)-f);i=(m-p)/NS,n=function(e){var t,n=e*i,s=BS(p),u=a/(2*h)*(s*(t=NS*n+p,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(p));return[r+u*c,o+u*l,a*s/BS(NS*n+p)]}}return n.duration=1e3*i,n};function zS(e){return function(t,n){var i=e((t=IC(t)).h,(n=IC(n)).h),r=pS(t.s,n.s),o=pS(t.l,n.l),a=pS(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=r(e),t.l=o(e),t.opacity=a(e),t+""}}}var VS=zS(fS),qS=zS(pS);function US(e,t){var n=pS((e=UC(e)).l,(t=UC(t)).l),i=pS(e.a,t.a),r=pS(e.b,t.b),o=pS(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=i(t),e.b=r(t),e.opacity=o(t),e+""}}function GS(e){return function(t,n){var i=e((t=QC(t)).h,(n=QC(n)).h),r=pS(t.c,n.c),o=pS(t.l,n.l),a=pS(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=r(e),t.l=o(e),t.opacity=a(e),t+""}}}var WS=GS(fS),KS=GS(pS);function XS(e){return function t(n){function i(t,i){var r=e((t=aS(t)).h,(i=aS(i)).h),o=pS(t.s,i.s),a=pS(t.l,i.l),s=pS(t.opacity,i.opacity);return function(e){return t.h=r(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,i.gamma=t,i}(1)}var YS,ZS,QS=XS(fS),$S=XS(pS),JS=function(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e(i/(t-1));return n},ex=0,tx=0,nx=0,ix=0,rx=0,ox=0,ax="object"==typeof performance&&performance.now?performance:Date,sx="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function cx(){return rx||(sx(lx),rx=ax.now()+ox)}function lx(){rx=0}function ux(){this._call=this._time=this._next=null}function hx(e,t,n){var i=new ux;return i.restart(e,t,n),i}function dx(){cx(),++ex;for(var e,t=YS;t;)(e=rx-t._time)>=0&&t._call.call(null,e),t=t._next;--ex}function fx(){rx=(ix=ax.now())+ox,ex=tx=0;try{dx()}finally{ex=0,function(){for(var e,t,n=YS,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:YS=t);ZS=e,mx(i)}(),rx=0}}function px(){var e=ax.now(),t=e-ix;t>1e3&&(ox-=t,ix=e)}function mx(e){ex||(tx&&(tx=clearTimeout(tx)),e-rx>24?(e<1/0&&(tx=setTimeout(fx,e-ax.now()-ox)),nx&&(nx=clearInterval(nx))):(nx||(ix=ax.now(),nx=setInterval(px,1e3)),ex=1,sx(fx)))}ux.prototype=hx.prototype={constructor:ux,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?cx():+n)+(null==t?0:+t),this._next||ZS===this||(ZS?ZS._next=this:YS=this,ZS=this),this._call=e,this._time=n,mx()},stop:function(){this._call&&(this._call=null,this._time=1/0,mx())}};var gx=function(e,t,n){var i=new ux;return i.restart((function(n){i.stop(),e(n+t)}),t=null==t?0:+t,n),i},vx=Aw("start","end","interrupt"),bx=[],yx=function(e,t,n,i,r,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var i,r=e.__transition;function o(c){var l,u,h,d;if(1!==n.state)return s();for(l in r)if((d=r[l]).name===n.name){if(3===d.state)return gx(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[l]):+l<t&&(d.state=6,d.timer.stop(),delete r[l])}if(gx((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(c))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(h=n.tween.length),l=0,u=-1;l<h;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function a(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=i.length;++o<a;)i[o].call(null,r);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}r[t]=n,n.timer=hx((function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}),0,n.time)}(e,n,{name:t,index:i,group:r,on:vx,tween:bx,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function _x(e,t){var n=kx(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function wx(e,t){var n=kx(e,t);if(n.state>2)throw new Error("too late; already started");return n}function kx(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var Cx=function(e,t){var n,i,r,o=e.__transition,a=!0;if(o){for(r in t=null==t?null:t+"",o)(n=o[r]).name===t?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),i&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete o[r]):a=!1;a&&delete e.__transition}};function Sx(e,t){var n,i;return function(){var r=wx(this,e),o=r.tween;if(o!==n)for(var a=0,s=(i=n=o).length;a<s;++a)if(i[a].name===t){(i=i.slice()).splice(a,1);break}r.tween=i}}function xx(e,t,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=wx(this,e),a=o.tween;if(a!==i){r=(i=a).slice();for(var s={name:t,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===t){r[c]=s;break}c===l&&r.push(s)}o.tween=r}}function Ox(e,t,n){var i=e._id;return e.each((function(){var e=wx(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return kx(e,i).value[t]}}var Mx=function(e,t){var n;return("number"==typeof t?xS:t instanceof xC?mS:(n=xC(t))?(t=n,mS):ES)(e,t)};function Tx(e){return function(){this.removeAttribute(e)}}function Ex(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Px(e,t,n){var i,r;return function(){var o=this.getAttribute(e);return o===n?null:o===i?r:r=t(i=o,n)}}function jx(e,t,n){var i,r;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?r:r=t(i=o,n)}}function Ax(e,t,n){var i,r,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(e))===s?null:a===i&&s===r?o:o=t(i=a,r=s);this.removeAttribute(e)}}function Ix(e,t,n){var i,r,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===s?null:a===i&&s===r?o:o=t(i=a,r=s);this.removeAttributeNS(e.space,e.local)}}function Dx(e,t){function n(){var n=this,i=t.apply(n,arguments);return i&&function(t){n.setAttributeNS(e.space,e.local,i(t))}}return n._value=t,n}function Rx(e,t){function n(){var n=this,i=t.apply(n,arguments);return i&&function(t){n.setAttribute(e,i(t))}}return n._value=t,n}function Lx(e,t){return function(){_x(this,e).delay=+t.apply(this,arguments)}}function Fx(e,t){return t=+t,function(){_x(this,e).delay=t}}function Nx(e,t){return function(){wx(this,e).duration=+t.apply(this,arguments)}}function Bx(e,t){return t=+t,function(){wx(this,e).duration=t}}function Hx(e,t){if("function"!=typeof t)throw new Error;return function(){wx(this,e).ease=t}}function zx(e,t,n){var i,r,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?_x:wx;return function(){var a=o(this,e),s=a.on;s!==i&&(r=(i=s).copy()).on(t,n),a.on=r}}var Vx=Wk.prototype.constructor;function qx(e,t,n){function i(){var i=this,r=t.apply(i,arguments);return r&&function(t){i.style.setProperty(e,r(t),n)}}return i._value=t,i}var Ux=0;function Gx(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function Wx(e){return Wk().transition(e)}function Kx(){return++Ux}var Xx=Wk.prototype;function Yx(e){return e*e*e}function Zx(e){return--e*e*e+1}function Qx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Gx.prototype=Wx.prototype={constructor:Gx,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Hw(e));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var s,c,l=i[a],u=l.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=l[d])&&(c=e.call(s,s.__data__,d,l))&&("__data__"in s&&(c.__data__=s.__data__),h[d]=c,yx(h[d],t,n,d,h,kx(s,n)));return new Gx(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Vw(e));for(var i=this._groups,r=i.length,o=[],a=[],s=0;s<r;++s)for(var c,l=i[s],u=l.length,h=0;h<u;++h)if(c=l[h]){for(var d,f=e.call(c,c.__data__,h,l),p=kx(c,n),m=0,g=f.length;m<g;++m)(d=f[m])&&yx(d,t,n,m,f,p);o.push(f),a.push(c)}return new Gx(o,a,t,n)},filter:function(e){"function"!=typeof e&&(e=Ww(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,a=t[r],s=a.length,c=i[r]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&c.push(o);return new Gx(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,r=Math.min(i,n.length),o=new Array(i),a=0;a<r;++a)for(var s,c=t[a],l=n[a],u=c.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=c[d]||l[d])&&(h[d]=s);for(;a<i;++a)o[a]=t[a];return new Gx(o,this._parents,this._name,this._id)},selection:function(){return new Vx(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Kx(),i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],c=s.length,l=0;l<c;++l)if(a=s[l]){var u=kx(a,t);yx(a,e,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Gx(i,this._parents,e,n)},call:Xx.call,nodes:Xx.nodes,node:Xx.node,size:Xx.size,empty:Xx.empty,each:Xx.each,on:function(e,t){var n=this._id;return arguments.length<2?kx(this.node(),n).on.on(e):this.each(zx(n,e,t))},attr:function(e,t){var n=Rw(e),i="transform"===n?FS:Mx;return this.attrTween(e,"function"==typeof t?(n.local?Ix:Ax)(n,i,Ox(this,"attr."+e,t)):null==t?(n.local?Ex:Tx)(n):(n.local?jx:Px)(n,i,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var i=Rw(e);return this.tween(n,(i.local?Dx:Rx)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?LS:Mx;return null==t?this.styleTween(e,function(e,t){var n,i,r;return function(){var o=ck(this,e),a=(this.style.removeProperty(e),ck(this,e));return o===a?null:o===n&&a===i?r:r=t(n=o,i=a)}}(e,i)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var i,r,o;return function(){var a=ck(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=ck(this,e)),a===s?null:a===i&&s===r?o:o=t(i=a,r=s)}}(e,i,Ox(this,"style."+e,t)):function(e,t,n){var i,r;return function(){var o=ck(this,e);return o===n?null:o===i?r:r=t(i=o,n)}}(e,i,t+""),n)},styleTween:function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return this.tween(i,qx(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Ox(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,r=kx(this.node(),n).tween,o=0,a=r.length;o<a;++o)if((i=r[o]).name===e)return i.value;return null}return this.each((null==t?Sx:xx)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Lx:Fx)(t,e)):kx(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Nx:Bx)(t,e)):kx(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Hx(t,e)):kx(this.node(),t).ease}};var $x={time:null,delay:0,duration:250,ease:Qx};function Jx(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return $x.time=cx(),$x;return n}Wk.prototype.interrupt=function(e){return this.each((function(){Cx(this,e)}))},Wk.prototype.transition=function(e){var t,n;e instanceof Gx?(t=e._id,e=e._name):(t=Kx(),(n=$x).time=cx(),e=null==e?null:e+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],c=s.length,l=0;l<c;++l)(a=s[l])&&yx(a,e,t,l,s,n||Jx(a,t));return new Gx(i,this._parents,e,t)};var eO=[null],tO=function(e,t){var n,i,r=e.__transition;if(r)for(i in t=null==t?null:t+"",r)if((n=r[i]).state>1&&n.name===t)return new Gx([[e]],eO,t,+i);return null},nO=function(e){return function(){return e}},iO=function(e,t,n){this.target=e,this.type=t,this.selection=n};function rO(){Ik.stopImmediatePropagation()}var oO=function(){Ik.preventDefault(),Ik.stopImmediatePropagation()},aO={name:"drag"},sO={name:"space"},cO={name:"handle"},lO={name:"center"},uO={name:"x",handles:["e","w"].map(bO),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},hO={name:"y",handles:["n","s"].map(bO),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},dO={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(bO),input:function(e){return e},output:function(e){return e}},fO={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},pO={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},mO={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},gO={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},vO={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function bO(e){return{type:e}}function yO(){return!Ik.button}function _O(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function wO(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function kO(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function CO(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function SO(){return MO(uO)}function xO(){return MO(hO)}var OO=function(){return MO(dO)};function MO(e){var t,n=_O,i=yO,r=Aw(a,"start","brush","end"),o=6;function a(t){var n=t.property("__brush",h).selectAll(".overlay").data([bO("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fO.overlay).merge(n).each((function(){var e=wO(this).extent;Kk(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([bO("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fO.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return fO[e.type]})),t.each(s).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",u)}function s(){var e=Kk(this),t=wO(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-o/2:t[0][0]-o/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-o/2:t[0][1]-o/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+o:o})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+o:o}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t){return e.__brush.emitter||new l(e,t)}function l(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function u(){if(Ik.touches){if(Ik.changedTouches.length<Ik.touches.length)return oO()}else if(t)return;if(i.apply(this,arguments)){var n,r,o,a,l,u,h,d,f,p,m,g,v,b=this,y=Ik.target.__data__.type,_="selection"===(Ik.metaKey?y="overlay":y)?aO:Ik.altKey?lO:cO,w=e===hO?null:gO[y],k=e===uO?null:vO[y],C=wO(b),S=C.extent,x=C.selection,O=S[0][0],M=S[0][1],T=S[1][0],E=S[1][1],P=w&&k&&Ik.shiftKey,j=eC(b),A=j,I=c(b,arguments).beforestart();"overlay"===y?C.selection=x=[[n=e===hO?O:j[0],o=e===uO?M:j[1]],[l=e===hO?T:n,h=e===uO?E:o]]:(n=x[0][0],o=x[0][1],l=x[1][0],h=x[1][1]),r=n,a=o,u=l,d=h;var D=Kk(b).attr("pointer-events","none"),R=D.selectAll(".overlay").attr("cursor",fO[y]);if(Ik.touches)D.on("touchmove.brush",F,!0).on("touchend.brush touchcancel.brush",B,!0);else{var L=Kk(Ik.view).on("keydown.brush",H,!0).on("keyup.brush",z,!0).on("mousemove.brush",F,!0).on("mouseup.brush",B,!0);aC(Ik.view)}rO(),Cx(b),s.call(b),I.start()}function F(){var e=eC(b);!P||g||v||(Math.abs(e[0]-A[0])>Math.abs(e[1]-A[1])?v=!0:g=!0),A=e,m=!0,oO(),N()}function N(){var e;switch(f=A[0]-j[0],p=A[1]-j[1],_){case sO:case aO:w&&(f=Math.max(O-n,Math.min(T-l,f)),r=n+f,u=l+f),k&&(p=Math.max(M-o,Math.min(E-h,p)),a=o+p,d=h+p);break;case cO:w<0?(f=Math.max(O-n,Math.min(T-n,f)),r=n+f,u=l):w>0&&(f=Math.max(O-l,Math.min(T-l,f)),r=n,u=l+f),k<0?(p=Math.max(M-o,Math.min(E-o,p)),a=o+p,d=h):k>0&&(p=Math.max(M-h,Math.min(E-h,p)),a=o,d=h+p);break;case lO:w&&(r=Math.max(O,Math.min(T,n-f*w)),u=Math.max(O,Math.min(T,l+f*w))),k&&(a=Math.max(M,Math.min(E,o-p*k)),d=Math.max(M,Math.min(E,h+p*k)))}u<r&&(w*=-1,e=n,n=l,l=e,e=r,r=u,u=e,y in pO&&R.attr("cursor",fO[y=pO[y]])),d<a&&(k*=-1,e=o,o=h,h=e,e=a,a=d,d=e,y in mO&&R.attr("cursor",fO[y=mO[y]])),C.selection&&(x=C.selection),g&&(r=x[0][0],u=x[1][0]),v&&(a=x[0][1],d=x[1][1]),x[0][0]===r&&x[0][1]===a&&x[1][0]===u&&x[1][1]===d||(C.selection=[[r,a],[u,d]],s.call(b),I.brush())}function B(){if(rO(),Ik.touches){if(Ik.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500),D.on("touchmove.brush touchend.brush touchcancel.brush",null)}else sC(Ik.view,m),L.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),R.attr("cursor",fO.overlay),C.selection&&(x=C.selection),kO(x)&&(C.selection=null,s.call(b)),I.end()}function H(){switch(Ik.keyCode){case 16:P=w&&k;break;case 18:_===cO&&(w&&(l=u-f*w,n=r+f*w),k&&(h=d-p*k,o=a+p*k),_=lO,N());break;case 32:_!==cO&&_!==lO||(w<0?l=u-f:w>0&&(n=r-f),k<0?h=d-p:k>0&&(o=a-p),_=sO,R.attr("cursor",fO.selection),N());break;default:return}oO()}function z(){switch(Ik.keyCode){case 16:P&&(g=v=P=!1,N());break;case 18:_===lO&&(w<0?l=u:w>0&&(n=r),k<0?h=d:k>0&&(o=a),_=cO,N());break;case 32:_===sO&&(Ik.altKey?(w&&(l=u-f*w,n=r+f*w),k&&(h=d-p*k,o=a+p*k),_=lO):(w<0?l=u:w>0&&(n=r),k<0?h=d:k>0&&(o=a),_=cO),R.attr("cursor",fO[y]),N());break;default:return}oO()}}function h(){var t=this.__brush||{selection:null};return t.extent=n.apply(this,arguments),t.dim=e,t}return a.move=function(t,n){t.selection?t.on("start.brush",(function(){c(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){c(this,arguments).end()})).tween("brush",(function(){var t=this,i=t.__brush,r=c(t,arguments),o=i.selection,a=e.input("function"==typeof n?n.apply(this,arguments):n,i.extent),l=PS(o,a);function u(e){i.selection=1===e&&kO(a)?null:l(e),s.call(t),r.brush()}return o&&a?u:u(1)})):t.each((function(){var t=this,i=arguments,r=t.__brush,o=e.input("function"==typeof n?n.apply(t,i):n,r.extent),a=c(t,i).beforestart();Cx(t),r.selection=null==o||kO(o)?null:o,s.call(t),a.start().brush().end()}))},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){Bk(new iO(a,t,e.output(this.state.selection)),r.apply,r,[t,this.that,this.args])}},a.extent=function(e){return arguments.length?(n="function"==typeof e?e:nO([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),a):n},a.filter=function(e){return arguments.length?(i="function"==typeof e?e:nO(!!e),a):i},a.handleSize=function(e){return arguments.length?(o=+e,a):o},a.on=function(){var e=r.on.apply(r,arguments);return e===r?a:e},a}var TO=Math.cos,EO=Math.sin,PO=Math.PI,jO=PO/2,AO=2*PO,IO=Math.max;function DO(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}var RO=function(){var e=0,t=null,n=null,i=null;function r(r){var o,a,s,c,l,u,h=r.length,d=[],f=q_(h),p=[],m=[],g=m.groups=new Array(h),v=new Array(h*h);for(o=0,l=-1;++l<h;){for(a=0,u=-1;++u<h;)a+=r[l][u];d.push(a),p.push(q_(h)),o+=a}for(t&&f.sort((function(e,n){return t(d[e],d[n])})),n&&p.forEach((function(e,t){e.sort((function(e,i){return n(r[t][e],r[t][i])}))})),c=(o=IO(0,AO-e*h)/o)?e:AO/h,a=0,l=-1;++l<h;){for(s=a,u=-1;++u<h;){var b=f[l],y=p[b][u],_=r[b][y],w=a,k=a+=_*o;v[y*h+b]={index:b,subindex:y,startAngle:w,endAngle:k,value:_}}g[b]={index:b,startAngle:s,endAngle:a,value:d[b]},a+=c}for(l=-1;++l<h;)for(u=l-1;++u<h;){var C=v[u*h+l],S=v[l*h+u];(C.value||S.value)&&m.push(C.value<S.value?{source:S,target:C}:{source:C,target:S})}return i?m.sort(i):m}return r.padAngle=function(t){return arguments.length?(e=IO(0,t),r):e},r.sortGroups=function(e){return arguments.length?(t=e,r):t},r.sortSubgroups=function(e){return arguments.length?(n=e,r):n},r.sortChords=function(e){return arguments.length?(null==e?i=null:(i=DO(e))._=e,r):i&&i._},r},LO=Array.prototype.slice,FO=function(e){return function(){return e}},NO=Math.PI,BO=2*NO,HO=1e-6,zO=BO-HO;function VO(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function qO(){return new VO}VO.prototype=qO.prototype={constructor:VO,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(e,t,n,i,r,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(e,t,n,i,r){var o=this._x1,a=this._y1,s=(n=+n)-(e=+e),c=(i=+i)-(t=+t),l=o-e,u=a-t,h=l*l+u*u;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>HO)if(Math.abs(u*s-c*l)>HO&&r){var d=n-o,f=i-a,p=s*s+c*c,m=d*d+f*f,g=Math.sqrt(p),v=Math.sqrt(h),b=r*Math.tan((NO-Math.acos((p+h-m)/(2*g*v)))/2),y=b/v,_=b/g;Math.abs(y-1)>HO&&(this._+="L"+(e+y*l)+","+(t+y*u)),this._+="A"+r+","+r+",0,0,"+ +(u*d>l*f)+","+(this._x1=e+_*s)+","+(this._y1=t+_*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,i,r,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),c=e+a,l=t+s,u=1^o,h=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>HO||Math.abs(this._y1-l)>HO)&&(this._+="L"+c+","+l),n&&(h<0&&(h=h%BO+BO),h>zO?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=c)+","+(this._y1=l):h>HO&&(this._+="A"+n+","+n+",0,"+ +(h>=NO)+","+u+","+(this._x1=e+n*Math.cos(r))+","+(this._y1=t+n*Math.sin(r))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var UO=qO;function GO(e){return e.source}function WO(e){return e.target}function KO(e){return e.radius}function XO(e){return e.startAngle}function YO(e){return e.endAngle}var ZO=function(){var e=GO,t=WO,n=KO,i=XO,r=YO,o=null;function a(){var a,s=LO.call(arguments),c=e.apply(this,s),l=t.apply(this,s),u=+n.apply(this,(s[0]=c,s)),h=i.apply(this,s)-jO,d=r.apply(this,s)-jO,f=u*TO(h),p=u*EO(h),m=+n.apply(this,(s[0]=l,s)),g=i.apply(this,s)-jO,v=r.apply(this,s)-jO;if(o||(o=a=UO()),o.moveTo(f,p),o.arc(0,0,u,h,d),h===g&&d===v||(o.quadraticCurveTo(0,0,m*TO(g),m*EO(g)),o.arc(0,0,m,g,v)),o.quadraticCurveTo(0,0,f,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"==typeof e?e:FO(+e),a):n},a.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:FO(+e),a):i},a.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:FO(+e),a):r},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a},QO="$";function $O(){}function JO(e,t){var n=new $O;if(e instanceof $O)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var i,r=-1,o=e.length;if(null==t)for(;++r<o;)n.set(r,e[r]);else for(;++r<o;)n.set(t(i=e[r],r,e),i)}else if(e)for(var a in e)n.set(a,e[a]);return n}$O.prototype=JO.prototype={constructor:$O,has:function(e){return QO+e in this},get:function(e){return this[QO+e]},set:function(e,t){return this[QO+e]=t,this},remove:function(e){var t=QO+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===QO&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===QO&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===QO&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===QO&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===QO&&++e;return e},empty:function(){for(var e in this)if(e[0]===QO)return!1;return!0},each:function(e){for(var t in this)t[0]===QO&&e(this[t],t.slice(1),this)}};var eM=JO,tM=function(){var e,t,n,i=[],r=[];function o(n,r,a,s){if(r>=i.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var c,l,u,h=-1,d=n.length,f=i[r++],p=eM(),m=a();++h<d;)(u=p.get(c=f(l=n[h])+""))?u.push(l):p.set(c,[l]);return p.each((function(e,t){s(m,t,o(e,r,a,s))})),m}return n={object:function(e){return o(e,0,nM,iM)},map:function(e){return o(e,0,rM,oM)},entries:function(e){return function e(n,o){if(++o>i.length)return n;var a,s=r[o-1];return null!=t&&o>=i.length?a=n.entries():(a=[],n.each((function(t,n){a.push({key:n,values:e(t,o)})}))),null!=s?a.sort((function(e,t){return s(e.key,t.key)})):a}(o(e,0,rM,oM),0)},key:function(e){return i.push(e),n},sortKeys:function(e){return r[i.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function nM(){return{}}function iM(e,t,n){e[t]=n}function rM(){return eM()}function oM(e,t,n){e.set(t,n)}function aM(){}var sM=eM.prototype;function cM(e,t){var n=new aM;if(e instanceof aM)e.each((function(e){n.add(e)}));else if(e){var i=-1,r=e.length;if(null==t)for(;++i<r;)n.add(e[i]);else for(;++i<r;)n.add(t(e[i],i,e))}return n}aM.prototype=cM.prototype={constructor:aM,has:sM.has,add:function(e){return this[QO+(e+="")]=e,this},remove:sM.remove,clear:sM.clear,values:sM.keys,size:sM.size,empty:sM.empty,each:sM.each};var lM=cM,uM=function(e){var t=[];for(var n in e)t.push(n);return t},hM=function(e){var t=[];for(var n in e)t.push(e[n]);return t},dM=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},fM=Array.prototype.slice,pM=function(e,t){return e-t},mM=function(e){return function(){return e}},gM=function(e,t){for(var n,i=-1,r=t.length;++i<r;)if(n=vM(e,t[i]))return n;return 0};function vM(e,t){for(var n=t[0],i=t[1],r=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var c=e[o],l=c[0],u=c[1],h=e[s],d=h[0],f=h[1];if(bM(c,h,t))return 0;u>i!=f>i&&n<(d-l)*(i-u)/(f-u)+l&&(r=-r)}return r}function bM(e,t,n){var i,r,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(r=e[i=+(e[0]===t[0])],a=t[i],r<=(o=n[i])&&o<=a||a<=o&&o<=r)}var yM=function(){},_M=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],wM=function(){var e=1,t=1,n=Z_,i=s;function r(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(pM);else{var i=F_(e),r=i[0],a=i[1];t=Y_(r,a,t),t=q_(Math.floor(r/t)*t,Math.floor(a/t)*t,t)}return t.map((function(t){return o(e,t)}))}function o(n,r){var o=[],s=[];return function(n,i,r){var o,s,c,l,u,h=new Array,d=new Array;for(o=s=-1,_M[(c=n[0]>=i)<<1].forEach(f);++o<e-1;)_M[c|(c=n[o+1]>=i)<<1].forEach(f);for(_M[c<<0].forEach(f);++s<t-1;){for(o=-1,_M[(c=n[s*e+e]>=i)<<1|(l=n[s*e]>=i)<<2].forEach(f);++o<e-1;)u=l,_M[c|(c=n[s*e+e+o+1]>=i)<<1|(l=n[s*e+o+1]>=i)<<2|u<<3].forEach(f);_M[c|l<<3].forEach(f)}for(o=-1,_M[(l=n[s*e]>=i)<<2].forEach(f);++o<e-1;)u=l,_M[(l=n[s*e+o+1]>=i)<<2|u<<3].forEach(f);function f(e){var t,n,i=[e[0][0]+o,e[0][1]+s],c=[e[1][0]+o,e[1][1]+s],l=a(i),u=a(c);(t=d[l])?(n=h[u])?(delete d[t.end],delete h[n.start],t===n?(t.ring.push(c),r(t.ring)):h[t.start]=d[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete d[t.end],t.ring.push(c),d[t.end=u]=t):(t=h[u])?(n=d[l])?(delete h[t.start],delete d[n.end],t===n?(t.ring.push(c),r(t.ring)):h[n.start]=d[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(i),h[t.start=l]=t):h[l]=d[u]={start:l,end:u,ring:[i,c]}}_M[l<<3].forEach(f)}(n,r,(function(e){i(e,n,r),function(e){for(var t=0,n=e.length,i=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)i+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return i}(e)>0?o.push([e]):s.push(e)})),s.forEach((function(e){for(var t,n=0,i=o.length;n<i;++n)if(-1!==gM((t=o[n])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:r,coordinates:o}}function a(t){return 2*t[0]+t[1]*(e+1)*4}function s(n,i,r){n.forEach((function(n){var o,a=n[0],s=n[1],c=0|a,l=0|s,u=i[l*e+c];a>0&&a<e&&c===a&&(n[0]=a+(r-(o=i[l*e+c-1]))/(u-o)-.5),s>0&&s<t&&l===s&&(n[1]=s+(r-(o=i[(l-1)*e+c]))/(u-o)-.5)}))}return r.contour=o,r.size=function(n){if(!arguments.length)return[e,t];var i=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(i>0&&o>0))throw new Error("invalid size");return e=i,t=o,r},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?mM(fM.call(e)):mM(e),r):n},r.smooth=function(e){return arguments.length?(i=e?s:yM,r):i===s},r};function kM(e,t,n){for(var i=e.width,r=e.height,o=1+(n<<1),a=0;a<r;++a)for(var s=0,c=0;s<i+n;++s)s<i&&(c+=e.data[s+a*i]),s>=n&&(s>=o&&(c-=e.data[s-o+a*i]),t.data[s-n+a*i]=c/Math.min(s+1,i-1+o-s,o))}function CM(e,t,n){for(var i=e.width,r=e.height,o=1+(n<<1),a=0;a<i;++a)for(var s=0,c=0;s<r+n;++s)s<r&&(c+=e.data[a+s*i]),s>=n&&(s>=o&&(c-=e.data[a+(s-o)*i]),t.data[a+(s-n)*i]=c/Math.min(s+1,r-1+o-s,o))}function SM(e){return e[0]}function xM(e){return e[1]}var OM=function(){var e=SM,t=xM,n=960,i=500,r=20,o=2,a=3*r,s=n+2*a>>o,c=i+2*a>>o,l=mM(20);function u(n){var i=new Float32Array(s*c),u=new Float32Array(s*c);n.forEach((function(n,r,l){var u=e(n,r,l)+a>>o,h=t(n,r,l)+a>>o;u>=0&&u<s&&h>=0&&h<c&&++i[u+h*s]})),kM({width:s,height:c,data:i},{width:s,height:c,data:u},r>>o),CM({width:s,height:c,data:u},{width:s,height:c,data:i},r>>o),kM({width:s,height:c,data:i},{width:s,height:c,data:u},r>>o),CM({width:s,height:c,data:u},{width:s,height:c,data:i},r>>o),kM({width:s,height:c,data:i},{width:s,height:c,data:u},r>>o),CM({width:s,height:c,data:u},{width:s,height:c,data:i},r>>o);var d=l(i);if(!Array.isArray(d)){var f=tw(i);d=Y_(0,f,d),(d=q_(0,Math.floor(f/d)*d,d)).shift()}return wM().thresholds(d).size([s,c])(i).map(h)}function h(e){return e.value*=Math.pow(2,-2*o),e.coordinates.forEach(d),e}function d(e){e.forEach(f)}function f(e){e.forEach(p)}function p(e){e[0]=e[0]*Math.pow(2,o)-a,e[1]=e[1]*Math.pow(2,o)-a}function m(){return s=n+2*(a=3*r)>>o,c=i+2*a>>o,u}return u.x=function(t){return arguments.length?(e="function"==typeof t?t:mM(+t),u):e},u.y=function(e){return arguments.length?(t="function"==typeof e?e:mM(+e),u):t},u.size=function(e){if(!arguments.length)return[n,i];var t=Math.ceil(e[0]),r=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return n=t,i=r,m()},u.cellSize=function(e){if(!arguments.length)return 1<<o;if(!((e=+e)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(e)/Math.LN2),m()},u.thresholds=function(e){return arguments.length?(l="function"==typeof e?e:Array.isArray(e)?mM(fM.call(e)):mM(e),u):l},u.bandwidth=function(e){if(!arguments.length)return Math.sqrt(r*(r+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return r=Math.round((Math.sqrt(4*e*e+1)-1)/2),m()},u},MM=function(e){return function(){return e}};function TM(e,t,n,i,r,o,a,s,c,l){this.target=e,this.type=t,this.subject=n,this.identifier=i,this.active=r,this.x=o,this.y=a,this.dx=s,this.dy=c,this._=l}function EM(){return!Ik.ctrlKey&&!Ik.button}function PM(){return this.parentNode}function jM(e){return null==e?{x:Ik.x,y:Ik.y}:e}function AM(){return navigator.maxTouchPoints||"ontouchstart"in this}TM.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var IM=function(){var e,t,n,i,r=EM,o=PM,a=jM,s=AM,c={},l=Aw("start","drag","end"),u=0,h=0;function d(e){e.on("mousedown.drag",f).filter(s).on("touchstart.drag",g).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!i&&r.apply(this,arguments)){var a=y("mouse",o.apply(this,arguments),eC,this,arguments);a&&(Kk(Ik.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),aC(Ik.view),rC(),n=!1,e=Ik.clientX,t=Ik.clientY,a("start"))}}function p(){if(oC(),!n){var i=Ik.clientX-e,r=Ik.clientY-t;n=i*i+r*r>h}c.mouse("drag")}function m(){Kk(Ik.view).on("mousemove.drag mouseup.drag",null),sC(Ik.view,n),oC(),c.mouse("end")}function g(){if(r.apply(this,arguments)){var e,t,n=Ik.changedTouches,i=o.apply(this,arguments),a=n.length;for(e=0;e<a;++e)(t=y(n[e].identifier,i,nC,this,arguments))&&(rC(),t("start"))}}function v(){var e,t,n=Ik.changedTouches,i=n.length;for(e=0;e<i;++e)(t=c[n[e].identifier])&&(oC(),t("drag"))}function b(){var e,t,n=Ik.changedTouches,r=n.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),e=0;e<r;++e)(t=c[n[e].identifier])&&(rC(),t("end"))}function y(e,t,n,i,r){var o,s,h,f=n(t,e),p=l.copy();if(Bk(new TM(d,"beforestart",o,e,u,f[0],f[1],0,0,p),(function(){return null!=(Ik.subject=o=a.apply(i,r))&&(s=o.x-f[0]||0,h=o.y-f[1]||0,!0)})))return function a(l){var m,g=f;switch(l){case"start":c[e]=a,m=u++;break;case"end":delete c[e],--u;case"drag":f=n(t,e),m=u}Bk(new TM(d,l,o,e,m,f[0]+s,f[1]+h,f[0]-g[0],f[1]-g[1],p),p.apply,p,[l,i,r])}}return d.filter=function(e){return arguments.length?(r="function"==typeof e?e:MM(!!e),d):r},d.container=function(e){return arguments.length?(o="function"==typeof e?e:MM(e),d):o},d.subject=function(e){return arguments.length?(a="function"==typeof e?e:MM(e),d):a},d.touchable=function(e){return arguments.length?(s="function"==typeof e?e:MM(!!e),d):s},d.on=function(){var e=l.on.apply(l,arguments);return e===l?d:e},d.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,d):Math.sqrt(h)},d},DM={},RM={};function LM(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}")}var FM=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function i(e,t){var i,r=[],o=e.length,a=0,s=0,c=o<=0,l=!1;function u(){if(c)return RM;if(l)return l=!1,DM;var t,i,r=a;if(34===e.charCodeAt(r)){for(;a++<o&&34!==e.charCodeAt(a)||34===e.charCodeAt(++a););return(t=a)>=o?c=!0:10===(i=e.charCodeAt(a++))?l=!0:13===i&&(l=!0,10===e.charCodeAt(a)&&++a),e.slice(r+1,t-1).replace(/""/g,'"')}for(;a<o;){if(10===(i=e.charCodeAt(t=a++)))l=!0;else if(13===i)l=!0,10===e.charCodeAt(a)&&++a;else if(i!==n)continue;return e.slice(r,t)}return c=!0,e.slice(r,o)}for(10===e.charCodeAt(o-1)&&--o,13===e.charCodeAt(o-1)&&--o;(i=u())!==RM;){for(var h=[];i!==DM&&i!==RM;)h.push(i),i=u();t&&null==(h=t(h,s++))||r.push(h)}return r}function r(t){return t.map(o).join(e)}function o(e){return null==e?"":t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,r,o=i(e,(function(e,i){if(n)return n(e,i-1);r=e,n=t?function(e,t){var n=LM(e);return function(i,r){return t(n(i),r,e)}}(e,t):LM(e)}));return o.columns=r||[],o},parseRows:i,format:function(t,n){return null==n&&(n=function(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var i in e)i in t||n.push(t[i]=i)})),n}(t)),[n.map(o).join(e)].concat(t.map((function(t){return n.map((function(e){return o(t[e])})).join(e)}))).join("\n")},formatRows:function(e){return e.map(r).join("\n")}}},NM=FM(","),BM=NM.parse,HM=NM.parseRows,zM=NM.format,VM=NM.formatRows,qM=FM("\t"),UM=qM.parse,GM=qM.parseRows,WM=qM.format,KM=qM.formatRows;function XM(e){return+e}function YM(e){return e*e}function ZM(e){return e*(2-e)}function QM(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var $M=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),JM=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),eT=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),tT=Math.PI,nT=tT/2;function iT(e){return 1-Math.cos(e*nT)}function rT(e){return Math.sin(e*nT)}function oT(e){return(1-Math.cos(tT*e))/2}function aT(e){return Math.pow(2,10*e-10)}function sT(e){return 1-Math.pow(2,-10*e)}function cT(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function lT(e){return 1-Math.sqrt(1-e*e)}function uT(e){return Math.sqrt(1- --e*e)}function hT(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var dT=7.5625;function fT(e){return 1-pT(1-e)}function pT(e){return(e=+e)<.36363636363636365?dT*e*e:e<.7272727272727273?dT*(e-=.5454545454545454)*e+.75:e<.9090909090909091?dT*(e-=.8181818181818182)*e+.9375:dT*(e-=.9545454545454546)*e+.984375}function mT(e){return((e*=2)<=1?1-pT(1-e):pT(e-1)+1)/2}var gT=1.70158,vT=function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(gT),bT=function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(gT),yT=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(gT),_T=2*Math.PI,wT=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=_T);function r(e){return t*Math.pow(2,10*--e)*Math.sin((i-e)/n)}return r.amplitude=function(t){return e(t,n*_T)},r.period=function(n){return e(t,n)},r}(1,.3),kT=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=_T);function r(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+i)/n)}return r.amplitude=function(t){return e(t,n*_T)},r.period=function(n){return e(t,n)},r}(1,.3),CT=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=_T);function r(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((i-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((i+e)/n))/2}return r.amplitude=function(t){return e(t,n*_T)},r.period=function(n){return e(t,n)},r}(1,.3),ST=function(e,t){var n;function i(){var i,r,o=n.length,a=0,s=0;for(i=0;i<o;++i)a+=(r=n[i]).x,s+=r.y;for(a=a/o-e,s=s/o-t,i=0;i<o;++i)(r=n[i]).x-=a,r.y-=s}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i},xT=function(e){return function(){return e}},OT=function(){return 1e-6*(Math.random()-.5)};function MT(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var r,o,a,s,c,l,u,h,d,f=e._root,p={data:i},m=e._x0,g=e._y0,v=e._x1,b=e._y1;if(!f)return e._root=p,e;for(;f.length;)if((l=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+b)/2))?g=a:b=a,r=f,!(f=f[h=u<<1|l]))return r[h]=p,e;if(s=+e._x.call(null,f.data),c=+e._y.call(null,f.data),t===s&&n===c)return p.next=f,r?r[h]=p:e._root=p,e;do{r=r?r[h]=new Array(4):e._root=new Array(4),(l=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+b)/2))?g=a:b=a}while((h=u<<1|l)==(d=(c>=a)<<1|s>=o));return r[d]=f,r[h]=p,e}var TT=function(e,t,n,i,r){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=r};function ET(e){return e[0]}function PT(e){return e[1]}function jT(e,t,n){var i=new AT(null==t?ET:t,null==n?PT:n,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function AT(e,t,n,i,r,o){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function IT(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var DT=jT.prototype=AT.prototype;function RT(e){return e.x+e.vx}function LT(e){return e.y+e.vy}DT.copy=function(){var e,t,n=new AT(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=IT(i),n;for(e=[{source:i,target:n._root=new Array(4)}];i=e.pop();)for(var r=0;r<4;++r)(t=i.source[r])&&(t.length?e.push({source:t,target:i.target[r]=new Array(4)}):i.target[r]=IT(t));return n},DT.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return MT(this.cover(t,n),t,n,e)},DT.addAll=function(e){var t,n,i,r,o=e.length,a=new Array(o),s=new Array(o),c=1/0,l=1/0,u=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(r=+this._y.call(null,t))||(a[n]=i,s[n]=r,i<c&&(c=i),i>u&&(u=i),r<l&&(l=r),r>h&&(h=r));if(c>u||l>h)return this;for(this.cover(c,l).cover(u,h),n=0;n<o;++n)MT(this,a[n],s[n],e[n]);return this},DT.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(e))+1,o=(i=Math.floor(t))+1;else{for(var a,s,c=r-n,l=this._root;n>e||e>=r||i>t||t>=o;)switch(s=(t<i)<<1|e<n,(a=new Array(4))[s]=l,l=a,c*=2,s){case 0:r=n+c,o=i+c;break;case 1:n=r-c,o=i+c;break;case 2:r=n+c,i=o-c;break;case 3:n=r-c,i=o-c}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},DT.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},DT.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},DT.find=function(e,t,n){var i,r,o,a,s,c,l,u=this._x0,h=this._y0,d=this._x1,f=this._y1,p=[],m=this._root;for(m&&p.push(new TT(m,u,h,d,f)),null==n?n=1/0:(u=e-n,h=t-n,d=e+n,f=t+n,n*=n);c=p.pop();)if(!(!(m=c.node)||(r=c.x0)>d||(o=c.y0)>f||(a=c.x1)<u||(s=c.y1)<h))if(m.length){var g=(r+a)/2,v=(o+s)/2;p.push(new TT(m[3],g,v,a,s),new TT(m[2],r,v,g,s),new TT(m[1],g,o,a,v),new TT(m[0],r,o,g,v)),(l=(t>=v)<<1|e>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var b=e-+this._x.call(null,m.data),y=t-+this._y.call(null,m.data),_=b*b+y*y;if(_<n){var w=Math.sqrt(n=_);u=e-w,h=t-w,d=e+w,f=t+w,i=m.data}}return i},DT.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,i,r,o,a,s,c,l,u,h,d,f=this._root,p=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!f)return this;if(f.length)for(;;){if((l=o>=(s=(p+g)/2))?p=s:g=s,(u=a>=(c=(m+v)/2))?m=c:v=c,t=f,!(f=f[h=u<<1|l]))return this;if(!f.length)break;(t[h+1&3]||t[h+2&3]||t[h+3&3])&&(n=t,d=h)}for(;f.data!==e;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):t?(r?t[h]=r:delete t[h],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=r,this)},DT.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},DT.root=function(){return this._root},DT.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},DT.visit=function(e){var t,n,i,r,o,a,s=[],c=this._root;for(c&&s.push(new TT(c,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(c=t.node,i=t.x0,r=t.y0,o=t.x1,a=t.y1)&&c.length){var l=(i+o)/2,u=(r+a)/2;(n=c[3])&&s.push(new TT(n,l,u,o,a)),(n=c[2])&&s.push(new TT(n,i,u,l,a)),(n=c[1])&&s.push(new TT(n,l,r,o,u)),(n=c[0])&&s.push(new TT(n,i,r,l,u))}return this},DT.visitAfter=function(e){var t,n=[],i=[];for(this._root&&n.push(new TT(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var r=t.node;if(r.length){var o,a=t.x0,s=t.y0,c=t.x1,l=t.y1,u=(a+c)/2,h=(s+l)/2;(o=r[0])&&n.push(new TT(o,a,s,u,h)),(o=r[1])&&n.push(new TT(o,u,s,c,h)),(o=r[2])&&n.push(new TT(o,a,h,u,l)),(o=r[3])&&n.push(new TT(o,u,h,c,l))}i.push(t)}for(;t=i.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},DT.x=function(e){return arguments.length?(this._x=e,this):this._x},DT.y=function(e){return arguments.length?(this._y=e,this):this._y};var FT=function(e){var t,n,i=1,r=1;function o(){for(var e,o,s,c,l,u,h,d=t.length,f=0;f<r;++f)for(o=jT(t,RT,LT).visitAfter(a),e=0;e<d;++e)h=(u=n[(s=t[e]).index])*u,c=s.x+s.vx,l=s.y+s.vy,o.visit(p);function p(e,t,n,r,o){var a=e.data,d=e.r,f=u+d;if(!a)return t>c+f||r<c-f||n>l+f||o<l-f;if(a.index>s.index){var p=c-a.x-a.vx,m=l-a.y-a.vy,g=p*p+m*m;g<f*f&&(0===p&&(g+=(p=OT())*p),0===m&&(g+=(m=OT())*m),g=(f-(g=Math.sqrt(g)))/g*i,s.vx+=(p*=g)*(f=(d*=d)/(h+d)),s.vy+=(m*=g)*f,a.vx-=p*(f=1-f),a.vy-=m*f)}}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function s(){if(t){var i,r,o=t.length;for(n=new Array(o),i=0;i<o;++i)n[(r=t[i]).index]=+e(r,i,t)}}return"function"!=typeof e&&(e=xT(null==e?1:+e)),o.initialize=function(e){t=e,s()},o.iterations=function(e){return arguments.length?(r=+e,o):r},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:xT(+t),s(),o):e},o};function NT(e){return e.index}function BT(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var HT=function(e){var t,n,i,r,o,a=NT,s=function(e){return 1/Math.min(r[e.source.index],r[e.target.index])},c=xT(30),l=1;function u(i){for(var r=0,a=e.length;r<l;++r)for(var s,c,u,h,d,f,p,m=0;m<a;++m)h=(u=(s=e[m]).target).x+u.vx-(c=s.source).x-c.vx||OT(),d=u.y+u.vy-c.y-c.vy||OT(),d*=f=((f=Math.sqrt(h*h+d*d))-n[m])/f*i*t[m],u.vx-=(h*=f)*(p=o[m]),u.vy-=d*p,c.vx+=h*(p=1-p),c.vy+=d*p}function h(){if(i){var s,c,l=i.length,u=e.length,h=eM(i,a);for(s=0,r=new Array(l);s<u;++s)(c=e[s]).index=s,"object"!=typeof c.source&&(c.source=BT(h,c.source)),"object"!=typeof c.target&&(c.target=BT(h,c.target)),r[c.source.index]=(r[c.source.index]||0)+1,r[c.target.index]=(r[c.target.index]||0)+1;for(s=0,o=new Array(u);s<u;++s)o[s]=r[(c=e[s]).source.index]/(r[c.source.index]+r[c.target.index]);t=new Array(u),d(),n=new Array(u),f()}}function d(){if(i)for(var n=0,r=e.length;n<r;++n)t[n]=+s(e[n],n,e)}function f(){if(i)for(var t=0,r=e.length;t<r;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),u.initialize=function(e){i=e,h()},u.links=function(t){return arguments.length?(e=t,h(),u):e},u.id=function(e){return arguments.length?(a=e,u):a},u.iterations=function(e){return arguments.length?(l=+e,u):l},u.strength=function(e){return arguments.length?(s="function"==typeof e?e:xT(+e),d(),u):s},u.distance=function(e){return arguments.length?(c="function"==typeof e?e:xT(+e),f(),u):c},u};function zT(e){return e.x}function VT(e){return e.y}var qT,UT=Math.PI*(3-Math.sqrt(5)),GT=function(e){var t,n=1,i=.001,r=1-Math.pow(i,1/300),o=0,a=.6,s=eM(),c=hx(u),l=Aw("tick","end");function u(){h(),l.call("tick",t),n<i&&(c.stop(),l.call("end",t))}function h(){var t,i,c=e.length;for(n+=(o-n)*r,s.each((function(e){e(n)})),t=0;t<c;++t)null==(i=e[t]).fx?i.x+=i.vx*=a:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=a:(i.y=i.fy,i.vy=0)}function d(){for(var t,n=0,i=e.length;n<i;++n){if((t=e[n]).index=n,isNaN(t.x)||isNaN(t.y)){var r=10*Math.sqrt(n),o=n*UT;t.x=r*Math.cos(o),t.y=r*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function f(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),d(),t={tick:h,restart:function(){return c.restart(u),t},stop:function(){return c.stop(),t},nodes:function(n){return arguments.length?(e=n,d(),s.each(f),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(i=+e,t):i},alphaDecay:function(e){return arguments.length?(r=+e,t):+r},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},force:function(e,n){return arguments.length>1?(null==n?s.remove(e):s.set(e,f(n)),t):s.get(e)},find:function(t,n,i){var r,o,a,s,c,l=0,u=e.length;for(null==i?i=1/0:i*=i,l=0;l<u;++l)(a=(r=t-(s=e[l]).x)*r+(o=n-s.y)*o)<i&&(c=s,i=a);return c},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}},WT=function(){var e,t,n,i,r=xT(-30),o=1,a=1/0,s=.81;function c(i){var r,o=e.length,a=jT(e,zT,VT).visitAfter(u);for(n=i,r=0;r<o;++r)t=e[r],a.visit(h)}function l(){if(e){var t,n,o=e.length;for(i=new Array(o),t=0;t<o;++t)i[(n=e[t]).index]=+r(n,t,e)}}function u(e){var t,n,r,o,a,s=0,c=0;if(e.length){for(r=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,c+=n,r+=n*t.x,o+=n*t.y);e.x=r/c,e.y=o/c}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=i[t.data.index]}while(t=t.next)}e.value=s}function h(e,r,c,l){if(!e.value)return!0;var u=e.x-t.x,h=e.y-t.y,d=l-r,f=u*u+h*h;if(d*d/s<f)return f<a&&(0===u&&(f+=(u=OT())*u),0===h&&(f+=(h=OT())*h),f<o&&(f=Math.sqrt(o*f)),t.vx+=u*e.value*n/f,t.vy+=h*e.value*n/f),!0;if(!(e.length||f>=a)){(e.data!==t||e.next)&&(0===u&&(f+=(u=OT())*u),0===h&&(f+=(h=OT())*h),f<o&&(f=Math.sqrt(o*f)));do{e.data!==t&&(t.vx+=u*(d=i[e.data.index]*n/f),t.vy+=h*d)}while(e=e.next)}}return c.initialize=function(t){e=t,l()},c.strength=function(e){return arguments.length?(r="function"==typeof e?e:xT(+e),l(),c):r},c.distanceMin=function(e){return arguments.length?(o=e*e,c):Math.sqrt(o)},c.distanceMax=function(e){return arguments.length?(a=e*e,c):Math.sqrt(a)},c.theta=function(e){return arguments.length?(s=e*e,c):Math.sqrt(s)},c},KT=function(e,t,n){var i,r,o,a=xT(.1);function s(e){for(var a=0,s=i.length;a<s;++a){var c=i[a],l=c.x-t||1e-6,u=c.y-n||1e-6,h=Math.sqrt(l*l+u*u),d=(o[a]-h)*r[a]*e/h;c.vx+=l*d,c.vy+=u*d}}function c(){if(i){var t,n=i.length;for(r=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(i[t],t,i),r[t]=isNaN(o[t])?0:+a(i[t],t,i)}}return"function"!=typeof e&&(e=xT(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){i=e,c()},s.strength=function(e){return arguments.length?(a="function"==typeof e?e:xT(+e),c(),s):a},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:xT(+t),c(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s},XT=function(e){var t,n,i,r=xT(.1);function o(e){for(var r,o=0,a=t.length;o<a;++o)(r=t[o]).vx+=(i[o]-r.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+e(t[o],o,t))?0:+r(t[o],o,t)}}return"function"!=typeof e&&(e=xT(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(r="function"==typeof e?e:xT(+e),a(),o):r},o.x=function(t){return arguments.length?(e="function"==typeof t?t:xT(+t),a(),o):e},o},YT=function(e){var t,n,i,r=xT(.1);function o(e){for(var r,o=0,a=t.length;o<a;++o)(r=t[o]).vy+=(i[o]-r.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+e(t[o],o,t))?0:+r(t[o],o,t)}}return"function"!=typeof e&&(e=xT(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(r="function"==typeof e?e:xT(+e),a(),o):r},o.y=function(t){return arguments.length?(e="function"==typeof t?t:xT(+t),a(),o):e},o},ZT=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]},QT=function(e){return(e=ZT(Math.abs(e)))?e[1]:NaN},$T=function(e,t){var n=ZT(e,t);if(!n)return e+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},JT={"":function(e,t){e:for(var n,i=(e=e.toPrecision(t)).length,r=1,o=-1;r<i;++r)switch(e[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;case"e":break e;default:o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return $T(100*e,t)},r:$T,s:function(e,t){var n=ZT(e,t);if(!n)return e+"";var i=n[0],r=n[1],o=r-(qT=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+ZT(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},eE=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function tE(e){return new nE(e)}function nE(e){if(!(t=eE.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",i=t[2]||">",r=t[3]||"-",o=t[4]||"",a=!!t[5],s=t[6]&&+t[6],c=!!t[7],l=t[8]&&+t[8].slice(1),u=t[9]||"";"n"===u?(c=!0,u="g"):JT[u]||(u=""),(a||"0"===n&&"="===i)&&(a=!0,n="0",i="="),this.fill=n,this.align=i,this.sign=r,this.symbol=o,this.zero=a,this.width=s,this.comma=c,this.precision=l,this.type=u}tE.prototype=nE.prototype,nE.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var iE,rE,oE,aE=function(e){return e},sE=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"],cE=function(e){var t,n,i=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,i){for(var r=e.length,o=[],a=0,s=t[0],c=0;r>0&&s>0&&(c+s+1>i&&(s=Math.max(1,i-c)),o.push(e.substring(r-=s,r+s)),!((c+=s+1)>i));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):aE,r=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):aE,s=e.percent||"%";function c(e){var t=(e=tE(e)).fill,n=e.align,c=e.sign,l=e.symbol,u=e.zero,h=e.width,d=e.comma,f=e.precision,p=e.type,m="$"===l?r[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===l?r[1]:/[%p]/.test(p)?s:"",v=JT[p],b=!p||/[defgprs%]/.test(p);function y(e){var r,s,l,y=m,_=g;if("c"===p)_=v(e)+_,e="";else{var w=(e=+e)<0;if(e=v(Math.abs(e),f),w&&0==+e&&(w=!1),y=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+y,_=("s"===p?sE[8+qT/3]:"")+_+(w&&"("===c?")":""),b)for(r=-1,s=e.length;++r<s;)if(48>(l=e.charCodeAt(r))||l>57){_=(46===l?o+e.slice(r+1):e.slice(r))+_,e=e.slice(0,r);break}}d&&!u&&(e=i(e,1/0));var k=y.length+e.length+_.length,C=k<h?new Array(h-k+1).join(t):"";switch(d&&u&&(e=i(C+e,C.length?h-_.length:1/0),C=""),n){case"<":e=y+e+_+C;break;case"=":e=y+C+e+_;break;case"^":e=C.slice(0,k=C.length>>1)+y+e+_+C.slice(k);break;default:e=C+y+e+_}return a(e)}return f=null==f?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),y.toString=function(){return e+""},y}return{format:c,formatPrefix:function(e,t){var n=c(((e=tE(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(QT(t)/3))),r=Math.pow(10,-i),o=sE[8+i/3];return function(e){return n(r*e)+o}}}};function lE(e){return iE=cE(e),rE=iE.format,oE=iE.formatPrefix,iE}lE({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var uE=function(e){return Math.max(0,-QT(Math.abs(e)))},hE=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(QT(t)/3)))-QT(Math.abs(e)))},dE=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,QT(t)-QT(e))+1},fE=function(){return new pE};function pE(){this.reset()}pE.prototype={constructor:pE,reset:function(){this.s=this.t=0},add:function(e){gE(mE,e,this.t),gE(this,mE.s,this.s),this.s?this.t+=mE.t:this.s=mE.t},valueOf:function(){return this.s}};var mE=new pE;function gE(e,t,n){var i=e.s=t+n,r=i-t;e.t=t-(i-r)+(n-r)}var vE=1e-6,bE=Math.PI,yE=bE/2,_E=bE/4,wE=2*bE,kE=180/bE,CE=bE/180,SE=Math.abs,xE=Math.atan,OE=Math.atan2,ME=Math.cos,TE=Math.ceil,EE=Math.exp,PE=(Math,Math.log),jE=Math.pow,AE=Math.sin,IE=Math.sign||function(e){return e>0?1:e<0?-1:0},DE=Math.sqrt,RE=Math.tan;function LE(e){return e>1?0:e<-1?bE:Math.acos(e)}function FE(e){return e>1?yE:e<-1?-yE:Math.asin(e)}function NE(e){return(e=AE(e/2))*e}function BE(){}function HE(e,t){e&&VE.hasOwnProperty(e.type)&&VE[e.type](e,t)}var zE={Feature:function(e,t){HE(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)HE(n[i].geometry,t)}},VE={Sphere:function(e,t){t.sphere()},Point:function(e,t){t.point((e=e.coordinates)[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)t.point((e=n[i])[0],e[1],e[2])},LineString:function(e,t){qE(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)qE(n[i],t,0)},Polygon:function(e,t){UE(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)UE(n[i],t)},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)HE(n[i],t)}};function qE(e,t,n){var i,r=-1,o=e.length-n;for(t.lineStart();++r<o;)t.point((i=e[r])[0],i[1],i[2]);t.lineEnd()}function UE(e,t){var n=-1,i=e.length;for(t.polygonStart();++n<i;)qE(e[n],t,1);t.polygonEnd()}var GE,WE,KE,XE,YE,ZE=function(e,t){e&&zE.hasOwnProperty(e.type)?zE[e.type](e,t):HE(e,t)},QE=fE(),$E=fE(),JE={point:BE,lineStart:BE,lineEnd:BE,polygonStart:function(){QE.reset(),JE.lineStart=eP,JE.lineEnd=tP},polygonEnd:function(){var e=+QE;$E.add(e<0?wE+e:e),this.lineStart=this.lineEnd=this.point=BE},sphere:function(){$E.add(wE)}};function eP(){JE.point=nP}function tP(){iP(GE,WE)}function nP(e,t){JE.point=iP,GE=e,WE=t,KE=e*=CE,XE=ME(t=(t*=CE)/2+_E),YE=AE(t)}function iP(e,t){var n=(e*=CE)-KE,i=n>=0?1:-1,r=i*n,o=ME(t=(t*=CE)/2+_E),a=AE(t),s=YE*a,c=XE*o+s*ME(r),l=s*i*AE(r);QE.add(OE(l,c)),KE=e,XE=o,YE=a}var rP=function(e){return $E.reset(),ZE(e,JE),2*$E};function oP(e){return[OE(e[1],e[0]),FE(e[2])]}function aP(e){var t=e[0],n=e[1],i=ME(n);return[i*ME(t),i*AE(t),AE(n)]}function sP(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function cP(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lP(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function uP(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function hP(e){var t=DE(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var dP,fP,pP,mP,gP,vP,bP,yP,_P,wP,kP=fE(),CP={point:SP,lineStart:OP,lineEnd:MP,polygonStart:function(){CP.point=TP,CP.lineStart=EP,CP.lineEnd=PP,kP.reset(),JE.polygonStart()},polygonEnd:function(){JE.polygonEnd(),CP.point=SP,CP.lineStart=OP,CP.lineEnd=MP,QE<0?(dP=-(pP=180),fP=-(mP=90)):kP>vE?mP=90:kP<-1e-6&&(fP=-90),wP[0]=dP,wP[1]=pP}};function SP(e,t){_P.push(wP=[dP=e,pP=e]),t<fP&&(fP=t),t>mP&&(mP=t)}function xP(e,t){var n=aP([e*CE,t*CE]);if(yP){var i=cP(yP,n),r=cP([i[1],-i[0],0],i);hP(r),r=oP(r);var o,a=e-gP,s=a>0?1:-1,c=r[0]*kE*s,l=SE(a)>180;l^(s*gP<c&&c<s*e)?(o=r[1]*kE)>mP&&(mP=o):l^(s*gP<(c=(c+360)%360-180)&&c<s*e)?(o=-r[1]*kE)<fP&&(fP=o):(t<fP&&(fP=t),t>mP&&(mP=t)),l?e<gP?jP(dP,e)>jP(dP,pP)&&(pP=e):jP(e,pP)>jP(dP,pP)&&(dP=e):pP>=dP?(e<dP&&(dP=e),e>pP&&(pP=e)):e>gP?jP(dP,e)>jP(dP,pP)&&(pP=e):jP(e,pP)>jP(dP,pP)&&(dP=e)}else _P.push(wP=[dP=e,pP=e]);t<fP&&(fP=t),t>mP&&(mP=t),yP=n,gP=e}function OP(){CP.point=xP}function MP(){wP[0]=dP,wP[1]=pP,CP.point=SP,yP=null}function TP(e,t){if(yP){var n=e-gP;kP.add(SE(n)>180?n+(n>0?360:-360):n)}else vP=e,bP=t;JE.point(e,t),xP(e,t)}function EP(){JE.lineStart()}function PP(){TP(vP,bP),JE.lineEnd(),SE(kP)>vE&&(dP=-(pP=180)),wP[0]=dP,wP[1]=pP,yP=null}function jP(e,t){return(t-=e)<0?t+360:t}function AP(e,t){return e[0]-t[0]}function IP(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var DP,RP,LP,FP,NP,BP,HP,zP,VP,qP,UP,GP,WP,KP,XP,YP,ZP=function(e){var t,n,i,r,o,a,s;if(mP=pP=-(dP=fP=1/0),_P=[],ZE(e,CP),n=_P.length){for(_P.sort(AP),t=1,o=[i=_P[0]];t<n;++t)IP(i,(r=_P[t])[0])||IP(i,r[1])?(jP(i[0],r[1])>jP(i[0],i[1])&&(i[1]=r[1]),jP(r[0],i[1])>jP(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,t=0,i=o[n=o.length-1];t<=n;i=r,++t)(s=jP(i[1],(r=o[t])[0]))>a&&(a=s,dP=r[0],pP=i[1])}return _P=wP=null,dP===1/0||fP===1/0?[[NaN,NaN],[NaN,NaN]]:[[dP,fP],[pP,mP]]},QP={sphere:BE,point:$P,lineStart:ej,lineEnd:ij,polygonStart:function(){QP.lineStart=rj,QP.lineEnd=oj},polygonEnd:function(){QP.lineStart=ej,QP.lineEnd=ij}};function $P(e,t){e*=CE;var n=ME(t*=CE);JP(n*ME(e),n*AE(e),AE(t))}function JP(e,t,n){++DP,LP+=(e-LP)/DP,FP+=(t-FP)/DP,NP+=(n-NP)/DP}function ej(){QP.point=tj}function tj(e,t){e*=CE;var n=ME(t*=CE);KP=n*ME(e),XP=n*AE(e),YP=AE(t),QP.point=nj,JP(KP,XP,YP)}function nj(e,t){e*=CE;var n=ME(t*=CE),i=n*ME(e),r=n*AE(e),o=AE(t),a=OE(DE((a=XP*o-YP*r)*a+(a=YP*i-KP*o)*a+(a=KP*r-XP*i)*a),KP*i+XP*r+YP*o);RP+=a,BP+=a*(KP+(KP=i)),HP+=a*(XP+(XP=r)),zP+=a*(YP+(YP=o)),JP(KP,XP,YP)}function ij(){QP.point=$P}function rj(){QP.point=aj}function oj(){sj(GP,WP),QP.point=$P}function aj(e,t){GP=e,WP=t,e*=CE,t*=CE,QP.point=sj;var n=ME(t);KP=n*ME(e),XP=n*AE(e),YP=AE(t),JP(KP,XP,YP)}function sj(e,t){e*=CE;var n=ME(t*=CE),i=n*ME(e),r=n*AE(e),o=AE(t),a=XP*o-YP*r,s=YP*i-KP*o,c=KP*r-XP*i,l=DE(a*a+s*s+c*c),u=FE(l),h=l&&-u/l;VP+=h*a,qP+=h*s,UP+=h*c,RP+=u,BP+=u*(KP+(KP=i)),HP+=u*(XP+(XP=r)),zP+=u*(YP+(YP=o)),JP(KP,XP,YP)}var cj=function(e){DP=RP=LP=FP=NP=BP=HP=zP=VP=qP=UP=0,ZE(e,QP);var t=VP,n=qP,i=UP,r=t*t+n*n+i*i;return r<1e-12&&(t=BP,n=HP,i=zP,RP<vE&&(t=LP,n=FP,i=NP),(r=t*t+n*n+i*i)<1e-12)?[NaN,NaN]:[OE(n,t)*kE,FE(i/DE(r))*kE]},lj=function(e){return function(){return e}},uj=function(e,t){function n(n,i){return n=e(n,i),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,i){return(n=t.invert(n,i))&&e.invert(n[0],n[1])}),n};function hj(e,t){return[e>bE?e-wE:e<-bE?e+wE:e,t]}function dj(e,t,n){return(e%=wE)?t||n?uj(pj(e),mj(t,n)):pj(e):t||n?mj(t,n):hj}function fj(e){return function(t,n){return[(t+=e)>bE?t-wE:t<-bE?t+wE:t,n]}}function pj(e){var t=fj(e);return t.invert=fj(-e),t}function mj(e,t){var n=ME(e),i=AE(e),r=ME(t),o=AE(t);function a(e,t){var a=ME(t),s=ME(e)*a,c=AE(e)*a,l=AE(t),u=l*n+s*i;return[OE(c*r-u*o,s*n-l*i),FE(u*r+c*o)]}return a.invert=function(e,t){var a=ME(t),s=ME(e)*a,c=AE(e)*a,l=AE(t),u=l*r-c*o;return[OE(c*r+l*o,s*n+u*i),FE(u*n-s*i)]},a}hj.invert=hj;var gj=function(e){function t(t){return(t=e(t[0]*CE,t[1]*CE))[0]*=kE,t[1]*=kE,t}return e=dj(e[0]*CE,e[1]*CE,e.length>2?e[2]*CE:0),t.invert=function(t){return(t=e.invert(t[0]*CE,t[1]*CE))[0]*=kE,t[1]*=kE,t},t};function vj(e,t,n,i,r,o){if(n){var a=ME(t),s=AE(t),c=i*n;null==r?(r=t+i*wE,o=t-c/2):(r=bj(a,r),o=bj(a,o),(i>0?r<o:r>o)&&(r+=i*wE));for(var l,u=r;i>0?u>o:u<o;u-=c)l=oP([a,-s*ME(u),-s*AE(u)]),e.point(l[0],l[1])}}function bj(e,t){(t=aP(t))[0]-=e,hP(t);var n=LE(-t[1]);return((-t[2]<0?-n:n)+wE-vE)%wE}var yj=function(){var e,t,n=lj([0,0]),i=lj(90),r=lj(6),o={point:function(n,i){e.push(n=t(n,i)),n[0]*=kE,n[1]*=kE}};function a(){var a=n.apply(this,arguments),s=i.apply(this,arguments)*CE,c=r.apply(this,arguments)*CE;return e=[],t=dj(-a[0]*CE,-a[1]*CE,0).invert,vj(o,s,c,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"==typeof e?e:lj([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(i="function"==typeof e?e:lj(+e),a):i},a.precision=function(e){return arguments.length?(r="function"==typeof e?e:lj(+e),a):r},a},_j=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:BE,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},wj=function(e,t){return SE(e[0]-t[0])<vE&&SE(e[1]-t[1])<vE};function kj(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var Cj=function(e,t,n,i,r){var o,a,s=[],c=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,i=e[0],a=e[t];if(wj(i,a)){for(r.lineStart(),o=0;o<t;++o)r.point((i=e[o])[0],i[1]);r.lineEnd()}else s.push(n=new kj(i,e,null,!0)),c.push(n.o=new kj(i,null,n,!1)),s.push(n=new kj(a,e,null,!1)),c.push(n.o=new kj(a,null,n,!0))}})),s.length){for(c.sort(t),Sj(s),Sj(c),o=0,a=c.length;o<a;++o)c[o].e=n=!n;for(var l,u,h=s[0];;){for(var d=h,f=!0;d.v;)if((d=d.n)===h)return;l=d.z,r.lineStart();do{if(d.v=d.o.v=!0,d.e){if(f)for(o=0,a=l.length;o<a;++o)r.point((u=l[o])[0],u[1]);else i(d.x,d.n.x,1,r);d=d.n}else{if(f)for(o=(l=d.p.z).length-1;o>=0;--o)r.point((u=l[o])[0],u[1]);else i(d.x,d.p.x,-1,r);d=d.p}l=(d=d.o).z,f=!f}while(!d.v);r.lineEnd()}}};function Sj(e){if(t=e.length){for(var t,n,i=0,r=e[0];++i<t;)r.n=n=e[i],n.p=r,r=n;r.n=n=e[0],n.p=r}}var xj=fE(),Oj=function(e,t){var n=t[0],i=t[1],r=AE(i),o=[AE(n),-ME(n),0],a=0,s=0;xj.reset(),1===r?i=yE+vE:-1===r&&(i=-yE-vE);for(var c=0,l=e.length;c<l;++c)if(h=(u=e[c]).length)for(var u,h,d=u[h-1],f=d[0],p=d[1]/2+_E,m=AE(p),g=ME(p),v=0;v<h;++v,f=y,m=w,g=k,d=b){var b=u[v],y=b[0],_=b[1]/2+_E,w=AE(_),k=ME(_),C=y-f,S=C>=0?1:-1,x=S*C,O=x>bE,M=m*w;if(xj.add(OE(M*S*AE(x),g*k+M*ME(x))),a+=O?C+S*wE:C,O^f>=n^y>=n){var T=cP(aP(d),aP(b));hP(T);var E=cP(o,T);hP(E);var P=(O^C>=0?-1:1)*FE(E[2]);(i>P||i===P&&(T[0]||T[1]))&&(s+=O^C>=0?1:-1)}}return(a<-1e-6||a<vE&&xj<-1e-6)^1&s},Mj=function(e,t,n,i){return function(r){var o,a,s,c=t(r),l=_j(),u=t(l),h=!1,d={point:f,lineStart:m,lineEnd:g,polygonStart:function(){d.point=v,d.lineStart=b,d.lineEnd=y,a=[],o=[]},polygonEnd:function(){d.point=f,d.lineStart=m,d.lineEnd=g,a=rw(a);var e=Oj(o,i);a.length?(h||(r.polygonStart(),h=!0),Cj(a,Ej,e,n,r)):e&&(h||(r.polygonStart(),h=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),h&&(r.polygonEnd(),h=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function f(t,n){e(t,n)&&r.point(t,n)}function p(e,t){c.point(e,t)}function m(){d.point=p,c.lineStart()}function g(){d.point=f,c.lineEnd()}function v(e,t){s.push([e,t]),u.point(e,t)}function b(){u.lineStart(),s=[]}function y(){v(s[0][0],s[0][1]),u.lineEnd();var e,t,n,i,c=u.clean(),d=l.result(),f=d.length;if(s.pop(),o.push(s),s=null,f)if(1&c){if((t=(n=d[0]).length-1)>0){for(h||(r.polygonStart(),h=!0),r.lineStart(),e=0;e<t;++e)r.point((i=n[e])[0],i[1]);r.lineEnd()}}else f>1&&2&c&&d.push(d.pop().concat(d.shift())),a.push(d.filter(Tj))}return d}};function Tj(e){return e.length>1}function Ej(e,t){return((e=e.x)[0]<0?e[1]-yE-vE:yE-e[1])-((t=t.x)[0]<0?t[1]-yE-vE:yE-t[1])}var Pj=Mj((function(){return!0}),(function(e){var t,n=NaN,i=NaN,r=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?bE:-bE,c=SE(o-n);SE(c-bE)<vE?(e.point(n,i=(i+a)/2>0?yE:-yE),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(s,i),e.point(o,i),t=0):r!==s&&c>=bE&&(SE(n-r)<vE&&(n-=r*vE),SE(o-s)<vE&&(o-=s*vE),i=function(e,t,n,i){var r,o,a=AE(e-n);return SE(a)>vE?xE((AE(t)*(o=ME(i))*AE(n)-AE(i)*(r=ME(t))*AE(e))/(r*o*a)):(t+i)/2}(n,i,o,a),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(s,i),t=0),e.point(n=o,i=a),r=s},lineEnd:function(){e.lineEnd(),n=i=NaN},clean:function(){return 2-t}}}),(function(e,t,n,i){var r;if(null==e)i.point(-bE,r=n*yE),i.point(0,r),i.point(bE,r),i.point(bE,0),i.point(bE,-r),i.point(0,-r),i.point(-bE,-r),i.point(-bE,0),i.point(-bE,r);else if(SE(e[0]-t[0])>vE){var o=e[0]<t[0]?bE:-bE;i.point(-o,r=n*o/2),i.point(0,r),i.point(o,r)}else i.point(t[0],t[1])}),[-bE,-yE]),jj=function(e){var t=ME(e),n=6*CE,i=t>0,r=SE(t)>vE;function o(e,n){return ME(e)*ME(n)>t}function a(e,n,i){var r=[1,0,0],o=cP(aP(e),aP(n)),a=sP(o,o),s=o[0],c=a-s*s;if(!c)return!i&&e;var l=t*a/c,u=-t*s/c,h=cP(r,o),d=uP(r,l);lP(d,uP(o,u));var f=h,p=sP(d,f),m=sP(f,f),g=p*p-m*(sP(d,d)-1);if(!(g<0)){var v=DE(g),b=uP(f,(-p-v)/m);if(lP(b,d),b=oP(b),!i)return b;var y,_=e[0],w=n[0],k=e[1],C=n[1];w<_&&(y=_,_=w,w=y);var S=w-_,x=SE(S-bE)<vE;if(!x&&C<k&&(y=k,k=C,C=y),x||S<vE?x?k+C>0^b[1]<(SE(b[0]-_)<vE?k:C):k<=b[1]&&b[1]<=C:S>bE^(_<=b[0]&&b[0]<=w)){var O=uP(f,(-p+v)/m);return lP(O,d),[b,oP(O)]}}}function s(t,n){var r=i?e:bE-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return Mj(o,(function(e){var t,n,c,l,u;return{lineStart:function(){l=c=!1,u=1},point:function(h,d){var f,p=[h,d],m=o(h,d),g=i?m?0:s(h,d):m?s(h+(h<0?bE:-bE),d):0;if(!t&&(l=c=m)&&e.lineStart(),m!==c&&(!(f=a(t,p))||wj(t,f)||wj(p,f))&&(p[0]+=vE,p[1]+=vE,m=o(p[0],p[1])),m!==c)u=0,m?(e.lineStart(),f=a(p,t),e.point(f[0],f[1])):(f=a(t,p),e.point(f[0],f[1]),e.lineEnd()),t=f;else if(r&&t&&i^m){var v;g&n||!(v=a(p,t,!0))||(u=0,i?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!m||t&&wj(t,p)||e.point(p[0],p[1]),t=p,c=m,n=g},lineEnd:function(){c&&e.lineEnd(),t=null},clean:function(){return u|(l&&c)<<1}}}),(function(t,i,r,o){vj(o,e,n,r,t,i)}),i?[0,-e]:[-bE,e-bE])},Aj=1e9,Ij=-Aj;function Dj(e,t,n,i){function r(r,o){return e<=r&&r<=n&&t<=o&&o<=i}function o(r,o,s,l){var u=0,h=0;if(null==r||(u=a(r,s))!==(h=a(o,s))||c(r,o)<0^s>0)do{l.point(0===u||3===u?e:n,u>1?i:t)}while((u=(u+s+4)%4)!==h);else l.point(o[0],o[1])}function a(i,r){return SE(i[0]-e)<vE?r>0?0:3:SE(i[0]-n)<vE?r>0?2:1:SE(i[1]-t)<vE?r>0?1:0:r>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=a(e,1),i=a(t,1);return n!==i?n-i:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var c,l,u,h,d,f,p,m,g,v,b,y=a,_=_j(),w={point:k,lineStart:function(){w.point=C,l&&l.push(u=[]),v=!0,g=!1,p=m=NaN},lineEnd:function(){c&&(C(h,d),f&&g&&_.rejoin(),c.push(_.result())),w.point=k,g&&y.lineEnd()},polygonStart:function(){y=_,c=[],l=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,r=l.length;n<r;++n)for(var o,a,s=l[n],c=1,u=s.length,h=s[0],d=h[0],f=h[1];c<u;++c)o=d,a=f,d=(h=s[c])[0],f=h[1],a<=i?f>i&&(d-o)*(i-a)>(f-a)*(e-o)&&++t:f<=i&&(d-o)*(i-a)<(f-a)*(e-o)&&--t;return t}(),n=b&&t,r=(c=rw(c)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&Cj(c,s,t,o,a),a.polygonEnd()),y=a,c=l=u=null}};function k(e,t){r(e,t)&&y.point(e,t)}function C(o,a){var s=r(o,a);if(l&&u.push([o,a]),v)h=o,d=a,f=s,v=!1,s&&(y.lineStart(),y.point(o,a));else if(s&&g)y.point(o,a);else{var c=[p=Math.max(Ij,Math.min(Aj,p)),m=Math.max(Ij,Math.min(Aj,m))],_=[o=Math.max(Ij,Math.min(Aj,o)),a=Math.max(Ij,Math.min(Aj,a))];!function(e,t,n,i,r,o){var a,s=e[0],c=e[1],l=0,u=1,h=t[0]-s,d=t[1]-c;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<l)return;a<u&&(u=a)}else if(h>0){if(a>u)return;a>l&&(l=a)}if(a=r-s,h||!(a<0)){if(a/=h,h<0){if(a>u)return;a>l&&(l=a)}else if(h>0){if(a<l)return;a<u&&(u=a)}if(a=i-c,d||!(a>0)){if(a/=d,d<0){if(a<l)return;a<u&&(u=a)}else if(d>0){if(a>u)return;a>l&&(l=a)}if(a=o-c,d||!(a<0)){if(a/=d,d<0){if(a>u)return;a>l&&(l=a)}else if(d>0){if(a<l)return;a<u&&(u=a)}return l>0&&(e[0]=s+l*h,e[1]=c+l*d),u<1&&(t[0]=s+u*h,t[1]=c+u*d),!0}}}}}(c,_,e,t,n,i)?s&&(y.lineStart(),y.point(o,a),b=!1):(g||(y.lineStart(),y.point(c[0],c[1])),y.point(_[0],_[1]),s||y.lineEnd(),b=!1)}p=o,m=a,g=s}return w}}var Rj,Lj,Fj,Nj=function(){var e,t,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=Dj(i,r,o,a)(t=n)},extent:function(s){return arguments.length?(i=+s[0][0],r=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[i,r],[o,a]]}}},Bj=fE(),Hj={sphere:BE,point:BE,lineStart:function(){Hj.point=Vj,Hj.lineEnd=zj},lineEnd:BE,polygonStart:BE,polygonEnd:BE};function zj(){Hj.point=Hj.lineEnd=BE}function Vj(e,t){Rj=e*=CE,Lj=AE(t*=CE),Fj=ME(t),Hj.point=qj}function qj(e,t){e*=CE;var n=AE(t*=CE),i=ME(t),r=SE(e-Rj),o=ME(r),a=i*AE(r),s=Fj*n-Lj*i*o,c=Lj*n+Fj*i*o;Bj.add(OE(DE(a*a+s*s),c)),Rj=e,Lj=n,Fj=i}var Uj=function(e){return Bj.reset(),ZE(e,Hj),+Bj},Gj=[null,null],Wj={type:"LineString",coordinates:Gj},Kj=function(e,t){return Gj[0]=e,Gj[1]=t,Uj(Wj)},Xj={Feature:function(e,t){return Zj(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)if(Zj(n[i].geometry,t))return!0;return!1}},Yj={Sphere:function(){return!0},Point:function(e,t){return Qj(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Qj(n[i],t))return!0;return!1},LineString:function(e,t){return $j(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if($j(n[i],t))return!0;return!1},Polygon:function(e,t){return Jj(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Jj(n[i],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)if(Zj(n[i],t))return!0;return!1}};function Zj(e,t){return!(!e||!Yj.hasOwnProperty(e.type))&&Yj[e.type](e,t)}function Qj(e,t){return 0===Kj(e,t)}function $j(e,t){var n=Kj(e[0],e[1]);return Kj(e[0],t)+Kj(t,e[1])<=n+vE}function Jj(e,t){return!!Oj(e.map(eA),tA(t))}function eA(e){return(e=e.map(tA)).pop(),e}function tA(e){return[e[0]*CE,e[1]*CE]}var nA=function(e,t){return(e&&Xj.hasOwnProperty(e.type)?Xj[e.type]:Zj)(e,t)};function iA(e,t,n){var i=q_(e,t-vE,n).concat(t);return function(e){return i.map((function(t){return[e,t]}))}}function rA(e,t,n){var i=q_(e,t-vE,n).concat(t);return function(e){return i.map((function(t){return[t,e]}))}}function oA(){var e,t,n,i,r,o,a,s,c,l,u,h,d=10,f=d,p=90,m=360,g=2.5;function v(){return{type:"MultiLineString",coordinates:b()}}function b(){return q_(TE(i/p)*p,n,p).map(u).concat(q_(TE(s/m)*m,a,m).map(h)).concat(q_(TE(t/d)*d,e,d).filter((function(e){return SE(e%p)>vE})).map(c)).concat(q_(TE(o/f)*f,r,f).filter((function(e){return SE(e%m)>vE})).map(l))}return v.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},v.outline=function(){return{type:"Polygon",coordinates:[u(i).concat(h(a).slice(1),u(n).reverse().slice(1),h(s).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.extentMajor(e).extentMinor(e):v.extentMinor()},v.extentMajor=function(e){return arguments.length?(s=+e[0][1],a=+e[1][1],(i=+e[0][0])>(n=+e[1][0])&&(e=i,i=n,n=e),s>a&&(e=s,s=a,a=e),v.precision(g)):[[i,s],[n,a]]},v.extentMinor=function(n){return arguments.length?(o=+n[0][1],r=+n[1][1],(t=+n[0][0])>(e=+n[1][0])&&(n=t,t=e,e=n),o>r&&(n=o,o=r,r=n),v.precision(g)):[[t,o],[e,r]]},v.step=function(e){return arguments.length?v.stepMajor(e).stepMinor(e):v.stepMinor()},v.stepMajor=function(e){return arguments.length?(p=+e[0],m=+e[1],v):[p,m]},v.stepMinor=function(e){return arguments.length?(d=+e[0],f=+e[1],v):[d,f]},v.precision=function(d){return arguments.length?(g=+d,c=iA(o,r,90),l=rA(t,e,g),u=iA(s,a,90),h=rA(i,n,g),v):g},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function aA(){return oA()()}var sA,cA,lA,uA,hA=function(e,t){var n=e[0]*CE,i=e[1]*CE,r=t[0]*CE,o=t[1]*CE,a=ME(i),s=AE(i),c=ME(o),l=AE(o),u=a*ME(n),h=a*AE(n),d=c*ME(r),f=c*AE(r),p=2*FE(DE(NE(o-i)+a*c*NE(r-n))),m=AE(p),g=p?function(e){var t=AE(e*=p)/m,n=AE(p-e)/m,i=n*u+t*d,r=n*h+t*f,o=n*s+t*l;return[OE(r,i)*kE,OE(o,DE(i*i+r*r))*kE]}:function(){return[n*kE,i*kE]};return g.distance=p,g},dA=function(e){return e},fA=fE(),pA=fE(),mA={point:BE,lineStart:BE,lineEnd:BE,polygonStart:function(){mA.lineStart=gA,mA.lineEnd=yA},polygonEnd:function(){mA.lineStart=mA.lineEnd=mA.point=BE,fA.add(SE(pA)),pA.reset()},result:function(){var e=fA/2;return fA.reset(),e}};function gA(){mA.point=vA}function vA(e,t){mA.point=bA,sA=lA=e,cA=uA=t}function bA(e,t){pA.add(uA*e-lA*t),lA=e,uA=t}function yA(){bA(sA,cA)}var _A,wA,kA,CA,SA=mA,xA=1/0,OA=xA,MA=-xA,TA=MA,EA={point:function(e,t){e<xA&&(xA=e),e>MA&&(MA=e),t<OA&&(OA=t),t>TA&&(TA=t)},lineStart:BE,lineEnd:BE,polygonStart:BE,polygonEnd:BE,result:function(){var e=[[xA,OA],[MA,TA]];return MA=TA=-(OA=xA=1/0),e}},PA=0,jA=0,AA=0,IA=0,DA=0,RA=0,LA=0,FA=0,NA=0,BA={point:HA,lineStart:zA,lineEnd:UA,polygonStart:function(){BA.lineStart=GA,BA.lineEnd=WA},polygonEnd:function(){BA.point=HA,BA.lineStart=zA,BA.lineEnd=UA},result:function(){var e=NA?[LA/NA,FA/NA]:RA?[IA/RA,DA/RA]:AA?[PA/AA,jA/AA]:[NaN,NaN];return PA=jA=AA=IA=DA=RA=LA=FA=NA=0,e}};function HA(e,t){PA+=e,jA+=t,++AA}function zA(){BA.point=VA}function VA(e,t){BA.point=qA,HA(kA=e,CA=t)}function qA(e,t){var n=e-kA,i=t-CA,r=DE(n*n+i*i);IA+=r*(kA+e)/2,DA+=r*(CA+t)/2,RA+=r,HA(kA=e,CA=t)}function UA(){BA.point=HA}function GA(){BA.point=KA}function WA(){XA(_A,wA)}function KA(e,t){BA.point=XA,HA(_A=kA=e,wA=CA=t)}function XA(e,t){var n=e-kA,i=t-CA,r=DE(n*n+i*i);IA+=r*(kA+e)/2,DA+=r*(CA+t)/2,RA+=r,LA+=(r=CA*e-kA*t)*(kA+e),FA+=r*(CA+t),NA+=3*r,HA(kA=e,CA=t)}var YA=BA;function ZA(e){this._context=e}ZA.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,wE)}},result:BE};var QA,$A,JA,eI,tI,nI=fE(),iI={point:BE,lineStart:function(){iI.point=rI},lineEnd:function(){QA&&oI($A,JA),iI.point=BE},polygonStart:function(){QA=!0},polygonEnd:function(){QA=null},result:function(){var e=+nI;return nI.reset(),e}};function rI(e,t){iI.point=oI,$A=eI=e,JA=tI=t}function oI(e,t){nI.add(DE((eI-=e)*eI+(tI-=t)*tI)),eI=e,tI=t}var aI=iI;function sI(){this._string=[]}function cI(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}sI.prototype={_radius:4.5,_circle:cI(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=cI(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var lI=function(e,t){var n,i,r=4.5;function o(e){return e&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),ZE(e,n(i))),i.result()}return o.area=function(e){return ZE(e,n(SA)),SA.result()},o.measure=function(e){return ZE(e,n(aI)),aI.result()},o.bounds=function(e){return ZE(e,n(EA)),EA.result()},o.centroid=function(e){return ZE(e,n(YA)),YA.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,dA):(e=t).stream,o):e},o.context=function(e){return arguments.length?(i=null==e?(t=null,new sI):new ZA(t=e),"function"!=typeof r&&i.pointRadius(r),o):t},o.pointRadius=function(e){return arguments.length?(r="function"==typeof e?e:(i.pointRadius(+e),+e),o):r},o.projection(e).context(t)},uI=function(e){return{stream:hI(e)}};function hI(e){return function(t){var n=new dI;for(var i in e)n[i]=e[i];return n.stream=t,n}}function dI(){}function fI(e,t,n){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),ZE(n,e.stream(EA)),t(EA.result()),null!=i&&e.clipExtent(i),e}function pI(e,t,n){return fI(e,(function(n){var i=t[1][0]-t[0][0],r=t[1][1]-t[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+t[0][0]+(i-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])}),n)}function mI(e,t,n){return pI(e,[[0,0],t],n)}function gI(e,t,n){return fI(e,(function(n){var i=+t,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];e.scale(150*r).translate([o,a])}),n)}function vI(e,t,n){return fI(e,(function(n){var i=+t,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;e.scale(150*r).translate([o,a])}),n)}dI.prototype={constructor:dI,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var bI=ME(30*CE),yI=function(e,t){return+t?function(e,t){function n(i,r,o,a,s,c,l,u,h,d,f,p,m,g){var v=l-i,b=u-r,y=v*v+b*b;if(y>4*t&&m--){var _=a+d,w=s+f,k=c+p,C=DE(_*_+w*w+k*k),S=FE(k/=C),x=SE(SE(k)-1)<vE||SE(o-h)<vE?(o+h)/2:OE(w,_),O=e(x,S),M=O[0],T=O[1],E=M-i,P=T-r,j=b*E-v*P;(j*j/y>t||SE((v*E+b*P)/y-.5)>.3||a*d+s*f+c*p<bI)&&(n(i,r,o,a,s,c,M,T,x,_/=C,w/=C,k,m,g),g.point(M,T),n(M,T,x,_,w,k,l,u,h,d,f,p,m,g))}}return function(t){var i,r,o,a,s,c,l,u,h,d,f,p,m={point:g,lineStart:v,lineEnd:y,polygonStart:function(){t.polygonStart(),m.lineStart=_},polygonEnd:function(){t.polygonEnd(),m.lineStart=v}};function g(n,i){n=e(n,i),t.point(n[0],n[1])}function v(){u=NaN,m.point=b,t.lineStart()}function b(i,r){var o=aP([i,r]),a=e(i,r);n(u,h,l,d,f,p,u=a[0],h=a[1],l=i,d=o[0],f=o[1],p=o[2],16,t),t.point(u,h)}function y(){m.point=g,t.lineEnd()}function _(){v(),m.point=w,m.lineEnd=k}function w(e,t){b(i=e,t),r=u,o=h,a=d,s=f,c=p,m.point=b}function k(){n(u,h,l,d,f,p,r,o,i,a,s,c,16,t),m.lineEnd=y,y()}return m}}(e,t):function(e){return hI({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)},_I=hI({point:function(e,t){this.stream.point(e*CE,t*CE)}});function wI(e,t,n){function i(i,r){return[t+e*i,n-e*r]}return i.invert=function(i,r){return[(i-t)/e,(n-r)/e]},i}function kI(e,t,n,i){var r=ME(i),o=AE(i),a=r*e,s=o*e,c=r/e,l=o/e,u=(o*n-r*t)/e,h=(o*t+r*n)/e;function d(e,i){return[a*e-s*i+t,n-s*e-a*i]}return d.invert=function(e,t){return[c*e-l*t+u,h-l*e-c*t]},d}function CI(e){return SI((function(){return e}))()}function SI(e){var t,n,i,r,o,a,s,c,l,u,h=150,d=480,f=250,p=0,m=0,g=0,v=0,b=0,y=0,_=null,w=Pj,k=null,C=dA,S=.5;function x(e){return c(e[0]*CE,e[1]*CE)}function O(e){return(e=c.invert(e[0],e[1]))&&[e[0]*kE,e[1]*kE]}function M(){var e=kI(h,0,0,y).apply(null,t(p,m)),i=(y?kI:wI)(h,d-e[0],f-e[1],y);return n=dj(g,v,b),s=uj(t,i),c=uj(n,s),a=yI(s,S),T()}function T(){return l=u=null,x}return x.stream=function(e){return l&&u===e?l:l=_I(function(e){return hI({point:function(t,n){var i=e(t,n);return this.stream.point(i[0],i[1])}})}(n)(w(a(C(u=e)))))},x.preclip=function(e){return arguments.length?(w=e,_=void 0,T()):w},x.postclip=function(e){return arguments.length?(C=e,k=i=r=o=null,T()):C},x.clipAngle=function(e){return arguments.length?(w=+e?jj(_=e*CE):(_=null,Pj),T()):_*kE},x.clipExtent=function(e){return arguments.length?(C=null==e?(k=i=r=o=null,dA):Dj(k=+e[0][0],i=+e[0][1],r=+e[1][0],o=+e[1][1]),T()):null==k?null:[[k,i],[r,o]]},x.scale=function(e){return arguments.length?(h=+e,M()):h},x.translate=function(e){return arguments.length?(d=+e[0],f=+e[1],M()):[d,f]},x.center=function(e){return arguments.length?(p=e[0]%360*CE,m=e[1]%360*CE,M()):[p*kE,m*kE]},x.rotate=function(e){return arguments.length?(g=e[0]%360*CE,v=e[1]%360*CE,b=e.length>2?e[2]%360*CE:0,M()):[g*kE,v*kE,b*kE]},x.angle=function(e){return arguments.length?(y=e%360*CE,M()):y*kE},x.precision=function(e){return arguments.length?(a=yI(s,S=e*e),T()):DE(S)},x.fitExtent=function(e,t){return pI(x,e,t)},x.fitSize=function(e,t){return mI(x,e,t)},x.fitWidth=function(e,t){return gI(x,e,t)},x.fitHeight=function(e,t){return vI(x,e,t)},function(){return t=e.apply(this,arguments),x.invert=t.invert&&O,M()}}function xI(e){var t=0,n=bE/3,i=SI(e),r=i(t,n);return r.parallels=function(e){return arguments.length?i(t=e[0]*CE,n=e[1]*CE):[t*kE,n*kE]},r}function OI(e,t){var n=AE(e),i=(n+AE(t))/2;if(SE(i)<vE)return function(e){var t=ME(e);function n(e,n){return[e*t,AE(n)/t]}return n.invert=function(e,n){return[e/t,FE(n*t)]},n}(e);var r=1+n*(2*i-n),o=DE(r)/i;function a(e,t){var n=DE(r-2*i*AE(t))/i;return[n*AE(e*=i),o-n*ME(e)]}return a.invert=function(e,t){var n=o-t;return[OE(e,SE(n))/i*IE(n),FE((r-(e*e+n*n)*i*i)/(2*i))]},a}var MI=function(){return xI(OI).scale(155.424).center([0,33.6442])},TI=function(){return MI().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},EI=function(){var e,t,n,i,r,o,a=TI(),s=MI().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=MI().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,t){o=[e,t]}};function u(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(i.point(t,a),o)||(r.point(t,a),o)}function h(){return e=t=null,u}return u.invert=function(e){var t=a.scale(),n=a.translate(),i=(e[0]-n[0])/t,r=(e[1]-n[1])/t;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?s:r>=.166&&r<.234&&i>=-.214&&i<-.115?c:a).invert(e)},u.stream=function(n){return e&&t===n?e:(i=[a.stream(t=n),s.stream(n),c.stream(n)],r=i.length,e={point:function(e,t){for(var n=-1;++n<r;)i[n].point(e,t)},sphere:function(){for(var e=-1;++e<r;)i[e].sphere()},lineStart:function(){for(var e=-1;++e<r;)i[e].lineStart()},lineEnd:function(){for(var e=-1;++e<r;)i[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<r;)i[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<r;)i[e].polygonEnd()}});var i,r},u.precision=function(e){return arguments.length?(a.precision(e),s.precision(e),c.precision(e),h()):a.precision()},u.scale=function(e){return arguments.length?(a.scale(e),s.scale(.35*e),c.scale(e),u.translate(a.translate())):a.scale()},u.translate=function(e){if(!arguments.length)return a.translate();var t=a.scale(),o=+e[0],u=+e[1];return n=a.translate(e).clipExtent([[o-.455*t,u-.238*t],[o+.455*t,u+.238*t]]).stream(l),i=s.translate([o-.307*t,u+.201*t]).clipExtent([[o-.425*t+vE,u+.12*t+vE],[o-.214*t-vE,u+.234*t-vE]]).stream(l),r=c.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+vE,u+.166*t+vE],[o-.115*t-vE,u+.234*t-vE]]).stream(l),h()},u.fitExtent=function(e,t){return pI(u,e,t)},u.fitSize=function(e,t){return mI(u,e,t)},u.fitWidth=function(e,t){return gI(u,e,t)},u.fitHeight=function(e,t){return vI(u,e,t)},u.scale(1070)};function PI(e){return function(t,n){var i=ME(t),r=ME(n),o=e(i*r);return[o*r*AE(t),o*AE(n)]}}function jI(e){return function(t,n){var i=DE(t*t+n*n),r=e(i),o=AE(r),a=ME(r);return[OE(t*o,i*a),FE(i&&n*o/i)]}}var AI=PI((function(e){return DE(2/(1+e))}));AI.invert=jI((function(e){return 2*FE(e/2)}));var II=function(){return CI(AI).scale(124.75).clipAngle(179.999)},DI=PI((function(e){return(e=LE(e))&&e/AE(e)}));DI.invert=jI((function(e){return e}));var RI=function(){return CI(DI).scale(79.4188).clipAngle(179.999)};function LI(e,t){return[e,PE(RE((yE+t)/2))]}LI.invert=function(e,t){return[e,2*xE(EE(t))-yE]};var FI=function(){return NI(LI).scale(961/wE)};function NI(e){var t,n,i,r=CI(e),o=r.center,a=r.scale,s=r.translate,c=r.clipExtent,l=null;function u(){var o=bE*a(),s=r(gj(r.rotate()).invert([0,0]));return c(null==l?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===LI?[[Math.max(s[0]-o,l),t],[Math.min(s[0]+o,n),i]]:[[l,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,i)]])}return r.scale=function(e){return arguments.length?(a(e),u()):a()},r.translate=function(e){return arguments.length?(s(e),u()):s()},r.center=function(e){return arguments.length?(o(e),u()):o()},r.clipExtent=function(e){return arguments.length?(null==e?l=t=n=i=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],i=+e[1][1]),u()):null==l?null:[[l,t],[n,i]]},u()}function BI(e){return RE((yE+e)/2)}function HI(e,t){var n=ME(e),i=e===t?AE(e):PE(n/ME(t))/PE(BI(t)/BI(e)),r=n*jE(BI(e),i)/i;if(!i)return LI;function o(e,t){r>0?t<-yE+vE&&(t=-yE+vE):t>yE-vE&&(t=yE-vE);var n=r/jE(BI(t),i);return[n*AE(i*e),r-n*ME(i*e)]}return o.invert=function(e,t){var n=r-t,o=IE(i)*DE(e*e+n*n);return[OE(e,SE(n))/i*IE(n),2*xE(jE(r/o,1/i))-yE]},o}var zI=function(){return xI(HI).scale(109.5).parallels([30,30])};function VI(e,t){return[e,t]}VI.invert=VI;var qI=function(){return CI(VI).scale(152.63)};function UI(e,t){var n=ME(e),i=e===t?AE(e):(n-ME(t))/(t-e),r=n/i+e;if(SE(i)<vE)return VI;function o(e,t){var n=r-t,o=i*e;return[n*AE(o),r-n*ME(o)]}return o.invert=function(e,t){var n=r-t;return[OE(e,SE(n))/i*IE(n),r-IE(i)*DE(e*e+n*n)]},o}var GI=function(){return xI(UI).scale(131.154).center([0,13.9389])};function WI(e,t){var n=ME(t),i=ME(e)*n;return[n*AE(e)/i,AE(t)/i]}WI.invert=jI(xE);var KI=function(){return CI(WI).scale(144.049).clipAngle(60)};function XI(e,t,n,i){return 1===e&&1===t&&0===n&&0===i?dA:hI({point:function(r,o){this.stream.point(r*e+n,o*t+i)}})}var YI=function(){var e,t,n,i,r,o,a=1,s=0,c=0,l=1,u=1,h=dA,d=null,f=dA;function p(){return i=r=null,o}return o={stream:function(e){return i&&r===e?i:i=h(f(r=e))},postclip:function(i){return arguments.length?(f=i,d=e=t=n=null,p()):f},clipExtent:function(i){return arguments.length?(f=null==i?(d=e=t=n=null,dA):Dj(d=+i[0][0],e=+i[0][1],t=+i[1][0],n=+i[1][1]),p()):null==d?null:[[d,e],[t,n]]},scale:function(e){return arguments.length?(h=XI((a=+e)*l,a*u,s,c),p()):a},translate:function(e){return arguments.length?(h=XI(a*l,a*u,s=+e[0],c=+e[1]),p()):[s,c]},reflectX:function(e){return arguments.length?(h=XI(a*(l=e?-1:1),a*u,s,c),p()):l<0},reflectY:function(e){return arguments.length?(h=XI(a*l,a*(u=e?-1:1),s,c),p()):u<0},fitExtent:function(e,t){return pI(o,e,t)},fitSize:function(e,t){return mI(o,e,t)},fitWidth:function(e,t){return gI(o,e,t)},fitHeight:function(e,t){return vI(o,e,t)}}};function ZI(e,t){var n=t*t,i=n*n;return[e*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),t*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}ZI.invert=function(e,t){var n,i=t,r=25;do{var o=i*i,a=o*o;i-=n=(i*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(SE(n)>vE&&--r>0);return[e/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};var QI=function(){return CI(ZI).scale(175.295)};function $I(e,t){return[ME(t)*AE(e),AE(t)]}$I.invert=jI(FE);var JI=function(){return CI($I).scale(249.5).clipAngle(90.000001)};function eD(e,t){var n=ME(t),i=1+ME(e)*n;return[n*AE(e)/i,AE(t)/i]}eD.invert=jI((function(e){return 2*xE(e)}));var tD=function(){return CI(eD).scale(250).clipAngle(142)};function nD(e,t){return[PE(RE((yE+t)/2)),-e]}nD.invert=function(e,t){return[-t,2*xE(EE(e))-yE]};var iD=function(){var e=NI(nD),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function rD(e,t){return e.parent===t.parent?1:2}function oD(e,t){return e+t.x}function aD(e,t){return Math.max(e,t.y)}var sD=function(){var e=rD,t=1,n=1,i=!1;function r(r){var o,a=0;r.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(oD,0)/e.length}(n),t.y=function(e){return 1+e.reduce(aD,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(r),c=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),l=s.x-e(s,c)/2,u=c.x+e(c,s)/2;return r.eachAfter(i?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-l)/(u-l)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r};function cD(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function lD(e,t){var n,i,r,o,a,s=new fD(e),c=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=uD);n=l.pop();)if(c&&(n.value=+n.data.value),(r=t(n.data))&&(a=r.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(i=n.children[o]=new fD(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(dD)}function uD(e){return e.children}function hD(e){e.data=e.data.data}function dD(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function fD(e){this.data=e,this.depth=this.height=0,this.parent=null}fD.prototype=lD.prototype={constructor:fD,count:function(){return this.eachAfter(cD)},each:function(e){var t,n,i,r,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i])}while(a.length);return this},eachAfter:function(e){for(var t,n,i,r=this,o=[r],a=[];r=o.pop();)if(a.push(r),t=r.children)for(n=0,i=t.length;n<i;++n)o.push(t[n]);for(;r=a.pop();)e(r);return this},eachBefore:function(e){for(var t,n,i=this,r=[i];i=r.pop();)if(e(i),t=i.children)for(n=t.length-1;n>=0;--n)r.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;for(e=n.pop(),t=i.pop();e===t;)r=e,e=n.pop(),t=i.pop();return r}(t,e),i=[t];t!==n;)i.push(t=t.parent);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return lD(this).eachBefore(hD)}};var pD=Array.prototype.slice,mD=function(e){for(var t,n,i=0,r=(e=function(e){for(var t,n,i=e.length;i;)n=Math.random()*i--|0,t=e[i],e[i]=e[n],e[n]=t;return e}(pD.call(e))).length,o=[];i<r;)t=e[i],n&&bD(n,t)?++i:(n=_D(o=gD(o,t)),i=0);return n};function gD(e,t){var n,i;if(yD(t,e))return[t];for(n=0;n<e.length;++n)if(vD(t,e[n])&&yD(wD(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(i=n+1;i<e.length;++i)if(vD(wD(e[n],e[i]),t)&&vD(wD(e[n],t),e[i])&&vD(wD(e[i],t),e[n])&&yD(kD(e[n],e[i],t),e))return[e[n],e[i],t];throw new Error}function vD(e,t){var n=e.r-t.r,i=t.x-e.x,r=t.y-e.y;return n<0||n*n<i*i+r*r}function bD(e,t){var n=e.r-t.r+1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function yD(e,t){for(var n=0;n<t.length;++n)if(!bD(e,t[n]))return!1;return!0}function _D(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return wD(e[0],e[1]);case 3:return kD(e[0],e[1],e[2])}var t}function wD(e,t){var n=e.x,i=e.y,r=e.r,o=t.x,a=t.y,s=t.r,c=o-n,l=a-i,u=s-r,h=Math.sqrt(c*c+l*l);return{x:(n+o+c/h*u)/2,y:(i+a+l/h*u)/2,r:(h+r+s)/2}}function kD(e,t,n){var i=e.x,r=e.y,o=e.r,a=t.x,s=t.y,c=t.r,l=n.x,u=n.y,h=n.r,d=i-a,f=i-l,p=r-s,m=r-u,g=c-o,v=h-o,b=i*i+r*r-o*o,y=b-a*a-s*s+c*c,_=b-l*l-u*u+h*h,w=f*p-d*m,k=(p*_-m*y)/(2*w)-i,C=(m*g-p*v)/w,S=(f*y-d*_)/(2*w)-r,x=(d*v-f*g)/w,O=C*C+x*x-1,M=2*(o+k*C+S*x),T=k*k+S*S-o*o,E=-(O?(M+Math.sqrt(M*M-4*O*T))/(2*O):T/M);return{x:i+k+C*E,y:r+S+x*E,r:E}}function CD(e,t,n){var i,r,o,a,s=e.x-t.x,c=e.y-t.y,l=s*s+c*c;l?(r=t.r+n.r,a=e.r+n.r,(r*=r)>(a*=a)?(i=(l+a-r)/(2*l),o=Math.sqrt(Math.max(0,a/l-i*i)),n.x=e.x-i*s-o*c,n.y=e.y-i*c+o*s):(i=(l+r-a)/(2*l),o=Math.sqrt(Math.max(0,r/l-i*i)),n.x=t.x+i*s-o*c,n.y=t.y+i*c+o*s)):(n.x=t.x+n.r,n.y=t.y)}function SD(e,t){var n=e.r+t.r-1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function xD(e){var t=e._,n=e.next._,i=t.r+n.r,r=(t.x*n.r+n.x*t.r)/i,o=(t.y*n.r+n.y*t.r)/i;return r*r+o*o}function OD(e){this._=e,this.next=null,this.previous=null}function MD(e){if(!(r=e.length))return 0;var t,n,i,r,o,a,s,c,l,u,h;if((t=e[0]).x=0,t.y=0,!(r>1))return t.r;if(t.x=-(n=e[1]).r,n.x=t.r,n.y=0,!(r>2))return t.r+n.r;CD(n,t,i=e[2]),t=new OD(t),n=new OD(n),i=new OD(i),t.next=i.previous=n,n.next=t.previous=i,i.next=n.previous=t;e:for(s=3;s<r;++s){CD(t._,n._,i=e[s]),i=new OD(i),c=n.next,l=t.previous,u=n._.r,h=t._.r;do{if(u<=h){if(SD(c._,i._)){t.next=n=c,n.previous=t,--s;continue e}u+=c._.r,c=c.next}else{if(SD(l._,i._)){(t=l).next=n,n.previous=t,--s;continue e}h+=l._.r,l=l.previous}}while(c!==l.next);for(i.previous=t,i.next=n,t.next=n.previous=n=i,o=xD(t);(i=i.next)!==n;)(a=xD(i))<o&&(t=i,o=a);n=t.next}for(t=[n._],i=n;(i=i.next)!==n;)t.push(i._);for(i=mD(t),s=0;s<r;++s)(t=e[s]).x-=i.x,t.y-=i.y;return i.r}var TD=function(e){return MD(e),e};function ED(e){return null==e?null:PD(e)}function PD(e){if("function"!=typeof e)throw new Error;return e}function jD(){return 0}var AD=function(e){return function(){return e}};function ID(e){return Math.sqrt(e.value)}var DD=function(){var e=null,t=1,n=1,i=jD;function r(r){return r.x=t/2,r.y=n/2,e?r.eachBefore(RD(e)).eachAfter(LD(i,.5)).eachBefore(FD(1)):r.eachBefore(RD(ID)).eachAfter(LD(jD,1)).eachAfter(LD(i,r.r/Math.min(t,n))).eachBefore(FD(Math.min(t,n)/(2*r.r))),r}return r.radius=function(t){return arguments.length?(e=ED(t),r):e},r.size=function(e){return arguments.length?(t=+e[0],n=+e[1],r):[t,n]},r.padding=function(e){return arguments.length?(i="function"==typeof e?e:AD(+e),r):i},r};function RD(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function LD(e,t){return function(n){if(i=n.children){var i,r,o,a=i.length,s=e(n)*t||0;if(s)for(r=0;r<a;++r)i[r].r+=s;if(o=MD(i),s)for(r=0;r<a;++r)i[r].r-=s;n.r=o+s}}}function FD(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var ND=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},BD=function(e,t,n,i,r){for(var o,a=e.children,s=-1,c=a.length,l=e.value&&(i-t)/e.value;++s<c;)(o=a[s]).y0=n,o.y1=r,o.x0=t,o.x1=t+=o.value*l},HD=function(){var e=1,t=1,n=0,i=!1;function r(r){var o=r.height+1;return r.x0=r.y0=n,r.x1=e,r.y1=t/o,r.eachBefore(function(e,t){return function(i){i.children&&BD(i,i.x0,e*(i.depth+1)/t,i.x1,e*(i.depth+2)/t);var r=i.x0,o=i.y0,a=i.x1-n,s=i.y1-n;a<r&&(r=a=(r+a)/2),s<o&&(o=s=(o+s)/2),i.x0=r,i.y0=o,i.x1=a,i.y1=s}}(t,o)),i&&r.eachBefore(ND),r}return r.round=function(e){return arguments.length?(i=!!e,r):i},r.size=function(n){return arguments.length?(e=+n[0],t=+n[1],r):[e,t]},r.padding=function(e){return arguments.length?(n=+e,r):n},r},zD={depth:-1},VD={};function qD(e){return e.id}function UD(e){return e.parentId}var GD=function(){var e=qD,t=UD;function n(n){var i,r,o,a,s,c,l,u=n.length,h=new Array(u),d={};for(r=0;r<u;++r)s=h[r]=new fD(i=n[r]),null!=(c=e(i,r,n))&&(c+="")&&(d[l="$"+(s.id=c)]=l in d?VD:s);for(r=0;r<u;++r)if(s=h[r],null!=(c=t(n[r],r,n))&&(c+="")){if(!(a=d["$"+c]))throw new Error("missing: "+c);if(a===VD)throw new Error("ambiguous: "+c);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=zD,o.eachBefore((function(e){e.depth=e.parent.depth+1,--u})).eachBefore(dD),o.parent=null,u>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=PD(t),n):e},n.parentId=function(e){return arguments.length?(t=PD(e),n):t},n};function WD(e,t){return e.parent===t.parent?1:2}function KD(e){var t=e.children;return t?t[0]:e.t}function XD(e){var t=e.children;return t?t[t.length-1]:e.t}function YD(e,t,n){var i=n/(t.i-e.i);t.c-=i,t.s+=n,e.c+=i,t.z+=n,t.m+=n}function ZD(e,t,n){return e.a.parent===t.parent?e.a:n}function QD(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}QD.prototype=Object.create(fD.prototype);var $D=function(){var e=WD,t=1,n=1,i=null;function r(r){var c=function(e){for(var t,n,i,r,o,a=new QD(e,0),s=[a];t=s.pop();)if(i=t._.children)for(t.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=t.children[r]=new QD(i[r],r)),n.parent=t;return(a.parent=new QD(null,0)).children=[a],a}(r);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),i)r.eachBefore(s);else{var l=r,u=r,h=r;r.eachBefore((function(e){e.x<l.x&&(l=e),e.x>u.x&&(u=e),e.depth>h.depth&&(h=e)}));var d=l===u?1:e(l,u)/2,f=d-l.x,p=t/(u.x+d+f),m=n/(h.depth||1);r.eachBefore((function(e){e.x=(e.x+f)*p,e.y=e.depth*m}))}return r}function o(t){var n=t.children,i=t.parent.children,r=t.i?i[t.i-1]:null;if(n){!function(e){for(var t,n=0,i=0,r=e.children,o=r.length;--o>=0;)(t=r[o]).z+=n,t.m+=n,n+=t.s+(i+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,n,i){if(n){for(var r,o=t,a=t,s=n,c=o.parent.children[0],l=o.m,u=a.m,h=s.m,d=c.m;s=XD(s),o=KD(o),s&&o;)c=KD(c),(a=XD(a)).a=t,(r=s.z+h-o.z-l+e(s._,o._))>0&&(YD(ZD(s,t,i),t,r),l+=r,u+=r),h+=s.m,l+=o.m,d+=c.m,u+=a.m;s&&!XD(a)&&(a.t=s,a.m+=h-u),o&&!KD(c)&&(c.t=o,c.m+=l-d,i=t)}return i}(t,r,t.parent.A||i[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r},JD=function(e,t,n,i,r){for(var o,a=e.children,s=-1,c=a.length,l=e.value&&(r-n)/e.value;++s<c;)(o=a[s]).x0=t,o.x1=i,o.y0=n,o.y1=n+=o.value*l},eR=(1+Math.sqrt(5))/2;function tR(e,t,n,i,r,o){for(var a,s,c,l,u,h,d,f,p,m,g,v=[],b=t.children,y=0,_=0,w=b.length,k=t.value;y<w;){c=r-n,l=o-i;do{u=b[_++].value}while(!u&&_<w);for(h=d=u,g=u*u*(m=Math.max(l/c,c/l)/(k*e)),p=Math.max(d/g,g/h);_<w;++_){if(u+=s=b[_].value,s<h&&(h=s),s>d&&(d=s),g=u*u*m,(f=Math.max(d/g,g/h))>p){u-=s;break}p=f}v.push(a={value:u,dice:c<l,children:b.slice(y,_)}),a.dice?BD(a,n,i,r,k?i+=l*u/k:o):JD(a,n,i,k?n+=c*u/k:r,o),k-=u,y=_}return v}var nR=function e(t){function n(e,n,i,r,o){tR(t,e,n,i,r,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(eR),iR=function(){var e=nR,t=!1,n=1,i=1,r=[0],o=jD,a=jD,s=jD,c=jD,l=jD;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=i,e.eachBefore(h),r=[0],t&&e.eachBefore(ND),e}function h(t){var n=r[t.depth],i=t.x0+n,u=t.y0+n,h=t.x1-n,d=t.y1-n;h<i&&(i=h=(i+h)/2),d<u&&(u=d=(u+d)/2),t.x0=i,t.y0=u,t.x1=h,t.y1=d,t.children&&(n=r[t.depth+1]=o(t)/2,i+=l(t)-n,u+=a(t)-n,(h-=s(t)-n)<i&&(i=h=(i+h)/2),(d-=c(t)-n)<u&&(u=d=(u+d)/2),e(t,i,u,h,d))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],i=+e[1],u):[n,i]},u.tile=function(t){return arguments.length?(e=PD(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:AD(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(a="function"==typeof e?e:AD(+e),u):a},u.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:AD(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c="function"==typeof e?e:AD(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l="function"==typeof e?e:AD(+e),u):l},u},rR=function(e,t,n,i,r){var o,a,s=e.children,c=s.length,l=new Array(c+1);for(l[0]=a=o=0;o<c;++o)l[o+1]=a+=s[o].value;!function e(t,n,i,r,o,a,c){if(t>=n-1){var u=s[t];return u.x0=r,u.y0=o,u.x1=a,void(u.y1=c)}for(var h=l[t],d=i/2+h,f=t+1,p=n-1;f<p;){var m=f+p>>>1;l[m]<d?f=m+1:p=m}d-l[f-1]<l[f]-d&&t+1<f&&--f;var g=l[f]-h,v=i-g;if(a-r>c-o){var b=(r*v+a*g)/i;e(t,f,g,r,o,b,c),e(f,n,v,b,o,a,c)}else{var y=(o*v+c*g)/i;e(t,f,g,r,o,a,y),e(f,n,v,r,y,a,c)}}(0,c,e.value,t,n,i,r)},oR=function(e,t,n,i,r){(1&e.depth?JD:BD)(e,t,n,i,r)},aR=function e(t){function n(e,n,i,r,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,c,l,u,h=-1,d=a.length,f=e.value;++h<d;){for(c=(s=a[h]).children,l=s.value=0,u=c.length;l<u;++l)s.value+=c[l].value;s.dice?BD(s,n,i,r,i+=(o-i)*s.value/f):JD(s,n,i,n+=(r-n)*s.value/f,o),f-=s.value}else e._squarify=a=tR(t,e,n,i,r,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(eR),sR=function(e){for(var t,n=-1,i=e.length,r=e[i-1],o=0;++n<i;)o+=(t=r)[1]*(r=e[n])[0]-t[0]*r[1];return o/2},cR=function(e){for(var t,n,i=-1,r=e.length,o=0,a=0,s=e[r-1],c=0;++i<r;)c+=n=(t=s)[0]*(s=e[i])[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o/(c*=3),a/c]};function lR(e,t){return e[0]-t[0]||e[1]-t[1]}function uR(e){for(var t,n,i,r=e.length,o=[0,1],a=2,s=2;s<r;++s){for(;a>1&&((n=e[o[a-1]])[0]-(t=e[o[a-2]])[0])*((i=e[s])[1]-t[1])-(n[1]-t[1])*(i[0]-t[0])<=0;)--a;o[a++]=s}return o.slice(0,a)}var hR=function(e){if((n=e.length)<3)return null;var t,n,i=new Array(n),r=new Array(n);for(t=0;t<n;++t)i[t]=[+e[t][0],+e[t][1],t];for(i.sort(lR),t=0;t<n;++t)r[t]=[i[t][0],-i[t][1]];var o=uR(i),a=uR(r),s=a[0]===o[0],c=a[a.length-1]===o[o.length-1],l=[];for(t=o.length-1;t>=0;--t)l.push(e[i[o[t]][2]]);for(t=+s;t<a.length-c;++t)l.push(e[i[a[t]][2]]);return l},dR=function(e,t){for(var n,i,r=e.length,o=e[r-1],a=t[0],s=t[1],c=o[0],l=o[1],u=!1,h=0;h<r;++h)n=(o=e[h])[0],(i=o[1])>s!=l>s&&a<(c-n)*(s-i)/(l-i)+n&&(u=!u),c=n,l=i;return u},fR=function(e){for(var t,n,i=-1,r=e.length,o=e[r-1],a=o[0],s=o[1],c=0;++i<r;)t=a,n=s,t-=a=(o=e[i])[0],n-=s=o[1],c+=Math.sqrt(t*t+n*n);return c},pR=function(){return Math.random()},mR=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(pR),gR=function e(t){function n(e,n){var i,r;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=i)o=i,i=null;else do{i=2*t()-1,o=2*t()-1,r=i*i+o*o}while(!r||r>1);return e+n*o*Math.sqrt(-2*Math.log(r)/r)}}return n.source=e,n}(pR),vR=function e(t){function n(){var e=gR.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(pR),bR=function e(t){function n(e){return function(){for(var n=0,i=0;i<e;++i)n+=t();return n}}return n.source=e,n}(pR),yR=function e(t){function n(e){var n=bR.source(t)(e);return function(){return n()/e}}return n.source=e,n}(pR),_R=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(pR),wR=Array.prototype,kR=wR.map,CR=wR.slice,SR={name:"implicit"};function xR(e){var t=eM(),n=[],i=SR;function r(r){var o=r+"",a=t.get(o);if(!a){if(i!==SR)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return e=null==e?[]:CR.call(e),r.domain=function(e){if(!arguments.length)return n.slice();n=[],t=eM();for(var i,o,a=-1,s=e.length;++a<s;)t.has(o=(i=e[a])+"")||t.set(o,n.push(i));return r},r.range=function(t){return arguments.length?(e=CR.call(t),r):e.slice()},r.unknown=function(e){return arguments.length?(i=e,r):i},r.copy=function(){return xR().domain(n).range(e).unknown(i)},r}function OR(){var e,t,n=xR().unknown(void 0),i=n.domain,r=n.range,o=[0,1],a=!1,s=0,c=0,l=.5;function u(){var n=i().length,u=o[1]<o[0],h=o[u-0],d=o[1-u];e=(d-h)/Math.max(1,n-s+2*c),a&&(e=Math.floor(e)),h+=(d-h-e*(n-s))*l,t=e*(1-s),a&&(h=Math.round(h),t=Math.round(t));var f=q_(n).map((function(t){return h+e*t}));return r(u?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),u()):i()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],u()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(s=c=Math.max(0,Math.min(1,e)),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),u()):s},n.paddingOuter=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),u()):l},n.copy=function(){return OR().domain(i()).range(o).round(a).paddingInner(s).paddingOuter(c).align(l)},u()}function MR(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(OR().paddingInner(1))}var TR=function(e){return function(){return e}},ER=function(e){return+e},PR=[0,1];function jR(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:TR(t)}function AR(e,t,n,i){var r=e[0],o=e[1],a=t[0],s=t[1];return o<r?(r=n(o,r),a=i(s,a)):(r=n(r,o),a=i(a,s)),function(e){return a(r(e))}}function IR(e,t,n,i){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)o[s]=n(e[s],e[s+1]),a[s]=i(t[s],t[s+1]);return function(t){var n=E_(e,t,1,r)-1;return a[n](o[n](t))}}function DR(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function RR(e,t){var n,i,r,o=PR,a=PR,s=PS,c=!1;function l(){return n=Math.min(o.length,a.length)>2?IR:AR,i=r=null,u}function u(t){return(i||(i=n(o,a,c?function(e){return function(t,n){var i=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:i(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(r||(r=n(a,o,jR,c?function(e){return function(t,n){var i=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:i(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(o=kR.call(e,ER),l()):o.slice()},u.range=function(e){return arguments.length?(a=CR.call(e),l()):a.slice()},u.rangeRound=function(e){return a=CR.call(e),s=jS,l()},u.clamp=function(e){return arguments.length?(c=!!e,l()):c},u.interpolate=function(e){return arguments.length?(s=e,l()):s},l()}function LR(e){var t=e.domain;return e.ticks=function(e){var n=t();return K_(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var i,r=e[0],o=e[e.length-1],a=Y_(r,o,null==t?10:t);switch((n=tE(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(r),Math.abs(o));return null!=n.precision||isNaN(i=hE(a,s))||(n.precision=i),oE(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=dE(a,Math.max(Math.abs(r),Math.abs(o))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=uE(a))||(n.precision=i-2*("%"===n.type))}return rE(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var i,r=t(),o=0,a=r.length-1,s=r[o],c=r[a];return c<s&&(i=s,s=c,c=i,i=o,o=a,a=i),(i=X_(s,c,n))>0?i=X_(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,n):i<0&&(i=X_(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,n)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(c/i)*i,t(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(c*i)/i,t(r)),e},e}function FR(){var e=RR(jR,xS);return e.copy=function(){return DR(e,FR())},LR(e)}function NR(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=kR.call(n,ER),t):e.slice()},t.copy=function(){return NR().domain(e)},LR(t)}var BR=function(e,t){var n,i=0,r=(e=e.slice()).length-1,o=e[i],a=e[r];return a<o&&(n=i,i=r,r=n,n=o,o=a,a=n),e[i]=t.floor(o),e[r]=t.ceil(a),e};function HR(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:TR(t)}function zR(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function VR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function qR(e){return 10===e?VR:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function UR(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function GR(e){return function(t){return-e(-t)}}function WR(){var e=RR(HR,zR).domain([1,10]),t=e.domain,n=10,i=UR(10),r=qR(10);function o(){return i=UR(n),r=qR(n),t()[0]<0&&(i=GR(i),r=GR(r)),e}return e.base=function(e){return arguments.length?(n=+e,o()):n},e.domain=function(e){return arguments.length?(t(e),o()):t()},e.ticks=function(e){var o,a=t(),s=a[0],c=a[a.length-1];(o=c<s)&&(d=s,s=c,c=d);var l,u,h,d=i(s),f=i(c),p=null==e?10:+e,m=[];if(!(n%1)&&f-d<p){if(d=Math.round(d)-1,f=Math.round(f)+1,s>0){for(;d<f;++d)for(u=1,l=r(d);u<n;++u)if(!((h=l*u)<s)){if(h>c)break;m.push(h)}}else for(;d<f;++d)for(u=n-1,l=r(d);u>=1;--u)if(!((h=l*u)<s)){if(h>c)break;m.push(h)}}else m=K_(d,f,Math.min(f-d,p)).map(r);return o?m.reverse():m},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=rE(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/r(Math.round(i(e)));return t*n<n-.5&&(t*=n),t<=a?o(e):""}},e.nice=function(){return t(BR(t(),{floor:function(e){return r(Math.floor(i(e)))},ceil:function(e){return r(Math.ceil(i(e)))}}))},e.copy=function(){return DR(e,WR().base(n))},e}function KR(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function XR(){var e=1,t=RR((function(t,n){return(n=KR(n,e)-(t=KR(t,e)))?function(i){return(KR(i,e)-t)/n}:TR(n)}),(function(t,n){return n=KR(n,e)-(t=KR(t,e)),function(i){return KR(t+n*i,1/e)}})),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return DR(t,XR().exponent(e))},LR(t)}function YR(){return XR().exponent(.5)}function ZR(){var e=[],t=[],n=[];function i(){var i=0,o=Math.max(1,t.length);for(n=new Array(o-1);++i<o;)n[i-1]=$_(e,i/o);return r}function r(e){if(!isNaN(e=+e))return t[E_(n,e)]}return r.invertExtent=function(i){var r=t.indexOf(i);return r<0?[NaN,NaN]:[r>0?n[r-1]:e[0],r<n.length?n[r]:e[e.length-1]]},r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,o=t.length;r<o;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort(S_),i()},r.range=function(e){return arguments.length?(t=CR.call(e),i()):t.slice()},r.quantiles=function(){return n.slice()},r.copy=function(){return ZR().domain(e).range(t)},r}function QR(){var e=0,t=1,n=1,i=[.5],r=[0,1];function o(e){if(e<=e)return r[E_(i,e,0,n)]}function a(){var r=-1;for(i=new Array(n);++r<n;)i[r]=((r+1)*t-(r-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[1],a()):[e,t]},o.range=function(e){return arguments.length?(n=(r=CR.call(e)).length-1,a()):r.slice()},o.invertExtent=function(o){var a=r.indexOf(o);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=n?[i[n-1],t]:[i[a-1],i[a]]},o.copy=function(){return QR().domain([e,t]).range(r)},LR(o)}function $R(){var e=[.5],t=[0,1],n=1;function i(i){if(i<=i)return t[E_(e,i,0,n)]}return i.domain=function(r){return arguments.length?(e=CR.call(r),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(r){return arguments.length?(t=CR.call(r),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var i=t.indexOf(n);return[e[i-1],e[i]]},i.copy=function(){return $R().domain(e).range(t)},i}var JR=new Date,eL=new Date;function tL(e,t,n,i){function r(t){return e(t=new Date(+t)),t}return r.floor=r,r.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},r.round=function(e){var t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},r.range=function(n,i,o){var a,s=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<i);return s},r.filter=function(n){return tL((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,i){if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););}))},n&&(r.count=function(t,i){return JR.setTime(+t),eL.setTime(+i),e(JR),e(eL),Math.floor(n(JR,eL))},r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(i?function(t){return i(t)%e==0}:function(t){return r.count(0,t)%e==0}):r:null}),r}var nL=tL((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));nL.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?tL((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):nL:null};var iL=nL,rL=nL.range,oL=1e3,aL=6e4,sL=36e5,cL=864e5,lL=6048e5,uL=tL((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*oL)}),(function(e,t){return(t-e)/oL}),(function(e){return e.getUTCSeconds()})),hL=uL,dL=uL.range,fL=tL((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*oL)}),(function(e,t){e.setTime(+e+t*aL)}),(function(e,t){return(t-e)/aL}),(function(e){return e.getMinutes()})),pL=fL,mL=fL.range,gL=tL((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*oL-e.getMinutes()*aL)}),(function(e,t){e.setTime(+e+t*sL)}),(function(e,t){return(t-e)/sL}),(function(e){return e.getHours()})),vL=gL,bL=gL.range,yL=tL((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aL)/cL}),(function(e){return e.getDate()-1})),_L=yL,wL=yL.range;function kL(e){return tL((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aL)/lL}))}var CL=kL(0),SL=kL(1),xL=kL(2),OL=kL(3),ML=kL(4),TL=kL(5),EL=kL(6),PL=CL.range,jL=SL.range,AL=xL.range,IL=OL.range,DL=ML.range,RL=TL.range,LL=EL.range,FL=tL((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),NL=FL,BL=FL.range,HL=tL((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));HL.every=function(e){return isFinite(e=Math.floor(e))&&e>0?tL((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var zL=HL,VL=HL.range,qL=tL((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*aL)}),(function(e,t){return(t-e)/aL}),(function(e){return e.getUTCMinutes()})),UL=qL,GL=qL.range,WL=tL((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*sL)}),(function(e,t){return(t-e)/sL}),(function(e){return e.getUTCHours()})),KL=WL,XL=WL.range,YL=tL((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/cL}),(function(e){return e.getUTCDate()-1})),ZL=YL,QL=YL.range;function $L(e){return tL((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/lL}))}var JL=$L(0),eF=$L(1),tF=$L(2),nF=$L(3),iF=$L(4),rF=$L(5),oF=$L(6),aF=JL.range,sF=eF.range,cF=tF.range,lF=nF.range,uF=iF.range,hF=rF.range,dF=oF.range,fF=tL((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),pF=fF,mF=fF.range,gF=tL((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));gF.every=function(e){return isFinite(e=Math.floor(e))&&e>0?tL((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var vF=gF,bF=gF.range;function yF(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function _F(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wF(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function kF(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=DF(r),u=RF(r),h=DF(o),d=RF(o),f=DF(a),p=RF(a),m=DF(s),g=RF(s),v=DF(c),b=RF(c),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:tN,e:tN,f:aN,H:nN,I:iN,j:rN,L:oN,m:sN,M:cN,p:function(e){return r[+(e.getHours()>=12)]},Q:LN,s:FN,S:lN,u:uN,U:hN,V:dN,w:fN,W:pN,x:null,X:null,y:mN,Y:gN,Z:vN,"%":RN},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:bN,e:bN,f:CN,H:yN,I:_N,j:wN,L:kN,m:SN,M:xN,p:function(e){return r[+(e.getUTCHours()>=12)]},Q:LN,s:FN,S:ON,u:MN,U:TN,V:EN,w:PN,W:jN,x:null,X:null,y:AN,Y:IN,Z:DN,"%":RN},w={a:function(e,t,n){var i=f.exec(t.slice(n));return i?(e.w=p[i[0].toLowerCase()],n+i[0].length):-1},A:function(e,t,n){var i=h.exec(t.slice(n));return i?(e.w=d[i[0].toLowerCase()],n+i[0].length):-1},b:function(e,t,n){var i=v.exec(t.slice(n));return i?(e.m=b[i[0].toLowerCase()],n+i[0].length):-1},B:function(e,t,n){var i=m.exec(t.slice(n));return i?(e.m=g[i[0].toLowerCase()],n+i[0].length):-1},c:function(e,n,i){return S(e,t,n,i)},d:GF,e:GF,f:QF,H:KF,I:KF,j:WF,L:ZF,m:UF,M:XF,p:function(e,t,n){var i=l.exec(t.slice(n));return i?(e.p=u[i[0].toLowerCase()],n+i[0].length):-1},Q:JF,s:eN,S:YF,u:FF,U:NF,V:BF,w:LF,W:HF,x:function(e,t,i){return S(e,n,t,i)},X:function(e,t,n){return S(e,i,t,n)},y:VF,Y:zF,Z:qF,"%":$F};function k(e,t){return function(n){var i,r,o,a=[],s=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(r=TF[i=e.charAt(++s)])?i=e.charAt(++s):r="e"===i?" ":"0",(o=t[i])&&(i=o(n,r)),a.push(i),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var i,r,o=wF(1900);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=_F(wF(o.y))).getUTCDay(),i=r>4||0===r?eF.ceil(i):eF(i),i=ZL.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=t(wF(o.y))).getDay(),i=r>4||0===r?SL.ceil(i):SL(i),i=_L.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?_F(wF(o.y)).getUTCDay():t(wF(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,_F(o)):t(o)}}function S(e,t,n,i){for(var r,o,a=0,s=t.length,c=n.length;a<s;){if(i>=c)return-1;if(37===(r=t.charCodeAt(a++))){if(r=t.charAt(a++),!(o=w[r in TF?t.charAt(a++):r])||(i=o(e,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return y.x=k(n,y),y.X=k(i,y),y.c=k(t,y),_.x=k(n,_),_.X=k(i,_),_.c=k(t,_),{format:function(e){var t=k(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",yF);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,_F);return t.toString=function(){return e},t}}}var CF,SF,xF,OF,MF,TF={"-":"",_:" ",0:"0"},EF=/^\s*\d+/,PF=/^%/,jF=/[\\^$*+?|[\]().{}]/g;function AF(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(t)+r:r)}function IF(e){return e.replace(jF,"\\$&")}function DF(e){return new RegExp("^(?:"+e.map(IF).join("|")+")","i")}function RF(e){for(var t={},n=-1,i=e.length;++n<i;)t[e[n].toLowerCase()]=n;return t}function LF(e,t,n){var i=EF.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function FF(e,t,n){var i=EF.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function NF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function BF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function HF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function zF(e,t,n){var i=EF.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function VF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function qF(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function UF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function GF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function WF(e,t,n){var i=EF.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function KF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function XF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function YF(e,t,n){var i=EF.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function ZF(e,t,n){var i=EF.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function QF(e,t,n){var i=EF.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function $F(e,t,n){var i=PF.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function JF(e,t,n){var i=EF.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function eN(e,t,n){var i=EF.exec(t.slice(n));return i?(e.Q=1e3*+i[0],n+i[0].length):-1}function tN(e,t){return AF(e.getDate(),t,2)}function nN(e,t){return AF(e.getHours(),t,2)}function iN(e,t){return AF(e.getHours()%12||12,t,2)}function rN(e,t){return AF(1+_L.count(zL(e),e),t,3)}function oN(e,t){return AF(e.getMilliseconds(),t,3)}function aN(e,t){return oN(e,t)+"000"}function sN(e,t){return AF(e.getMonth()+1,t,2)}function cN(e,t){return AF(e.getMinutes(),t,2)}function lN(e,t){return AF(e.getSeconds(),t,2)}function uN(e){var t=e.getDay();return 0===t?7:t}function hN(e,t){return AF(CL.count(zL(e),e),t,2)}function dN(e,t){var n=e.getDay();return e=n>=4||0===n?ML(e):ML.ceil(e),AF(ML.count(zL(e),e)+(4===zL(e).getDay()),t,2)}function fN(e){return e.getDay()}function pN(e,t){return AF(SL.count(zL(e),e),t,2)}function mN(e,t){return AF(e.getFullYear()%100,t,2)}function gN(e,t){return AF(e.getFullYear()%1e4,t,4)}function vN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+AF(t/60|0,"0",2)+AF(t%60,"0",2)}function bN(e,t){return AF(e.getUTCDate(),t,2)}function yN(e,t){return AF(e.getUTCHours(),t,2)}function _N(e,t){return AF(e.getUTCHours()%12||12,t,2)}function wN(e,t){return AF(1+ZL.count(vF(e),e),t,3)}function kN(e,t){return AF(e.getUTCMilliseconds(),t,3)}function CN(e,t){return kN(e,t)+"000"}function SN(e,t){return AF(e.getUTCMonth()+1,t,2)}function xN(e,t){return AF(e.getUTCMinutes(),t,2)}function ON(e,t){return AF(e.getUTCSeconds(),t,2)}function MN(e){var t=e.getUTCDay();return 0===t?7:t}function TN(e,t){return AF(JL.count(vF(e),e),t,2)}function EN(e,t){var n=e.getUTCDay();return e=n>=4||0===n?iF(e):iF.ceil(e),AF(iF.count(vF(e),e)+(4===vF(e).getUTCDay()),t,2)}function PN(e){return e.getUTCDay()}function jN(e,t){return AF(eF.count(vF(e),e),t,2)}function AN(e,t){return AF(e.getUTCFullYear()%100,t,2)}function IN(e,t){return AF(e.getUTCFullYear()%1e4,t,4)}function DN(){return"+0000"}function RN(){return"%"}function LN(e){return+e}function FN(e){return Math.floor(+e/1e3)}function NN(e){return CF=kF(e),SF=CF.format,xF=CF.parse,OF=CF.utcFormat,MF=CF.utcParse,CF}NN({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var BN="%Y-%m-%dT%H:%M:%S.%LZ",HN=Date.prototype.toISOString?function(e){return e.toISOString()}:OF(BN),zN=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:MF(BN),VN=31536e6;function qN(e){return new Date(e)}function UN(e){return e instanceof Date?+e:+new Date(+e)}function GN(e,t,n,i,r,o,a,s,c){var l=RR(jR,xS),u=l.invert,h=l.domain,d=c(".%L"),f=c(":%S"),p=c("%I:%M"),m=c("%I %p"),g=c("%a %d"),v=c("%b %d"),b=c("%B"),y=c("%Y"),_=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,36e5],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,VN]];function w(s){return(a(s)<s?d:o(s)<s?f:r(s)<s?p:i(s)<s?m:t(s)<s?n(s)<s?g:v:e(s)<s?b:y)(s)}function k(t,n,i,r){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(i-n)/t,a=x_((function(e){return e[2]})).right(_,o);a===_.length?(r=Y_(n/VN,i/VN,t),t=e):a?(r=(a=_[o/_[a-1][2]<_[a][2]/o?a-1:a])[1],t=a[0]):(r=Math.max(Y_(n,i,t),1),t=s)}return null==r?t:t.every(r)}return l.invert=function(e){return new Date(u(e))},l.domain=function(e){return arguments.length?h(kR.call(e,UN)):h().map(qN)},l.ticks=function(e,t){var n,i=h(),r=i[0],o=i[i.length-1],a=o<r;return a&&(n=r,r=o,o=n),n=(n=k(e,r,o,t))?n.range(r,o+1):[],a?n.reverse():n},l.tickFormat=function(e,t){return null==t?w:c(t)},l.nice=function(e,t){var n=h();return(e=k(e,n[0],n[n.length-1],t))?h(BR(n,e)):l},l.copy=function(){return DR(l,GN(e,t,n,i,r,o,a,s,c))},l}var WN=function(){return GN(zL,NL,CL,_L,vL,pL,hL,iL,SF).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},KN=function(){return GN(vF,pF,JL,ZL,KL,UL,hL,iL,OF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};function XN(e){var t=0,n=1,i=!1;function r(r){var o=(r-t)/(n-t);return e(i?Math.max(0,Math.min(1,o)):o)}return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],r):[t,n]},r.clamp=function(e){return arguments.length?(i=!!e,r):i},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return XN(e).domain([t,n]).clamp(i)},LR(r)}var YN=function(e){for(var t=e.length/6|0,n=new Array(t),i=0;i<t;)n[i]="#"+e.slice(6*i,6*++i);return n},ZN=YN("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),QN=YN("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),$N=YN("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),JN=YN("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),eB=YN("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),tB=YN("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),nB=YN("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),iB=YN("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),rB=YN("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),oB=function(e){return wS(e[e.length-1])},aB=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(YN),sB=oB(aB),cB=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(YN),lB=oB(cB),uB=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(YN),hB=oB(uB),dB=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(YN),fB=oB(dB),pB=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(YN),mB=oB(pB),gB=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(YN),vB=oB(gB),bB=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(YN),yB=oB(bB),_B=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(YN),wB=oB(_B),kB=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(YN),CB=oB(kB),SB=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(YN),xB=oB(SB),OB=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(YN),MB=oB(OB),TB=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(YN),EB=oB(TB),PB=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(YN),jB=oB(PB),AB=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(YN),IB=oB(AB),DB=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(YN),RB=oB(DB),LB=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(YN),FB=oB(LB),NB=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(YN),BB=oB(NB),HB=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(YN),zB=oB(HB),VB=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(YN),qB=oB(VB),UB=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(YN),GB=oB(UB),WB=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(YN),KB=oB(WB),XB=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(YN),YB=oB(XB),ZB=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(YN),QB=oB(ZB),$B=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(YN),JB=oB($B),eH=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(YN),tH=oB(eH),nH=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(YN),iH=oB(nH),rH=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(YN),oH=oB(rH),aH=$S(aS(300,.5,0),aS(-240,.5,1)),sH=$S(aS(-100,.75,.35),aS(80,1.5,.8)),cH=$S(aS(260,.75,.35),aS(80,1.5,.8)),lH=aS(),uH=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return lH.h=360*e-100,lH.s=1.5-1.5*t,lH.l=.8-.9*t,lH+""};function hH(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var dH=hH(YN("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),fH=hH(YN("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),pH=hH(YN("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mH=hH(YN("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function gH(e,t){return e.each((function(){var e=t.apply(this,arguments),n=Kk(this);for(var i in e)n.attr(i,e[i])}))}function vH(e,t){for(var n in t)e.attr(n,t[n]);return e}function bH(e,t,n){return e.each((function(){var e=t.apply(this,arguments),i=Kk(this);for(var r in e)i.style(r,e[r],n)}))}function yH(e,t,n){for(var i in t)e.style(i,t[i],n);return e}function _H(e,t){return e.each((function(){var e=t.apply(this,arguments),n=Kk(this);for(var i in e)n.property(i,e[i])}))}function wH(e,t){for(var n in t)e.property(n,t[n]);return e}function kH(e,t){return e.each((function(){var n=t.apply(this,arguments),i=Kk(this).transition(e);for(var r in n)i.attr(r,n[r])}))}function CH(e,t){for(var n in t)e.attr(n,t[n]);return e}function SH(e,t,n){return e.each((function(){var i=t.apply(this,arguments),r=Kk(this).transition(e);for(var o in i)r.style(o,i[o],n)}))}function xH(e,t,n){for(var i in t)e.style(i,t[i],n);return e}Wk.prototype.attrs=function(e){return("function"==typeof e?gH:vH)(this,e)},Wk.prototype.styles=function(e,t){return("function"==typeof e?bH:yH)(this,e,null==t?"":t)},Wk.prototype.properties=function(e){return("function"==typeof e?_H:wH)(this,e)},Wx.prototype.attrs=function(e){return("function"==typeof e?kH:CH)(this,e)},Wx.prototype.styles=function(e,t){return("function"==typeof e?SH:xH)(this,e,null==t?"":t)};var OH=function(e){return function(){return e}},MH=Math.abs,TH=Math.atan2,EH=Math.cos,PH=Math.max,jH=Math.min,AH=Math.sin,IH=Math.sqrt,DH=1e-12,RH=Math.PI,LH=RH/2,FH=2*RH;function NH(e){return e>1?0:e<-1?RH:Math.acos(e)}function BH(e){return e>=1?LH:e<=-1?-LH:Math.asin(e)}function HH(e){return e.innerRadius}function zH(e){return e.outerRadius}function VH(e){return e.startAngle}function qH(e){return e.endAngle}function UH(e){return e&&e.padAngle}function GH(e,t,n,i,r,o,a,s){var c=n-e,l=i-t,u=a-r,h=s-o,d=h*c-u*l;if(!(d*d<DH))return[e+(d=(u*(t-o)-h*(e-r))/d)*c,t+d*l]}function WH(e,t,n,i,r,o,a){var s=e-n,c=t-i,l=(a?o:-o)/IH(s*s+c*c),u=l*c,h=-l*s,d=e+u,f=t+h,p=n+u,m=i+h,g=(d+p)/2,v=(f+m)/2,b=p-d,y=m-f,_=b*b+y*y,w=r-o,k=d*m-p*f,C=(y<0?-1:1)*IH(PH(0,w*w*_-k*k)),S=(k*y-b*C)/_,x=(-k*b-y*C)/_,O=(k*y+b*C)/_,M=(-k*b+y*C)/_,T=S-g,E=x-v,P=O-g,j=M-v;return T*T+E*E>P*P+j*j&&(S=O,x=M),{cx:S,cy:x,x01:-u,y01:-h,x11:S*(r/w-1),y11:x*(r/w-1)}}var KH=function(){var e=HH,t=zH,n=OH(0),i=null,r=VH,o=qH,a=UH,s=null;function c(){var c,l,u=+e.apply(this,arguments),h=+t.apply(this,arguments),d=r.apply(this,arguments)-LH,f=o.apply(this,arguments)-LH,p=MH(f-d),m=f>d;if(s||(s=c=UO()),h<u&&(l=h,h=u,u=l),h>DH)if(p>FH-DH)s.moveTo(h*EH(d),h*AH(d)),s.arc(0,0,h,d,f,!m),u>DH&&(s.moveTo(u*EH(f),u*AH(f)),s.arc(0,0,u,f,d,m));else{var g,v,b=d,y=f,_=d,w=f,k=p,C=p,S=a.apply(this,arguments)/2,x=S>DH&&(i?+i.apply(this,arguments):IH(u*u+h*h)),O=jH(MH(h-u)/2,+n.apply(this,arguments)),M=O,T=O;if(x>DH){var E=BH(x/u*AH(S)),P=BH(x/h*AH(S));(k-=2*E)>DH?(_+=E*=m?1:-1,w-=E):(k=0,_=w=(d+f)/2),(C-=2*P)>DH?(b+=P*=m?1:-1,y-=P):(C=0,b=y=(d+f)/2)}var j=h*EH(b),A=h*AH(b),I=u*EH(w),D=u*AH(w);if(O>DH){var R,L=h*EH(y),F=h*AH(y),N=u*EH(_),B=u*AH(_);if(p<=FH-DH&&(R=GH(j,A,N,B,L,F,I,D))){var H=j-R[0],z=A-R[1],V=L-R[0],q=F-R[1],U=1/AH(NH((H*V+z*q)/(IH(H*H+z*z)*IH(V*V+q*q)))/2),G=IH(R[0]*R[0]+R[1]*R[1]);M=jH(O,(u-G)/(U-1)),T=jH(O,(h-G)/(U+1))}}C>DH?T>DH?(g=WH(N,B,j,A,h,T,m),v=WH(L,F,I,D,h,T,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),T<O?s.arc(g.cx,g.cy,T,TH(g.y01,g.x01),TH(v.y01,v.x01),!m):(s.arc(g.cx,g.cy,T,TH(g.y01,g.x01),TH(g.y11,g.x11),!m),s.arc(0,0,h,TH(g.cy+g.y11,g.cx+g.x11),TH(v.cy+v.y11,v.cx+v.x11),!m),s.arc(v.cx,v.cy,T,TH(v.y11,v.x11),TH(v.y01,v.x01),!m))):(s.moveTo(j,A),s.arc(0,0,h,b,y,!m)):s.moveTo(j,A),u>DH&&k>DH?M>DH?(g=WH(I,D,L,F,u,-M,m),v=WH(j,A,N,B,u,-M,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<O?s.arc(g.cx,g.cy,M,TH(g.y01,g.x01),TH(v.y01,v.x01),!m):(s.arc(g.cx,g.cy,M,TH(g.y01,g.x01),TH(g.y11,g.x11),!m),s.arc(0,0,u,TH(g.cy+g.y11,g.cx+g.x11),TH(v.cy+v.y11,v.cx+v.x11),m),s.arc(v.cx,v.cy,M,TH(v.y11,v.x11),TH(v.y01,v.x01),!m))):s.arc(0,0,u,w,_,m):s.lineTo(I,D)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-RH/2;return[EH(i)*n,AH(i)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:OH(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:OH(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:OH(+e),c):n},c.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:OH(+e),c):i},c.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:OH(+e),c):r},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:OH(+e),c):o},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:OH(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c};function XH(e){this._context=e}XH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var YH=function(e){return new XH(e)};function ZH(e){return e[0]}function QH(e){return e[1]}var $H=function(){var e=ZH,t=QH,n=OH(!0),i=null,r=YH,o=null;function a(a){var s,c,l,u=a.length,h=!1;for(null==i&&(o=r(l=UO())),s=0;s<=u;++s)!(s<u&&n(c=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,s,a),+t(c,s,a));if(l)return o=null,l+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:OH(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:OH(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:OH(!!e),a):n},a.curve=function(e){return arguments.length?(r=e,null!=i&&(o=r(i)),a):r},a.context=function(e){return arguments.length?(null==e?i=o=null:o=r(i=e),a):i},a},JH=function(){var e=ZH,t=null,n=OH(0),i=QH,r=OH(!0),o=null,a=YH,s=null;function c(c){var l,u,h,d,f,p=c.length,m=!1,g=new Array(p),v=new Array(p);for(null==o&&(s=a(f=UO())),l=0;l<=p;++l){if(!(l<p&&r(d=c[l],l,c))===m)if(m=!m)u=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=l-1;h>=u;--h)s.point(g[h],v[h]);s.lineEnd(),s.areaEnd()}m&&(g[l]=+e(d,l,c),v[l]=+n(d,l,c),s.point(t?+t(d,l,c):g[l],i?+i(d,l,c):v[l]))}if(f)return s=null,f+""||null}function l(){return $H().defined(r).curve(a).context(o)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:OH(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:OH(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:OH(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:OH(+e),i=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:OH(+e),c):n},c.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:OH(+e),c):i},c.lineX0=c.lineY0=function(){return l().x(e).y(n)},c.lineY1=function(){return l().x(e).y(i)},c.lineX1=function(){return l().x(t).y(n)},c.defined=function(e){return arguments.length?(r="function"==typeof e?e:OH(!!e),c):r},c.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),c):a},c.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),c):o},c},ez=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},tz=function(e){return e},nz=function(){var e=tz,t=ez,n=null,i=OH(0),r=OH(FH),o=OH(0);function a(a){var s,c,l,u,h,d=a.length,f=0,p=new Array(d),m=new Array(d),g=+i.apply(this,arguments),v=Math.min(FH,Math.max(-FH,r.apply(this,arguments)-g)),b=Math.min(Math.abs(v)/d,o.apply(this,arguments)),y=b*(v<0?-1:1);for(s=0;s<d;++s)(h=m[p[s]=s]=+e(a[s],s,a))>0&&(f+=h);for(null!=t?p.sort((function(e,n){return t(m[e],m[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),s=0,l=f?(v-d*y)/f:0;s<d;++s,g=u)m[c=p[s]]={data:a[c],index:s,value:h=m[c],startAngle:g,endAngle:u=g+(h>0?h*l:0)+y,padAngle:b};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:OH(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:OH(+e),a):i},a.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:OH(+e),a):r},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:OH(+e),a):o},a},iz=oz(YH);function rz(e){this._curve=e}function oz(e){function t(t){return new rz(e(t))}return t._curve=e,t}function az(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(oz(e)):t()._curve},e}rz.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var sz=function(){return az($H().curve(iz))},cz=function(){var e=JH().curve(iz),t=e.curve,n=e.lineX0,i=e.lineX1,r=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return az(n())},delete e.lineX0,e.lineEndAngle=function(){return az(i())},delete e.lineX1,e.lineInnerRadius=function(){return az(r())},delete e.lineY0,e.lineOuterRadius=function(){return az(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(oz(e)):t()._curve},e},lz=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},uz=Array.prototype.slice;function hz(e){return e.source}function dz(e){return e.target}function fz(e){var t=hz,n=dz,i=ZH,r=QH,o=null;function a(){var a,s=uz.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(o||(o=a=UO()),e(o,+i.apply(this,(s[0]=c,s)),+r.apply(this,s),+i.apply(this,(s[0]=l,s)),+r.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(i="function"==typeof e?e:OH(+e),a):i},a.y=function(e){return arguments.length?(r="function"==typeof e?e:OH(+e),a):r},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function pz(e,t,n,i,r){e.moveTo(t,n),e.bezierCurveTo(t=(t+i)/2,n,t,r,i,r)}function mz(e,t,n,i,r){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+r)/2,i,n,i,r)}function gz(e,t,n,i,r){var o=lz(t,n),a=lz(t,n=(n+r)/2),s=lz(i,n),c=lz(i,r);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],c[0],c[1])}function vz(){return fz(pz)}function bz(){return fz(mz)}function yz(){var e=fz(gz);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var _z={draw:function(e,t){var n=Math.sqrt(t/RH);e.moveTo(n,0),e.arc(0,0,n,0,FH)}},wz={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},kz=Math.sqrt(1/3),Cz=2*kz,Sz={draw:function(e,t){var n=Math.sqrt(t/Cz),i=n*kz;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},xz=Math.sin(RH/10)/Math.sin(7*RH/10),Oz=Math.sin(FH/10)*xz,Mz=-Math.cos(FH/10)*xz,Tz={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),i=Oz*n,r=Mz*n;e.moveTo(0,-n),e.lineTo(i,r);for(var o=1;o<5;++o){var a=FH*o/5,s=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-s*n),e.lineTo(s*i-c*r,c*i+s*r)}e.closePath()}},Ez={draw:function(e,t){var n=Math.sqrt(t),i=-n/2;e.rect(i,i,n,n)}},Pz=Math.sqrt(3),jz={draw:function(e,t){var n=-Math.sqrt(t/(3*Pz));e.moveTo(0,2*n),e.lineTo(-Pz*n,-n),e.lineTo(Pz*n,-n),e.closePath()}},Az=-.5,Iz=Math.sqrt(3)/2,Dz=1/Math.sqrt(12),Rz=3*(Dz/2+1),Lz={draw:function(e,t){var n=Math.sqrt(t/Rz),i=n/2,r=n*Dz,o=i,a=n*Dz+n,s=-o,c=a;e.moveTo(i,r),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(Az*i-Iz*r,Iz*i+Az*r),e.lineTo(Az*o-Iz*a,Iz*o+Az*a),e.lineTo(Az*s-Iz*c,Iz*s+Az*c),e.lineTo(Az*i+Iz*r,Az*r-Iz*i),e.lineTo(Az*o+Iz*a,Az*a-Iz*o),e.lineTo(Az*s+Iz*c,Az*c-Iz*s),e.closePath()}},Fz=[_z,wz,Sz,Ez,Tz,jz,Lz],Nz=function(){var e=OH(_z),t=OH(64),n=null;function i(){var i;if(n||(n=i=UO()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return i.type=function(t){return arguments.length?(e="function"==typeof t?t:OH(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:OH(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},Bz=function(){};function Hz(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function zz(e){this._context=e}zz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Hz(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Hz(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Vz=function(e){return new zz(e)};function qz(e){this._context=e}qz.prototype={areaStart:Bz,areaEnd:Bz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Hz(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Uz=function(e){return new qz(e)};function Gz(e){this._context=e}Gz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Hz(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Wz=function(e){return new Gz(e)};function Kz(e,t){this._basis=new zz(e),this._beta=t}Kz.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i,r=e[0],o=t[0],a=e[n]-r,s=t[n]-o,c=-1;++c<=n;)this._basis.point(this._beta*e[c]+(1-this._beta)*(r+(i=c/n)*a),this._beta*t[c]+(1-this._beta)*(o+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Xz=function e(t){function n(e){return 1===t?new zz(e):new Kz(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Yz(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Zz(e,t){this._context=e,this._k=(1-t)/6}Zz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Yz(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Yz(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qz=function e(t){function n(e){return new Zz(e,t)}return n.tension=function(t){return e(+t)},n}(0);function $z(e,t){this._context=e,this._k=(1-t)/6}$z.prototype={areaStart:Bz,areaEnd:Bz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Yz(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Jz=function e(t){function n(e){return new $z(e,t)}return n.tension=function(t){return e(+t)},n}(0);function eV(e,t){this._context=e,this._k=(1-t)/6}eV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yz(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var tV=function e(t){function n(e){return new eV(e,t)}return n.tension=function(t){return e(+t)},n}(0);function nV(e,t,n){var i=e._x1,r=e._y1,o=e._x2,a=e._y2;if(e._l01_a>DH){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,r=(r*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>DH){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(i,r,o,a,e._x2,e._y2)}function iV(e,t){this._context=e,this._alpha=t}iV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:nV(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var rV=function e(t){function n(e){return t?new iV(e,t):new Zz(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function oV(e,t){this._context=e,this._alpha=t}oV.prototype={areaStart:Bz,areaEnd:Bz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:nV(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var aV=function e(t){function n(e){return t?new oV(e,t):new $z(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function sV(e,t){this._context=e,this._alpha=t}sV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nV(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var cV=function e(t){function n(e){return t?new sV(e,t):new eV(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function lV(e){this._context=e}lV.prototype={areaStart:Bz,areaEnd:Bz,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var uV=function(e){return new lV(e)};function hV(e){return e<0?-1:1}function dV(e,t,n){var i=e._x1-e._x0,r=t-e._x1,o=(e._y1-e._y0)/(i||r<0&&-0),a=(n-e._y1)/(r||i<0&&-0),s=(o*r+a*i)/(i+r);return(hV(o)+hV(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function fV(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function pV(e,t,n){var i=e._x0,r=e._x1,o=e._y1,a=(r-i)/3;e._context.bezierCurveTo(i+a,e._y0+a*t,r-a,o-a*n,r,o)}function mV(e){this._context=e}function gV(e){this._context=new vV(e)}function vV(e){this._context=e}function bV(e){return new mV(e)}function yV(e){return new gV(e)}function _V(e){this._context=e}function wV(e){var t,n,i=e.length-1,r=new Array(i),o=new Array(i),a=new Array(i);for(r[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<i-1;++t)r[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(r[i-1]=2,o[i-1]=7,a[i-1]=8*e[i-1]+e[i],t=1;t<i;++t)o[t]-=n=r[t]/o[t-1],a[t]-=n*a[t-1];for(r[i-1]=a[i-1]/o[i-1],t=i-2;t>=0;--t)r[t]=(a[t]-r[t+1])/o[t];for(o[i-1]=(e[i]+r[i-1])/2,t=0;t<i-1;++t)o[t]=2*e[t+1]-r[t+1];return[r,o]}mV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:pV(this,this._t0,fV(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,pV(this,fV(this,n=dV(this,e,t)),n);break;default:pV(this,this._t0,n=dV(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(gV.prototype=Object.create(mV.prototype)).point=function(e,t){mV.prototype.point.call(this,t,e)},vV.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,r,o){this._context.bezierCurveTo(t,e,i,n,o,r)}},_V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var i=wV(e),r=wV(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var kV=function(e){return new _V(e)};function CV(e,t){this._context=e,this._t=t}CV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var SV=function(e){return new CV(e,.5)};function xV(e){return new CV(e,0)}function OV(e){return new CV(e,1)}var MV=function(e,t){if((r=e.length)>1)for(var n,i,r,o=1,a=e[t[0]],s=a.length;o<r;++o)for(i=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]},TV=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function EV(e,t){return e[t]}var PV=function(){var e=OH([]),t=TV,n=MV,i=EV;function r(r){var o,a,s=e.apply(this,arguments),c=r.length,l=s.length,u=new Array(l);for(o=0;o<l;++o){for(var h,d=s[o],f=u[o]=new Array(c),p=0;p<c;++p)f[p]=h=[0,+i(r[p],d,p,r)],h.data=r[p];f.key=d}for(o=0,a=t(u);o<l;++o)u[a[o]].index=o;return n(u,a),u}return r.keys=function(t){return arguments.length?(e="function"==typeof t?t:OH(uz.call(t)),r):e},r.value=function(e){return arguments.length?(i="function"==typeof e?e:OH(+e),r):i},r.order=function(e){return arguments.length?(t=null==e?TV:"function"==typeof e?e:OH(uz.call(e)),r):t},r.offset=function(e){return arguments.length?(n=null==e?MV:e,r):n},r},jV=function(e,t){if((i=e.length)>0){for(var n,i,r,o=0,a=e[0].length;o<a;++o){for(r=n=0;n<i;++n)r+=e[n][o][1]||0;if(r)for(n=0;n<i;++n)e[n][o][1]/=r}MV(e,t)}},AV=function(e,t){if((s=e.length)>1)for(var n,i,r,o,a,s,c=0,l=e[t[0]].length;c<l;++c)for(o=a=0,n=0;n<s;++n)(r=(i=e[t[n]][c])[1]-i[0])>=0?(i[0]=o,i[1]=o+=r):r<0?(i[1]=a,i[0]=a+=r):i[0]=o},IV=function(e,t){if((n=e.length)>0){for(var n,i=0,r=e[t[0]],o=r.length;i<o;++i){for(var a=0,s=0;a<n;++a)s+=e[a][i][1]||0;r[i][1]+=r[i][0]=-s/2}MV(e,t)}},DV=function(e,t){if((r=e.length)>0&&(i=(n=e[t[0]]).length)>0){for(var n,i,r,o=0,a=1;a<i;++a){for(var s=0,c=0,l=0;s<r;++s){for(var u=e[t[s]],h=u[a][1]||0,d=(h-(u[a-1][1]||0))/2,f=0;f<s;++f){var p=e[t[f]];d+=(p[a][1]||0)-(p[a-1][1]||0)}c+=h,l+=d*h}n[a-1][1]+=n[a-1][0]=o,c&&(o-=l/c)}n[a-1][1]+=n[a-1][0]=o,MV(e,t)}},RV=function(e){var t=e.map(LV);return TV(e).sort((function(e,n){return t[e]-t[n]}))};function LV(e){for(var t,n=0,i=-1,r=e.length;++i<r;)(t=+e[i][1])&&(n+=t);return n}var FV=function(e){return RV(e).reverse()},NV=function(e){var t,n,i=e.length,r=e.map(LV),o=TV(e).sort((function(e,t){return r[t]-r[e]})),a=0,s=0,c=[],l=[];for(t=0;t<i;++t)n=o[t],a<s?(a+=r[n],c.push(n)):(s+=r[n],l.push(n));return l.reverse().concat(c)},BV=function(e){return TV(e).reverse()},HV=function(e,t,n){var i=new ux,r=t;return null==t?(i.restart(e,t,n),i):(t=+t,n=null==n?cx():+n,i.restart((function o(a){a+=r,i.restart(o,r+=t,n),e(a)}),t,n),i)},zV=function(e){return function(){return e}};function VV(e){return e[0]}function qV(e){return e[1]}function UV(){this._=null}function GV(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function WV(e,t){var n=t,i=t.R,r=n.U;r?r.L===n?r.L=i:r.R=i:e._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function KV(e,t){var n=t,i=t.L,r=n.U;r?r.L===n?r.L=i:r.R=i:e._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function XV(e){for(;e.L;)e=e.L;return e}UV.prototype={constructor:UV,insert:function(e,t){var n,i,r;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=XV(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,e=i):(e===n.R&&(WV(this,n),n=(e=n).U),n.C=!1,i.C=!0,KV(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,e=i):(e===n.L&&(KV(this,n),n=(e=n).U),n.C=!1,i.C=!0,WV(this,i)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,i,r=e.U,o=e.L,a=e.R;if(n=o?a?XV(a):o:a,r?r.L===e?r.L=n:r.R=n:this._=n,o&&a?(i=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(r=n.U,n.U=e.U,r.L=e=n.R,n.R=a,a.U=n):(n.U=r,r=n,e=n.R)):(i=e.C,e=n),e&&(e.U=r),!i)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===r.L){if((t=r.R).C&&(t.C=!1,r.C=!0,WV(this,r),t=r.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,KV(this,t),t=r.R),t.C=r.C,r.C=t.R.C=!1,WV(this,r),e=this._;break}}else if((t=r.L).C&&(t.C=!1,r.C=!0,KV(this,r),t=r.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,WV(this,t),t=r.L),t.C=r.C,r.C=t.L.C=!1,KV(this,r),e=this._;break}t.C=!0,e=r,r=r.U}while(!e.C);e&&(e.C=!1)}}};var YV=UV;function ZV(e,t,n,i){var r=[null,null],o=_q.push(r)-1;return r.left=e,r.right=t,n&&$V(r,e,t,n),i&&$V(r,t,e,i),bq[e.index].halfedges.push(o),bq[t.index].halfedges.push(o),r}function QV(e,t,n){var i=[t,n];return i.left=e,i}function $V(e,t,n,i){e[0]||e[1]?e.left===n?e[1]=i:e[0]=i:(e[0]=i,e.left=t,e.right=n)}function JV(e,t,n,i,r){var o,a=e[0],s=e[1],c=a[0],l=a[1],u=0,h=1,d=s[0]-c,f=s[1]-l;if(o=t-c,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>u&&(u=o)}if(o=i-c,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<h&&(h=o)}if(o=n-l,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>u&&(u=o)}if(o=r-l,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<h&&(h=o)}return!(u>0||h<1)||(u>0&&(e[0]=[c+u*d,l+u*f]),h<1&&(e[1]=[c+h*d,l+h*f]),!0)}}}}}function eq(e,t,n,i,r){var o=e[1];if(o)return!0;var a,s,c=e[0],l=e.left,u=e.right,h=l[0],d=l[1],f=u[0],p=u[1],m=(h+f)/2;if(p===d){if(m<t||m>=i)return;if(h>f){if(c){if(c[1]>=r)return}else c=[m,n];o=[m,r]}else{if(c){if(c[1]<n)return}else c=[m,r];o=[m,n]}}else if(s=(d+p)/2-(a=(h-f)/(p-d))*m,a<-1||a>1)if(h>f){if(c){if(c[1]>=r)return}else c=[(n-s)/a,n];o=[(r-s)/a,r]}else{if(c){if(c[1]<n)return}else c=[(r-s)/a,r];o=[(n-s)/a,n]}else if(d<p){if(c){if(c[0]>=i)return}else c=[t,a*t+s];o=[i,a*i+s]}else{if(c){if(c[0]<t)return}else c=[i,a*i+s];o=[t,a*t+s]}return e[0]=c,e[1]=o,!0}function tq(e,t){var n=e.site,i=t.left,r=t.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=t[1],r=t[0]):(i=t[0],r=t[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function nq(e,t){return t[+(t.left!==e.site)]}function iq(e,t){return t[+(t.left===e.site)]}var rq,oq=[];function aq(){GV(this),this.x=this.y=this.arc=this.site=this.cy=null}function sq(e){var t=e.P,n=e.N;if(t&&n){var i=t.site,r=e.site,o=n.site;if(i!==o){var a=r[0],s=r[1],c=i[0]-a,l=i[1]-s,u=o[0]-a,h=o[1]-s,d=2*(c*h-l*u);if(!(d>=-kq)){var f=c*c+l*l,p=u*u+h*h,m=(h*f-l*p)/d,g=(c*p-u*f)/d,v=oq.pop()||new aq;v.arc=e,v.site=r,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),e.circle=v;for(var b=null,y=yq._;y;)if(v.y<y.y||v.y===y.y&&v.x<=y.x){if(!y.L){b=y.P;break}y=y.L}else{if(!y.R){b=y;break}y=y.R}yq.insert(b,v),b||(rq=v)}}}}function cq(e){var t=e.circle;t&&(t.P||(rq=t.N),yq.remove(t),oq.push(t),GV(t),e.circle=null)}var lq=[];function uq(){GV(this),this.edge=this.site=this.circle=null}function hq(e){var t=lq.pop()||new uq;return t.site=e,t}function dq(e){cq(e),vq.remove(e),lq.push(e),GV(e)}function fq(e){var t=e.circle,n=t.x,i=t.cy,r=[n,i],o=e.P,a=e.N,s=[e];dq(e);for(var c=o;c.circle&&Math.abs(n-c.circle.x)<wq&&Math.abs(i-c.circle.cy)<wq;)o=c.P,s.unshift(c),dq(c),c=o;s.unshift(c),cq(c);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<wq&&Math.abs(i-l.circle.cy)<wq;)a=l.N,s.push(l),dq(l),l=a;s.push(l),cq(l);var u,h=s.length;for(u=1;u<h;++u)$V((l=s[u]).edge,(c=s[u-1]).site,l.site,r);(l=s[h-1]).edge=ZV((c=s[0]).site,l.site,null,r),sq(c),sq(l)}function pq(e){for(var t,n,i,r,o=e[0],a=e[1],s=vq._;s;)if((i=mq(s,a)-o)>wq)s=s.L;else{if(!((r=o-gq(s,a))>wq)){i>-wq?(t=s.P,n=s):r>-wq?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){bq[e.index]={site:e,halfedges:[]}}(e);var c=hq(e);if(vq.insert(t,c),t||n){if(t===n)return cq(t),n=hq(t.site),vq.insert(c,n),c.edge=n.edge=ZV(t.site,c.site),sq(t),void sq(n);if(n){cq(t),cq(n);var l=t.site,u=l[0],h=l[1],d=e[0]-u,f=e[1]-h,p=n.site,m=p[0]-u,g=p[1]-h,v=2*(d*g-f*m),b=d*d+f*f,y=m*m+g*g,_=[(g*b-f*y)/v+u,(d*y-m*b)/v+h];$V(n.edge,l,p,_),c.edge=ZV(l,e,null,_),n.edge=ZV(e,p,null,_),sq(t),sq(n)}else c.edge=ZV(t.site,c.site)}}function mq(e,t){var n=e.site,i=n[0],r=n[1],o=r-t;if(!o)return i;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],c=n[1],l=c-t;if(!l)return s;var u=s-i,h=1/o-1/l,d=u/l;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*l)-c+l/2+r-o/2)))/h+i:(i+s)/2}function gq(e,t){var n=e.N;if(n)return mq(n,t);var i=e.site;return i[1]===t?i[0]:1/0}var vq,bq,yq,_q,wq=1e-6,kq=1e-12;function Cq(e,t){return t[1]-e[1]||t[0]-e[0]}function Sq(e,t){var n,i,r,o=e.sort(Cq).pop();for(_q=[],bq=new Array(e.length),vq=new YV,yq=new YV;;)if(r=rq,o&&(!r||o[1]<r.y||o[1]===r.y&&o[0]<r.x))o[0]===n&&o[1]===i||(pq(o),n=o[0],i=o[1]),o=e.pop();else{if(!r)break;fq(r.arc)}if(function(){for(var e,t,n,i,r=0,o=bq.length;r<o;++r)if((e=bq[r])&&(i=(t=e.halfedges).length)){var a=new Array(i),s=new Array(i);for(n=0;n<i;++n)a[n]=n,s[n]=tq(e,_q[t[n]]);for(a.sort((function(e,t){return s[t]-s[e]})),n=0;n<i;++n)s[n]=t[a[n]];for(n=0;n<i;++n)t[n]=s[n]}}(),t){var a=+t[0][0],s=+t[0][1],c=+t[1][0],l=+t[1][1];!function(e,t,n,i){for(var r,o=_q.length;o--;)eq(r=_q[o],e,t,n,i)&&JV(r,e,t,n,i)&&(Math.abs(r[0][0]-r[1][0])>wq||Math.abs(r[0][1]-r[1][1])>wq)||delete _q[o]}(a,s,c,l),function(e,t,n,i){var r,o,a,s,c,l,u,h,d,f,p,m,g=bq.length,v=!0;for(r=0;r<g;++r)if(o=bq[r]){for(a=o.site,s=(c=o.halfedges).length;s--;)_q[c[s]]||c.splice(s,1);for(s=0,l=c.length;s<l;)p=(f=iq(o,_q[c[s]]))[0],m=f[1],h=(u=nq(o,_q[c[++s%l]]))[0],d=u[1],(Math.abs(p-h)>wq||Math.abs(m-d)>wq)&&(c.splice(s,0,_q.push(QV(a,f,Math.abs(p-e)<wq&&i-m>wq?[e,Math.abs(h-e)<wq?d:i]:Math.abs(m-i)<wq&&n-p>wq?[Math.abs(d-i)<wq?h:n,i]:Math.abs(p-n)<wq&&m-t>wq?[n,Math.abs(h-n)<wq?d:t]:Math.abs(m-t)<wq&&p-e>wq?[Math.abs(d-t)<wq?h:e,t]:null))-1),++l);l&&(v=!1)}if(v){var b,y,_,w=1/0;for(r=0,v=null;r<g;++r)(o=bq[r])&&(_=(b=(a=o.site)[0]-e)*b+(y=a[1]-t)*y)<w&&(w=_,v=o);if(v){var k=[e,t],C=[e,i],S=[n,i],x=[n,t];v.halfedges.push(_q.push(QV(a=v.site,k,C))-1,_q.push(QV(a,C,S))-1,_q.push(QV(a,S,x))-1,_q.push(QV(a,x,k))-1)}}for(r=0;r<g;++r)(o=bq[r])&&(o.halfedges.length||delete bq[r])}(a,s,c,l)}this.edges=_q,this.cells=bq,vq=yq=_q=bq=null}Sq.prototype={constructor:Sq,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return nq(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,i){if(o=(r=n.halfedges).length)for(var r,o,a,s,c,l,u=n.site,h=-1,d=t[r[o-1]],f=d.left===u?d.right:d.left;++h<o;)a=f,f=(d=t[r[h]]).left===u?d.right:d.left,a&&f&&i<a.index&&i<f.index&&((s=u)[0]-(l=f)[0])*((c=a)[1]-s[1])-(s[0]-c[0])*(l[1]-s[1])<0&&e.push([u.data,a.data,f.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var i,r,o=this,a=o._found||0,s=o.cells.length;!(r=o.cells[a]);)if(++a>=s)return null;var c=e-r.site[0],l=t-r.site[1],u=c*c+l*l;do{r=o.cells[i=a],a=null,r.halfedges.forEach((function(n){var i=o.edges[n],s=i.left;if(s!==r.site&&s||(s=i.right)){var c=e-s[0],l=t-s[1],h=c*c+l*l;h<u&&(u=h,a=s.index)}}))}while(null!==a);return o._found=i,null==n||u<=n*n?r.site:null}};var xq=function(){var e=VV,t=qV,n=null;function i(i){return new Sq(i.map((function(n,r){var o=[Math.round(e(n,r,i)/wq)*wq,Math.round(t(n,r,i)/wq)*wq];return o.index=r,o.data=n,o})),n)}return i.polygons=function(e){return i(e).polygons()},i.links=function(e){return i(e).links()},i.triangles=function(e){return i(e).triangles()},i.x=function(t){return arguments.length?(e="function"==typeof t?t:zV(+t),i):e},i.y=function(e){return arguments.length?(t="function"==typeof e?e:zV(+e),i):t},i.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],i):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},i.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],i):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},i},Oq=function(e){return function(){return e}};function Mq(e,t,n){this.target=e,this.type=t,this.transform=n}function Tq(e,t,n){this.k=e,this.x=t,this.y=n}Tq.prototype={constructor:Tq,scale:function(e){return 1===e?this:new Tq(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Tq(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Eq=new Tq(1,0,0);function Pq(e){return e.__zoom||Eq}function jq(){Ik.stopImmediatePropagation()}Pq.prototype=Tq.prototype;var Aq=function(){Ik.preventDefault(),Ik.stopImmediatePropagation()};function Iq(){return!Ik.ctrlKey&&!Ik.button}function Dq(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function Rq(){return this.__zoom||Eq}function Lq(){return-Ik.deltaY*(1===Ik.deltaMode?.05:Ik.deltaMode?1:.002)}function Fq(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nq(e,t,n){var i=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var Bq=function(){var e,t,n=Iq,i=Dq,r=Nq,o=Lq,a=Fq,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,u=HS,h=Aw("start","zoom","end"),d=500,f=0;function p(e){e.property("__zoom",Rq).on("wheel.zoom",w).on("mousedown.zoom",k).on("dblclick.zoom",C).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new Tq(t,e.x,e.y)}function g(e,t,n){var i=t[0]-n[0]*e.k,r=t[1]-n[1]*e.k;return i===e.x&&r===e.y?e:new Tq(e.k,i,r)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n){e.on("start.zoom",(function(){y(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).end()})).tween("zoom",(function(){var e=this,r=arguments,o=y(e,r),a=i.apply(e,r),s=n||v(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=e.__zoom,h="function"==typeof t?t.apply(e,r):t,d=u(l.invert(s).concat(c/l.k),h.invert(s).concat(c/h.k));return function(e){if(1===e)e=h;else{var t=d(e),n=c/t[2];e=new Tq(n,s[0]-t[0]*n,s[1]-t[1]*n)}o.zoom(null,e)}}))}function y(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.extent=i.apply(e,t),this.taps=0}function w(){if(n.apply(this,arguments)){var e=y(this,arguments),t=this.__zoom,i=Math.max(s[0],Math.min(s[1],t.k*Math.pow(2,o.apply(this,arguments)))),a=eC(this);t.k!==i&&(e.wheel?(e.mouse[0][0]===a[0]&&e.mouse[0][1]===a[1]||(e.mouse[1]=t.invert(e.mouse[0]=a)),clearTimeout(e.wheel)):(e.mouse=[a,t.invert(a)],Cx(this),e.start()),Aq(),e.wheel=setTimeout(l,150),e.zoom("mouse",r(g(m(t,i),e.mouse[0],e.mouse[1]),e.extent,c)))}function l(){e.wheel=null,e.end()}}function k(){if(!t&&n.apply(this,arguments)){var e=y(this,arguments,!0),i=Kk(Ik.view).on("mousemove.zoom",l,!0).on("mouseup.zoom",u,!0),o=eC(this),a=Ik.clientX,s=Ik.clientY;aC(Ik.view),jq(),e.mouse=[o,this.__zoom.invert(o)],Cx(this),e.start()}function l(){if(Aq(),!e.moved){var t=Ik.clientX-a,n=Ik.clientY-s;e.moved=t*t+n*n>f}e.zoom("mouse",r(g(e.that.__zoom,e.mouse[0]=eC(e.that),e.mouse[1]),e.extent,c))}function u(){i.on("mousemove.zoom mouseup.zoom",null),sC(Ik.view,e.moved),Aq(),e.end()}}function C(){if(n.apply(this,arguments)){var e=this.__zoom,t=eC(this),o=e.invert(t),a=e.k*(Ik.shiftKey?.5:2),s=r(g(m(e,a),t,o),i.apply(this,arguments),c);Aq(),l>0?Kk(this).transition().duration(l).call(b,s,t):Kk(this).call(p.transform,s)}}function S(){if(n.apply(this,arguments)){var t,i,r,o,a=Ik.touches,s=a.length,c=y(this,arguments,Ik.changedTouches.length===s);for(jq(),i=0;i<s;++i)o=[o=nC(this,a,(r=a[i]).identifier),this.__zoom.invert(o),r.identifier],c.touch0?c.touch1||(c.touch1=o,c.taps=0):(c.touch0=o,t=!0,c.taps=1+!!e);e&&(e=clearTimeout(e)),t&&(c.taps<2&&(e=setTimeout((function(){e=null}),d)),Cx(this),c.start())}}function x(){if(this.__zooming){var t,n,i,o,a=y(this,arguments),s=Ik.changedTouches,l=s.length;for(Aq(),e&&(e=clearTimeout(e)),a.taps=0,t=0;t<l;++t)i=nC(this,s,(n=s[t]).identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=i);if(n=a.that.__zoom,a.touch1){var u=a.touch0[0],h=a.touch0[1],d=a.touch1[0],f=a.touch1[1],p=(p=d[0]-u[0])*p+(p=d[1]-u[1])*p,v=(v=f[0]-h[0])*v+(v=f[1]-h[1])*v;n=m(n,Math.sqrt(p/v)),i=[(u[0]+d[0])/2,(u[1]+d[1])/2],o=[(h[0]+f[0])/2,(h[1]+f[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",r(g(n,i,o),a.extent,c))}}function O(){if(this.__zooming){var e,n,i=y(this,arguments),r=Ik.changedTouches,o=r.length;for(jq(),t&&clearTimeout(t),t=setTimeout((function(){t=null}),d),e=0;e<o;++e)n=r[e],i.touch0&&i.touch0[2]===n.identifier?delete i.touch0:i.touch1&&i.touch1[2]===n.identifier&&delete i.touch1;if(i.touch1&&!i.touch0&&(i.touch0=i.touch1,delete i.touch1),i.touch0)i.touch0[1]=this.__zoom.invert(i.touch0[0]);else if(i.end(),2===i.taps){var a=Kk(this).on("dblclick.zoom");a&&a.apply(this,arguments)}}}return p.transform=function(e,t){var n=e.selection?e.selection():e;n.property("__zoom",Rq),e!==n?b(e,t):n.interrupt().each((function(){y(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},p.scaleBy=function(e,t){p.scaleTo(e,(function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n}))},p.scaleTo=function(e,t){p.transform(e,(function(){var e=i.apply(this,arguments),n=this.__zoom,o=v(e),a=n.invert(o),s="function"==typeof t?t.apply(this,arguments):t;return r(g(m(n,s),o,a),e,c)}))},p.translateBy=function(e,t,n){p.transform(e,(function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}))},p.translateTo=function(e,t,n){p.transform(e,(function(){var e=i.apply(this,arguments),o=this.__zoom,a=v(e);return r(Eq.translate(a[0],a[1]).scale(o.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}))},_.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){Bk(new Mq(p,e,this.that.__zoom),h.apply,h,[e,this.that,this.args])}},p.wheelDelta=function(e){return arguments.length?(o="function"==typeof e?e:Oq(+e),p):o},p.filter=function(e){return arguments.length?(n="function"==typeof e?e:Oq(!!e),p):n},p.touchable=function(e){return arguments.length?(a="function"==typeof e?e:Oq(!!e),p):a},p.extent=function(e){return arguments.length?(i="function"==typeof e?e:Oq([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),p):i},p.scaleExtent=function(e){return arguments.length?(s[0]=+e[0],s[1]=+e[1],p):[s[0],s[1]]},p.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],p):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},p.constrain=function(e){return arguments.length?(r=e,p):r},p.duration=function(e){return arguments.length?(l=+e,p):l},p.interpolate=function(e){return arguments.length?(u=e,p):u},p.on=function(){var e=h.on.apply(h,arguments);return e===h?p:e},p.clickDistance=function(e){return arguments.length?(f=(e=+e)*e,p):Math.sqrt(f)},p},Hq=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"getD3",value:function(){return i}}]),e}();function zq(e,t){if(1&e&&(Sa(0,"span",8),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ws(n)}}function Vq(e,t){if(1&e&&(Sa(0,"tr"),Sa(1,"td",5),ba(2,zq,2,1,"span",6),xa(),Sa(3,"td",7),_s(4),xa(),xa()),2&e){var n=t.$implicit;ar(2),ka("ngForOf",n.formatted),ar(2),ws(n.description)}}n("imBb");var qq,Uq=function(e){return{in:e}},Gq=function(){function e(t,n,i,r,o,a){Object(m.a)(this,e),this.combo=t,this.callback=n,this.allowIn=i,this.description=r,this.action=o,this.persistent=a,this.combo=Array.isArray(t)?t:[t],this.allowIn=i||[],this.description=r||""}return Object(g.a)(e,[{key:"formatted",get:function(){if(!this.formattedHotkey){for(var t=this.combo,n=0;n<t.length;n++)t[n]=e.symbolize(t[n]);this.formattedHotkey=t}return this.formattedHotkey}}],[{key:"symbolize",value:function(e){for(var t={command:"\u2318",shift:"\u21e7",left:"\u2190",right:"\u2192",up:"\u2191",down:"\u2193",return:"\u23ce",backspace:"\u232b"},n=e.split("+"),i=0;i<n.length;i++)"mod"===n[i]&&(n[i]=window.navigator&&window.navigator.platform.indexOf("Mac")>=0?"command":"ctrl"),n[i]=t[n[i]]||n[i];return n.join(" + ")}}]),e}(),Wq=new he("HotkeyOptions"),Kq=function(){var e=function(){function e(t){Object(m.a)(this,e),this.options=t,this.hotkeys=[],this.pausedHotkeys=[],this.cheatSheetToggle=new w.b,this.preventIn=["INPUT","SELECT","TEXTAREA"],Mousetrap.prototype.stopCallback=function(e,t,n,i){return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&t.contentEditable&&"true"===t.contentEditable},this.mousetrap=new Mousetrap,this.options.disableCheatSheet||this.add(new Gq(this.options.cheatSheetHotkey||"?",(function(e){this.cheatSheetToggle.next()}).bind(this),[],this.options.cheatSheetDescription||"Show / hide this help menu")),this.options.cheatSheetCloseEsc&&this.add(new Gq("esc",(function(e){this.cheatSheetToggle.next(!1)}).bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))}return Object(g.a)(e,[{key:"add",value:function(e,t){var n=this;if(Array.isArray(e)){var i,r=[],o=d(e);try{for(o.s();!(i=o.n()).done;)r.push(this.add(i.value,t))}catch(a){o.e(a)}finally{o.f()}return r}return this.remove(e),this.hotkeys.push(e),this.mousetrap.bind(e.combo,(function(t,i){var r=!0;if(t){var o=t.target||t.srcElement,a=o.nodeName.toUpperCase();(" "+o.className+" ").indexOf(" mousetrap ")>-1?r=!0:n.preventIn.indexOf(a)>-1&&-1===e.allowIn.map((function(e){return e.toUpperCase()})).indexOf(a)&&(r=!1)}if(r)return e.callback.apply(n,[t,i])}),t),e}},{key:"remove",value:function(e){var t=[];if(!e){var n,i=d(this.hotkeys);try{for(i.s();!(n=i.n()).done;)t.push(this.remove(n.value))}catch(s){i.e(s)}finally{i.f()}return t}if(Array.isArray(e)){var r,o=d(e);try{for(o.s();!(r=o.n()).done;)t.push(this.remove(r.value))}catch(s){o.e(s)}finally{o.f()}return t}var a=this.findHotkey(e);return a>-1?(this.hotkeys.splice(a,1),this.mousetrap.unbind(e.combo),e):null}},{key:"get",value:function(e){if(!e)return this.hotkeys;if(Array.isArray(e)){var t,n=[],i=d(e);try{for(i.s();!(t=i.n()).done;)n.push(this.get(t.value))}catch(s){i.e(s)}finally{i.f()}return n}var r,o=d(this.hotkeys);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.combo.indexOf(e)>-1)return a}}catch(s){o.e(s)}finally{o.f()}return null}},{key:"pause",value:function(e){if(!e)return this.pause(this.hotkeys);if(Array.isArray(e)){var t,n=[],i=d(e);try{for(i.s();!(t=i.n()).done;)n.push(this.pause(t.value))}catch(r){i.e(r)}finally{i.f()}return n}return this.remove(e),this.pausedHotkeys.push(e),e}},{key:"unpause",value:function(e){if(!e)return this.unpause(this.pausedHotkeys);if(Array.isArray(e)){var t,n=[],i=d(e);try{for(i.s();!(t=i.n()).done;)n.push(this.unpause(t.value))}catch(o){i.e(o)}finally{i.f()}return n}var r=this.pausedHotkeys.indexOf(e);return r>-1?(this.add(e),this.pausedHotkeys.splice(r,1)):null}},{key:"reset",value:function(){this.mousetrap.reset()}},{key:"findHotkey",value:function(e){return this.hotkeys.indexOf(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Wq))},e.\u0275prov=R({factory:function(){return new e(we(Wq))},token:e,providedIn:"root"}),e}(),Xq=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this.hotkeysService=t,this.elementRef=n,this.hotkeysList=[],this.oldHotkeys=[],this.mousetrap=new Mousetrap(this.elementRef.nativeElement)}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e,t=d(this.hotkeys);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=Object.keys(n)[0],r=new Gq(i,n[i]),o=this.hotkeysService.get(i);null!==o&&(this.oldHotkeys.push(o),this.hotkeysService.remove(o)),this.hotkeysList.push(r),this.mousetrap.bind(r.combo,r.callback)}}catch(a){t.e(a)}finally{t.f()}}},{key:"ngOnDestroy",value:function(){var e,t=d(this.hotkeysList);try{for(t.s();!(e=t.n()).done;)this.mousetrap.unbind(e.value.combo)}catch(n){t.e(n)}finally{t.f()}this.hotkeysService.add(this.oldHotkeys)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Kq),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","hotkeys",""]],inputs:{hotkeys:"hotkeys"},features:[Vs([Kq])]}),e}(),Yq=function(){var e=function(){function e(t){Object(m.a)(this,e),this.hotkeysService=t,this.helpVisible=!1,this.title="Keyboard Shortcuts:"}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.hotkeysService.cheatSheetToggle.subscribe((function(t){!1!==t&&(e.hotkeys=e.hotkeysService.hotkeys.filter((function(e){return e.description}))),!1===t?e.helpVisible=!1:e.toggleCheatSheet()}))}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"toggleCheatSheet",value:function(){this.helpVisible=!this.helpVisible}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Kq))},e.\u0275cmp=ze({type:e,selectors:[["hotkeys-cheatsheet"]],inputs:{title:"title"},decls:9,vars:5,consts:[[1,"cfp-hotkeys-container","fade",2,"display","none",3,"ngClass"],[1,"cfp-hotkeys"],[1,"cfp-hotkeys-title"],[4,"ngFor","ngForOf"],[1,"cfp-hotkeys-close",3,"click"],[1,"cfp-hotkeys-keys"],["class","cfp-hotkeys-key",4,"ngFor","ngForOf"],[1,"cfp-hotkeys-text"],[1,"cfp-hotkeys-key"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"h4",2),_s(3),xa(),Sa(4,"table"),Sa(5,"tbody"),ba(6,Vq,5,2,"tr",3),xa(),xa(),Sa(7,"div",4),Ia("click",(function(){return t.toggleCheatSheet()})),_s(8,"\xd7"),xa(),xa(),xa()),2&e&&(ka("ngClass",Bc(3,Uq,t.helpVisible)),ar(3),ws(t.title),ar(3),ka("ngForOf",t.hotkeys))},directives:[Rh,Nh],styles:[".cfp-hotkeys-container[_ngcontent-%COMP%]{display:table!important;position:fixed;width:100%;height:100%;top:0;left:0;color:#333;font-size:1em;background-color:rgba(255,255,255,.9)}.cfp-hotkeys-container.fade[_ngcontent-%COMP%]{z-index:-1024;visibility:hidden;opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.cfp-hotkeys-container.fade.in[_ngcontent-%COMP%]{z-index:10002;visibility:visible;opacity:1}.cfp-hotkeys-title[_ngcontent-%COMP%]{font-weight:700;text-align:center;font-size:1.2em}.cfp-hotkeys[_ngcontent-%COMP%]{width:100%;height:100%;display:table-cell;vertical-align:middle}.cfp-hotkeys[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{margin:auto;color:#333}.cfp-content[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.cfp-hotkeys-keys[_ngcontent-%COMP%]{padding:5px;text-align:right}.cfp-hotkeys-key[_ngcontent-%COMP%]{display:inline-block;color:#fff;background-color:#333;border:1px solid #333;border-radius:5px;text-align:center;margin-right:5px;box-shadow:inset 0 1px 0 #666,0 1px 0 #bbb;padding:5px 9px;font-size:1em}.cfp-hotkeys-text[_ngcontent-%COMP%]{padding-left:10px;font-size:1em}.cfp-hotkeys-close[_ngcontent-%COMP%]{position:fixed;top:20px;right:20px;font-size:2em;font-weight:700;padding:5px 10px;border:1px solid #ddd;border-radius:5px;min-height:45px;min-width:45px;text-align:center}.cfp-hotkeys-close[_ngcontent-%COMP%]:hover{background-color:#fff;cursor:pointer}@media all and (max-width:500px){.cfp-hotkeys[_ngcontent-%COMP%]{font-size:.8em}}@media all and (min-width:750px){.cfp-hotkeys[_ngcontent-%COMP%]{font-size:1.2em}}"]}),e}(),Zq=function(){var e=qq=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:qq,providers:[Kq,{provide:Wq,useValue:e}]}}}]),e}();return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d]]}),e}(),Qq=function(){var e={MEMORY:0,IMMUTABLE_MEMORY:1,SESSION:2,LOCAL:3};return e[e.MEMORY]="MEMORY",e[e.IMMUTABLE_MEMORY]="IMMUTABLE_MEMORY",e[e.SESSION]="SESSION",e[e.LOCAL]="LOCAL",e}(),$q=function(){function e(e,t,n,i){var r=this;void 0===i&&(i={}),this._loader=t;var o=i.type||Qq.MEMORY;n.defineProperty(this,"_value",e,i),this._changes=n.changes({key:e,type:o}).map((function(e){return r._value})).publishBehavior(this._value).refCount()}return e.prototype.get=function(){var e=this,t=this._value;if(void 0===t){var n=this._cachedObservable;if(void 0!==n)return n;var i=this._loader();if(i&&i instanceof k.a){var r=i.publishLast().refCount().do((function(t){return e._value=t})).do((function(t){return e._cachedObservable=void 0}));return this._cachedObservable=r,r}this._value=t=i}return k.a.of(t)},e.prototype.changes=function(){return this._changes},e.prototype.clear=function(){this._value=void 0},e}(),Jq=function(){function e(e,t){this._namespace=e,this._container=t;var n=t.get(this._namespace);if(n&&("object"!=typeof n||!n.__INFO))throw new Error("Potential attribute conflict detected")}return e.prototype.addAttribute=function(e){var t=this._getInfo();t[e]=!0,this._setInfo(t)},e.prototype.removeAttribute=function(e){var t=this._getInfo();delete t[e],this._setInfo(t)},e.prototype.getAttributes=function(){return Object.keys(this._getInfo()).filter((function(e){return"__INFO"!==e}))},e.prototype.available=function(){var e=this._container.get(this._namespace);return!e||"object"==typeof e&&e.__INFO},e.prototype._getInfo=function(){var e=this._container.get(this._namespace);return e||((e={}).__INFO=!0),e},e.prototype._setInfo=function(e){Object.keys(e).length<=1?this._container.remove(this._namespace):this._container.set(this._namespace,e)},e}(),eU=function(){function e(e,t,n){void 0===n&&(n=!0),this._namespace=e,this._root=t,this._available=n,this._info=new Jq(e,t)}return e.prototype.set=function(e,t){if(!this._available)return!1;var n=this._root.set(this._getNamespacedKey(e),t);return this._info.addAttribute(e),n},e.prototype.get=function(e){if(this._available){var t=this._root.get(this._getNamespacedKey(e));return void 0===t&&this._info.removeAttribute(e),t}},e.prototype.remove=function(e){if(this._available)return this._info.removeAttribute(e),this._root.remove(this._getNamespacedKey(e))},e.prototype.removeAll=function(){var e=this;this._info.getAttributes().forEach((function(t){e.remove(t)}))},e.prototype.available=function(){return this._available&&this._info.available()},e.prototype.exists=function(e){return void 0!==this.get(e)},e.prototype.keys=function(){var e=this;return this._info.getAttributes().filter((function(t){return e.exists(t)}))},e.prototype._getNamespacedKey=function(e){return this._namespace+"::"+e},e}(),tU="_____NULL_VALUE_____",nU=function(){function e(e){this._storage=e}return e.prototype.set=function(e,t){try{null===t&&(t=tU),void 0===t?this._storage.removeItem(e):this._storage.setItem(e,JSON.stringify(t))}catch(n){return!1}return!0},e.prototype.get=function(e){var t=this._storage.getItem(e);if(null!==t){var n=JSON.parse(t);return n===tU?null:n}},e.prototype.remove=function(e){var t=this.get(e);return void 0!==t&&this._storage.removeItem(e),t},e.prototype.removeAll=function(){this._storage.clear()},e}(),iU=function(e){function t(t){e.call(this,"ANGULAR_PERSISTENCE_STORAGE",new nU(t),!!t)}return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(t,e),t}(eU),rU=function(e){function t(){e.call(this,sessionStorage)}return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(t,e),t}(iU),oU=function(e){function t(){e.call(this,localStorage)}return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(t,e),t}(iU),aU=function(){function e(){this._data={}}return e.prototype.available=function(){return!0},e.prototype.set=function(e,t){return void 0===t?delete this._data[e]:this._data[e]=t,!0},e.prototype.get=function(e){return this._data[e]},e.prototype.exists=function(e){return void 0!==this._data[e]},e.prototype.remove=function(e){delete this._data[e]},e.prototype.removeAll=function(){var e=Object.keys(this._data);return this._data={},e},e.prototype.keys=function(){return Object.keys(this._data)},e}(),sU=function(e){function t(){e.apply(this,arguments)}return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(t,e),t.prototype.set=function(t,n){return void 0!==n&&(n=JSON.stringify(n)),e.prototype.set.call(this,t,n)},t.prototype.get=function(t){var n=e.prototype.get.call(this,t);if(void 0!==n)return JSON.parse(n)},t}(aU),cU=function(){function e(){this._storages=[]}return e.getStorage=function(){return new e},e.prototype.of=function(e){var t=this._storages[e];if(!t){switch(e){case Qq.MEMORY:t=new aU,this._storages[e]=t;break;case Qq.IMMUTABLE_MEMORY:t=new sU;break;case Qq.LOCAL:t=new oU;break;case Qq.SESSION:t=new rU}if(!t||!t.available())throw new Error("Storage type not available");this._storages[e]=t}return t},e}(),lU=function(){function e(){this._emitter=new Yc,this._storage=cU.getStorage()}return e.prototype.changes=function(e){void 0===e&&(e={});var t=this._emitter.asObservable();return e.key&&(t=t.filter((function(t){return t.key===e.key}))),e.type&&(t=t.filter((function(t){return t.type===e.type}))),t},e.prototype.get=function(e,t){void 0===t&&(t=Qq.MEMORY);var n=this._getStorage(t),i=n.get(e);if(i){var r=Date.now();if(i.expireAfter&&i.created+i.expireAfter<r)return n.remove(e),void this._emitter.emit({key:e,type:t});if(i.oneUse)return n.remove(e),this._emitter.emit({key:e,type:t}),i.data;if(i.timeout){if(i.lastAccessed+i.timeout<r)return n.remove(e),void this._emitter.emit({key:e,type:t});i.lastAccessed=r,n.set(e,i)}return i.data}},e.prototype.set=function(e,t,n){if(void 0===n&&(n={}),n.type||(n.type=Qq.MEMORY),void 0===!t)return this.remove(e),this._emitter.emit({key:e,type:n.type}),!0;var i=this._getStorage(n.type),r=Date.now(),o=i.set(e,{data:t,expireAfter:n.expireAfter,timeout:n.timeout,oneUse:!!n.oneUse,created:r,lastAccessed:r});return o?this._emitter.emit({key:e,type:n.type}):i.remove(e),o},e.prototype.remove=function(e,t){void 0===t&&(t=Qq.MEMORY);var n=this._getStorage(t),i=this.get(e,t);return void 0!==i&&(n.remove(e),this._emitter.emit({key:e,type:t})),i},e.prototype.removeAll=function(e){var t=this;void 0===e&&(e=Qq.MEMORY);var n=this._getStorage(e).keys();this._getStorage(e).removeAll(),n.forEach((function(n){return t._emitter.emit({key:n,type:e})}))},e.prototype.clean=function(e){void 0===e&&(e=Qq.MEMORY);for(var t=this._getStorage(e),n=t.keys(),i=Date.now(),r=0,o=n;r<o.length;r++){var a=o[r],s=t.get(a);s&&(s.expireAfter&&s.created+s.expireAfter<i||s.timeout&&s.lastAccessed+s.timeout<i)&&this.remove(a)}},e.prototype.defineProperty=function(e,t,n,i){var r=this;void 0===i&&(i={});var o=i.type||Qq.MEMORY;Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return r.get(n,o)},set:function(e){r.set(n,e,i)}})},e.prototype.createContainer=function(e,t){void 0===t&&(t={});var n=this,i={oneUse:t.oneUse,expireAfter:t.expireAfter,timeout:t.timeout,type:t.type||Qq.MEMORY};return new eU(e,{get:function(e){return n.get(e,i.type)},set:function(e,t){return n.set(e,t,i)},remove:function(e){return n.remove(e,i.type)},removeAll:function(){return n.removeAll()}},!0)},e.prototype.createCache=function(e,t,n){return void 0===n&&(n={}),new $q(e,t,this,{type:n.type||Qq.MEMORY,expireAfter:n.expireAfter,timeout:n.timeout})},e.prototype._getStorage=function(e){return this._storage.of(e)},e.prototype._calculateExpires=function(e){return e?Date.now()+e:void 0},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),uU=function(){function e(){}return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[lU]}),e}(),hU=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),e}(),dU=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.call(this)}return n}(hU);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),fU=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[{provide:hU,useClass:dU}]}),e}(),pU=function(){function e(t){Object(m.a)(this,e),this.rawFile=t;var n,i=(n=t)&&(n.nodeName||n.prop&&n.attr&&n.find)?t.value:t;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return Object(g.a)(e,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+e.slice(e.lastIndexOf(".")+1).toLowerCase(),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(e){this.size=e.size,this.type=e.type,this.name=e.name}}]),e}(),mU=function(){function e(t,n,i){Object(m.a)(this,e),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=void 0,this.uploader=t,this.some=n,this.options=i,this.file=new pU(n),this._file=n,t.options&&(this.method=t.options.method||"POST",this.alias=t.options.itemAlias||"file"),this.url=t.options.url}return Object(g.a)(e,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(e){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(e){return{form:e}}},{key:"onProgress",value:function(e){return{progress:e}}},{key:"onSuccess",value:function(e,t,n){return{response:e,status:t,headers:n}}},{key:"onError",value:function(e,t,n){return{response:e,status:t,headers:n}}},{key:"onCancel",value:function(e,t,n){return{response:e,status:t,headers:n}}},{key:"onComplete",value:function(e,t,n){return{response:e,status:t,headers:n}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(e){this.onBuildForm(e)}},{key:"_onProgress",value:function(e){this.progress=e,this.onProgress(e)}},{key:"_onSuccess",value:function(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(e,t,n)}},{key:"_onError",value:function(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(e,t,n)}},{key:"_onCancel",value:function(e,t,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(e,t,n)}},{key:"_onComplete",value:function(e,t,n){this.onComplete(e,t,n),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),e}(),gU=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"getMimeClass",value:function(e){var t="application";return-1!==this.mime_psd.indexOf(e.type)||e.type.match("image.*")?t="image":e.type.match("video.*")?t="video":e.type.match("audio.*")?t="audio":"application/pdf"===e.type?t="pdf":-1!==this.mime_compress.indexOf(e.type)?t="compress":-1!==this.mime_doc.indexOf(e.type)?t="doc":-1!==this.mime_xsl.indexOf(e.type)?t="xls":-1!==this.mime_ppt.indexOf(e.type)&&(t="ppt"),"application"===t&&(t=this.fileTypeDetection(e.name)),t}},{key:"fileTypeDetection",value:function(e){var t={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},n=e.split(".");if(n.length<2)return"application";var i=n[n.length-1].toLowerCase();return void 0===t[i]?"application":t[i]}}]),e}();return e.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],e.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],e.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],e.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],e.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"],e}(),vU=function(){function e(t){Object(m.a)(this,e),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(e){return e._file},formatDataFunctionIsAsync:!1},this.setOptions(t),this.response=new Yc}return Object(g.a)(e,[{key:"setOptions",value:function(e){this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var t=0;t<this.queue.length;t++)this.queue[t].url=this.options.url}},{key:"addToQueue",value:function(e,t,n){var i,r=this,o=[],a=d(e);try{for(a.s();!(i=a.n()).done;)o.push(i.value)}catch(u){a.e(u)}finally{a.f()}var s=this._getFilters(n),c=this.queue.length,l=[];o.map((function(e){t||(t=r.options);var n=new pU(e);if(r._isValidFile(n,s,t)){var i=new mU(r,e,t);l.push(i),r.queue.push(i),r._onAfterAddingFile(i)}else r._onWhenAddingFileFailed(n,s[r._failFilterIndex],t)})),this.queue.length!==c&&(this._onAfterAddingAll(l),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}},{key:"removeFromQueue",value:function(e){var t=this.getIndexOfItem(e),n=this.queue[t];n.isUploading&&n.cancel(),this.queue.splice(t,1),this.progress=this._getTotalProgress()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},{key:"uploadItem",value:function(e){var t=this.getIndexOfItem(e),n=this.queue[t],i=this.options.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),this.isUploading||(this.isUploading=!0,this[i](n))}},{key:"cancelItem",value:function(e){var t=this.getIndexOfItem(e),n=this.queue[t];n&&n.isUploading&&(this.options.isHTML5?n._xhr:n._form).abort()}},{key:"uploadAll",value:function(){var e=this.getNotUploadedItems().filter((function(e){return!e.isUploading}));e.length&&(e.map((function(e){return e._prepareToUploading()})),e[0].upload())}},{key:"cancelAll",value:function(){this.getNotUploadedItems().map((function(e){return e.cancel()}))}},{key:"isFile",value:function(e){return function(e){return File&&e instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof pU}},{key:"getIndexOfItem",value:function(e){return"number"==typeof e?e:this.queue.indexOf(e)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter((function(e){return!e.isUploaded}))}},{key:"getReadyItems",value:function(){return this.queue.filter((function(e){return e.isReady&&!e.isUploading})).sort((function(e,t){return e.index-t.index}))}},{key:"destroy",value:function(){}},{key:"onAfterAddingAll",value:function(e){return{fileItems:e}}},{key:"onBuildItemForm",value:function(e,t){return{fileItem:e,form:t}}},{key:"onAfterAddingFile",value:function(e){return{fileItem:e}}},{key:"onWhenAddingFileFailed",value:function(e,t,n){return{item:e,filter:t,options:n}}},{key:"onBeforeUploadItem",value:function(e){return{fileItem:e}}},{key:"onProgressItem",value:function(e,t){return{fileItem:e,progress:t}}},{key:"onProgressAll",value:function(e){return{progress:e}}},{key:"onSuccessItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onErrorItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onCancelItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onCompleteItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(e){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.indexOf(e.type))}},{key:"_fileSizeFilter",value:function(e){return!(this.options.maxFileSize&&e.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(gU.getMimeClass(e)))}},{key:"_onErrorItem",value:function(e,t,n,i){e._onError(t,n,i),this.onErrorItem(e,t,n,i)}},{key:"_onCompleteItem",value:function(e,t,n,i){e._onComplete(t,n,i),this.onCompleteItem(e,t,n,i);var r=this.getReadyItems()[0];this.isUploading=!1,r?r.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(e){return function(t){return t?e[t.toLowerCase()]||void 0:e}}},{key:"_xhrTransport",value:function(e){var t,n=this,i=this,r=e._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(e),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)t=this.options.formatDataFunction(e);else{t=new FormData,this._onBuildItemForm(e,t);var o=function(){return t.append(e.alias,e._file,e.file.name)};this.options.parametersBeforeFiles||o(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach((function(i){var r=n.options.additionalParameter[i];"string"==typeof r&&r.indexOf("{{file_name}}")>=0&&(r=r.replace("{{file_name}}",e.file.name)),t.append(i,r)})),this.options.parametersBeforeFiles&&o()}if(r.upload.onprogress=function(t){var i=Math.round(t.lengthComputable?100*t.loaded/t.total:0);n._onProgressItem(e,i)},r.onload=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t),o=n._isSuccessCode(r.status)?"Success":"Error";n["_on"+o+"Item"](e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.onerror=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t);n._onErrorItem(e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.onabort=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t);n._onCancelItem(e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.open(e.method,e.url,!0),r.withCredentials=e.withCredentials,this.options.headers){var a,s=d(this.options.headers);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.setRequestHeader(c.name,c.value)}}catch(f){s.e(f)}finally{s.f()}}if(e.headers.length){var l,u=d(e.headers);try{for(u.s();!(l=u.n()).done;){var h=l.value;r.setRequestHeader(h.name,h.value)}}catch(f){u.e(f)}finally{u.f()}}this.authToken&&r.setRequestHeader(this.authTokenHeader,this.authToken),r.onreadystatechange=function(){r.readyState==XMLHttpRequest.DONE&&i.response.emit(r.responseText)},this.options.formatDataFunctionIsAsync?t.then((function(e){return r.send(JSON.stringify(e))})):r.send(t),this._render()}},{key:"_getTotalProgress",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return e;var t=this.getNotUploadedItems().length,n=t?this.queue.length-t:this.queue.length,i=100/this.queue.length,r=e*i/100;return Math.round(n*i+r)}},{key:"_getFilters",value:function(e){if(!e)return this.options.filters;if(Array.isArray(e))return e;if("string"==typeof e){var t=e.match(/[^\s,]+/g);return this.options.filters.filter((function(e){return-1!==t.indexOf(e.name)}))}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}},{key:"_isValidFile",value:function(e,t,n){var i=this;return this._failFilterIndex=-1,!t.length||t.every((function(t){return i._failFilterIndex++,t.fn.call(i,e,n)}))}},{key:"_isSuccessCode",value:function(e){return e>=200&&e<300||304===e}},{key:"_transformResponse",value:function(e,t){return e}},{key:"_parseHeaders",value:function(e){var t,n,i,r={};return e?(e.split("\n").map((function(e){i=e.indexOf(":"),t=e.slice(0,i).trim().toLowerCase(),n=e.slice(i+1).trim(),t&&(r[t]=r[t]?r[t]+", "+n:n)})),r):r}},{key:"_onWhenAddingFileFailed",value:function(e,t,n){this.onWhenAddingFileFailed(e,t,n)}},{key:"_onAfterAddingFile",value:function(e){this.onAfterAddingFile(e)}},{key:"_onAfterAddingAll",value:function(e){this.onAfterAddingAll(e)}},{key:"_onBeforeUploadItem",value:function(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)}},{key:"_onBuildItemForm",value:function(e,t){e._onBuildForm(t),this.onBuildItemForm(e,t)}},{key:"_onProgressItem",value:function(e,t){var n=this._getTotalProgress(t);this.progress=n,e._onProgress(t),this.onProgressItem(e,t),this.onProgressAll(n),this._render()}},{key:"_onSuccessItem",value:function(e,t,n,i){e._onSuccess(t,n,i),this.onSuccessItem(e,t,n,i)}},{key:"_onCancelItem",value:function(e,t,n,i){e._onCancel(t,n,i),this.onCancelItem(e,t,n,i)}}]),e}(),bU=function(){var e=function(){function e(t){Object(m.a)(this,e),this.onFileSelected=new Yc,this.element=t}return Object(g.a)(e,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e=this.element.nativeElement.files,t=this.getOptions(),n=this.getFilters();this.uploader.addToQueue(e,t,n),this.onFileSelected.emit(e),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","ng2FileSelect",""]],hostBindings:function(e,t){1&e&&Ia("change",(function(){return t.onChange()}))},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),e}(),yU=function(){var e=function(){function e(t){Object(m.a)(this,e),this.fileOver=new Yc,this.onFileDrop=new Yc,this.element=t}return Object(g.a)(e,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"onDrop",value:function(e){var t=this._getTransfer(e);if(t){var n=this.getOptions(),i=this.getFilters();this._preventAndStop(e),this.uploader.addToQueue(t.files,n,i),this.fileOver.emit(!1),this.onFileDrop.emit(t.files)}}},{key:"onDragOver",value:function(e){var t=this._getTransfer(e);this._haveFiles(t.types)&&(t.dropEffect="copy",this._preventAndStop(e),this.fileOver.emit(!0))}},{key:"onDragLeave",value:function(e){this.element&&e.currentTarget===this.element[0]||(this._preventAndStop(e),this.fileOver.emit(!1))}},{key:"_getTransfer",value:function(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer}},{key:"_preventAndStop",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"_haveFiles",value:function(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","ng2FileDrop",""]],hostBindings:function(e,t){1&e&&Ia("drop",(function(e){return t.onDrop(e)}))("dragover",(function(e){return t.onDragOver(e)}))("dragleave",(function(e){return t.onDragLeave(e)}))},inputs:{uploader:"uploader"},outputs:{fileOver:"fileOver",onFileDrop:"onFileDrop"}}),e}(),_U=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d]]}),e}(),wU=n("itXk"),kU=n("sVev"),CU=n("NXyV"),SU=n("EY2u"),xU=n("0EUg"),OU=n("NJ9Y"),MU=n("Kqap"),TU=n("JIr8"),EU=n("SxV6"),PU=n("5+tZ"),jU=n("vkgz"),AU=n("BFxc"),IU=n("nYR2"),DU=n("bHdf"),RU=function e(t,n){Object(m.a)(this,e),this.id=t,this.url=n},LU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Object(m.a)(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return Object(g.a)(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(RU),FU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return Object(g.a)(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(RU),NU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i)).reason=r,o}return Object(g.a)(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(RU),BU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i)).error=r,o}return Object(g.a)(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(RU),HU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Object(g.a)(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(RU),zU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Object(g.a)(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(RU),VU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){var s;return Object(m.a)(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return Object(g.a)(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(RU),qU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Object(g.a)(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(RU),UU=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Object(g.a)(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(RU),GU=function(){function e(t){Object(m.a)(this,e),this.route=t}return Object(g.a)(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),WU=function(){function e(t){Object(m.a)(this,e),this.route=t}return Object(g.a)(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),KU=function(){function e(t){Object(m.a)(this,e),this.snapshot=t}return Object(g.a)(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),XU=function(){function e(t){Object(m.a)(this,e),this.snapshot=t}return Object(g.a)(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),YU=function(){function e(t){Object(m.a)(this,e),this.snapshot=t}return Object(g.a)(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ZU=function(){function e(t){Object(m.a)(this,e),this.snapshot=t}return Object(g.a)(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),QU=function(){function e(t,n,i){Object(m.a)(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return Object(g.a)(e,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),e}(),$U="primary",JU=function(){function e(t){Object(m.a)(this,e),this.params=t||{}}return Object(g.a)(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function eG(e){return new JU(e)}function tG(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function nG(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function iG(e,t){var n,i=Object.keys(e),r=Object.keys(t);if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!rG(e[n=i[o]],t[n]))return!1;return!0}function rG(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=Object(u.a)(e).sort(),i=Object(u.a)(t).sort();return n.every((function(e,t){return i[t]===e}))}return e===t}function oG(e){return Array.prototype.concat.apply([],e)}function aG(e){return e.length>0?e[e.length-1]:null}function sG(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function cG(e){return Aa(e)?e:ja(e)?Object(pf.a)(Promise.resolve(e)):Object(Sm.a)(e)}function lG(e,t,n){return n?function(e,t){return iG(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!fG(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return rG(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,r){if(n.segments.length>r.length)return!!fG(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!fG(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!e(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!fG(n.segments,a)&&!!n.children.primary&&t(n.children.primary,i,s)}(t,n,n.segments)}(e.root,t.root)}var uG=function(){function e(t,n,i){Object(m.a)(this,e),this.root=t,this.queryParams=n,this.fragment=i}return Object(g.a)(e,[{key:"toString",value:function(){return vG.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=eG(this.queryParams)),this._queryParamMap}}]),e}(),hG=function(){function e(t,n){var i=this;Object(m.a)(this,e),this.segments=t,this.children=n,this.parent=null,sG(n,(function(e,t){return e.parent=i}))}return Object(g.a)(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return bG(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),dG=function(){function e(t,n){Object(m.a)(this,e),this.path=t,this.parameters=n}return Object(g.a)(e,[{key:"toString",value:function(){return SG(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=eG(this.parameters)),this._parameterMap}}]),e}();function fG(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function pG(e,t){var n=[];return sG(e.children,(function(e,i){i===$U&&(n=n.concat(t(e,i)))})),sG(e.children,(function(e,i){i!==$U&&(n=n.concat(t(e,i)))})),n}var mG=function e(){Object(m.a)(this,e)},gG=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"parse",value:function(e){var t=new EG(e);return new uG(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i="/".concat(function e(t,n){if(!t.hasChildren())return bG(t);if(n){var i=t.children.primary?e(t.children.primary,!1):"",r=[];return sG(t.children,(function(t,n){n!==$U&&r.push("".concat(n,":").concat(e(t,!1)))})),r.length>0?"".concat(i,"(").concat(r.join("//"),")"):i}var o=pG(t,(function(n,i){return i===$U?[e(t.children.primary,!1)]:["".concat(i,":").concat(e(n,!1))]}));return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(bG(t),"/").concat(o[0]):"".concat(bG(t),"/(").concat(o.join("//"),")")}(e.root,!0)),r=(t=e.queryParams,(n=Object.keys(t).map((function(e){var n=t[e];return Array.isArray(n)?n.map((function(t){return"".concat(_G(e),"=").concat(_G(t))})).join("&"):"".concat(_G(e),"=").concat(_G(n))}))).length?"?".concat(n.join("&")):""),o="string"==typeof e.fragment?"#".concat(encodeURI(e.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),e}(),vG=new gG;function bG(e){return e.segments.map((function(e){return SG(e)})).join("/")}function yG(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _G(e){return yG(e).replace(/%3B/gi,";")}function wG(e){return yG(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kG(e){return decodeURIComponent(e)}function CG(e){return kG(e.replace(/\+/g,"%20"))}function SG(e){return"".concat(wG(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(wG(e),"=").concat(wG(t[e]))})).join("")));var t}var xG=/^[^\/()?;=#]+/;function OG(e){var t=e.match(xG);return t?t[0]:""}var MG=/^[^=?&#]+/,TG=/^[^?&#]+/,EG=function(){function e(t){Object(m.a)(this,e),this.url=t,this.remaining=t}return Object(g.a)(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hG([],{}):new hG([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new hG(e,t)),n}},{key:"parseSegment",value:function(){var e=OG(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new dG(kG(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=OG(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=OG(this.remaining);i&&this.capture(n=i)}e[kG(t)]=kG(n)}}},{key:"parseQueryParam",value:function(e){var t,n=(t=this.remaining.match(MG))?t[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(TG);return t?t[0]:""}(this.remaining);r&&this.capture(i=r)}var o=CG(n),a=CG(i);if(e.hasOwnProperty(o)){var s=e[o];Array.isArray(s)||(e[o]=s=[s]),s.push(a)}else e[o]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=OG(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=$U);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new hG([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),PG=function(){function e(t){Object(m.a)(this,e),this._root=t}return Object(g.a)(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=jG(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=jG(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=AG(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return AG(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function jG(e,t){if(e===t.value)return t;var n,i=d(t.children);try{for(i.s();!(n=i.n()).done;){var r=jG(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function AG(e,t){if(e===t.value)return[t];var n,i=d(t.children);try{for(i.s();!(n=i.n()).done;){var r=AG(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var IG=function(){function e(t,n){Object(m.a)(this,e),this.value=t,this.children=n}return Object(g.a)(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function DG(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var RG=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this,e)).snapshot=i,VG(Object(s.a)(r),e),r}return Object(g.a)(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(PG);function LG(e,t){var n=function(e,t){var n=new HG([],{},{},"",{},$U,t,null,e.root,-1,{});return new zG("",new IG(n,[]))}(e,t),i=new Um.a([new dG("",{})]),r=new Um.a({}),o=new Um.a({}),a=new Um.a({}),s=new Um.a(""),c=new FG(i,r,a,s,o,$U,t,n.root);return c.snapshot=n.root,new RG(new IG(c,[]),n)}var FG=function(){function e(t,n,i,r,o,a,s,c){Object(m.a)(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=c}return Object(g.a)(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(mf.a)((function(e){return eG(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(mf.a)((function(e){return eG(e)})))),this._queryParamMap}}]),e}();function NG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return BG(n.slice(i))}function BG(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}var HG=function(){function e(t,n,i,r,o,a,s,c,l,u,h){Object(m.a)(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=h}return Object(g.a)(e,[{key:"toString",value:function(){var e=this.url.map((function(e){return e.toString()})).join("/"),t=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(t,"')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=eG(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=eG(this.queryParams)),this._queryParamMap}}]),e}(),zG=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this,i)).url=e,VG(Object(s.a)(r),i),r}return Object(g.a)(n,[{key:"toString",value:function(){return qG(this._root)}}]),n}(PG);function VG(e,t){t.value._routerState=e,t.children.forEach((function(t){return VG(e,t)}))}function qG(e){var t=e.children.length>0?" { ".concat(e.children.map(qG).join(", ")," } "):"";return"".concat(e.value).concat(t)}function UG(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,iG(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),iG(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!iG(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),iG(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function GG(e,t){var n,i;return iG(e.params,t.params)&&fG(n=e.url,i=t.url)&&n.every((function(e,t){return iG(e.parameters,i[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||GG(e.parent,t.parent))}function WG(e,t,n,i,r){if(0===n.length)return XG(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new YG(!0,0,e);var t=0,n=!1,i=e.reduce((function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return sG(i.outlets,(function(e,t){o[t]="string"==typeof e?e.split("/"):e})),[].concat(Object(u.a)(e),[{outlets:o}])}if(i.segmentPath)return[].concat(Object(u.a)(e),[i.segmentPath])}return"string"!=typeof i?[].concat(Object(u.a)(e),[i]):0===r?(i.split("/").forEach((function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))})),e):[].concat(Object(u.a)(e),[i])}),[]);return new YG(n,t,i)}(n);if(o.toRoot())return XG(t.root,new hG([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new ZG(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new ZG(i,i===t.root,0)}var r=KG(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new ZG(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?JG(a.segmentGroup,a.index,o.commands):$G(a.segmentGroup,a.index,o.commands);return XG(a.segmentGroup,s,t,i,r)}function KG(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function XG(e,t,n,i,r){var o={};return i&&sG(i,(function(e,t){o[t]=Array.isArray(e)?e.map((function(e){return"".concat(e)})):"".concat(e)})),new uG(n.root===e?t:function e(t,n,i){var r={};return sG(t.children,(function(t,o){r[o]=t===n?i:e(t,n,i)})),new hG(t.segments,r)}(n.root,e,t),o,r)}var YG=function(){function e(t,n,i){if(Object(m.a)(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&KG(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(r&&r!==aG(i))throw new Error("{outlets:{}} has to be the last command")}return Object(g.a)(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),ZG=function e(t,n,i){Object(m.a)(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function QG(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:"".concat(e)}function $G(e,t,n){if(e||(e=new hG([],{})),0===e.segments.length&&e.hasChildren())return JG(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=QG(n[i]),c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!iW(s,c,a))return o;i+=2}else{if(!iW(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new hG(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new hG(e.segments.slice(i.pathIndex),e.children),JG(o,0,r)}return i.match&&0===r.length?new hG(e.segments,{}):i.match&&!e.hasChildren()?eW(e,t,n):i.match?JG(e,0,r):eW(e,t,n)}function JG(e,t,n){if(0===n.length)return new hG(e.segments,{});var i=function(e){return"object"==typeof e[0]&&null!==e[0]&&e[0].outlets?e[0].outlets:h({},$U,e)}(n),r={};return sG(i,(function(n,i){null!==n&&(r[i]=$G(e.children[i],t,n))})),sG(e.children,(function(e,t){void 0===i[t]&&(r[t]=e)})),new hG(e.segments,r)}function eW(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){if("object"==typeof n[r]&&null!==n[r]&&void 0!==n[r].outlets){var o=tW(n[r].outlets);return new hG(i,o)}if(0===r&&KG(n[0]))i.push(new dG(e.segments[t].path,n[0])),r++;else{var a=QG(n[r]),s=r<n.length-1?n[r+1]:null;a&&s&&KG(s)?(i.push(new dG(a,nW(s))),r+=2):(i.push(new dG(a,{})),r++)}}return new hG(i,{})}function tW(e){var t={};return sG(e,(function(e,n){null!==e&&(t[n]=eW(new hG([],{}),0,e))})),t}function nW(e){var t={};return sG(e,(function(e,n){return t[n]="".concat(e)})),t}function iW(e,t,n){return e==n.path&&iG(t,n.parameters)}var rW=function(){function e(t,n,i,r){Object(m.a)(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return Object(g.a)(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),UG(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=DG(t);e.children.forEach((function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]})),sG(r,(function(e,t){i.deactivateRouteAndItsChildren(e,n)}))}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var n=this,i=t.getContext(e.value.outlet);if(i){var r=DG(e),o=e.value.component?i.children:t;sG(r,(function(e,t){return n.deactivateRouteAndItsChildren(e,o)})),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=DG(t);e.children.forEach((function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new ZU(e.value.snapshot))})),e.children.length&&this.forwardEvent(new XU(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(UG(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),oW(s.route)}else{var c=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),l=c?c.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=l,a.outlet?a.outlet.activateWith(i,l):fi()&&console&&console.warn&&console.warn("A router outlet has not been instantiated during routes activation. URL Segment: '".concat(i.snapshot._urlSegment,"'")),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function oW(e){UG(e.value),e.children.forEach(oW)}var aW=function e(t,n){Object(m.a)(this,e),this.routes=t,this.module=n};function sW(e){return"function"==typeof e}function cW(e){return e instanceof uG}var lW=Symbol("INITIAL_VALUE");function uW(){return Object(tg.a)((function(e){return wU.b.apply(void 0,Object(u.a)(e.map((function(e){return e.pipe(Object(Wm.a)(1),Object(Jm.a)(lW))})))).pipe(Object(MU.a)((function(e,t){var n=!1;return t.reduce((function(e,i,r){if(e!==lW)return e;if(i===lW&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||cW(i))return i}return e}),e)}),lW),Object($m.a)((function(e){return e!==lW})),Object(mf.a)((function(e){return cW(e)?e:!0===e})),Object(Wm.a)(1))}))}var hW=function e(t){Object(m.a)(this,e),this.segmentGroup=t||null},dW=function e(t){Object(m.a)(this,e),this.urlTree=t};function fW(e){return new k.a((function(t){return t.error(new hW(e))}))}function pW(e){return new k.a((function(t){return t.error(new dW(e))}))}function mW(e){return new k.a((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var gW=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Me)}return Object(g.a)(e,[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,$U).pipe(Object(mf.a)((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(Object(TU.a)((function(t){if(t instanceof dW)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof hW)throw e.noMatchError(t);throw t})))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,$U).pipe(Object(mf.a)((function(n){return t.createUrlTree(n,e.queryParams,e.fragment)}))).pipe(Object(TU.a)((function(e){if(e instanceof hW)throw t.noMatchError(e);throw e})))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new hG([],h({},$U,e)):e;return new uG(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(mf.a)((function(e){return new hG([],e)}))):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Object(Sm.a)({});var o=[],a=[],s={};return sG(n,(function(n,r){var c,l,u=(c=r,l=n,i.expandSegmentGroup(e,t,l,c)).pipe(Object(mf.a)((function(e){return s[r]=e})));r===$U?o.push(u):a.push(u)})),Sm.a.apply(null,o.concat(a)).pipe(Object(xU.a)(),Object(OU.a)(),Object(mf.a)((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return Sm.a.apply(void 0,Object(u.a)(n)).pipe(Object(Xg.a)((function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(Object(TU.a)((function(e){if(e instanceof hW)return Object(Sm.a)(null);throw e})))})),Object(EU.a)((function(e){return!!e})),Object(TU.a)((function(e,n){if(e instanceof kU.a||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,i,r))return Object(Sm.a)(new hG([],{}));throw new hW(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return _W(i)!==o?fW(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):fW(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?pW(o):this.lineralizeSegments(n,o).pipe(Object(PU.b)((function(n){var o=new hG(n,{});return r.expandSegment(e,o,t,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=vW(t,i,r),c=s.consumedSegments,l=s.lastChild,u=s.positionalParamSegments;if(!s.matched)return fW(t);var h=this.applyRedirectCommands(c,i.redirectTo,u);return i.redirectTo.startsWith("/")?pW(h):this.lineralizeSegments(i,h).pipe(Object(PU.b)((function(i){return a.expandSegment(e,t,n,i.concat(r.slice(l)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(mf.a)((function(e){return n._loadedConfig=e,new hG(i,{})}))):Object(Sm.a)(new hG(i,{}));var o=vW(t,n,i),a=o.consumedSegments,s=o.lastChild;if(!o.matched)return fW(t);var c=i.slice(s);return this.getChildConfig(e,n,i).pipe(Object(PU.b)((function(e){var n=e.module,i=e.routes,o=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some((function(n){return yW(e,t,n)&&_W(n)!==$U}))}(e,n,i)?{segmentGroup:bW(new hG(t,function(e,t){var n={};n.primary=t;var i,r=d(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;""===o.path&&_W(o)!==$U&&(n[_W(o)]=new hG([],{}))}}catch(a){r.e(a)}finally{r.f()}return n}(i,new hG(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return yW(e,t,n)}))}(e,n,i)?{segmentGroup:bW(new hG(e.segments,function(e,t,n,i){var r,o={},a=d(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;yW(e,t,s)&&!i[_W(s)]&&(o[_W(s)]=new hG([],{}))}}catch(c){a.e(c)}finally{a.f()}return Object.assign(Object.assign({},i),o)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,a,c,i),s=o.segmentGroup,l=o.slicedSegments;return 0===l.length&&s.hasChildren()?r.expandChildren(n,i,s).pipe(Object(mf.a)((function(e){return new hG(a,e)}))):0===i.length&&0===l.length?Object(Sm.a)(new hG(a,{})):r.expandSegment(n,s,i,l,$U,!0).pipe(Object(mf.a)((function(e){return new hG(a.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Object(Sm.a)(new aW(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(Sm.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(PU.b)((function(n){return n?i.configLoader.load(e.injector,t).pipe(Object(mf.a)((function(e){return t._loadedConfig=e,e}))):function(e){return new k.a((function(t){return t.error(tG("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Object(Sm.a)(new aW([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return Object(Sm.a)(!0);var o=r.map((function(i){var r,o=e.get(i);if(function(e){return e&&sW(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!sW(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return cG(r)}));return Object(Sm.a)(o).pipe(uW(),Object(jU.a)((function(e){if(cW(e)){var t=tG('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}})),Object(mf.a)((function(e){return!0===e})))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(Sm.a)(n);if(i.numberOfChildren>1||!i.children.primary)return mW(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new uG(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return sG(e,(function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return sG(t.children,(function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)})),new hG(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map((function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=d(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function vW(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||nG)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function bW(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new hG(e.segments.concat(t.segments),t.children)}return e}function yW(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function _W(e){return e.outlet||$U}var wW=function e(t){Object(m.a)(this,e),this.path=t,this.route=this.path[this.path.length-1]},kW=function e(t,n){Object(m.a)(this,e),this.component=t,this.route=n};function CW(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function SW(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=DG(t);return e.children.forEach((function(e){xW(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]})),sG(o,(function(e,t){return MW(e,n.getContext(t),r)})),r}function xW(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=OW(a,o,o.routeConfig.runGuardsAndResolvers);if(c?r.canActivateChecks.push(new wW(i)):(o.data=a.data,o._resolvedData=a._resolvedData),SW(e,t,o.component?s?s.children:null:n,i,r),c){var l=s&&s.outlet&&s.outlet.component||null;r.canDeactivateChecks.push(new kW(l,a))}}else a&&MW(t,s,r),r.canActivateChecks.push(new wW(i)),SW(e,null,o.component?s?s.children:null:n,i,r);return r}function OW(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!fG(e.url,t.url);case"pathParamsOrQueryParamsChange":return!fG(e.url,t.url)||!iG(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!GG(e,t)||!iG(e.queryParams,t.queryParams);case"paramsChange":default:return!GG(e,t)}}function MW(e,t,n){var i=DG(e),r=e.value;sG(i,(function(e,i){MW(e,r.component?t?t.children.getContext(i):null:t,n)})),n.canDeactivateChecks.push(new kW(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function TW(e,t){return null!==e&&t&&t(new YU(e)),Object(Sm.a)(!0)}function EW(e,t){return null!==e&&t&&t(new KU(e)),Object(Sm.a)(!0)}function PW(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(Sm.a)(!0);var r=i.map((function(i){return Object(CU.a)((function(){var r,o=CW(i,t,n);if(function(e){return e&&sW(e.canActivate)}(o))r=cG(o.canActivate(t,e));else{if(!sW(o))throw new Error("Invalid CanActivate guard");r=cG(o(t,e))}return r.pipe(Object(EU.a)())}))}));return Object(Sm.a)(r).pipe(uW())}function jW(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Object(CU.a)((function(){var r=t.guards.map((function(r){var o,a=CW(r,t.node,n);if(function(e){return e&&sW(e.canActivateChild)}(a))o=cG(a.canActivateChild(i,e));else{if(!sW(a))throw new Error("Invalid CanActivateChild guard");o=cG(a(i,e))}return o.pipe(Object(EU.a)())}));return Object(Sm.a)(r).pipe(uW())}))}));return Object(Sm.a)(r).pipe(uW())}var AW=function e(){Object(m.a)(this,e)},IW=function(){function e(t,n,i,r,o,a){Object(m.a)(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return Object(g.a)(e,[{key:"recognize",value:function(){try{var e=LW(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,$U),n=new HG([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},$U,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new IG(n,t),r=new zG(this.url,i);return this.inheritParamsAndData(r._root),Object(Sm.a)(r)}catch(o){return new k.a((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=NG(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,i=this,r=pG(t,(function(t,n){return i.processSegmentGroup(e,t,n)}));return n={},r.forEach((function(e){var t=n[e.value.outlet];if(t){var i=t.url.map((function(e){return e.toString()})).join("/"),r=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[e.value.outlet]=e.value})),r.sort((function(e,t){return e.value.outlet===$U?-1:t.value.outlet===$U?1:e.value.outlet.localeCompare(t.value.outlet)})),r}},{key:"processSegment",value:function(e,t,n,i){var r,o=d(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;try{return this.processSegmentAgainstRoute(a,t,n,i)}catch(s){if(!(s instanceof AW))throw s}}}catch(c){o.e(c)}finally{o.f()}if(this.noLeftoversInUrl(t,n,i))return[];throw new AW}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new AW;if((e.outlet||$U)!==i)throw new AW;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?aG(n).parameters:{};r=new HG(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,BW(e),i,e.component,e,DW(t),RW(t)+n.length,HW(e))}else{var c=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new AW;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||nG)(n,e,t);if(!i)throw new AW;var r={};sG(i.posParams,(function(e,t){r[t]=e.path}));var o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(t,e,n);o=c.consumedSegments,a=n.slice(c.lastChild),r=new HG(o,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,BW(e),i,e.component,e,DW(t),RW(t)+o.length,HW(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=LW(t,o,a,l,this.relativeLinkResolution),h=u.segmentGroup,d=u.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(l,h);return[new IG(r,f)]}if(0===l.length&&0===d.length)return[new IG(r,[])];var p=this.processSegment(l,h,d,$U);return[new IG(r,p)]}}]),e}();function DW(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function RW(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function LW(e,t,n,i,r){if(n.length>0&&function(e,t,n){return n.some((function(n){return FW(e,t,n)&&NW(n)!==$U}))}(e,n,i)){var o=new hG(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=d(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&NW(s)!==$U){var c=new hG([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[NW(s)]=c}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new hG(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return FW(e,t,n)}))}(e,n,i)){var a=new hG(e.segments,function(e,t,n,i,r,o){var a,s={},c=d(i);try{for(c.s();!(a=c.n()).done;){var l=a.value;if(FW(e,n,l)&&!r[NW(l)]){var u=new hG([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[NW(l)]=u}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new hG(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function FW(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function NW(e){return e.outlet||$U}function BW(e){return e.data||{}}function HW(e){return e.resolve||{}}function zW(e){return function(t){return t.pipe(Object(tg.a)((function(t){var n=e(t);return n?Object(pf.a)(n).pipe(Object(mf.a)((function(){return t}))):Object(pf.a)([t])})))}}var VW=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),qW=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Oa(0,"router-outlet")},directives:function(){return[cK]},encapsulation:2}),e}();function UW(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n],r=WW(t,i);GW(i,r)}}function GW(e,t){if(!e)throw new Error("\n Invalid configuration of route '".concat(t,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==$U)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. ").concat("The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&UW(e.children,t)}function WW(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function KW(e){var t=e.children&&e.children.map(KW),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==$U&&(n.component=qW),n}var XW=new he("ROUTES"),YW=function(){function e(t,n,i,r){Object(m.a)(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return Object(g.a)(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(mf.a)((function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new aW(oG(r.injector.get(XW)).map(KW),r)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(pf.a)(this.loader.load(e)):cG(e()).pipe(Object(PU.b)((function(e){return e instanceof Te?Object(Sm.a)(e):Object(pf.a)(t.compiler.compileModuleAsync(e))})))}}]),e}(),ZW=function e(){Object(m.a)(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new QW,this.attachRef=null},QW=function(){function e(){Object(m.a)(this,e),this.contexts=new Map}return Object(g.a)(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new ZW,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),$W=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function JW(e){throw e}function eK(e,t,n){return t.parse("/")}function tK(e,t){return Object(Sm.a)(null)}var nK=function(){var e=function(){function e(t,n,i,r,o,a,s,c){var l=this;Object(m.a)(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new w.b,this.errorHandler=JW,this.malformedUriErrorHandler=eK,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:tK,afterPreactivation:tK},this.urlHandlingStrategy=new $W,this.routeReuseStrategy=new VW,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Me),this.console=o.get(xl);var u=o.get(Nl);this.isNgZoneEnabled=u instanceof Nl,this.resetConfig(c),this.currentUrlTree=new uG(new hG([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new YW(a,s,(function(e){return l.triggerEvent(new GU(e))}),(function(e){return l.triggerEvent(new WU(e))})),this.routerState=LG(this.currentUrlTree,this.rootComponentType),this.transitions=new Um.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return Object(g.a)(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object($m.a)((function(e){return 0!==e.id})),Object(mf.a)((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Object(tg.a)((function(e){var i,r,o,a=!1,s=!1;return Object(Sm.a)(e).pipe(Object(jU.a)((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Object(tg.a)((function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(Sm.a)(e).pipe(Object(tg.a)((function(e){var i=t.transitions.getValue();return n.next(new LU(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?SU.a:[e]})),Object(tg.a)((function(e){return Promise.resolve(e)})),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Object(tg.a)((function(e){return function(e,t,n,i,r){return new gW(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Object(mf.a)((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),Object(jU.a)((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,i,r,o){return function(i){return i.pipe(Object(PU.b)((function(i){return function(e,t,n,i){return new IW(e,t,n,i,arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy").recognize()}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Object(mf.a)((function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(jU.a)((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Object(jU.a)((function(e){var i=new HU(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var c=e.extractedUrl,l=e.source,u=e.restoredState,h=e.extras,d=new LU(e.id,t.serializeUrl(c),l,u);n.next(d);var f=LG(c,t.rootComponentType).snapshot;return Object(Sm.a)(Object.assign(Object.assign({},e),{targetSnapshot:f,urlAfterRedirects:c,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),SU.a})),zW((function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Object(jU.a)((function(e){var n=new zU(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),Object(mf.a)((function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,i=e.currentSnapshot,r=t.rootContexts,o=n._root,SW(o,i?i._root:null,r,[o.value]))});var n,i,r,o})),function(e,t){return function(n){return n.pipe(Object(PU.b)((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Object(Sm.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(pf.a)(e).pipe(Object(PU.b)((function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(Sm.a)(!0);var a=o.map((function(o){var a,s=CW(o,t,r);if(function(e){return e&&sW(e.canDeactivate)}(s))a=cG(s.canDeactivate(e,t,n,i));else{if(!sW(s))throw new Error("Invalid CanDeactivate guard");a=cG(s(e,t,n,i))}return a.pipe(Object(EU.a)())}));return Object(Sm.a)(a).pipe(uW())}(e.component,e.route,n,t,i)})),Object(EU.a)((function(e){return!0!==e}),!0))}(s,i,r,e).pipe(Object(PU.b)((function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return Object(pf.a)(t).pipe(Object(Xg.a)((function(t){return Object(pf.a)([EW(t.route.parent,i),TW(t.route,i),jW(e,t.path,n),PW(e,t.route,n)]).pipe(Object(xU.a)(),Object(EU.a)((function(e){return!0!==e}),!0))})),Object(EU.a)((function(e){return!0!==e}),!0))}(i,a,e,t):Object(Sm.a)(n)})),Object(mf.a)((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Object(jU.a)((function(e){if(cW(e.guardsResult)){var n=tG('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Object(jU.a)((function(e){var n=new VU(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),Object($m.a)((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new NU(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0})),zW((function(e){if(e.guards.canActivateChecks.length)return Object(Sm.a)(e).pipe(Object(jU.a)((function(e){var n=new qU(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),Object(tg.a)((function(e){var i,r,o=!1;return Object(Sm.a)(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(Object(PU.b)((function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object(Sm.a)(e);var o=0;return Object(pf.a)(n).pipe(Object(Xg.a)((function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Object(Sm.a)({});var o={};return Object(pf.a)(r).pipe(Object(PU.b)((function(r){return function(e,t,n,i){var r=CW(e,t,i);return cG(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Object(jU.a)((function(e){o[r]=e})))})),Object(AU.a)(1),Object(PU.b)((function(){return Object.keys(o).length===r.length?Object(Sm.a)(o):SU.a})))}(e._resolve,e,t,i).pipe(Object(mf.a)((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),NG(e,n).resolve),null})))}(e.route,t,i,r)})),Object(jU.a)((function(){return o++})),Object(AU.a)(1),Object(PU.b)((function(t){return o===n.length?Object(Sm.a)(e):SU.a})))})))}),Object(jU.a)({next:function(){return o=!0},complete:function(){if(!o){var i=new NU(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))})),Object(jU.a)((function(e){var n=new UU(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})))})),zW((function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Object(mf.a)((function(e){var n,i,r,o=(r=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){var r=i.value;r._futureSnapshot=n.value;var o=function(t,n,i){return n.children.map((function(n){var r,o=d(i.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(t.shouldReuseRoute(a.value.snapshot,n.value))return e(t,n,a)}}catch(s){o.e(s)}finally{o.f()}return e(t,n)}))}(t,n,i);return new IG(r,o)}var a=t.retrieve(n.value);if(a){var s=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,s),s}var c,l=new FG(new Um.a((c=n.value).url),new Um.a(c.params),new Um.a(c.queryParams),new Um.a(c.fragment),new Um.a(c.data),c.outlet,c.component,c),u=n.children.map((function(n){return e(t,n)}));return new IG(l,u)}(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(i=e.currentRouterState)?i._root:void 0),new RG(r,n));return Object.assign(Object.assign({},e),{targetRouterState:o})})),Object(jU.a)((function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Object(mf.a)((function(e){return new rW(r,e.targetRouterState,e.currentRouterState,o).activate(i),e}))),Object(jU.a)({next:function(){a=!0},complete:function(){a=!0}}),Object(IU.a)((function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new NU(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null})),Object(TU.a)((function(i){if(s=!0,(c=i)&&c.ngNavigationCancelingError){var r=cW(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new NU(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout((function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})}),0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new BU(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(l){e.reject(l)}}var c;return SU.a})))})))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout((function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)}),0),e.lastLocationChangeInfo=n})))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){UW(e),this.config=e.map(KW),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.preserveQueryParams,a=t.queryParamsHandling,s=t.preserveFragment;fi()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,l=s?this.currentUrlTree.fragment:r,u=null;if(a)switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}else u=o?this.currentUrlTree.queryParams:i||null;return null!==u&&(u=this.removeEmptyProps(u)),WG(c,this.currentUrlTree,e,u,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};fi()&&this.isNgZoneEnabled&&!Nl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=cW(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return iK(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(cW(e))return lG(this.currentUrlTree,e,t);var n=this.parseUrl(e);return lG(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce((function(t,n){var i=e[n];return null!=i&&(t[n]=i),t}),{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe((function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new FU(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,n,i,r){var o,a,s,c=this.getTransition(),l="imperative"!==t&&"imperative"===(null==c?void 0:c.source),u=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(l&&u)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise((function(e,t){o=e,a=t}));var h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Ho),we(mG),we(QW),we(Iu),we(na),we(su),we(Rl),we(void 0))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}();function iK(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}var rK=function(){var e=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new w.b,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"onClick",value:function(){var e={skipLocationChange:aK(this.skipLocationChange),replaceUrl:aK(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){fi()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:aK(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:aK(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(nK),_a(FG),wa("tabindex"),_a(Qs),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Ia("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[ct]}),e}(),oK=function(){var e=function(){function e(t,n,i){var r=this;Object(m.a)(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new w.b,this.subscription=t.events.subscribe((function(e){e instanceof FU&&r.updateTargetUrlAndHref()}))}return Object(g.a)(e,[{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:aK(this.skipLocationChange),replaceUrl:aK(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){fi()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:aK(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:aK(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(nK),_a(FG),_a(Tu))},e.\u0275dir=Ke({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ia("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)})),2&e&&(Os("href",t.href,Hi),fa("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[ct]}),e}();function aK(e){return""===e||!!e}var sK=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;Object(m.a)(this,e),this.router=t,this.element=n,this.renderer=i,this.cdr=r,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe((function(e){e instanceof FU&&s.update()}))}return Object(g.a)(e,[{key:"ngAfterContentInit",value:function(){var e=this;Object(pf.a)([this.links.changes,this.linksWithHrefs.changes,Object(Sm.a)(null)]).pipe(Object(DU.a)()).subscribe((function(t){e.update(),e.subscribeToEachLinkOnChanges()}))}},{key:"subscribeToEachLinkOnChanges",value:function(){var e,t=this;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();var n=[].concat(Object(u.a)(this.links.toArray()),Object(u.a)(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter((function(e){return!!e})).map((function(e){return e.onChanges}));this.linkInputChangesSubscription=Object(pf.a)(n).pipe(Object(DU.a)()).subscribe((function(e){t.isActive!==t.isLinkActive(t.router)(e)&&t.update()}))}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.cdr.markForCheck(),e.classes.forEach((function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)})))}))}},{key:"isLinkActive",value:function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter((function(e){return!!e}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(nK),_a(Ks),_a(Qs),_a(No),_a(rK,8),_a(oK,8))},e.\u0275dir=Ke({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,rK,!0),ul(n,oK,!0)),2&e&&(al(i=fl())&&(t.links=i),al(i=fl())&&(t.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ct]}),e}(),cK=function(){var e=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Yc,this.deactivateEvents=new Yc,this.name=r||$U,t.onChildOutletCreated(this.name,this)}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new lK(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(QW),_a(yc),_a(Ws),wa("name"),_a(No))},e.\u0275dir=Ke({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),lK=function(){function e(t,n,i){Object(m.a)(this,e),this.route=t,this.childContexts=n,this.parent=i}return Object(g.a)(e,[{key:"get",value:function(e,t){return e===FG?this.route:e===QW?this.childContexts:this.parent.get(e,t)}}]),e}(),uK=function e(){Object(m.a)(this,e)},hK=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"preload",value:function(e,t){return t().pipe(Object(TU.a)((function(){return Object(Sm.a)(null)})))}}]),e}(),dK=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"preload",value:function(e,t){return Object(Sm.a)(null)}}]),e}(),fK=function(){var e=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new YW(n,i,(function(e){return t.triggerEvent(new GU(e))}),(function(e){return t.triggerEvent(new WU(e))}))}return Object(g.a)(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Object($m.a)((function(e){return e instanceof FU})),Object(Xg.a)((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(Me);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=d(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return Object(pf.a)(i).pipe(Object(DU.a)(),Object(mf.a)((function(e){})))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,(function(){return n.loader.load(e.injector,t).pipe(Object(PU.b)((function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})))}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(nK),we(su),we(Rl),we(na),we(uK))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),pK=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(m.a)(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return Object(g.a)(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof LU?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof FU&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof QU&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new QU(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(nK),we(kd),we(void 0))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),mK=new he("ROUTER_CONFIGURATION"),gK=new he("ROUTER_FORROOT_GUARD"),vK=[Iu,{provide:mG,useClass:gG},{provide:nK,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,u=new nK(null,e,t,n,i,r,o,oG(a));if(c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=gu();u.events.subscribe((function(e){h.logGroup("Router Event: ".concat(e.constructor.name)),h.log(e.toString()),h.log(e),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[mG,QW,Iu,na,su,Rl,XW,mK,[function e(){Object(m.a)(this,e)},new E],[function e(){Object(m.a)(this,e)},new E]]},QW,{provide:FG,useFactory:function(e){return e.routerState.root},deps:[nK]},{provide:su,useClass:uu},fK,dK,hK,{provide:mK,useValue:{enableTracing:!1}}];function bK(){return new $l("Router",nK)}var yK=function(){var e=function(){function e(t,n){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[vK,CK(t),{provide:gK,useFactory:kK,deps:[[nK,new E,new j]]},{provide:mK,useValue:n||{}},{provide:Tu,useFactory:wK,deps:[yu,[new T(Pu),new E],mK]},{provide:pK,useFactory:_K,deps:[nK,kd,mK]},{provide:uK,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:dK},{provide:$l,multi:!0,useFactory:bK},[SK,{provide:vl,multi:!0,useFactory:xK,deps:[SK]},{provide:MK,useFactory:OK,deps:[SK]},{provide:Sl,multi:!0,useExisting:MK}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[CK(t)]}}}]),e}();return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)(we(gK,8),we(nK,8))}}),e}();function _K(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new pK(e,t,n)}function wK(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Au(e,t):new ju(e,t)}function kK(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function CK(e){return[{provide:ia,multi:!0,useValue:e},{provide:XW,multi:!0,useValue:e}]}var SK=function(){var e=function(){function e(t){Object(m.a)(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new w.b}return Object(g.a)(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(wu,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),i=e.injector.get(nK),r=e.injector.get(mK);if(e.isLegacyDisabled(r)||e.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return e.initNavigation?Object(Sm.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(mK),n=this.injector.get(fK),i=this.injector.get(pK),r=this.injector.get(nK),o=this.injector.get(ou);e===o.components[0]&&(this.isLegacyEnabled(t)?r.initialNavigation():this.isLegacyDisabled(t)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(na))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}();function xK(e){return e.appInitializer.bind(e)}function OK(e){return e.bootstrapListener.bind(e)}var MK=new he("Router Initializer"),TK=function(){function e(e,t){this.utils=new EK,this.dbWrapper=new PK(e,t)}return e.prototype.openDatabase=function(e,t){var n=this,i=this;return new Promise((function(r,o){n.dbWrapper.dbVersion=e;var a=n.utils.indexedDB.open(n.dbWrapper.dbName,e);a.onsuccess=function(e){i.dbWrapper.db=a.result,r()},a.onerror=function(e){o(e.target.errorCode+" ("+e.target.error+")")},"function"==typeof t&&(a.onupgradeneeded=function(e){t(e,i.dbWrapper.db)})}))},e.prototype.getByKey=function(e,t){var n=this;return new Promise((function(i,r){n.dbWrapper.validateBeforeTransaction(e,r),n.dbWrapper.createTransaction({storeName:e,dbMode:"readonly",error:function(e){r(e)},complete:function(e){}}).objectStore(e).get(t).onsuccess=function(e){i(e.target.result)}}))},e.prototype.getAll=function(e,t,n){var i=this;return new Promise((function(r,o){i.dbWrapper.validateBeforeTransaction(e,o);var a,s=i.dbWrapper.createTransaction({storeName:e,dbMode:"readonly",error:function(e){o(e)},complete:function(e){}}).objectStore(e),c=[];(a=n?s.index(n.indexName).openCursor(t,"desc"===n.order?"prev":"next"):s.openCursor(t)).onerror=function(e){o(e)},a.onsuccess=function(e){var t=e.target.result;t?(c.push(t.value),t.continue()):r(c)}}))},e.prototype.add=function(e,t,n){var i=this;return new Promise((function(r,o){i.dbWrapper.validateBeforeTransaction(e,o),i.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){o(e)},complete:function(e){r({key:n,value:t})}}).objectStore(e).add(t,n).onsuccess=function(e){n=e.target.result}}))},e.prototype.update=function(e,t,n){var i=this;return new Promise((function(r,o){i.dbWrapper.validateBeforeTransaction(e,o),i.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){o(e)},complete:function(e){r(t)},abort:function(e){o(e)}}).objectStore(e).put(t,n)}))},e.prototype.delete=function(e,t){var n=this;return new Promise((function(i,r){n.dbWrapper.validateBeforeTransaction(e,r),n.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){r(e)},complete:function(e){i()},abort:function(e){r(e)}}).objectStore(e).delete(t)}))},e.prototype.openCursor=function(e,t,n){var i=this;return new Promise((function(r,o){i.dbWrapper.validateBeforeTransaction(e,o),i.dbWrapper.createTransaction({storeName:e,dbMode:"readonly",error:function(e){o(e)},complete:function(e){r()},abort:function(e){o(e)}}).objectStore(e).openCursor(n).onsuccess=function(e){t(e),r()}}))},e.prototype.clear=function(e){var t=this;return new Promise((function(n,i){t.dbWrapper.validateBeforeTransaction(e,i),t.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){i(e)},complete:function(e){n()},abort:function(e){i(e)}}).objectStore(e).clear(),n()}))},e.prototype.getByIndex=function(e,t,n){var i=this;return new Promise((function(r,o){i.dbWrapper.validateBeforeTransaction(e,o),i.dbWrapper.createTransaction({storeName:e,dbMode:"readonly",error:function(e){o(e)},abort:function(e){o(e)},complete:function(e){}}).objectStore(e).index(t).get(n).onsuccess=function(e){r(e.target.result)}}))},e}(),EK=function(){return function(){this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}}(),PK=function(){function e(e,t){this.dbName=e,this.dbVersion=t||1,this.db=null}return e.prototype.validateStoreName=function(e){return this.db.objectStoreNames.contains(e)},e.prototype.validateBeforeTransaction=function(e,t){this.db||t("You need to use the openDatabase function to create a database before you query it!"),this.validateStoreName(e)||t("objectStore does not exists: "+e)},e.prototype.createTransaction=function(e){var t=this.db.transaction(e.storeName,e.dbMode);return t.onerror=e.error,t.oncomplete=e.complete,t.onabort=e.abort,t},e}(),jK=function(){function e(){this.db=new TK(e.DATABASE,e.VERSION)}return e.prototype.get=function(){return this.db},e.VERSION=1,e.DATABASE="gns3-web-ui",e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),AK=function(){return function(){}}(),IK=function(e,t){return(IK=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function DK(e,t){function n(){this.constructor=e}IK(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var RK=function(){return(RK=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function LK(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function FK(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function NK(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var BK=n("z6cu"),HK=function(e){function t(t){return e.call(this,t)||this}return DK(t,e),t.fromError=function(e,n){var i=new t(e);return i.originalError=n,i},t}(Error),zK=function(){function e(){}return e.prototype.handleError=function(e){var t=e;return"HttpErrorResponse"===e.name&&0===e.status&&(t=HK.fromError("Server is unreachable",e)),Object(BK.a)(t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),VK=function(){function e(e,t){this.http=e,this.errorHandler=t,this.requestsNotificationEmitter=new Yc}return e.prototype.get=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("GET "+i.url),this.http.get(i.url,i.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.getText=function(e,t,n){n=this.getTextOptions(n);var i=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("GET "+i.url),this.http.get(i.url,i.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.post=function(e,t,n,i){i=this.getJsonOptions(i);var r=this.getOptionsForServer(e,t,i);return this.requestsNotificationEmitter.emit("POST "+r.url),this.http.post(r.url,n,r.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.put=function(e,t,n,i){i=this.getJsonOptions(i);var r=this.getOptionsForServer(e,t,i);return this.requestsNotificationEmitter.emit("PUT "+r.url),this.http.put(r.url,n,r.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.delete=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("DELETE "+i.url),this.http.delete(i.url,i.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.patch=function(e,t,n,i){i=this.getJsonOptions(i);var r=this.getOptionsForServer(e,t,i);return this.http.patch(r.url,n,r.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.head=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.http.head(i.url,i.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.options=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.http.options(i.url,i.options).pipe(Object(TU.a)(this.errorHandler.handleError))},e.prototype.getJsonOptions=function(e){return e||{responseType:"json"}},e.prototype.getTextOptions=function(e){return e||{responseType:"text"}},e.prototype.getOptionsForServer=function(e,t,n){if(t=e.host&&e.port?"http://"+e.host+":"+e.port+"/v2"+t:"/v2"+t,n.headers||(n.headers={}),"basic"===e.authorization){var i=btoa(e.login+":"+e.password);n.headers.Authorization="Basic "+i}return{url:t,options:n}},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(dv),we(zK))}}),e}(),qK=function(){function e(e,t){var n=this;this.indexedDbService=e,this.httpServer=t,this.tablename="servers",this.isIncognitoMode=!1,this.serverIdsInIncognitoMode=[],this.serviceInitialized=new w.b,this.ready=this.indexedDbService.get().openDatabase(1,(function(e){e.currentTarget.result.createObjectStore(n.tablename,{keyPath:"id",autoIncrement:!0})})).then((function(){n.indexedDbService.get().getAll(n.tablename).then((function(){})).catch((function(){n.isIncognitoMode=!0}))})).catch((function(){n.isIncognitoMode=!0})).finally((function(){n.isServiceInitialized=!0,n.serviceInitialized.next(!0)}))}return e.prototype.tryToCreateDb=function(){var e=this;return new Promise((function(t){e.indexedDbService.get().openDatabase(1,(function(t){t.currentTarget.result.createObjectStore(e.tablename,{keyPath:"id",autoIncrement:!0})})).then((function(){})).catch((function(){e.isIncognitoMode=!0}))}))},e.prototype.get=function(e){var t=this;if(this.isIncognitoMode){var n=JSON.parse(localStorage.getItem("server-"+e));return new Promise((function(e){e(n)}))}return this.onReady((function(){return t.indexedDbService.get().getByKey(t.tablename,e)}))},e.prototype.create=function(e){var t=this;return this.isIncognitoMode?(e.id=this.serverIdsInIncognitoMode.length+1,localStorage.setItem("server-"+e.id,JSON.stringify(e)),this.serverIdsInIncognitoMode.push("server-"+e.id),new Promise((function(t){t(e)}))):this.onReady((function(){return new Promise((function(n,i){t.indexedDbService.get().add(t.tablename,e).then((function(t){e.id=t.key,n(e)}),i)}))}))},e.prototype.update=function(e){var t=this;return this.isIncognitoMode?(localStorage.removeItem("server-"+e.id),localStorage.setItem("server-"+e.id,JSON.stringify(e)),new Promise((function(t){t(e)}))):this.onReady((function(){return new Promise((function(n,i){t.indexedDbService.get().update(t.tablename,e).then((function(t){n(e)}),i)}))}))},e.prototype.findAll=function(){var e=this;return this.isIncognitoMode?new Promise((function(t){var n=[];e.serverIdsInIncognitoMode.forEach((function(e){var t=JSON.parse(localStorage.getItem(e));n.push(t)})),t(n)})):this.onReady((function(){return e.indexedDbService.get().getAll(e.tablename)}))},e.prototype.delete=function(e){var t=this;return this.isIncognitoMode?(localStorage.removeItem("server-"+e.id),this.serverIdsInIncognitoMode=this.serverIdsInIncognitoMode.filter((function(t){return t!=="server-"+e.id})),new Promise((function(t){t(e.id)}))):this.onReady((function(){return t.indexedDbService.get().delete(t.tablename,e.id)}))},e.prototype.getServerUrl=function(e){return"http://"+e.host+":"+e.port+"/"},e.prototype.checkServerVersion=function(e){return this.httpServer.get(e,"/version")},e.prototype.getLocalServer=function(e,t){var n=this;return new Promise((function(i,r){n.findAll().then((function(o){var a=o.find((function(e){return"bundled"===e.location}));if(a)a.host=e,a.port=t,n.update(a).then((function(e){i(e)}),r);else{var s=new AK;s.name="local",s.host=e,s.port=t,s.location="bundled",n.create(s).then((function(e){i(e)}),r)}}),r)}))},e.prototype.onReady=function(e){var t=this;return new Promise((function(n,i){t.ready.then((function(){e().then((function(e){n(e)}),(function(e){i(e)}))}),(function(e){i(e)}))}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(jK),we(VK))}}),e}(),UK=function(){function e(e){this.persistenceService=e,this.settingsSubject=new Um.a(this.getAll())}return e.prototype.get=function(t){if(!(t in e.DEFAULTS))throw Error("Key '"+t+"' doesn't exist in settings");var n=this.persistenceService.get(t,Qq.LOCAL);return void 0===n?e.DEFAULTS[t]:n},e.prototype.set=function(t,n){if(!(t in e.DEFAULTS))throw Error("Key '"+t+"' doesn't exist in settings");this.persistenceService.set(t,n,{type:Qq.LOCAL}),this.settingsSubject.next(this.getAll())},e.prototype.getAll=function(){var t=this,n=RK({},e.DEFAULTS);return Object.keys(e.DEFAULTS).forEach((function(e){n[e]=t.get(e)})),n},e.prototype.setAll=function(e){var t=this;Object.keys(e).forEach((function(n){t.set(n,e[n])}))},e.prototype.isExperimentalEnabled=function(){return this.get("experimental_features")},e.prototype.subscribe=function(e){return this.settingsSubject.subscribe(e)},e.DEFAULTS={crash_reports:!0,experimental_features:!1,angular_map:!1,console_command:void 0},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(lU))}}),e}(),GK=function(){function e(e,t){this.httpServer=e,this.settingsService=t,this.projectListSubject=new w.b}return e.prototype.projectListUpdated=function(){this.projectListSubject.next(!0)},e.prototype.get=function(e,t){return this.httpServer.get(e,"/projects/"+t)},e.prototype.open=function(e,t){return this.httpServer.post(e,"/projects/"+t+"/open",{})},e.prototype.close=function(e,t){return this.httpServer.post(e,"/projects/"+t+"/close",{})},e.prototype.list=function(e){return this.httpServer.get(e,"/projects")},e.prototype.nodes=function(e,t){return this.httpServer.get(e,"/projects/"+t+"/nodes")},e.prototype.links=function(e,t){return this.httpServer.get(e,"/projects/"+t+"/links")},e.prototype.drawings=function(e,t){return this.httpServer.get(e,"/projects/"+t+"/drawings")},e.prototype.add=function(e,t,n){return this.httpServer.post(e,"/projects",{name:t,project_id:n})},e.prototype.update=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id,{auto_close:t.auto_close,auto_open:t.auto_open,auto_start:t.auto_start,drawing_grid_size:t.drawing_grid_size,grid_size:t.grid_size,name:t.name,scene_width:t.scene_width,scene_height:t.scene_height,show_interface_labels:t.show_interface_labels})},e.prototype.delete=function(e,t){return this.httpServer.delete(e,"/projects/"+t)},e.prototype.getUploadPath=function(e,t,n){return"http://"+e.host+":"+e.port+"/v2/projects/"+t+"/import?name="+n},e.prototype.getExportPath=function(e,t){return"http://"+e.host+":"+e.port+"/v2/projects/"+t.project_id+"/export"},e.prototype.export=function(e,t){return this.httpServer.get(e,"/projects/"+t+"/export")},e.prototype.getStatistics=function(e,t){return this.httpServer.get(e,"/projects/"+t+"/stats")},e.prototype.duplicate=function(e,t,n){return this.httpServer.post(e,"/projects/"+t+"/duplicate",{name:n})},e.prototype.notificationsPath=function(e,t){return"ws://"+e.host+":"+e.port+"/v2/projects/"+t+"/notifications/ws"},e.prototype.isReadOnly=function(e){return!!e.readonly&&e.readonly},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK),we(UK))}}),e}(),WK=13,KK=27,XK=32;function YK(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some((function(t){return e[t]})):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var ZK=n("Kj3r"),QK=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:function(){return new e},token:e,providedIn:"root"}),e}(),$K=function(){var e=function(){function e(t){Object(m.a)(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,n){return e._cleanupObserver(n)}))}},{key:"observe",value:function(e){var t=this,n=km(e);return new k.a((function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}}))}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new w.b,n=this._mutationObserverFactory.create((function(e){return t.next(e)}));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(QK))},e.\u0275prov=R({factory:function(){return new e(we(QK))},token:e,providedIn:"root"}),e}(),JK=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Yc,this._disabled=!1,this._currentSubscription=null}return Object(g.a)(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(Object(ZK.a)(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=bm(e),this._subscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a($K),_a(Ks),_a(Nl))},e.\u0275dir=Ke({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),eX=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[QK]}),e}();function tX(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var nX="cdk-describedby-message-container",iX="cdk-describedby-message",rX="cdk-describedby-host",oX=0,aX=new Map,sX=null,cX=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._platform=n,this._document=t}return Object(g.a)(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),aX.set(t,{messageElement:t,referenceCount:0})):aX.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=aX.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}sX&&0===sX.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(rX,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(rX);sX&&this._deleteMessagesContainer(),aX.clear()}},{key:"_createMessageElement",value:function(e){var t=this._document.createElement("div");this._setMessageId(t),t.textContent=e,this._createMessagesContainer(),sX.appendChild(t),aX.set(e,{messageElement:t,referenceCount:0})}},{key:"_setMessageId",value:function(e){e.id||(e.id="".concat(iX,"-").concat(oX++))}},{key:"_deleteMessageElement",value:function(e){var t=aX.get(e),n=t&&t.messageElement;sX&&n&&sX.removeChild(n),aX.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!sX){var e=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,t=this._document.getElementById(nX);t&&t.parentNode&&t.parentNode.removeChild(t),(sX=this._document.createElement("div")).id=nX,sX.classList.add("cdk-visually-hidden"),sX.setAttribute("aria-hidden",e+""),this._document.body.appendChild(sX)}}},{key:"_deleteMessagesContainer",value:function(){sX&&sX.parentNode&&(sX.parentNode.removeChild(sX),sX=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=tX(e,"aria-describedby").filter((function(e){return 0!=e.indexOf(iX)}));e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o=aX.get(t);i=o.messageElement.id,(r=tX(n=e,"aria-describedby")).some((function(e){return e.trim()==i.trim()}))||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),e.setAttribute(rX,""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=aX.get(t);a.referenceCount--,r=a.messageElement.id,(o=tX(n=e,i="aria-describedby").filter((function(e){return e!=r.trim()}))).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute(rX)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=tX(e,"aria-describedby"),i=aX.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(bu),we(Fm))},e.\u0275prov=R({factory:function(){return new e(we(bu),we(Fm))},token:e,providedIn:"root"}),e}(),lX=function(){function e(t){var n=this;Object(m.a)(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.b,this._typeaheadSubscription=_.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new w.b,this.change=new w.b,t instanceof Qc&&t.changes.subscribe((function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}}))}return Object(g.a)(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(jU.a)((function(t){return e._pressedLetters.push(t)})),Object(ZK.a)(t),Object($m.a)((function(){return e._pressedLetters.length>0})),Object(mf.a)((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]})),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||YK(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Qc?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),uX=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),Object(o.a)(Object(a.a)(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(lX),hX=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments))._origin="program",e}return Object(g.a)(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(lX),dX=function(){var e=function(){function e(t){Object(m.a)(this,e),this._platform=t}return Object(g.a)(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(swe){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===pX(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=pX(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||fX(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Fm))},e.\u0275prov=R({factory:function(){return new e(we(Fm))},token:e,providedIn:"root"}),e}();function fX(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function pX(e){if(!fX(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var mX=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Object(m.a)(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return Object(g.a)(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),e.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Object(Wm.a)(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),gX=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._checker=t,this._ngZone=n,this._document=i}return Object(g.a)(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new mX(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(dX),we(Nl),we(bu))},e.\u0275prov=R({factory:function(){return new e(we(dX),we(Nl),we(bu))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&&Element;var vX=new he("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),bX=new he("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),yX=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return Object(g.a)(e,[{key:"announce",value:function(e){for(var t,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return 1===a.length&&"number"==typeof a[0]?n=a[0]:(t=a[0],n=a[1]),this.clear(),clearTimeout(this._previousTimeout),t||(t=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular((function(){return new Promise((function(t){clearTimeout(i._previousTimeout),i._previousTimeout=setTimeout((function(){i._liveElement.textContent=e,t(),"number"==typeof n&&(i._previousTimeout=setTimeout((function(){return i.clear()}),n))}),100)}))}))}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(vX,8),we(Nl),we(bu),we(bX,8))},e.\u0275prov=R({factory:function(){return new e(we(vX,8),we(Nl),we(bu),we(bX,8))},token:e,providedIn:"root"}),e}();function _X(e){return 0===e.buttons}var wX=new he("cdk-focus-monitor-default-options"),kX=zm({passive:!0,capture:!0}),CX=function(){var e=function(){function e(t,n,i,r){var o=this;Object(m.a)(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=_X(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=SX(e),o._touchTimeoutId=setTimeout((function(){return o._lastTouchTarget=null}),650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout((function(){return o._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(e){for(var t=SX(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return Object(g.a)(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Object(Sm.a)(null);var n=km(e),i=qm(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new w.b,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=km(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=km(e);this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n)}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach((function(t,n){return e.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=SX(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===SX(e))){var i=this._getFocusOrigin(e);this._setClasses(t,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run((function(){return e.next(t)}))}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,kX),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,kX)})),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,kX),e.addEventListener("mousedown",t._documentMousedownListener,kX),e.addEventListener("touchstart",t._documentTouchstartListener,kX),n.addEventListener("focus",t._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,kX),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,kX),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,kX),i.removeEventListener("mousedown",this._documentMousedownListener,kX),i.removeEventListener("touchstart",this._documentTouchstartListener,kX),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Nl),we(Fm),we(bu,8),we(wX,8))},e.\u0275prov=R({factory:function(){return new e(we(Nl),we(Fm),we(bu,8),we(wX,8))},token:e,providedIn:"root"}),e}();function SX(e){return e.composedPath?e.composedPath()[0]:e.target}var xX=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Yc}return Object(g.a)(e,[{key:"ngAfterViewInit",value:function(){var e=this;this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return e.cdkFocusChange.emit(t)}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(CX))},e.\u0275dir=Ke({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),OX="cdk-high-contrast-black-on-white",MX="cdk-high-contrast-white-on-black",TX="cdk-high-contrast-active",EX=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._platform=t,this._document=n}return Object(g.a)(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(TX),e.remove(OX),e.remove(MX);var t=this.getHighContrastMode();1===t?(e.add(TX),e.add(OX)):2===t&&(e.add(TX),e.add(MX))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Fm),we(bu))},e.\u0275prov=R({factory:function(){return new e(we(Fm),we(bu))},token:e,providedIn:"root"}),e}(),PX=function(){var e=function e(t){Object(m.a)(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)(we(EX))},imports:[[Nm,eX]]}),e}(),jX=n("3E0/"),AX=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),IX=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(AX),DX=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return Object(g.a)(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,Object(o.a)(Object(a.a)(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,Object(o.a)(Object(a.a)(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(AX),RX=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this)).element=e instanceof Ks?e.nativeElement:e,i}return n}(AX),LX=function(){function e(){Object(m.a)(this,e),this._isDisposed=!1,this.attachDomPortal=null}return Object(g.a)(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof IX?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof DX?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof RX?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),FX=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,c,l){var u,h;return Object(m.a)(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=i,h._appRef=r,h._defaultInjector=c,h.attachDomPortal=function(e){var t=e.element,i=h._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),h.outletElement.appendChild(t),Object(o.a)((u=Object(s.a)(h),Object(a.a)(n.prototype)),"setDisposeFn",u).call(u,(function(){i.parentNode&&i.parentNode.replaceChild(t,i)}))},h._document=l,h}return Object(g.a)(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){n._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),i.detectChanges(),this.setDisposeFn((function(){var e=n.indexOf(i);-1!==e&&n.remove(e)})),i}},{key:"dispose",value:function(){Object(o.a)(Object(a.a)(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(LX),NX=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){return Object(m.a)(this,n),t.call(this,e,i)}return n}(DX);return e.\u0275fac=function(t){return new(t||e)(_a(vc),_a(yc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Es]}),e}(),BX=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var c,l;return Object(m.a)(this,n),(l=t.call(this))._componentFactoryResolver=e,l._viewContainerRef=i,l._isInitialized=!1,l.attached=new Yc,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");e.setAttachedHost(Object(s.a)(l)),t.parentNode.insertBefore(i,t),l._getRootNode().appendChild(t),Object(o.a)((c=Object(s.a)(l),Object(a.a)(n.prototype)),"setDisposeFn",c).call(c,(function(){i.parentNode&&i.parentNode.replaceChild(t,i)}))},l._document=r,l}return Object(g.a)(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Object(o.a)(Object(a.a)(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),Object(o.a)(Object(a.a)(n.prototype),"setDisposeFn",this).call(this,(function(){return r.destroy()})),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return Object(o.a)(Object(a.a)(n.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&Object(o.a)(Object(a.a)(n.prototype),"detach",this).call(this),e&&Object(o.a)(Object(a.a)(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(LX);return e.\u0275fac=function(t){return new(t||e)(_a(Ws),_a(yc),_a(bu))},e.\u0275dir=Ke({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Es]}),e}(),HX=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(BX);return e.\u0275fac=function(t){return zX(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Vs([{provide:BX,useExisting:e}]),Es]}),e}(),zX=Qn(HX),VX=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),qX=new ec("10.2.2"),UX=["*",[["mat-option"],["ng-container"]]],GX=["*","mat-option, ng-container"];function WX(e,t){if(1&e&&Oa(0,"mat-pseudo-checkbox",3),2&e){var n=Ba();ka("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var KX=["*"],XX=function(){var e=function e(){Object(m.a)(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),YX=function(){var e=function e(){Object(m.a)(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),ZX=new ec("10.2.2"),QX=new he("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),$X=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return Object(g.a)(e,[{key:"_getDocument",value:function(){var e=this._document||document;return"object"==typeof e&&e?e:null}},{key:"_getWindow",value:function(){var e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return fi()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(!e&&t&&t.body&&"function"==typeof getComputedStyle){var n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&ZX.full!==qX.full&&console.warn("The Angular Material version ("+ZX.full+") does not match the Angular CDK version ("+qX.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)(we(EX),we(QX,8),we(bu,8))},imports:[[gm],gm]}),e}();function JX(e){return function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(m.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return Object(g.a)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e)}}]),n}(e)}function eY(e,t){return function(e){Object(f.a)(i,e);var n=Object(p.a)(i);function i(){var e;Object(m.a)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return Object(g.a)(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}function tY(e){return function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(m.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return Object(g.a)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=vm(e)}}]),n}(e)}function nY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e){Object(f.a)(i,e);var n=Object(p.a)(i);function i(){var e;Object(m.a)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return Object(g.a)(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?bm(e):this.defaultTabIndex}}]),i}(e);return n}function iY(e){return function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(m.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new w.b,e}return Object(g.a)(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}function rY(e){return function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(m.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new k.a((function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)})),e}return Object(g.a)(n,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}var oY=function(){var e=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:function(){return new e},token:e,providedIn:"root"}),e}(),aY=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function sY(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Object(Jm.a)(e)).subscribe((function(e){var i=e.length;cY(t,"".concat(n,"-2-line"),!1),cY(t,"".concat(n,"-3-line"),!1),cY(t,"".concat(n,"-multi-line"),!1),2===i||3===i?cY(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&cY(t,"".concat(n,"-multi-line"),!0)}))}function cY(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var lY=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[$X],$X]}),e}(),uY=function(){function e(t,n,i){Object(m.a)(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return Object(g.a)(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),hY={enterDuration:450,exitDuration:400},dY=zm({passive:!0}),fY=["mousedown","touchstart"],pY=["mouseup","mouseleave","touchend","touchcancel"],mY=function(){function e(t,n,i,r){Object(m.a)(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=km(i))}return Object(g.a)(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},hY),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||vY(e,t,r),s=e-r.left,c=t-r.top,l=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-a,"px"),u.style.top="".concat(c-a,"px"),u.style.height="".concat(2*a,"px"),u.style.width="".concat(2*a,"px"),null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(u),gY(u),u.style.transform="scale(1)";var h=new uY(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()}),l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},hY),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone((function(){e.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(e){return e.fadeOut()}))}},{key:"setupTriggerEvents",value:function(e){var t=km(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(fY))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(pY),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=_X(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach((function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()})))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(e,t)}))}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){e.forEach((function(e){t._triggerElement.addEventListener(e,t,dY)}))}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(fY.forEach((function(t){e._triggerElement.removeEventListener(t,e,dY)})),this._pointerUpEventsRegistered&&pY.forEach((function(t){e._triggerElement.removeEventListener(t,e,dY)})))}}]),e}();function gY(e){window.getComputedStyle(e).getPropertyValue("opacity")}function vY(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}var bY=new he("mat-ripple-global-options"),yY=function(){var e=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new mY(this,n,t,i)}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Nl),_a(Fm),_a(bY,8),_a(__,8))},e.\u0275dir=Ke({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&os("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),_Y=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[$X,Nm],$X]}),e}(),wY=function(){var e=function e(t){Object(m.a)(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&os("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),kY=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),CY=JX((function e(){Object(m.a)(this,e)})),SY=0,xY=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-".concat(SY++),e}return n}(CY);return e.\u0275fac=function(t){return OY(t||e)},e.\u0275dir=Ke({type:e,inputs:{label:"label"},features:[Es]}),e}(),OY=Qn(xY),MY=new he("MatOptgroup"),TY=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(xY);return e.\u0275fac=function(t){return EY(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(e,t){2&e&&(fa("aria-disabled",t.disabled.toString())("aria-labelledby",t._labelId),os("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[Vs([{provide:MY,useExisting:e}]),Es],ngContentSelectors:GX,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(za(UX),Sa(0,"label",0),_s(1),Va(2),xa(),Va(3,1)),2&e&&(ka("id",t._labelId),ar(1),ks("",t.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}(),EY=Qn(TY),PY=0,jY=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(m.a)(this,e),this.source=t,this.isUserInput=n},AY=new he("MAT_OPTION_PARENT_COMPONENT"),IY=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(PY++),this.onSelectionChange=new Yc,this._stateChanges=new w.b}return Object(g.a)(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){e.keyCode!==WK&&e.keyCode!==XK||YK(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new jY(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=vm(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(void 0),_a(xY))},e.\u0275dir=Ke({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),DY=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){return Object(m.a)(this,n),t.call(this,e,i,r,o)}return n}(IY);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(AY,8),_a(MY,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Ia("click",(function(){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&(Os("id",t.id),fa("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),os("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Es],ngContentSelectors:KX,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(za(),ba(0,WX,1,2,"mat-pseudo-checkbox",0),Sa(1,"span",1),Va(2),xa(),Oa(3,"div",2)),2&e&&(ka("ngIf",t.multiple),ar(3),ka("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Hh,yY,wY],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function RY(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var LY=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_Y,_d,kY]]}),e}(),FY=new he("mat-label-global-options"),NY=n("GJmQ"),BY=function(){function e(t,n){Object(m.a)(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return Object(g.a)(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=wm(-this._previousScrollPosition.left),e.style.top=wm(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=i,n.scrollBehavior=r}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),HY=function(){function e(t,n,i,r){var o=this;Object(m.a)(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run((function(){return o._overlayRef.detach()}))}}return Object(g.a)(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),zY=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function VY(e,t){return t.some((function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right}))}function qY(e,t){return t.some((function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right}))}var UY=function(){function e(t,n,i,r){Object(m.a)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return Object(g.a)(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;VY(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),GY=function(){var e=function e(t,n,i,r){var o=this;Object(m.a)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new zY},this.close=function(e){return new HY(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new BY(o._viewportRuler,o._document)},this.reposition=function(e){return new UY(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(we(ig),we(og),we(Nl),we(bu))},e.\u0275prov=R({factory:function(){return new e(we(ig),we(og),we(Nl),we(bu))},token:e,providedIn:"root"}),e}(),WY=function e(t){if(Object(m.a)(this,e),this.scrollStrategy=new zY,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},KY=function e(t,n,i,r,o){Object(m.a)(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},XY=function e(t,n){Object(m.a)(this,e),this.connectionPair=t,this.scrollableViewProperties=n},YY=function(){var e=function(){function e(t){Object(m.a)(this,e),this._attachedOverlays=[],this._document=t}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({factory:function(){return new e(we(bu))},token:e,providedIn:"root"}),e}(),ZY=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return Object(g.a)(n,[{key:"add",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(YY);return e.\u0275fac=function(t){return new(t||e)(we(bu))},e.\u0275prov=R({factory:function(){return new e(we(bu))},token:e,providedIn:"root"}),e}(),QY=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return Object(g.a)(n,[{key:"add",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(YY);return e.\u0275fac=function(t){return new(t||e)(we(bu),we(Fm))},e.\u0275prov=R({factory:function(){return new e(we(bu),we(Fm))},token:e,providedIn:"root"}),e}(),$Y=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),JY=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._platform=n,this._document=t}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window,t="cdk-overlay-container";if(e||$Y)for(var n=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),i=0;i<n.length;i++)n[i].parentNode.removeChild(n[i]);var r=this._document.createElement("div");r.classList.add(t),$Y?r.setAttribute("platform","test"):e||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(bu),we(Fm))},e.\u0275prov=R({factory:function(){return new e(we(bu),we(Fm))},token:e,providedIn:"root"}),e}(),eZ=function(){function e(t,n,i,r,o,a,s,c,l){var u=this;Object(m.a)(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=c,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new w.b,this._attachments=new w.b,this._detachments=new w.b,this._locationChanges=_.a.EMPTY,this._backdropClickHandler=function(e){return u._backdropClick.next(e)},this._keydownEvents=new w.b,this._outsidePointerEvents=new w.b,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return Object(g.a)(e,[{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(Wm.a)(1)).subscribe((function(){t.hasAttached()&&t.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return t.dispose()}))),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=wm(this._config.width),e.height=wm(this._config.height),e.minWidth=wm(this._config.minWidth),e.minHeight=wm(this._config.minHeight),e.maxWidth=wm(this._config.maxWidth),e.maxHeight=wm(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"auto":"none"}},{key:"_attachBackdrop",value:function(){var e=this,t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){e._backdropElement&&e._backdropElement.classList.add(t)}))})):this._backdropElement.classList.add(t)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e=this,t=this._backdropElement;if(t){var n,i=function i(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),e._backdropElement==t&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(t,e._config.backdropClass,!1),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){t.addEventListener("transitionend",i)})),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular((function(){return setTimeout(i,500)}))}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;_m(t).forEach((function(e){e&&(n?i.add(e):i.remove(e))}))}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._ngZone.onStable.pipe(Object(Gm.a)(Object(C.a)(e._attachments,e._detachments))).subscribe((function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}},{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}}]),e}(),tZ="cdk-overlay-connected-position-bounding-box",nZ=/([A-Za-z%]+)$/,iZ=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new w.b,this._resizeSubscription=_.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return Object(g.a)(e,[{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(tZ),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){t._isInitialRender=!0,t.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=d(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,c=this._getOriginPoint(n,s),l=this._getOverlayPoint(c,i,s),u=this._getOverlayFit(l,i,r,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(u,l,r)?o.push({position:s,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!e||e.overlayFit.visibleArea<u.visibleArea)&&(e={overlayFit:u,overlayPoint:l,originPoint:c,position:s,overlayRect:i})}}catch(b){a.e(b)}finally{a.f()}if(o.length){var h,f=null,p=-1,m=d(o);try{for(m.s();!(h=m.n()).done;){var g=h.value,v=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);v>p&&(p=v,f=g)}}catch(b){m.e(b)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&rZ(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tZ),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var c=0-o,l=o+t.height-n.height,u=this._subtractOverflows(t.width,0-r,r+t.width-n.width),h=this._subtractOverflows(t.height,c,l),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:t.width*t.height===d,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:u==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=oZ(this._overlayRef.getConfig().minHeight),a=oZ(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.width,0),s=Math.max(e.y+t.height-o.height,0),c=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return this._previousPushAmount={x:i=t.width<=o.width?l||-a:e.x<this._viewportMargin?o.left-n.left-e.x:0,y:r=t.height<=o.height?c||-s:e.y<this._viewportMargin?o.top-n.top-e.y:0},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new XY(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,c=this._viewportRect,l=this._isRtl();if("top"===t.overlayY)n=c.height-(i=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=c.height-(r=c.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var u=Math.min(c.bottom-e.y+c.top,e.y),h=this._lastBoundingBoxSize.height;i=e.y-u,(n=2*u)>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=c.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=c.right-e.x;else{var d=Math.min(c.right-e.x+c.left,e.x),f=this._lastBoundingBoxSize.width;a=e.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=wm(n.height),i.top=wm(n.top),i.bottom=wm(n.bottom),i.width=wm(n.width),i.left=wm(n.left),i.right=wm(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=wm(r)),o&&(i.maxWidth=wm(o))}this._lastBoundingBoxSize=n,rZ(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){rZ(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){rZ(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();rZ(n,this._getExactOverlayY(t,e,a)),rZ(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",c=this._getOffset(t,"x"),l=this._getOffset(t,"y");c&&(s+="translateX(".concat(c,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=wm(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=wm(o.maxWidth):r&&(n.maxWidth="")),rZ(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=wm(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=wm(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:qY(e,n),isOriginOutsideView:VY(e,n),isOverlayClipped:qY(t,n),isOverlayOutsideView:VY(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(e,t){return e-Math.max(t,0)}),e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&_m(e).forEach((function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))}))}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach((function(t){e._pane.classList.remove(t)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof Ks)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}},{key:"positions",get:function(){return this._preferredPositions}}]),e}();function rZ(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function oZ(e){if("number"!=typeof e&&null!=e){var t=l(e.split(nZ),2),n=t[1];return n&&"px"!==n?null:parseFloat(t[0])}return e||null}var aZ=function(){function e(t,n,i,r,o,a,s){Object(m.a)(this,e),this._preferredPositions=[],this._positionStrategy=new iZ(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return Object(g.a)(e,[{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new KY(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}},{key:"positions",get:function(){return this._preferredPositions}}]),e}(),sZ="cdk-global-overlay-wrapper",cZ=function(){function e(){Object(m.a)(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return Object(g.a)(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(sZ),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(sZ),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),lZ=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return Object(g.a)(e,[{key:"global",value:function(){return new cZ}},{key:"connectedTo",value:function(e,t,n){return new aZ(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new iZ(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(og),we(bu),we(Fm),we(JY))},e.\u0275prov=R({factory:function(){return new e(we(og),we(bu),we(Fm),we(JY))},token:e,providedIn:"root"}),e}(),uZ=0,hZ=function(){var e=function(){function e(t,n,i,r,o,a,s,c,l,u,h){Object(m.a)(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=c,this._directionality=l,this._location=u,this._outsideClickDispatcher=h}return Object(g.a)(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new WY(e);return r.direction=r.direction||this._directionality.value,new eZ(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(uZ++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(ou)),new FX(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(GY),we(JY),we(Ws),we(lZ),we(ZY),we(na),we(Nl),we(bu),we(pm),we(Iu),we(QY))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),dZ=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fZ=new he("cdk-connected-overlay-scroll-strategy"),pZ=function(){var e=function e(t){Object(m.a)(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),mZ=function(){var e=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=_.a.EMPTY,this._attachSubscription=_.a.EMPTY,this._detachSubscription=_.a.EMPTY,this._positionSubscription=_.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new Yc,this.positionChange=new Yc,this.attach=new Yc,this.detach=new Yc,this.overlayKeydown=new Yc,this.overlayOutsideClick=new Yc,this._templatePortal=new DX(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=dZ);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe((function(){return e.attach.emit()})),this._detachSubscription=t.detachments().subscribe((function(){return e.detach.emit()})),t.keydownEvents().subscribe((function(t){e.overlayKeydown.next(t),t.keyCode!==KK||YK(t)||(t.preventDefault(),e._detachOverlay())})),this._overlayRef.outsidePointerEvents().subscribe((function(t){e.overlayOutsideClick.next(t)}))}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new WY({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map((function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}}));return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(t){e.backdropClick.emit(t)})):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Object(NY.a)((function(){return e.positionChange.observers.length>0}))).subscribe((function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()})))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=vm(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=vm(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=vm(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=vm(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=vm(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(hZ),_a(vc),_a(yc),_a(fZ),_a(pm,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ct]}),e}(),gZ={provide:fZ,deps:[hZ],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},vZ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[hZ,gZ],imports:[[gm,VX,sg],sg]}),e}(),bZ=["mat-menu-item",""],yZ=["*"];function _Z(e,t){if(1&e){var n=Pa();Sa(0,"div",0),Ia("keydown",(function(e){return Dt(n),Ba()._handleKeydown(e)}))("click",(function(){return Dt(n),Ba().closed.emit("click")}))("@transformMenu.start",(function(e){return Dt(n),Ba()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return Dt(n),Ba()._onAnimationDone(e)})),Sa(1,"div",1),Va(2),xa(),xa()}if(2&e){var i=Ba();ka("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),fa("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var wZ={transformMenu:jv("transformMenu",[Lv("void",Rv({opacity:0,transform:"scale(0.8)"})),Nv("void => enter",Iv([Hv(".mat-menu-content, .mat-mdc-menu-content",Av("100ms linear",Rv({opacity:1}))),Av("120ms cubic-bezier(0, 0, 0.2, 1)",Rv({transform:"scale(1)"}))])),Nv("* => void",Av("100ms 25ms linear",Rv({opacity:0})))]),fadeInItems:jv("fadeInItems",[Lv("showing",Rv({opacity:1})),Nv("void => *",[Rv({opacity:0}),Av("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},kZ=new he("MatMenuContent"),CZ=function(){var e=function(){function e(t,n,i,r,o,a,s){Object(m.a)(this,e),this._template=t,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=s,this._attached=new w.b}return Object(g.a)(e,[{key:"attach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new DX(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new FX(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(vc),_a(Ws),_a(ou),_a(na),_a(yc),_a(bu),_a(No))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","matMenuContent",""]],features:[Vs([{provide:kZ,useExisting:e}])]}),e}(),SZ=new he("MAT_MENU_PANEL"),xZ=tY(JX((function e(){Object(m.a)(this,e)}))),OZ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new w.b,a._focused=new w.b,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(Object(s.a)(a)),a._document=i,a}return Object(g.a)(n,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var e=this._elementRef.nativeElement,t=this._document?this._document.TEXT_NODE:3,n="";if(e.childNodes)for(var i=e.childNodes.length,r=0;r<i;r++)e.childNodes[r].nodeType===t&&(n+=e.childNodes[r].textContent);return n.trim()}}]),n}(xZ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(bu),_a(CX),_a(SZ,8))},e.\u0275cmp=ze({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&Ia("click",(function(e){return t._checkDisabled(e)}))("mouseenter",(function(){return t._handleMouseEnter()})),2&e&&(fa("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),os("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Es],attrs:bZ,ngContentSelectors:yZ,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(za(),Va(0),Oa(1,"div",0)),2&e&&(ar(1),ka("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[yY],encapsulation:2,changeDetection:0}),e}(),MZ=new he("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),TZ=0,EZ=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Qc,this._tabSubscription=_.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new w.b,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Yc,this.close=this.closed,this.panelId="mat-menu-panel-".concat(TZ++)}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new hX(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return e.closed.emit("tab")})),this._directDescendantItems.changes.pipe(Object(Jm.a)(this._directDescendantItems),Object(tg.a)((function(e){return C.a.apply(void 0,Object(u.a)(e.map((function(e){return e._focused}))))}))).subscribe((function(t){return e._keyManager.updateActiveItem(t)}))}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(Object(Jm.a)(this._directDescendantItems),Object(tg.a)((function(e){return C.a.apply(void 0,Object(u.a)(e.map((function(e){return e._hovered}))))})))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case KK:YK(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Object(Wm.a)(1)).subscribe((function(){return e._focusFirstItem(t)})):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=Math.min(4+e,24),n="mat-elevation-z".concat(t),i=Object.keys(this._classList).find((function(e){return e.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Object(Jm.a)(this._allItems)).subscribe((function(t){e._directDescendantItems.reset(t.filter((function(t){return t._parentMenu===e}))),e._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=vm(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=vm(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(e){t._classList[e]=!1})),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach((function(e){t._classList[e]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Nl),_a(MZ))},e.\u0275dir=Ke({type:e,contentQueries:function(e,t,n){var i;1&e&&(ul(n,kZ,!0),ul(n,OZ,!0),ul(n,OZ,!1)),2&e&&(al(i=fl())&&(t.lazyContent=i.first),al(i=fl())&&(t._allItems=i),al(i=fl())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&cl(vc,!0),2&e&&al(n=fl())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),PZ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(EZ);return e.\u0275fac=function(t){return jZ(t||e)},e.\u0275dir=Ke({type:e,features:[Es]}),e}(),jZ=Qn(PZ),AZ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){return Object(m.a)(this,n),t.call(this,e,i,r)}return n}(PZ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Nl),_a(MZ))},e.\u0275cmp=ze({type:e,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Vs([{provide:SZ,useExisting:PZ},{provide:PZ,useExisting:e}]),Es],ngContentSelectors:yZ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(za(),ba(0,_Z,3,6,"ng-template"))},directives:[Rh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[wZ.transformMenu,wZ.fadeInItems]},changeDetection:0}),e}(),IZ=new he("mat-menu-scroll-strategy"),DZ={provide:IZ,deps:[hZ],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},RZ=zm({passive:!0}),LZ=function(){var e=function(){function e(t,n,i,r,o,a,s,c){var l=this;Object(m.a)(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._parentMenu=o,this._menuItemInstance=a,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=_.a.EMPTY,this._hoverSubscription=_.a.EMPTY,this._menuCloseSubscription=_.a.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Yc,this.onMenuOpen=this.menuOpened,this.menuClosed=new Yc,this.onMenuClose=this.menuClosed,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,RZ),a&&(a._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return Object(g.a)(e,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,RZ),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return e.closeMenu()})),this._initMenu(),this.menu instanceof PZ&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof PZ?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object($m.a)((function(e){return"void"===e.toState})),Object(Wm.a)(1),Object(Gm.a)(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new WY({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe((function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(e){var t=l("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=l("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,c=a,u=n,h=i,d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",c="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:d},{originX:i,originY:s,overlayX:h,overlayY:o,offsetY:d},{originX:n,originY:c,overlayX:u,overlayY:a,offsetY:-d},{originX:i,originY:c,overlayX:h,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Object(Sm.a)(),r=this._parentMenu?this._parentMenu._hovered().pipe(Object($m.a)((function(t){return t!==e._menuItemInstance})),Object($m.a)((function(){return e._menuOpen}))):Object(Sm.a)();return Object(C.a)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){_X(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Object($m.a)((function(t){return t===e._menuItemInstance&&!t.disabled})),Object(jX.a)(0,Ym.b)).subscribe((function(){e._openedBy="mouse",e.menu instanceof PZ&&e.menu._isAnimating?e.menu._animationDone.pipe(Object(Wm.a)(1),Object(jX.a)(0,Ym.b),Object(Gm.a)(e._parentMenu._hovered())).subscribe((function(){return e.openMenu()})):e.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new DX(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe((function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMenu||t._parentMenu.closed.emit(e)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(hZ),_a(Ks),_a(yc),_a(IZ),_a(PZ,8),_a(OZ,10),_a(pm,8),_a(CX))},e.\u0275dir=Ke({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Ia("mousedown",(function(e){return t._handleMousedown(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("click",(function(e){return t._handleClick(e)})),2&e&&fa("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),FZ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[DZ],imports:[$X]}),e}(),NZ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[DZ],imports:[[_d,$X,_Y,vZ,FZ],ag,$X,FZ]}),e}(),BZ=function(){return function(){}}(),HZ=function(){return function(){}}(),zZ=function(){function e(){}return e.prototype.getInfoAboutNode=function(e,t){var n=[];return"cloud"===e.node_type?n.push("Cloud "+e.name+" is always on."):"nat"===e.node_type?n.push("NAT "+e.name+" is always on."):"ethernet-hub"===e.node_type?n.push("Ethernet hub "+e.name+" is always on."):"ethernet_switch"===e.node_type?n.push("Ethernet switch "+e.name+" is always on."):"frame_relay_switch"===e.node_type?n.push("Frame relay switch "+e.name+" is always on."):"atm_switch"===e.node_type?n.push("ATM switch "+e.name+" is always on."):"docker"===e.node_type?n.push("Docker "+e.name+" is "+e.status+"."):"dynamips"===e.node_type?n.push("Dynamips "+e.name+" is always on."):"traceng"===e.node_type?n.push("TraceNG "+e.name+" is always on."):"virtualbox"===e.node_type?n.push("VirtualBox VM "+e.name+" is "+e.status+"."):"vmware"===e.node_type?n.push("VMware VM "+e.name+" is "+e.status+"."):"qemu"===e.node_type?n.push("QEMU VM "+e.name+" is "+e.status+"."):"iou"===e.node_type?n.push("IOU "+e.name+" is always on."):"vpcs"===e.node_type&&n.push("Node "+e.name+" is "+e.status+"."),n.push("Running on server "+t.name+" with port "+t.port+"."),n.push("Server ID is "+t.id+"."),"none"!==e.console_type&&"null"!==e.console_type&&n.push("Console is on port "+e.console+" and type is "+e.console_type+"."),n.concat(this.getInfoAboutPorts(e.ports))},e.prototype.getInfoAboutPorts=function(e){var t="Ports: ";return e.forEach((function(e){t+="link_type: "+e.link_type+", \n name: "+e.name+"; "})),t=t.substring(0,t.length-2)},e.prototype.getCommandLine=function(e){return"cloud"===e.node_type||"nat"===e.node_type||"ethernet_hub"===e.node_type||"ethernet_switch"===e.node_type||"frame_relay_switch"===e.node_type||"atm_switch"===e.node_type||"dynamips"===e.node_type||"traceng"===e.node_type||"iou"===e.node_type?"Command line information is not supported for this type of node.":e.command_line?e.command_line:"Please start the node in order to get the command line information."},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function VZ(e,t){}var qZ=function e(){Object(m.a)(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},UZ={dialogContainer:jv("dialogContainer",[Lv("void, exit",Rv({opacity:0,transform:"scale(0.7)"})),Lv("enter",Rv({transform:"none"})),Nv("* => enter",Av("150ms cubic-bezier(0, 0, 0.2, 1)",Rv({transform:"none",opacity:1}))),Nv("* => void, * => exit",Av("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Rv({opacity:0})))])},GZ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s){var c;return Object(m.a)(this,n),(c=t.call(this))._elementRef=e,c._focusTrapFactory=i,c._changeDetectorRef=r,c._config=a,c._focusMonitor=s,c._animationStateChanged=new Yc,c._elementFocusedBeforeDialogWasOpened=null,c._closeInteractionType=null,c.attachDomPortal=function(e){return c._portalOutlet.hasAttached(),c._portalOutlet.attachDomPortal(e)},c._ariaLabelledBy=a.ariaLabelledBy||null,c._document=o,c}return Object(g.a)(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(LX);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(gX),_a(No),_a(bu,8),_a(qZ),_a(CX))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){var n;1&e&&sl(BX,!0),2&e&&al(n=fl())&&(t._portalOutlet=n.first)},features:[Es]}),e}(),WZ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments))._state="enter",e}return Object(g.a)(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(GZ);return e.\u0275fac=function(t){return KZ(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Da("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(Os("id",t._id),fa("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Ms("@dialogContainer",t._state))},features:[Es],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ba(0,VZ,0,0,"ng-template",0)},directives:[BX],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[UZ.dialogContainer]}}),e}(),KZ=Qn(WZ),XZ=0,YZ=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(XZ++);Object(m.a)(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new w.b,this._afterClosed=new w.b,this._beforeClosed=new w.b,this._state=0,n._id=r,n._animationStateChanged.pipe(Object($m.a)((function(e){return"opened"===e.state})),Object(Wm.a)(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(Object($m.a)((function(e){return"closed"===e.state})),Object(Wm.a)(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()})),t.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),t.keydownEvents().pipe(Object($m.a)((function(e){return e.keyCode===KK&&!i.disableClose&&!YK(e)}))).subscribe((function(e){e.preventDefault(),ZZ(i,"keyboard")})),t.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():ZZ(i,"mouse")}))}return Object(g.a)(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Object($m.a)((function(e){return"closing"===e.state})),Object(Wm.a)(1)).subscribe((function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){return t._finishDialogClose()}),n.totalTime+100)})),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function ZZ(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var QZ=new he("MatDialogData"),$Z=new he("mat-dialog-default-options"),JZ=new he("mat-dialog-scroll-strategy"),eQ={provide:JZ,deps:[hZ],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},tQ=function(){var e=function(){function e(t,n,i,r,o,a,s,c,l){var u=this;Object(m.a)(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.b,this._afterOpenedAtThisLevel=new w.b,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(CU.a)((function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe(Object(Jm.a)(void 0))})),this._scrollStrategy=a}return Object(g.a)(e,[{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new qZ)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe((function(){return n._removeOpenDialog(o)})),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new WY({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=na.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:qZ,useValue:t}]}),i=new IX(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof vc)t.attachTemplatePortal(new DX(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new IX(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(pm,null)||r.push({provide:pm,useValue:{value:e.direction,change:Object(Sm.a)()}}),na.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(hZ),_a(na),_a(void 0),_a(void 0),_a(JY),_a(void 0),_a(Ho),_a(Ho),_a(he))},e.\u0275dir=Ke({type:e}),e}(),nQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c){return Object(m.a)(this,n),t.call(this,e,i,o,s,c,a,YZ,WZ,QZ)}return n}(tQ);return e.\u0275fac=function(t){return new(t||e)(we(hZ),we(na),we(Iu,8),we($Z,8),we(JZ),we(e,12),we(JY))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e}(),iQ=0,rQ=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=cQ(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){ZZ(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(YZ,8),_a(Ks),_a(nQ))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ia("click",(function(e){return t._onButtonClick(e)})),2&e&&fa("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ct]}),e}(),oQ=function(){var e=function(){function e(t,n,i){Object(m.a)(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(iQ++)}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=cQ(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(YZ,8),_a(Ks),_a(nQ))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Os("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),aQ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),sQ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function cQ(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find((function(e){return e.id===n.id})):null}var lQ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[nQ,eQ],imports:[[vZ,VX,$X],$X]}),e}(),uQ=n("PqYM");function hQ(e,t){1&e&&Va(0)}var dQ=["*"];function fQ(e,t){}var pQ=function(e){return{animationDuration:e}},mQ=function(e,t){return{value:e,params:t}},gQ=["tabBodyWrapper"],vQ=["tabHeader"];function bQ(e,t){}function yQ(e,t){1&e&&ba(0,bQ,0,0,"ng-template",9),2&e&&ka("cdkPortalOutlet",Ba().$implicit.templateLabel)}function _Q(e,t){1&e&&_s(0),2&e&&ws(Ba().$implicit.textLabel)}function wQ(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Ia("click",(function(){Dt(n);var e=t.$implicit,i=t.index,r=Ba(),o=ya(1);return r._handleClick(e,o,i)})),Sa(1,"div",7),ba(2,yQ,1,1,"ng-template",8),ba(3,_Q,1,1,"ng-template",8),xa(),xa()}if(2&e){var i=t.$implicit,r=t.index,o=Ba();os("mat-tab-label-active",o.selectedIndex==r),ka("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),fa("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),ar(2),ka("ngIf",i.templateLabel),ar(1),ka("ngIf",!i.templateLabel)}}function kQ(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-body",10),Ia("_onCentered",(function(){return Dt(n),Ba()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return Dt(n),Ba()._setTabBodyWrapperHeight(e)})),xa()}if(2&e){var i=t.$implicit,r=t.index,o=Ba();os("mat-tab-body-active",o.selectedIndex==r),ka("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),fa("aria-labelledby",o._getTabLabelId(r))}}var CQ=["tabListContainer"],SQ=["tabList"],xQ=["nextPaginator"],OQ=["previousPaginator"],MQ=["mat-tab-nav-bar",""],TQ=new he("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),EQ=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return Object(g.a)(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t._setStyles(e)}))})):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Nl),_a(TQ),_a(__,8))},e.\u0275dir=Ke({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&os("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e}(),PQ=new he("MatTabContent"),jQ=function(){var e=function e(t){Object(m.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["","matTabContent",""]],features:[Vs([{provide:PQ,useExisting:e}])]}),e}(),AQ=new he("MatTabLabel"),IQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(NX);return e.\u0275fac=function(t){return DQ(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Vs([{provide:AQ,useExisting:e}]),Es]}),e}(),DQ=Qn(IQ),RQ=JX((function e(){Object(m.a)(this,e)})),LQ=new he("MAT_TAB_GROUP"),FQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(m.a)(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new w.b,r.position=null,r.origin=null,r.isActive=!1,r}return Object(g.a)(n,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new DX(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}}]),n}(RQ);return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(LQ,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,AQ,!0),hl(n,PQ,!0,vc)),2&e&&(al(i=fl())&&(t.templateLabel=i.first),al(i=fl())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&sl(vc,!0),2&e&&al(n=fl())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Es,ct],ngContentSelectors:dQ,decls:1,vars:0,template:function(e,t){1&e&&(za(),ba(0,hQ,1,0,"ng-template"))},encapsulation:2}),e}(),NQ={translateTab:jv("translateTab",[Lv("center, void, left-origin-center, right-origin-center",Rv({transform:"none"})),Lv("left",Rv({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Lv("right",Rv({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Nv("* => left, * => right, left => center, right => center",Av("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Nv("void => left-origin-center",[Rv({transform:"translate3d(-100%, 0, 0)"}),Av("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Nv("void => right-origin-center",[Rv({transform:"translate3d(100%, 0, 0)"}),Av("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},BQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e,i,o))._host=r,a._centeringSub=_.a.EMPTY,a._leavingSub=_.a.EMPTY,a}return Object(g.a)(n,[{key:"ngOnInit",value:function(){var e=this;Object(o.a)(Object(a.a)(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Object(Jm.a)(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))}},{key:"ngOnDestroy",value:function(){Object(o.a)(Object(a.a)(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(BX);return e.\u0275fac=function(t){return new(t||e)(_a(Ws),_a(yc),_a(Y((function(){return zQ}))),_a(bu))},e.\u0275dir=Ke({type:e,selectors:[["","matTabBodyHost",""]],features:[Es]}),e}(),HQ=function(){var e=function(){function e(t,n,i){var r=this;Object(m.a)(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=_.a.EMPTY,this._translateTabComplete=new w.b,this._onCentering=new Yc,this._beforeCentering=new Yc,this._afterLeavingCenter=new Yc,this._onCentered=new Yc(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe((function(e){r._computePositionAnimationState(e),i.markForCheck()}))),this._translateTabComplete.pipe(Object(Zm.a)((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return Object(g.a)(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(pm,8),_a(No))},e.\u0275dir=Ke({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),zQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){return Object(m.a)(this,n),t.call(this,e,i,r)}return n}(HQ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(pm,8),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&cl(HX,!0),2&e&&al(n=fl())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[Es],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(Sa(0,"div",0,1),Ia("@translateTab.start",(function(e){return t._onTranslateTabStarted(e)}))("@translateTab.done",(function(e){return t._translateTabComplete.next(e)})),ba(2,fQ,0,0,"ng-template",2),xa()),2&e&&ka("@translateTab",Hc(3,mQ,t._position,Bc(1,pQ,t.animationDuration)))},directives:[BQ],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[NQ.translateTab]}}),e}(),VQ=new he("MAT_TABS_CONFIG"),qQ=0,UQ=function e(){Object(m.a)(this,e)},GQ=eY(tY((function e(t){Object(m.a)(this,e),this._elementRef=t})),"primary"),WQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e))._changeDetectorRef=i,a._animationMode=o,a._tabs=new Qc,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=_.a.EMPTY,a._tabLabelSubscription=_.a.EMPTY,a._dynamicHeight=!1,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Yc,a.focusChange=new Yc,a.animationDone=new Yc,a.selectedTabChange=new Yc(!0),a._groupId=qQ++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a}return Object(g.a)(n,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then((function(){e._tabs.forEach((function(e,n){return e.isActive=n===t})),n||e.selectedIndexChange.emit(t)}))}this._tabs.forEach((function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)})),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n<t.length;n++)if(t[n].isActive){e._indexToSelect=e._selectedIndex=n;break}e._changeDetectorRef.markForCheck()}))}},{key:"_subscribeToAllTabChanges",value:function(){var e=this;this._allTabs.changes.pipe(Object(Jm.a)(this._allTabs)).subscribe((function(t){e._tabs.reset(t.filter((function(t){return!t._closestTabGroup||t._closestTabGroup===e}))),e._tabs.notifyOnChanges()}))}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"_focusChanged",value:function(e){this.focusChange.emit(this._createChangeEvent(e))}},{key:"_createChangeEvent",value:function(e){var t=new UQ;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}},{key:"_subscribeToTabLabels",value:function(){var e=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=C.a.apply(void 0,Object(u.a)(this._tabs.map((function(e){return e._stateChanges})))).subscribe((function(){return e._changeDetectorRef.markForCheck()}))}},{key:"_clampTabIndex",value:function(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}},{key:"_getTabLabelId",value:function(e){return"mat-tab-label-".concat(this._groupId,"-").concat(e)}},{key:"_getTabContentId",value:function(e){return"mat-tab-content-".concat(this._groupId,"-").concat(e)}},{key:"_setTabBodyWrapperHeight",value:function(e){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(e,t,n){e.disabled||(this.selectedIndex=t.focusIndex=n)}},{key:"_getTabIndex",value:function(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}},{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=vm(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=bm(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}}]),n}(GQ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(VQ,8),_a(__,8))},e.\u0275dir=Ke({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Es]}),e}(),KQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){return Object(m.a)(this,n),t.call(this,e,i,r,o)}return n}(WQ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(VQ,8),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-tab-group"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,FQ,!0),2&e&&al(i=fl())&&(t._allTabs=i)},viewQuery:function(e,t){var n;1&e&&(cl(gQ,!0),cl(vQ,!0)),2&e&&(al(n=fl())&&(t._tabBodyWrapper=n.first),al(n=fl())&&(t._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&os("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Vs([{provide:LQ,useExisting:e}]),Es],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(Sa(0,"mat-tab-header",0,1),Ia("indexFocused",(function(e){return t._focusChanged(e)}))("selectFocusedIndex",(function(e){return t.selectedIndex=e})),ba(2,wQ,4,14,"div",2),xa(),Sa(3,"div",3,4),ba(5,kQ,1,8,"mat-tab-body",5),xa()),2&e&&(ka("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),ar(2),ka("ngForOf",t._tabs),ar(1),os("_mat-animation-noopable","NoopAnimations"===t._animationMode),ar(2),ka("ngForOf",t._tabs))},directives:function(){return[JQ,Nh,YQ,yY,xX,Hh,BX,zQ]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),XQ=JX((function e(){Object(m.a)(this,e)})),YQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this)).elementRef=e,i}return Object(g.a)(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(XQ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(fa("aria-disabled",!!t.disabled),os("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[Es]}),e}(),ZQ=zm({passive:!0}),QQ=function(){var e=function(){function e(t,n,i,r,o,a,s){var c=this;Object(m.a)(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new w.b,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new w.b,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Yc,this.indexFocused=new Yc,o.runOutsideAngular((function(){Object(Km.a)(t.nativeElement,"mouseleave").pipe(Object(Gm.a)(c._destroyed)).subscribe((function(){c._stopInterval()}))}))}return Object(g.a)(e,[{key:"ngAfterViewInit",value:function(){var e=this;Object(Km.a)(this._previousPaginator.nativeElement,"touchstart",ZQ).pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){e._handlePaginatorPress("before")})),Object(Km.a)(this._nextPaginator.nativeElement,"touchstart",ZQ).pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){e._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Object(Sm.a)(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new hX(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(C.a)(t,n,this._items.changes).pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){Promise.resolve().then(i),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())})),this._keyManager.change.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(t){e.indexFocused.emit(t),e._setTabFocus(t)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!YK(e))switch(e.keyCode){case WK:case XK:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run((function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t=this._platform,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(n),"px)"),t&&(t.TRIDENT||t.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=t.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var c=this.scrollDistance,l=this.scrollDistance+r;n<c?this.scrollDistance-=c-n+60:i>l&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),Object(uQ.a)(650,100).pipe(Object(Gm.a)(Object(C.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var t=n._scrollHeader(e),i=t.distance;(0===i||i>=t.maxScrollDistance)&&n._stopInterval()})))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=bm(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(og),_a(pm,8),_a(Nl),_a(Fm),_a(__,8))},e.\u0275dir=Ke({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),$Q=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c){var l;return Object(m.a)(this,n),(l=t.call(this,e,i,r,o,a,s,c))._disableRipple=!1,l}return Object(g.a)(n,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=vm(e)}}]),n}(QQ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(og),_a(pm,8),_a(Nl),_a(Fm),_a(__,8))},e.\u0275dir=Ke({type:e,inputs:{disableRipple:"disableRipple"},features:[Es]}),e}(),JQ=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c){return Object(m.a)(this,n),t.call(this,e,i,r,o,a,s,c)}return n}($Q);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(og),_a(pm,8),_a(Nl),_a(Fm),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,YQ,!1),2&e&&al(i=fl())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(sl(EQ,!0),sl(CQ,!0),sl(SQ,!0),cl(xQ,!0),cl(OQ,!0)),2&e&&(al(n=fl())&&(t._inkBar=n.first),al(n=fl())&&(t._tabListContainer=n.first),al(n=fl())&&(t._tabList=n.first),al(n=fl())&&(t._nextPaginator=n.first),al(n=fl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&os("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Es],ngContentSelectors:dQ,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(za(),Sa(0,"div",0,1),Ia("click",(function(){return t._handlePaginatorClick("before")}))("mousedown",(function(e){return t._handlePaginatorPress("before",e)}))("touchend",(function(){return t._stopInterval()})),Oa(2,"div",2),xa(),Sa(3,"div",3,4),Ia("keydown",(function(e){return t._handleKeydown(e)})),Sa(5,"div",5,6),Ia("cdkObserveContent",(function(){return t._onContentChanges()})),Sa(7,"div",7),Va(8),xa(),Oa(9,"mat-ink-bar"),xa(),xa(),Sa(10,"div",8,9),Ia("mousedown",(function(e){return t._handlePaginatorPress("after",e)}))("click",(function(){return t._handlePaginatorClick("after")}))("touchend",(function(){return t._stopInterval()})),Oa(12,"div",2),xa()),2&e&&(os("mat-tab-header-pagination-disabled",t._disableScrollBefore),ka("matRippleDisabled",t._disableScrollBefore||t.disableRipple),ar(5),os("_mat-animation-noopable","NoopAnimations"===t._animationMode),ar(5),os("mat-tab-header-pagination-disabled",t._disableScrollAfter),ka("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[yY,JK,EQ],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),e$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c){var l;return Object(m.a)(this,n),(l=t.call(this,e,o,a,i,r,s,c))._disableRipple=!1,l.color="primary",l}return Object(g.a)(n,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var e=this;this._items.changes.pipe(Object(Jm.a)(null),Object(Gm.a)(this._destroyed)).subscribe((function(){e.updateActiveLink()})),Object(o.a)(Object(a.a)(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(e){if(this._items){for(var t=this._items.toArray(),n=0;n<t.length;n++)if(t[n].active)return this.selectedIndex=n,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement.classList;t.remove("mat-background-".concat(this.backgroundColor)),e&&t.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=vm(e)}}]),n}(QQ);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(pm,8),_a(Nl),_a(No),_a(og),_a(Fm),_a(__,8))},e.\u0275dir=Ke({type:e,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[Es]}),e}(),t$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c){return Object(m.a)(this,n),t.call(this,e,i,r,o,a,s,c)}return n}(e$);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(pm,8),_a(Nl),_a(No),_a(og),_a(Fm),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(e,t,n){var i;1&e&&ul(n,r$,!0),2&e&&al(i=fl())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(sl(EQ,!0),sl(CQ,!0),sl(SQ,!0),cl(xQ,!0),cl(OQ,!0)),2&e&&(al(n=fl())&&(t._inkBar=n.first),al(n=fl())&&(t._tabListContainer=n.first),al(n=fl())&&(t._tabList=n.first),al(n=fl())&&(t._nextPaginator=n.first),al(n=fl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(e,t){2&e&&os("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())("mat-primary","warn"!==t.color&&"accent"!==t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[Es],attrs:MQ,ngContentSelectors:dQ,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(za(),Sa(0,"div",0,1),Ia("click",(function(){return t._handlePaginatorClick("before")}))("mousedown",(function(e){return t._handlePaginatorPress("before",e)}))("touchend",(function(){return t._stopInterval()})),Oa(2,"div",2),xa(),Sa(3,"div",3,4),Ia("keydown",(function(e){return t._handleKeydown(e)})),Sa(5,"div",5,6),Ia("cdkObserveContent",(function(){return t._onContentChanges()})),Sa(7,"div",7),Va(8),xa(),Oa(9,"mat-ink-bar"),xa(),xa(),Sa(10,"div",8,9),Ia("mousedown",(function(e){return t._handlePaginatorPress("after",e)}))("click",(function(){return t._handlePaginatorClick("after")}))("touchend",(function(){return t._stopInterval()})),Oa(12,"div",2),xa()),2&e&&(os("mat-tab-header-pagination-disabled",t._disableScrollBefore),ka("matRippleDisabled",t._disableScrollBefore||t.disableRipple),ar(5),os("_mat-animation-noopable","NoopAnimations"===t._animationMode),ar(5),os("mat-tab-header-pagination-disabled",t._disableScrollAfter),ka("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[yY,JK,EQ],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),e}(),n$=nY(tY(JX((function e(){Object(m.a)(this,e)})))),i$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s){var c;return Object(m.a)(this,n),(c=t.call(this))._tabNavBar=e,c.elementRef=i,c._focusMonitor=a,c._isActive=!1,c.rippleConfig=r||{},c.tabIndex=parseInt(o)||0,"NoopAnimations"===s&&(c.rippleConfig.animation={enterDuration:0,exitDuration:0}),c}return Object(g.a)(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"active",get:function(){return this._isActive},set:function(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink(this.elementRef))}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}]),n}(n$);return e.\u0275fac=function(t){return new(t||e)(_a(e$),_a(Ks),_a(bY,8),wa("tabindex"),_a(CX),_a(__,8))},e.\u0275dir=Ke({type:e,inputs:{active:"active"},features:[Es]}),e}(),r$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,c,l,u){var h;return Object(m.a)(this,n),(h=t.call(this,e,i,a,c,l,u))._tabLinkRipple=new mY(Object(s.a)(h),r,i,o),h._tabLinkRipple.setupTriggerEvents(i.nativeElement),h}return Object(g.a)(n,[{key:"ngOnDestroy",value:function(){Object(o.a)(Object(a.a)(n.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),n}(i$);return e.\u0275fac=function(t){return new(t||e)(_a(t$),_a(Ks),_a(Nl),_a(Fm),_a(bY,8),wa("tabindex"),_a(CX),_a(__,8))},e.\u0275dir=Ke({type:e,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){2&e&&(fa("aria-current",t.active?"page":null)("aria-disabled",t.disabled)("tabIndex",t.tabIndex),os("mat-tab-disabled",t.disabled)("mat-tab-label-active",t.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[Es]}),e}(),o$=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d,$X,VX,_Y,eX,PX],$X]}),e}(),a$=["mat-button",""],s$=["*"],c$=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n",l$=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],u$=eY(JX(tY((function e(t){Object(m.a)(this,e),this._elementRef=t})))),h$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;Object(m.a)(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=d(l$);try{for(s.s();!(a=s.n()).done;){var c=a.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return Object(g.a)(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some((function(t){return e._getHostElement().hasAttribute(t)}))}}]),n}(u$);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(CX),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&cl(yY,!0),2&e&&al(n=fl())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(fa("disabled",t.disabled||null),os("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Es],attrs:a$,ngContentSelectors:s$,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(za(),Sa(0,"span",0),Va(1),xa(),Oa(2,"span",1),Oa(3,"span",2)),2&e&&(ar(2),os("mat-button-ripple-round",t.isRoundButton||t.isIconButton),ka("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[yY],styles:[c$],encapsulation:2,changeDetection:0}),e}(),d$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){return Object(m.a)(this,n),t.call(this,i,e,r)}return Object(g.a)(n,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),n}(h$);return e.\u0275fac=function(t){return new(t||e)(_a(CX),_a(Ks),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){1&e&&Ia("click",(function(e){return t._haltDisabledEvents(e)})),2&e&&(fa("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),os("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Es],attrs:a$,ngContentSelectors:s$,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(za(),Sa(0,"span",0),Va(1),xa(),Oa(2,"span",1),Oa(3,"span",2)),2&e&&(ar(2),os("mat-button-ripple-round",t.isRoundButton||t.isIconButton),ka("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[yY],styles:[c$],encapsulation:2,changeDetection:0}),e}(),f$=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_Y,$X],$X]}),e}();function p$(e,t){if(1&e&&(Sa(0,"div"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n," ")}}var m$=function(){function e(e,t){this.dialogRef=e,this.infoService=t,this.infoList=[],this.usage="",this.commandLine=""}return e.prototype.ngOnInit=function(){this.infoList=this.infoService.getInfoAboutNode(this.node,this.server),this.commandLine=this.infoService.getCommandLine(this.node),this.usage=this.node.usage?this.node.usage:"No usage information has been provided for this node."},e.prototype.onCloseClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(zZ))},e.\u0275cmp=ze({type:e,selectors:[["app-info-dialog"]],inputs:{server:"server",node:"node"},decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["animationDuration","0ms"],["label","General information"],[1,"textBox"],[4,"ngFor","ngForOf"],["label","Usage instructions"],["label","Command line"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"mat-tab-group",2),Sa(4,"mat-tab",3),Sa(5,"div",4),ba(6,p$,2,1,"div",5),xa(),xa(),Sa(7,"mat-tab",6),Sa(8,"div",4),_s(9),xa(),xa(),Sa(10,"mat-tab",7),Sa(11,"div",4),_s(12),xa(),xa(),xa(),xa(),Sa(13,"div",8),Sa(14,"button",9),Ia("click",(function(){return t.onCloseClick()})),_s(15,"Close"),xa(),xa()),2&e&&(ar(1),ws(t.node.name),ar(5),ka("ngForOf",t.infoList),ar(3),ks(" ",t.usage," "),ar(3),ks(" ",t.commandLine," "))},directives:[oQ,KQ,FQ,Nh,sQ,h$],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]}),e}(),g$=["*"];function v$(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function b$(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function y$(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var _$=function e(t,n,i){Object(m.a)(this,e),this.url=t,this.svgText=n,this.options=i},w$=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return Object(g.a)(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new _$(n,null,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Fi.HTML,n);if(!r)throw y$(n);return this._addSvgIconConfig(e,t,new _$("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new _$(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Fi.HTML,t);if(!i)throw y$(t);return this._addSvgIconSetConfig(e,new _$("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Fi.RESOURCE_URL,e);if(!n)throw b$(e);var i=this._cachedIconsByUrl.get(n);return i?Object(Sm.a)(k$(i)):this._loadSvgIconFromConfig(new _$(e,null)).pipe(Object(jU.a)((function(e){return t._cachedIconsByUrl.set(n,e)})),Object(mf.a)((function(e){return k$(e)})))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=C$(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Object(BK.a)(v$(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Object(Sm.a)(k$(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Object(mf.a)((function(e){return k$(e)})))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);if(i)return Object(Sm.a)(i);var r=t.filter((function(e){return!e.svgText})).map((function(e){return n._loadSvgIconSetFromConfig(e).pipe(Object(TU.a)((function(t){var i=n._sanitizer.sanitize(Fi.RESOURCE_URL,e.url),r="Loading icon set URL: ".concat(i," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),Object(Sm.a)(null)})))}));return Object(ff.a)(r).pipe(Object(mf.a)((function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw v$(e);return i})))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Object(jU.a)((function(t){return e.svgText=t})),Object(mf.a)((function(){return t._svgElementFromConfig(e)})))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Object(Sm.a)(null):this._fetchIcon(e).pipe(Object(jU.a)((function(t){return e.svgText=t})))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name;"id"!==o&&t.setAttribute(o,r.value)}for(var a=0;a<e.childNodes.length;a++)e.childNodes[a].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[a].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(Fi.RESOURCE_URL,i);if(!a)throw b$(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Object(IU.a)((function(){return n._inProgressUrlFetches.delete(a)})),Object(S.a)());return this._inProgressUrlFetches.set(a,c),c}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(C$(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(dv,8),we(Jd),we(bu,8),we(ti))},e.\u0275prov=R({factory:function(){return new e(we(dv,8),we(Jd),we(bu,8),we(ti))},token:e,providedIn:"root"}),e}();function k$(e){return e.cloneNode(!0)}function C$(e,t){return e+":"+t}var S$,x$=eY((function e(t){Object(m.a)(this,e),this._elementRef=t})),O$=new he("mat-icon-location",{providedIn:"root",factory:function(){var e=ke(bu),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),M$=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],T$=M$.map((function(e){return"[".concat(e,"]")})).join(", "),E$=/^url\(['"]?#(.*?)['"]?\)$/,P$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){var s;return Object(m.a)(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=_.a.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return Object(g.a)(n,[{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnChanges",value:function(e){var t=this,n=e.svgIcon;if(this._svgNamespace=null,this._svgName=null,n)if(this._currentIconFetch.unsubscribe(),this.svgIcon){var i=l(this._splitIconName(this.svgIcon),2),r=i[0],o=i[1];r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(Object(Wm.a)(1)).subscribe((function(e){return t._setSvgElement(e)}),(function(e){var n="Error retrieving icon ".concat(r,":").concat(o,"! ").concat(e.message);t._errorHandler.handleError(new Error(n))}))}else n.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngOnInit",value:function(){this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach((function(t,n){t.forEach((function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))}))}))}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(T$),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){M$.forEach((function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(E$):null;if(a){var s=n.get(r);s||n.set(r,s=[]),s.push({name:i,value:a[1]})}}))},r=0;r<t.length;r++)i(r)}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=vm(e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){this._fontSet=this._cleanupFontValue(e)}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){this._fontIcon=this._cleanupFontValue(e)}}]),n}(x$);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(w$),wa("aria-hidden"),_a(O$),_a(ti))},e.\u0275cmp=ze({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(fa("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),os("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Es,ct],ngContentSelectors:g$,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e}(),j$=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[$X],$X]}),e}(),A$=function(){function e(e){this.dialog=e}return e.prototype.showNode=function(){var e=this.dialog.open(m$,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;e.node=this.node,e.server=this.server},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-show-node-action"]],inputs:{node:"node",server:"server"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.showNode()})),Sa(1,"mat-icon"),_s(2,"info"),xa(),Sa(3,"span"),_s(4,"Show node information"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),I$=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","none"]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","routers"],["Switches","switches"],["End devices","end_devices"],["Security devices","security_devices"]]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),D$=(n("4XzM"),function(){function e(e){this.httpServer=e}return e.prototype.getNodeById=function(e,t,n){return this.httpServer.get(e,"/projects/"+t+"/nodes/"+n)},e.prototype.start=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/start",{})},e.prototype.startAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/start",{})},e.prototype.stop=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/stop",{})},e.prototype.stopAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/stop",{})},e.prototype.suspend=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/suspend",{})},e.prototype.suspendAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/suspend",{})},e.prototype.reload=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/reload",{})},e.prototype.reloadAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/reload",{})},e.prototype.createFromTemplate=function(e,t,n,i,r,o){return this.httpServer.post(e,"/projects/"+t.project_id+"/templates/"+n.template_id,o?{x:Math.round(i),y:Math.round(r),compute_id:o}:{x:Math.round(i),y:Math.round(r),compute_id:"local"})},e.prototype.updatePosition=function(e,t,n,i,r){var o=Math.round(i),a=Math.round(r);return t.snap_to_grid&&(o=Math.round((o+n.width/2)/t.grid_size)*t.grid_size,a=Math.round((a+n.height/2)/t.grid_size)*t.grid_size,o=Math.round(o-n.width/2),a=Math.round(a-n.height/2)),this.httpServer.put(e,"/projects/"+n.project_id+"/nodes/"+n.node_id,{x:o,y:a})},e.prototype.updateLabel=function(e,t,n){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{label:{rotation:n.rotation,style:n.style,text:n.text,x:Math.round(n.x),y:Math.round(n.y)}})},e.prototype.updateSymbol=function(e,t,n){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{symbol:n})},e.prototype.update=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{x:Math.round(t.x),y:Math.round(t.y),z:t.z})},e.prototype.updateNode=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,locked:t.locked,name:t.name,properties:t.properties})},e.prototype.updateNodeWithCustomAdapters=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,custom_adapters:t.custom_adapters,name:t.name,properties:t.properties})},e.prototype.delete=function(e,t){return this.httpServer.delete(e,"/projects/"+t.project_id+"/nodes/"+t.node_id)},e.prototype.duplicate=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/duplicate",{x:t.x+10,y:t.y+10,z:t.z})},e.prototype.getNode=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/nodes/"+t.node_id)},e.prototype.getDefaultCommand=function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'},e.prototype.getNetworkConfiguration=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",{responseType:"text"})},e.prototype.saveNetworkConfiguration=function(e,t,n){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",n)},e.prototype.getStartupConfiguration=function(e,t){var n="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?n+="/files/startup.vpc":"iou"===t.node_type?n+="/files/startup-config.cfg":"dynamips"===t.node_type&&(n+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.get(e,n,{responseType:"text"})},e.prototype.getPrivateConfiguration=function(e,t){var n="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?n+="/files/private-config.cfg":"dynamips"===t.node_type&&(n+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.get(e,n,{responseType:"text"})},e.prototype.saveConfiguration=function(e,t,n){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?i+="/files/startup.vpc":"iou"===t.node_type?i+="/files/startup-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.post(e,i,n)},e.prototype.savePrivateConfiguration=function(e,t,n){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?i+="/files/private-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.post(e,i,n)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}()),R$=n("GyhO"),L$=n("zP0r"),F$=new Set,N$=function(){var e=function(){function e(t){Object(m.a)(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):B$}return Object(g.a)(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!F$.has(e))try{S$||((S$=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(S$)),S$.sheet&&(S$.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),F$.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Fm))},e.\u0275prov=R({factory:function(){return new e(we(Fm))},token:e,providedIn:"root"}),e}();function B$(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var H$=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new w.b}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return z$(_m(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,n=z$(_m(e)).map((function(e){return t._registerQuery(e).observable})),i=Object(wU.b)(n);return(i=Object(R$.a)(i.pipe(Object(Wm.a)(1)),i.pipe(Object(L$.a)(1),Object(ZK.a)(0)))).pipe(Object(mf.a)((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new k.a((function(e){var i=function(n){return t._zone.run((function(){return e.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(Object(Jm.a)(n),Object(mf.a)((function(t){return{query:e,matches:t.matches}})),Object(Gm.a)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(N$),we(Nl))},e.\u0275prov=R({factory:function(){return new e(we(N$),we(Nl))},token:e,providedIn:"root"}),e}();function z$(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}var V$="(min-width: 960px) and (max-width: 1279.99px)",q$="(min-width: 1280px) and (max-width: 1919.99px)",U$="(min-width: 1920px)";function G$(e,t){if(1&e){var n=Pa();Sa(0,"div",1),Sa(1,"button",2),Ia("click",(function(){return Dt(n),Ba().action()})),_s(2),xa(),xa()}if(2&e){var i=Ba();ar(2),ws(i.data.action)}}function W$(e,t){}var K$=new he("MatSnackBarData"),X$=function e(){Object(m.a)(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},Y$=Math.pow(2,31)-1,Z$=function(){function e(t,n){var i=this;Object(m.a)(this,e),this._overlayRef=n,this._afterDismissed=new w.b,this._afterOpened=new w.b,this._onAction=new w.b,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return i.dismiss()})),t._onExit.subscribe((function(){return i._finishDismiss()}))}return Object(g.a)(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout((function(){return t.dismiss()}),Math.min(e,Y$))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),Q$=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this.snackBarRef=t,this.data=n}return Object(g.a)(e,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Z$),_a(K$))},e.\u0275cmp=ze({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"span"),_s(1),xa(),ba(2,G$,3,1,"div",0)),2&e&&(ar(1),ws(t.data.message),ar(1),ka("ngIf",t.hasAction))},directives:[Hh,h$],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),$$={snackBarState:jv("state",[Lv("void, hidden",Rv({transform:"scale(0.8)",opacity:0})),Lv("visible",Rv({transform:"scale(1)",opacity:1})),Nv("* => visible",Av("150ms cubic-bezier(0, 0, 0.2, 1)")),Nv("* => void, * => hidden",Av("75ms cubic-bezier(0.4, 0.0, 1, 1)",Rv({opacity:0})))])},J$=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this))._ngZone=e,a._elementRef=i,a._changeDetectorRef=r,a.snackBarConfig=o,a._destroyed=!1,a._onExit=new w.b,a._onEnter=new w.b,a._animationState="void",a.attachDomPortal=function(e){return a._assertNotAttached(),a._applySnackBarClasses(),a._portalOutlet.attachDomPortal(e)},a._role="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?null:"status":"alert",a}return Object(g.a)(n,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.toState;if(("void"===t&&"void"!==e.fromState||"hidden"===t)&&this._completeExit(),"visible"===t){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.pipe(Object(Wm.a)(1)).subscribe((function(){e._onExit.next(),e._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}}]),n}(LX);return e.\u0275fac=function(t){return new(t||e)(_a(Nl),_a(Ks),_a(No),_a(X$))},e.\u0275cmp=ze({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&sl(BX,!0),2&e&&al(n=fl())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(e,t){1&e&&Da("@state.done",(function(e){return t.onAnimationEnd(e)})),2&e&&(fa("role",t._role),Ms("@state",t._animationState))},features:[Es],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ba(0,W$,0,0,"ng-template",0)},directives:[BX],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[$$.snackBarState]}}),e}(),eJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[vZ,VX,_d,f$,$X],$X]}),e}(),tJ=new he("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new X$}}),nJ=function(){var e=function(){function e(t,n,i,r,o,a){Object(m.a)(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Q$,this.snackBarContainerComponent=J$,this.handsetCssClass="mat-snack-bar-handset"}return Object(g.a)(e,[{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=na.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:X$,useValue:t}]}),i=new IX(this.snackBarContainerComponent,t.viewContainerRef,n),r=e.attach(i);return r.instance.snackBarConfig=t,r.instance}},{key:"_attach",value:function(e,t){var n=this,i=Object.assign(Object.assign(Object.assign({},new X$),this._defaultConfig),t),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new Z$(o,r);if(e instanceof vc){var s=new DX(e,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var c=this._createInjector(i,a),l=new IX(e,void 0,c),u=o.attachComponentPortal(l);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Object(Gm.a)(r.detachments())).subscribe((function(e){var t=r.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)})),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe((function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){e.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe((function(){return e._dismissAfter(t.duration)})),t.announcementMessage&&this._live.announce(t.announcementMessage,t.politeness)}},{key:"_createOverlay",value:function(e){var t=new WY;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,o=!r&&"center"!==e.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return na.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Z$,useValue:t},{provide:K$,useValue:e.data}]})}},{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(hZ),we(yX),we(na),we(H$),we(e,12),we(tJ))},e.\u0275prov=R({factory:function(){return new e(we(hZ),we(yX),we(de),we(H$),we(e,12),we(tJ))},token:e,providedIn:eJ}),e}(),iJ=function(){function e(e,t){this.snackbar=e,this.zone=t,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return e.prototype.error=function(e){var t=this;this.zone.run((function(){t.snackbar.open(e,"Close",t.snackBarConfigForError)}))},e.prototype.warning=function(e){var t=this;this.zone.run((function(){t.snackbar.open(e,"Close",t.snackBarConfigForWarning)}))},e.prototype.success=function(e){var t=this;this.zone.run((function(){t.snackbar.open(e,"Close",t.snackBarConfigForSuccess)}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(nJ),we(Nl))}}),e}(),rJ=["*",[["mat-card-footer"]]],oJ=["*","mat-card-footer"],aJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],sJ=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],cJ=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],lJ=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],uJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),hJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),dJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),fJ=function(){var e=function e(){Object(m.a)(this,e),this.align="start"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&os("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),pJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),e}(),mJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),e}(),gJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),e}(),vJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),e}(),bJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),e}(),yJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),e}(),_J=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),e}(),wJ=function(){var e=function e(t){Object(m.a)(this,e),this._animationMode=t};return e.\u0275fac=function(t){return new(t||e)(_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&os("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:oJ,decls:2,vars:0,template:function(e,t){1&e&&(za(rJ),Va(0),Va(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e}(),kJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:sJ,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(za(aJ),Va(0),Sa(1,"div",0),Va(2,1),xa(),Va(3,2))},encapsulation:2,changeDetection:0}),e}(),CJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:lJ,decls:4,vars:0,template:function(e,t){1&e&&(za(cJ),Sa(0,"div"),Va(1),xa(),Va(2,1),Va(3,2))},encapsulation:2,changeDetection:0}),e}(),SJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[$X],$X]}),e}(),xJ=["underline"],OJ=["connectionContainer"],MJ=["inputContainer"],TJ=["label"];function EJ(e,t){1&e&&(Ma(0),Sa(1,"div",14),Oa(2,"div",15),Oa(3,"div",16),Oa(4,"div",17),xa(),Sa(5,"div",18),Oa(6,"div",15),Oa(7,"div",16),Oa(8,"div",17),xa(),Ta())}function PJ(e,t){1&e&&(Sa(0,"div",19),Va(1,1),xa())}function jJ(e,t){if(1&e&&(Ma(0),Va(1,2),Sa(2,"span"),_s(3),xa(),Ta()),2&e){var n=Ba(2);ar(3),ws(n._control.placeholder)}}function AJ(e,t){1&e&&Va(0,3,["*ngSwitchCase","true"])}function IJ(e,t){1&e&&(Sa(0,"span",23),_s(1," *"),xa())}function DJ(e,t){if(1&e){var n=Pa();Sa(0,"label",20,21),Ia("cdkObserveContent",(function(){return Dt(n),Ba().updateOutlineGap()})),ba(2,jJ,4,1,"ng-container",12),ba(3,AJ,1,0,"ng-content",12),ba(4,IJ,2,0,"span",22),xa()}if(2&e){var i=Ba();os("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),ka("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),fa("for",i._control.id)("aria-owns",i._control.id),ar(2),ka("ngSwitchCase",!1),ar(1),ka("ngSwitchCase",!0),ar(1),ka("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function RJ(e,t){1&e&&(Sa(0,"div",24),Va(1,4),xa())}function LJ(e,t){if(1&e&&(Sa(0,"div",25,26),Oa(2,"span",27),xa()),2&e){var n=Ba();ar(2),os("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function FJ(e,t){1&e&&(Sa(0,"div"),Va(1,5),xa()),2&e&&ka("@transitionMessages",Ba()._subscriptAnimationState)}function NJ(e,t){if(1&e&&(Sa(0,"div",31),_s(1),xa()),2&e){var n=Ba(2);ka("id",n._hintLabelId),ar(1),ws(n.hintLabel)}}function BJ(e,t){if(1&e&&(Sa(0,"div",28),ba(1,NJ,2,2,"div",29),Va(2,6),Oa(3,"div",30),Va(4,7),xa()),2&e){var n=Ba();ka("@transitionMessages",n._subscriptAnimationState),ar(1),ka("ngIf",n.hintLabel)}}var HJ=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],zJ=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],VJ=0,qJ=new he("MatError"),UJ=function(){var e=function e(){Object(m.a)(this,e),this.id="mat-error-".concat(VJ++)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&fa("id",t.id)},inputs:{id:"id"},features:[Vs([{provide:qJ,useExisting:e}])]}),e}(),GJ={transitionMessages:jv("transitionMessages",[Lv("enter",Rv({opacity:1,transform:"translateY(0%)"})),Nv("void => enter",[Rv({opacity:0,transform:"translateY(-100%)"}),Av("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},WJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e}(),KJ=0,XJ=new he("MatHint"),YJ=function(){var e=function e(){Object(m.a)(this,e),this.align="start",this.id="mat-hint-".concat(KJ++)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(fa("id",t.id)("align",null),os("mat-right","end"==t.align))},inputs:{align:"align",id:"id"},features:[Vs([{provide:XJ,useExisting:e}])]}),e}(),ZJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-label"]]}),e}(),QJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-placeholder"]]}),e}(),$J=new he("MatPrefix"),JJ=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matPrefix",""]],features:[Vs([{provide:$J,useExisting:e}])]}),e}(),e0=new he("MatSuffix"),t0=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matSuffix",""]],features:[Vs([{provide:e0,useExisting:e}])]}),e}(),n0=0,i0=eY((function e(t){Object(m.a)(this,e),this._elementRef=t}),"primary"),r0=new he("MAT_FORM_FIELD_DEFAULT_OPTIONS"),o0=new he("MatFormField"),a0=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c,l){var u;return Object(m.a)(this,n),(u=t.call(this,e))._elementRef=e,u._changeDetectorRef=i,u._dir=o,u._defaults=a,u._platform=s,u._ngZone=c,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new w.b,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-".concat(n0++),u._labelId="mat-form-field-label-".concat(n0++),u._labelOptions=r||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==l,u.appearance=a&&a.appearance?a.appearance:"legacy",u._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,u}return Object(g.a)(n,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Object(Jm.a)(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.pipe(Object(Gm.a)(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),Object(C.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Object(Jm.a)(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Object(Jm.a)(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e.updateOutlineGap()}))})):e.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(Km.a)(this._label.nativeElement,"transitionend").pipe(Object(Wm.a)(1)).subscribe((function(){e._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,Object(u.a)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find((function(e){return"start"===e.align})):null,n=this._hintChildren?this._hintChildren.find((function(e){return"end"===e.align})):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,Object(u.a)(this._errorChildren.map((function(e){return e.id}))));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),c=e.children,l=this._getStartEnd(c[0].getBoundingClientRect()),u=0,h=0;h<c.length;h++)u+=c[h].offsetWidth;t=Math.abs(l-s)-5,n=u>0?.75*u+10:0}for(var d=0;d<r.length;d++)r[d].style.width="".concat(t,"px");for(var f=0;f<o.length;f++)o[f].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}},{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=vm(e)}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}}]),n}(i0);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(FY,8),_a(pm,8),_a(r0,8),_a(Fm),_a(Nl),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,WJ,!0),hl(n,WJ,!0),ul(n,ZJ,!0),hl(n,ZJ,!0),ul(n,QJ,!0),ul(n,qJ,!0),ul(n,XJ,!0),ul(n,$J,!0),ul(n,e0,!0)),2&e&&(al(i=fl())&&(t._controlNonStatic=i.first),al(i=fl())&&(t._controlStatic=i.first),al(i=fl())&&(t._labelChildNonStatic=i.first),al(i=fl())&&(t._labelChildStatic=i.first),al(i=fl())&&(t._placeholderChild=i.first),al(i=fl())&&(t._errorChildren=i),al(i=fl())&&(t._hintChildren=i),al(i=fl())&&(t._prefixChildren=i),al(i=fl())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(cl(xJ,!0),sl(OJ,!0),cl(MJ,!0),cl(TJ,!0)),2&e&&(al(n=fl())&&(t.underlineRef=n.first),al(n=fl())&&(t._connectionContainerRef=n.first),al(n=fl())&&(t._inputContainerRef=n.first),al(n=fl())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&os("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Vs([{provide:o0,useExisting:e}]),Es],ngContentSelectors:zJ,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(za(HJ),Sa(0,"div",0),Sa(1,"div",1,2),Ia("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),ba(3,EJ,9,0,"ng-container",3),ba(4,PJ,2,0,"div",4),Sa(5,"div",5,6),Va(7),Sa(8,"span",7),ba(9,DJ,5,16,"label",8),xa(),xa(),ba(10,RJ,2,0,"div",9),xa(),ba(11,LJ,3,4,"div",10),Sa(12,"div",11),ba(13,FJ,2,1,"div",12),ba(14,BJ,5,2,"div",13),xa(),xa()),2&e&&(ar(3),ka("ngIf","outline"==t.appearance),ar(1),ka("ngIf",t._prefixChildren.length),ar(5),ka("ngIf",t._hasFloatingLabel()),ar(1),ka("ngIf",t._suffixChildren.length),ar(1),ka("ngIf","outline"!=t.appearance),ar(1),ka("ngSwitch",t._getDisplayedMessages()),ar(1),ka("ngSwitchCase","error"),ar(1),ka("ngSwitchCase","hint"))},directives:[Hh,Uh,Gh,JK],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[GJ.transitionMessages]},changeDetection:0}),e}(),s0=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d,$X,eX],$X]}),e}(),c0=zm({passive:!0}),l0=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return Object(g.a)(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return SU.a;var n=km(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new w.b,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run((function(){return r.next({target:e.target,isAutofilled:!1})}))):(n.classList.add(o),t._ngZone.run((function(){return r.next({target:e.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,c0),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,c0)}}),r}},{key:"stopMonitoring",value:function(e){var t=km(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach((function(t,n){return e.stopMonitoring(n)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Fm),we(Nl))},e.\u0275prov=R({factory:function(){return new e(we(Fm),we(Nl))},token:e,providedIn:"root"}),e}(),u0=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._elementRef=t,this._autofillMonitor=n,this.cdkAutofill=new Yc}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(t){return e.cdkAutofill.emit(t)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(l0))},e.\u0275dir=Ke({type:e,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),e}(),h0=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._elementRef=t,this._platform=n,this._ngZone=i,this._destroyed=new w.b,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return Object(g.a)(e,[{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){var t=e._getWindow();Object(Km.a)(t,"resize").pipe(Object(Qm.a)(16),Object(Gm.a)(e._destroyed)).subscribe((function(){return e.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add(this._measuringClass),n.placeholder="";var o=n.scrollHeight-4;n.style.height="".concat(o,"px"),n.classList.remove(this._measuringClass),n.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return e._scrollToCaretPosition(n)})):setTimeout((function(){return e._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}},{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=bm(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=bm(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=vm(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Fm),_a(Nl),_a(bu,8))},e.\u0275dir=Ke({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&Ia("input",(function(){return t._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),e}(),d0=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[Nm]]}),e}(),f0=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(e){this.minRows=e}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(e){this.maxRows=e}},{key:"matAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}}]),n}(h0);return e.\u0275fac=function(t){return p0(t||e)},e.\u0275dir=Ke({type:e,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[Es]}),e}(),p0=Qn(f0),m0=new he("MAT_INPUT_VALUE_ACCESSOR"),g0=["button","checkbox","file","hidden","image","radio","range","reset","submit"],v0=0,b0=iY((function e(t,n,i,r){Object(m.a)(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),y0=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c,l,u,h){var d;Object(m.a)(this,n),(d=t.call(this,s,o,a,r))._elementRef=e,d._platform=i,d.ngControl=r,d._autofillMonitor=l,d._formField=h,d._uid="mat-input-".concat(v0++),d.focused=!1,d.stateChanges=new w.b,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return Hm().has(e)}));var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=c||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return Object(g.a)(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){g0.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=vm(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=vm(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Hm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=vm(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(b0);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Fm),_a(xf,10),_a(Tp,8),_a(zp,8),_a(oY),_a(m0,10),_a(l0),_a(Nl),_a(o0,8))},e.\u0275dir=Ke({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&Ia("focus",(function(){return t._focusChanged(!0)}))("blur",(function(){return t._focusChanged(!1)}))("input",(function(){return t._onInput()})),2&e&&(Os("disabled",t.disabled)("required",t.required),fa("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),os("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Vs([{provide:WJ,useExisting:e}]),Es,ct]}),e}(),_0=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[oY],imports:[[d0,s0],d0,s0]}),e}(),w0=["trigger"],k0=["panel"];function C0(e,t){if(1&e&&(Sa(0,"span",8),_s(1),xa()),2&e){var n=Ba();ar(1),ws(n.placeholder||"\xa0")}}function S0(e,t){if(1&e&&(Sa(0,"span"),_s(1),xa()),2&e){var n=Ba(2);ar(1),ws(n.triggerValue||"\xa0")}}function x0(e,t){1&e&&Va(0,0,["*ngSwitchCase","true"])}function O0(e,t){1&e&&(Sa(0,"span",9),ba(1,S0,2,1,"span",10),ba(2,x0,1,0,"ng-content",11),xa()),2&e&&(ka("ngSwitch",!!Ba().customTrigger),ar(2),ka("ngSwitchCase",!0))}function M0(e,t){if(1&e){var n=Pa();Sa(0,"div",12),Sa(1,"div",13,14),Ia("@transformPanel.done",(function(e){return Dt(n),Ba()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return Dt(n),Ba()._handleKeydown(e)})),Va(3,1),xa(),xa()}if(2&e){var i=Ba();ka("@transformPanelWrap",void 0),ar(1),xs("mat-select-panel ",i._getPanelTheme(),""),rs("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),ka("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),fa("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var T0=[[["mat-select-trigger"]],"*"],E0=["mat-select-trigger","*"],P0={transformPanelWrap:jv("transformPanelWrap",[Nv("* => void",Hv("@transformPanel",[Bv()],{optional:!0}))]),transformPanel:jv("transformPanel",[Lv("void",Rv({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Lv("showing",Rv({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Lv("showing-multiple",Rv({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Nv("void => *",Av("120ms cubic-bezier(0, 0, 0.2, 1)")),Nv("* => void",Av("100ms 25ms linear",Rv({opacity:0})))])},j0=0,A0=256,I0=new he("mat-select-scroll-strategy"),D0=new he("MAT_SELECT_CONFIG"),R0={provide:I0,deps:[hZ],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},L0=function e(t,n){Object(m.a)(this,e),this.source=t,this.value=n},F0=tY(nY(JX(iY((function e(t,n,i,r,o){Object(m.a)(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}))))),N0=new he("MatSelectTrigger"),B0=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-select-trigger"]],features:[Vs([{provide:N0,useExisting:e}])]}),e}(),H0=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,c,l,h,d,f,p,g,v,b){var y;return Object(m.a)(this,n),(y=t.call(this,a,o,l,h,f))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=r,y._dir=c,y._parentFormField=d,y.ngControl=f,y._liveAnnouncer=v,y._panelOpen=!1,y._required=!1,y._scrollTop=0,y._multiple=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-".concat(j0++),y._triggerAriaLabelledBy=null,y._destroy=new w.b,y._triggerFontSize=0,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(j0++),y._transformOrigin="top",y._panelDoneAnimatingStream=new w.b,y._offsetY=0,y._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],y._disableOptionCentering=!1,y._focused=!1,y.controlType="mat-select",y.ariaLabel="",y.optionSelectionChanges=Object(CU.a)((function(){var e=y.options;return e?e.changes.pipe(Object(Jm.a)(e),Object(tg.a)((function(){return C.a.apply(void 0,Object(u.a)(e.map((function(e){return e.onSelectionChange}))))}))):y._ngZone.onStable.pipe(Object(Wm.a)(1),Object(tg.a)((function(){return y.optionSelectionChanges})))})),y.openedChange=new Yc,y._openedStream=y.openedChange.pipe(Object($m.a)((function(e){return e})),Object(mf.a)((function(){}))),y._closedStream=y.openedChange.pipe(Object($m.a)((function(e){return!e})),Object(mf.a)((function(){}))),y.selectionChange=new Yc,y.valueChange=new Yc,y.ngControl&&(y.ngControl.valueAccessor=Object(s.a)(y)),y._scrollStrategyFactory=g,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,b&&(null!=b.disableOptionCentering&&(y.disableOptionCentering=b.disableOptionCentering),null!=b.typeaheadDebounceInterval&&(y.typeaheadDebounceInterval=b.typeaheadDebounceInterval)),y}return Object(g.a)(n,[{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new Em(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(Zm.a)(),Object(Gm.a)(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Object(Gm.a)(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Object(Gm.a)(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(Object(Jm.a)(null),Object(Gm.a)(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.pipe(Object(Wm.a)(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=t===WK||t===XK,r=this._keyManager;if(!r.isTyping()&&i&&!YK(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==WK&&n!==XK||!t.activeItem||YK(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(o?e.select():e.deselect())}))}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Object(Wm.a)(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this.multiple&&e)Array.isArray(e),this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues();else{this._selectionModel.clear();var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find((function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new uX(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(Gm.a)(this._destroy)).subscribe((function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())})),this._keyManager.change.pipe(Object(Gm.a)(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var e=this,t=Object(C.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(Gm.a)(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),C.a.apply(void 0,Object(u.a)(this.options.map((function(e){return e._stateChanges})))).pipe(Object(Gm.a)(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()}))}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new L0(this,t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var e,t,n,i=this._keyManager.activeItemIndex||0,r=RY(i,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(t=o,(e=(i+r)*o)<(n=this.panel.nativeElement.scrollTop)?e:e+t>n+256?Math.max(0,e-256+t):n)}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getOptionIndex",value:function(e){return this.options.reduce((function(t,n,i){return void 0!==t?t:e===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,A0),i=t*e-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=RY(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(A0/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-A0)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,A0)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-t+e/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=vm(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=vm(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=vm(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=bm(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(F0);return e.\u0275fac=function(t){return new(t||e)(_a(og),_a(No),_a(Nl),_a(oY),_a(Ks),_a(pm,8),_a(Tp,8),_a(zp,8),_a(o0,8),_a(xf,10),wa("tabindex"),_a(I0),_a(yX),_a(D0,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,N0,!0),ul(n,DY,!0),ul(n,MY,!0)),2&e&&(al(i=fl())&&(t.customTrigger=i.first),al(i=fl())&&(t.options=i),al(i=fl())&&(t.optionGroups=i))},viewQuery:function(e,t){var n;1&e&&(cl(w0,!0),cl(k0,!0),cl(mZ,!0)),2&e&&(al(n=fl())&&(t.trigger=n.first),al(n=fl())&&(t.panel=n.first),al(n=fl())&&(t.overlayDir=n.first))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Ia("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()})),2&e&&(fa("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),os("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Vs([{provide:WJ,useExisting:e},{provide:AY,useExisting:e}]),Es,ct],ngContentSelectors:E0,decls:9,vars:10,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(za(T0),Sa(0,"div",0,1),Ia("click",(function(){return t.toggle()})),Sa(3,"div",2),ba(4,C0,2,1,"span",3),ba(5,O0,3,2,"span",4),xa(),Sa(6,"div",5),Oa(7,"div",6),xa(),xa(),ba(8,M0,4,14,"ng-template",7),Ia("backdropClick",(function(){return t.close()}))("attach",(function(){return t._onAttached()}))("detach",(function(){return t.close()}))),2&e){var n=ya(1);ar(3),ka("ngSwitch",t.empty),fa("id",t._valueId),ar(1),ka("ngSwitchCase",!0),ar(1),ka("ngSwitchCase",!1),ar(3),ka("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[pZ,Uh,Gh,mZ,Wh,Rh],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[P0.transformPanelWrap,P0.transformPanel]},changeDetection:0}),e}(),z0=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[R0],imports:[[_d,vZ,LY,$X],ag,s0,LY,$X]}),e}(),V0=["input"],q0=function(){return{enterDuration:150}},U0=["*"],G0=new he("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),W0=new he("mat-checkbox-click-action"),K0=0,X0={provide:gf,useExisting:Y((function(){return Q0})),multi:!0},Y0=function e(){Object(m.a)(this,e)},Z0=nY(eY(tY(JX((function e(t){Object(m.a)(this,e),this._elementRef=t}))))),Q0=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c,l){var u;return Object(m.a)(this,n),(u=t.call(this,e))._changeDetectorRef=i,u._focusMonitor=r,u._ngZone=o,u._clickAction=s,u._animationMode=c,u._options=l,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-".concat(++K0),u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new Yc,u.indeterminateChange=new Yc,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||{},u._options.color&&(u.color=u.defaultColor=u._options.color),u.tabIndex=parseInt(a)||0,u._clickAction=u._clickAction||u._options.clickAction,u}return Object(g.a)(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){t||Promise.resolve().then((function(){e._onTouched(),e._changeDetectorRef.markForCheck()}))})),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var e=new Y0;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=vm(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=vm(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=vm(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(Z0);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(CX),_a(Nl),wa("tabindex"),_a(W0,8),_a(__,8),_a(G0,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(cl(V0,!0),cl(yY,!0)),2&e&&(al(n=fl())&&(t._inputElement=n.first),al(n=fl())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(Os("id",t.id),fa("tabindex",null),os("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Vs([X0]),Es],ngContentSelectors:U0,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(za(),Sa(0,"label",0,1),Sa(2,"div",2),Sa(3,"input",3,4),Ia("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),xa(),Sa(5,"div",5),Oa(6,"div",6),xa(),Oa(7,"div",7),Sa(8,"div",8),cn(),Sa(9,"svg",9),Oa(10,"path",10),xa(),ln(),Oa(11,"div",11),xa(),xa(),Sa(12,"span",12,13),Ia("cdkObserveContent",(function(){return t._onLabelTextChange()})),Sa(14,"span",14),_s(15,"\xa0"),xa(),Va(16),xa(),xa()),2&e){var n=ya(1),i=ya(13);fa("for",t.inputId),ar(2),os("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),ar(1),ka("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),fa("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),ar(2),ka("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Nc(19,q0))}},directives:[yY,JK],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e}(),$0={provide:jf,useExisting:Y((function(){return J0})),multi:!0},J0=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}($p);return e.\u0275fac=function(t){return e1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[Vs([$0]),Es]}),e}(),e1=Qn(J0),t1=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),n1=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_Y,$X,eX,t1],$X,t1]}),e}();function i1(e,t){if(1&e&&(Sa(0,"mat-option",15),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var r1=function(){return{standalone:!0}},o1=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.vpcsConfigurationService=r,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes()},e.prototype.onSaveClick=function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(I$))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-vpcs"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),Sa(6,"form",5),Sa(7,"mat-form-field",6),Sa(8,"input",7),Ia("ngModelChange",(function(e){return t.node.name=e})),xa(),xa(),Sa(9,"mat-form-field",8),Sa(10,"mat-select",9),Ia("ngModelChange",(function(e){return t.node.console_type=e})),ba(11,i1,2,2,"mat-option",10),xa(),xa(),Sa(12,"mat-checkbox",11),Ia("ngModelChange",(function(e){return t.node.console_auto_start=e})),_s(13," Auto start console "),xa(),xa(),xa(),xa(),xa(),xa(),Sa(14,"div",12),Sa(15,"button",13),Ia("click",(function(){return t.onCancelClick()})),_s(16,"Cancel"),xa(),Sa(17,"button",14),Ia("click",(function(){return t.onSaveClick()})),_s(18,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("formGroup",t.inputForm),ar(2),ka("ngModel",t.node.name),ar(2),ka("ngModelOptions",Nc(8,r1))("ngModel",t.node.console_type),ar(1),ka("ngForOf",t.consoleTypes),ar(1),ka("ngModelOptions",Nc(9,r1))("ngModel",t.node.console_auto_start))},directives:[oQ,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,Q0,sQ,h$,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),a1=function(){return{standalone:!0}},s1=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.vpcsConfigurationService=r,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=e.node.name,e.numberOfPorts=e.node.ports.length,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()},e.prototype.onSaveClick=function(){var e=this;if(this.inputForm.valid){this.node.properties.ports_mapping=[];for(var t=0;t<this.numberOfPorts;t++)this.node.properties.ports_mapping.push({name:"Ethernet"+t,port_number:t});this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))}else this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(I$))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-ethernet-hub"]],decls:16,vars:6,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),Sa(6,"form",5),Sa(7,"mat-form-field",6),Sa(8,"input",7),Ia("ngModelChange",(function(e){return t.node.name=e})),xa(),xa(),Sa(9,"mat-form-field",6),Sa(10,"input",8),Ia("ngModelChange",(function(e){return t.numberOfPorts=e})),xa(),xa(),xa(),xa(),xa(),xa(),xa(),Sa(11,"div",9),Sa(12,"button",10),Ia("click",(function(){return t.onCancelClick()})),_s(13,"Cancel"),xa(),Sa(14,"button",11),Ia("click",(function(){return t.onSaveClick()})),_s(15,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("formGroup",t.inputForm),ar(2),ka("ngModel",t.node.name),ar(2),ka("ngModel",t.numberOfPorts)("ngModelOptions",Nc(5,a1)))},directives:[oQ,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,zf,Rp,sQ,h$],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),c1=function(){function e(){}return e.prototype.getCategoriesForCloudNodes=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","end_device"],["Security devices","security_device"]]},e.prototype.getConsoleTypesForCloudNodes=function(){return["telnet","none"]},e.prototype.getCategoriesForEthernetHubs=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","end_device"],["Security devices","security_device"]]},e.prototype.getCategoriesForEthernetSwitches=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","end_device"],["Security devices","security_device"]]},e.prototype.getConsoleTypesForEthernetSwitches=function(){return["telnet","none"]},e.prototype.getPortTypesForEthernetSwitches=function(){return["access","dot1q","qinq"]},e.prototype.getEtherTypesForEthernetSwitches=function(){return["0x8100","0x88A8","0x9100","0x9200"]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),l1=[[["caption"]],[["colgroup"],["col"]]],u1=["caption","colgroup, col"];function h1(e,t){if(1&e&&(Sa(0,"th",3),_s(1),xa()),2&e){var n=Ba();rs("text-align",n.justify),ar(1),ks(" ",n.headerText," ")}}function d1(e,t){if(1&e&&(Sa(0,"td",4),_s(1),xa()),2&e){var n=t.$implicit,i=Ba();rs("text-align",i.justify),ar(1),ks(" ",i.dataAccessor(n,i.name)," ")}}var f1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return n}(Ug);return e.\u0275fac=function(t){return p1(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[Vs([{provide:jm,useClass:Tm},{provide:Ug,useExisting:e},{provide:fg,useExisting:e},{provide:xg,useClass:Og}]),Es],ngContentSelectors:u1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(za(l1),Va(0),Va(1,1),Ea(2,0),Ea(3,1),Ea(4,2),Ea(5,3))},directives:[zg,Hg,qg,Vg],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}\n'],encapsulation:2}),e}(),p1=Qn(f1),m1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(mg);return e.\u0275fac=function(t){return g1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matCellDef",""]],features:[Vs([{provide:mg,useExisting:e}]),Es]}),e}(),g1=Qn(m1),v1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(gg);return e.\u0275fac=function(t){return b1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matHeaderCellDef",""]],features:[Vs([{provide:gg,useExisting:e}]),Es]}),e}(),b1=Qn(v1),y1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(vg);return e.\u0275fac=function(t){return _1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matFooterCellDef",""]],features:[Vs([{provide:vg,useExisting:e}]),Es]}),e}(),_1=Qn(y1),w1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"_updateColumnCssClassName",value:function(){Object(o.a)(Object(a.a)(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}},{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}}]),n}(yg);return e.\u0275fac=function(t){return k1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Vs([{provide:yg,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),Es]}),e}(),k1=Qn(w1),C1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(wg);return e.\u0275fac=function(t){return S1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Es]}),e}(),S1=Qn(C1),x1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(kg);return e.\u0275fac=function(t){return O1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[Es]}),e}(),O1=Qn(x1),M1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Cg);return e.\u0275fac=function(t){return T1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Es]}),e}(),T1=Qn(M1),E1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Eg);return e.\u0275fac=function(t){return P1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Vs([{provide:Eg,useExisting:e}]),Es]}),e}(),P1=Qn(E1),j1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(jg);return e.\u0275fac=function(t){return A1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[Vs([{provide:jg,useExisting:e}]),Es]}),e}(),A1=Qn(j1),I1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Ag);return e.\u0275fac=function(t){return D1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Vs([{provide:Ag,useExisting:e}]),Es]}),e}(),D1=Qn(I1),R1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Dg);return e.\u0275fac=function(t){return L1(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Vs([{provide:Dg,useExisting:e}]),Es],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[Ig],encapsulation:2}),e}(),L1=Qn(R1),F1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Rg);return e.\u0275fac=function(t){return N1(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[Vs([{provide:Rg,useExisting:e}]),Es],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[Ig],encapsulation:2}),e}(),N1=Qn(F1),B1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Lg);return e.\u0275fac=function(t){return H1(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Vs([{provide:Lg,useExisting:e}]),Es],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[Ig],encapsulation:2}),e}(),H1=Qn(B1),z1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Fg);return e.\u0275fac=function(t){return V1(t||e)},e.\u0275dir=Ke({type:e,selectors:[["ng-template","matNoDataRow",""]],features:[Vs([{provide:Fg,useExisting:e}]),Es]}),e}(),V1=Qn(z1),q1=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Wg);return e.\u0275fac=function(t){return U1(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-text-column"]],features:[Es],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(e,t){1&e&&(Ma(0,0),ba(1,h1,2,3,"th",1),ba(2,d1,2,3,"td",2),Ta())},directives:[w1,v1,m1,C1,M1],encapsulation:2}),e}(),U1=Qn(q1),G1=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[Kg,$X],$X]}),e}(),W1=9007199254740991,K1=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(m.a)(this,n),(e=t.call(this))._renderData=new Um.a([]),e._filter=new Um.a(""),e._internalPageChanges=new w.b,e._renderChangesSubscription=_.a.EMPTY,e.sortingDataAccessor=function(e,t){var n=e[t];if(ym(n)){var i=Number(n);return i<W1?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort((function(t,n){var o=e.sortingDataAccessor(t,i),a=e.sortingDataAccessor(n,i),s=typeof o,c=typeof a;s!==c&&("number"===s&&(o+=""),"number"===c&&(a+=""));var l=0;return null!=o&&null!=a?o>a?l=1:o<a&&(l=-1):null!=o?l=1:null!=a&&(l=-1),l*("asc"==r?1:-1)})):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce((function(t,n){return t+e[n]+"\u25ec"}),"").toLowerCase(),i=t.trim().toLowerCase();return-1!=n.indexOf(i)},e._data=new Um.a(i),e._updateChangeSubscription(),e}return Object(g.a)(n,[{key:"_updateChangeSubscription",value:function(){var e=this,t=this._sort?Object(C.a)(this._sort.sortChange,this._sort.initialized):Object(Sm.a)(null),n=this._paginator?Object(C.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(Sm.a)(null),i=this._data,r=Object(wU.b)([i,this._filter]).pipe(Object(mf.a)((function(t){var n=l(t,1);return e._filterData(n[0])}))),o=Object(wU.b)([r,t]).pipe(Object(mf.a)((function(t){var n=l(t,1);return e._orderData(n[0])}))),a=Object(wU.b)([o,n]).pipe(Object(mf.a)((function(t){var n=l(t,1);return e._pageData(n[0])})));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=a.subscribe((function(t){return e._renderData.next(t)}))}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=this.filter?e.filter((function(e){return t.filterPredicate(e,t.filter)})):e,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(e){return this.sort?this.sortData(e.slice(),this.sort):e}},{key:"_pageData",value:function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(e){var t=this;Promise.resolve().then((function(){var n=t.paginator;if(n&&(n.length=e,n.pageIndex>0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}}]),n}(xm),X1={tooltipState:jv("state",[Lv("initial, void, hidden",Rv({opacity:0,transform:"scale(0)"})),Lv("visible",Rv({transform:"scale(1)"})),Nv("* => visible",Av("200ms cubic-bezier(0, 0, 0.2, 1)",Fv([Rv({opacity:0,transform:"scale(0)",offset:0}),Rv({opacity:.5,transform:"scale(0.99)",offset:.5}),Rv({opacity:1,transform:"scale(1)",offset:1})]))),Nv("* => hidden",Av("100ms cubic-bezier(0, 0, 0.2, 1)",Rv({opacity:0})))])},Y1=zm({passive:!0}),Z1=new he("mat-tooltip-scroll-strategy"),Q1={provide:Z1,deps:[hZ],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},$1=new he("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),J1=function(){var e=function(){function e(t,n,i,r,o,a,s,c,l,u,h){var d=this;Object(m.a)(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=c,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new w.b,this._handleKeydown=function(e){d._isTooltipVisible()&&e.keyCode===KK&&!YK(e)&&(e.preventDefault(),e.stopPropagation(),d._ngZone.run((function(){return d.hide(0)})))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)}))}return Object(g.a)(e,[{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(Gm.a)(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&e._ngZone.run((function(){return e.show()})):e._ngZone.run((function(){return e.hide(0)}))}))}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(t){var n=l(t,2);e.removeEventListener(n[0],n[1],Y1)})),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new IX(e2,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run((function(){return e.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){return e._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(Wm.a)(1),Object(Gm.a)(this._destroyed)).subscribe((function(){e._tooltipInstance&&e._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout((function(){return e.show()}),500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach((function(e){var n=l(e,2);t._elementRef.nativeElement.addEventListener(n[0],n[1],Y1)}))}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?"".concat(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(hZ),_a(Ks),_a(ig),_a(yc),_a(Nl),_a(Fm),_a(cX),_a(CX),_a(Z1),_a(pm,8),_a($1,8))},e.\u0275dir=Ke({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),e}(),e2=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new w.b,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return Object(g.a)(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()}),e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()}),e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(No),_a(H$))},e.\u0275cmp=ze({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Ia("click",(function(){return t._handleBodyInteraction()}),!1,jn),2&e&&rs("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(Sa(0,"div",0),Ia("@state.start",(function(){return t._animationStart()}))("@state.done",(function(e){return t._animationDone(e)})),Uc(1,"async"),_s(2),xa()),2&e&&(os("mat-tooltip-handset",null==(n=Gc(1,5,t._isHandset))?null:n.matches),ka("ngClass",t.tooltipClass)("@state",t._visibility),ar(2),ws(t.message))},directives:[Rh],pipes:[td],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[X1.tooltipState]},changeDetection:0}),e}(),t2=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[Q1],imports:[[PX,_d,vZ,$X],$X,ag]}),e}();function n2(e,t){1&e&&(Sa(0,"th",18),_s(1," Port number "),xa())}function i2(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.port_number," ")}}function r2(e,t){1&e&&(Sa(0,"th",18),_s(1," VLAN "),xa())}function o2(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.vlan," ")}}function a2(e,t){1&e&&(Sa(0,"th",18),_s(1," Type "),xa())}function s2(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.type," ")}}function c2(e,t){1&e&&(Sa(0,"th",18),_s(1," EtherType "),xa())}function l2(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.ethertype," ")}}function u2(e,t){1&e&&(Sa(0,"th",18),_s(1," Actions "),xa())}function h2(e,t){if(1&e){var n=Pa();Sa(0,"td",19),Sa(1,"button",20),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().delete(e)})),Sa(2,"mat-icon",21),_s(3,"delete"),xa(),xa(),xa()}}function d2(e,t){1&e&&Oa(0,"tr",22)}function f2(e,t){1&e&&Oa(0,"tr",23)}function p2(e,t){if(1&e&&(Sa(0,"mat-option",24),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function m2(e,t){if(1&e&&(Sa(0,"mat-option",24),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var g2=function(){return{standalone:!0}},v2=function(){function e(e){this.builtInTemplatesConfigurationService=e,this.ethernetPorts=[],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return e.prototype.ngOnInit=function(){this.getConfiguration()},e.prototype.getConfiguration=function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()},e.prototype.onAdd=function(){this.ethernetPorts.push(this.newPort),this.newPort={name:"",port_number:0}},e.prototype.delete=function(e){this.ethernetPorts=this.ethernetPorts.filter((function(t){return t!==e}))},e.\u0275fac=function(t){return new(t||e)(_a(c1))},e.\u0275cmp=ze({type:e,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","port_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vlan"],["matColumnDef","type"],["matColumnDef","ethertype"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-field"],["matInput","","type","number","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","VLAN",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","EtherType",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"table",0),Ma(1,1),ba(2,n2,2,0,"th",2),ba(3,i2,2,1,"td",3),Ta(),Ma(4,4),ba(5,r2,2,0,"th",2),ba(6,o2,2,1,"td",3),Ta(),Ma(7,5),ba(8,a2,2,0,"th",2),ba(9,s2,2,1,"td",3),Ta(),Ma(10,6),ba(11,c2,2,0,"th",2),ba(12,l2,2,1,"td",3),Ta(),Ma(13,7),ba(14,u2,2,0,"th",2),ba(15,h2,4,0,"td",3),Ta(),ba(16,d2,1,0,"tr",8),ba(17,f2,1,0,"tr",9),xa(),Oa(18,"br"),Sa(19,"mat-form-field",10),Sa(20,"input",11),Ia("ngModelChange",(function(e){return t.newPort.port_number=e})),xa(),xa(),Sa(21,"mat-form-field",10),Sa(22,"input",12),Ia("ngModelChange",(function(e){return t.newPort.vlan=e})),xa(),xa(),Sa(23,"mat-form-field",13),Sa(24,"mat-select",14),Ia("ngModelChange",(function(e){return t.newPort.type=e})),ba(25,p2,2,2,"mat-option",15),xa(),xa(),Sa(26,"mat-form-field",13),Sa(27,"mat-select",16),Ia("ngModelChange",(function(e){return t.newPort.ethertype=e})),ba(28,m2,2,2,"mat-option",15),xa(),xa(),Sa(29,"button",17),Ia("click",(function(){return t.onAdd()})),_s(30,"Add"),xa()),2&e&&(ka("dataSource",t.ethernetPorts),ar(16),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns),ar(3),ka("ngModel",t.newPort.port_number),ar(2),ka("ngModel",t.newPort.vlan),ar(2),ka("ngModelOptions",Nc(11,g2))("ngModel",t.newPort.type),ar(1),ka("ngForOf",t.portTypes),ar(2),ka("ngModelOptions",Nc(12,g2))("ngModel",t.newPort.ethertype),ar(1),ka("ngForOf",t.etherTypes))},directives:[f1,w1,v1,m1,E1,I1,a0,y0,zf,wf,Mf,Rp,H0,Nh,h$,C1,M1,J1,P$,R1,B1,DY],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function b2(e,t){if(1&e&&(Sa(0,"mat-option",16),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function y2(e,t){1&e&&Oa(0,"app-ports",17,18),2&e&&ka("ethernetPorts",Ba(2).node.properties.ports_mapping)}var _2=function(){return{standalone:!0}};function w2(e,t){if(1&e){var n=Pa();Sa(0,"div",7),Sa(1,"mat-card",8),Sa(2,"form",9),Sa(3,"mat-form-field",10),Sa(4,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),Sa(5,"mat-form-field",12),Sa(6,"mat-select",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(7,b2,2,2,"mat-option",14),xa(),xa(),xa(),ba(8,y2,2,1,"app-ports",15),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("formGroup",i.inputForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModelOptions",Nc(6,_2))("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngIf",i.node.properties)}}var k2=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.ethernetSwitchesConfigurationService=r,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=e.node.name,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.ethernetSwitchesConfigurationService.getConsoleTypesForEthernetSwitches()},e.prototype.onSaveClick=function(){var e=this;this.inputForm.valid?(this.node.properties.ports_mapping=this.portsComponent.ethernetPorts,this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(c1))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(e,t){var n;1&e&&cl(v2,!0),2&e&&al(n=fl())&&(t.portsComponent=n.first)},decls:10,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],["class","default-content",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ethernetPorts",4,"ngIf"],[3,"value"],[3,"ethernetPorts"],["ports",""]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),ba(4,w2,9,7,"div",3),xa(),xa(),Sa(5,"div",4),Sa(6,"button",5),Ia("click",(function(){return t.onCancelClick()})),_s(7,"Cancel"),xa(),Sa(8,"button",6),Ia("click",(function(){return t.onSaveClick()})),_s(9,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(3),ka("ngIf",t.node))},directives:[oQ,Hh,sQ,h$,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,DY,v2],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}();function C2(e,t){1&e&&(Sa(0,"th",24),_s(1," Port : DLCI"),xa())}function S2(e,t){if(1&e&&(Sa(0,"td",25),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.portIn," ")}}function x2(e,t){1&e&&(Sa(0,"th",24),_s(1," Port : DLCI "),xa())}function O2(e,t){if(1&e&&(Sa(0,"td",25),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.portOut," ")}}function M2(e,t){1&e&&(Sa(0,"th",24),_s(1," Actions "),xa())}function T2(e,t){if(1&e){var n=Pa();Sa(0,"td",25),Sa(1,"button",26),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(2).delete(e)})),Sa(2,"mat-icon",27),_s(3,"delete"),xa(),xa(),xa()}}function E2(e,t){1&e&&Oa(0,"tr",28)}function P2(e,t){1&e&&Oa(0,"tr",29)}function j2(e,t){if(1&e&&(Sa(0,"table",16),Ma(1,17),ba(2,C2,2,0,"th",18),ba(3,S2,2,1,"td",19),Ta(),Ma(4,20),ba(5,x2,2,0,"th",18),ba(6,O2,2,1,"td",19),Ta(),Ma(7,21),ba(8,M2,2,0,"th",18),ba(9,T2,4,0,"td",19),Ta(),ba(10,E2,1,0,"tr",22),ba(11,P2,1,0,"tr",23),xa()),2&e){var n=Ba();ka("dataSource",n.nodeMappingsDataSource),ar(10),ka("matHeaderRowDef",n.displayedColumns),ar(1),ka("matRowDefColumns",n.displayedColumns)}}var A2=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new Cp("",Df.required)}),this.inputForm=this.formBuilder.group({sourcePort:new Cp("",Df.required),sourceDlci:new Cp("",Df.required),destinationPort:new Cp("",Df.required),destinationDlci:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name;var n=t.properties.mappings;Object.keys(n).forEach((function(t){e.nodeMappings.set(t,n[t])})),e.nodeMappings.forEach((function(t,n){e.nodeMappingsDataSource.push({portIn:n,portOut:t})}))}))},e.prototype.delete=function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter((function(t){return t!==e}))},e.prototype.add=function(){if(this.inputForm.valid){var e={portIn:this.sourcePort+":"+this.sourceDlci,portOut:this.destinationPort+":"+this.destinationDlci};this.nodeMappingsDataSource.filter((function(t){return t.portIn===e.portIn})).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")},e.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceDlci="0",this.destinationPort="0",this.destinationDlci="0"},e.prototype.strMapToObj=function(e){for(var t=Object.create(null),n=0,i=e;n<i.length;n++){var r=i[n];t[r[0]]=r[1]}return t},e.prototype.onSaveClick=function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach((function(t){e.nodeMappings.set(t.portIn,t.portOut)})),this.node.properties.mappings=Array.from(this.nodeMappings).reduce((function(e,t){var n;return Object.assign(e,((n={})[t[0]]=t[1],n))}),{}),this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card"),ba(6,j2,12,3,"table",4),Oa(7,"br"),Sa(8,"form",5),Sa(9,"mat-form-field",6),Sa(10,"input",7),Ia("ngModelChange",(function(e){return t.node.name=e})),xa(),xa(),xa(),Sa(11,"form",5),_s(12," Source "),Sa(13,"mat-form-field",6),Sa(14,"input",8),Ia("ngModelChange",(function(e){return t.sourcePort=e})),xa(),xa(),Sa(15,"mat-form-field",6),Sa(16,"input",9),Ia("ngModelChange",(function(e){return t.sourceDlci=e})),xa(),xa(),_s(17," Destination "),Sa(18,"mat-form-field",6),Sa(19,"input",10),Ia("ngModelChange",(function(e){return t.destinationPort=e})),xa(),xa(),Sa(20,"mat-form-field",6),Sa(21,"input",11),Ia("ngModelChange",(function(e){return t.destinationDlci=e})),xa(),xa(),xa(),Sa(22,"button",12),Ia("click",(function(){return t.add()})),_s(23,"Add"),xa(),xa(),xa(),xa(),xa(),Sa(24,"div",13),Sa(25,"button",14),Ia("click",(function(){return t.onCancelClick()})),_s(26,"Cancel"),xa(),Sa(27,"button",15),Ia("click",(function(){return t.onSaveClick()})),_s(28,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.nodeMappingsDataSource.length),ar(2),ka("formGroup",t.nameForm),ar(2),ka("ngModel",t.node.name),ar(1),ka("formGroup",t.inputForm),ar(3),ka("ngModel",t.sourcePort),ar(2),ka("ngModel",t.sourceDlci),ar(3),ka("ngModel",t.destinationPort),ar(2),ka("ngModel",t.destinationDlci))},directives:[oQ,wJ,Hh,Lp,Tf,zp,a0,y0,wf,Mf,Xp,zf,h$,sQ,f1,w1,v1,m1,E1,I1,C1,M1,J1,P$,R1,B1],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),I2=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","none"]},e.prototype.getOnCloseoptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","routers"],["Switches","switches"],["End devices","end_devices"],["Security devices","security_devices"]]},e.prototype.getNetworkTypes=function(){return["PCnet-PCI II (Am79C970A)","PCNet-FAST III (Am79C973)","Intel PRO/1000 MT Desktop (82540EM)","Intel PRO/1000 T Server (82543GC)","Intel PRO/1000 MT Server (82545EM)","Paravirtualized Network (virtio-net)"]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function D2(e,t){1&e&&(Sa(0,"th",10),_s(1," Adapter number "),xa())}function R2(e,t){if(1&e&&(Sa(0,"td",11),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" Adapter ",n.adapter_number," ")}}function L2(e,t){1&e&&(Sa(0,"th",10),_s(1," Port name "),xa())}function F2(e,t){if(1&e&&(Sa(0,"td",11),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" Ethernet ",n.adapter_number," ")}}function N2(e,t){1&e&&(Sa(0,"th",10),_s(1," Adapter type "),xa())}function B2(e,t){if(1&e&&(Sa(0,"mat-option",14),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function H2(e,t){if(1&e){var n=Pa();Sa(0,"td",11),Sa(1,"mat-select",12),Ia("ngModelChange",(function(e){return Dt(n),t.$implicit.adapter_type=e})),ba(2,B2,2,2,"mat-option",13),xa(),xa()}if(2&e){var i=t.$implicit,r=Ba();ar(1),ka("ngModel",i.adapter_type),ar(1),ka("ngForOf",r.networkTypes)}}function z2(e,t){1&e&&(Sa(0,"th",10),_s(1," Actions "),xa())}function V2(e,t){if(1&e){var n=Pa();Sa(0,"td",11),Sa(1,"button",15),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().delete(e)})),Sa(2,"mat-icon",16),_s(3,"delete"),xa(),xa(),xa()}}function q2(e,t){1&e&&Oa(0,"tr",17)}function U2(e,t){1&e&&Oa(0,"tr",18)}var G2=function(){function e(){this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return e.prototype.onAdd=function(){this.adapters=this.adapters.concat([{adapter_number:this.adapters.length,adapter_type:this.networkTypes[0]}])},e.prototype.delete=function(e){this.adapters=this.adapters.filter((function(t){return t!==e}))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","adapter_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","port_name"],["matColumnDef","adapter_type"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["placeholder","Type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","","matTooltip","Delete adapter","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Sa(0,"table",0),Ma(1,1),ba(2,D2,2,0,"th",2),ba(3,R2,2,1,"td",3),Ta(),Ma(4,4),ba(5,L2,2,0,"th",2),ba(6,F2,2,1,"td",3),Ta(),Ma(7,5),ba(8,N2,2,0,"th",2),ba(9,H2,3,2,"td",3),Ta(),Ma(10,6),ba(11,z2,2,0,"th",2),ba(12,V2,4,0,"td",3),Ta(),ba(13,q2,1,0,"tr",7),ba(14,U2,1,0,"tr",8),xa(),Sa(15,"button",9),Ia("click",(function(){return t.onAdd()})),_s(16,"Add"),xa()),2&e&&(ka("dataSource",t.adapters),ar(13),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns))},directives:[f1,w1,v1,m1,E1,I1,h$,C1,M1,H0,Mf,Rp,Nh,DY,J1,P$,R1,B1],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),W2=["customAdapters"];function K2(e,t){if(1&e&&(Sa(0,"mat-option",26),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function X2(e,t){if(1&e&&(Sa(0,"mat-option",26),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}var Y2=function(){return{standalone:!0}};function Z2(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Oa(2,"br"),Sa(3,"form",10),Sa(4,"mat-form-field",11),Sa(5,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),Sa(6,"mat-form-field",13),Sa(7,"mat-select",14),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(8,K2,2,2,"mat-option",15),xa(),xa(),Sa(9,"mat-checkbox",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_auto_start=e})),_s(10," Auto start console "),xa(),Sa(11,"mat-form-field",11),Sa(12,"input",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.ram=e})),xa(),Sa(13,"span",18),_s(14,"MB"),xa(),xa(),Sa(15,"mat-form-field",11),Sa(16,"mat-select",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.on_close=e})),ba(17,X2,2,2,"mat-option",15),xa(),xa(),xa(),Sa(18,"mat-checkbox",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.headless=e})),_s(19," Start VM in headless mode "),xa(),xa(),Sa(20,"mat-tab",21),Oa(21,"br"),Sa(22,"mat-checkbox",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.use_any_adapter=e})),_s(23," Allow GNS3 to use any configured VirtualBox adapter "),xa(),Oa(24,"app-custom-adapters-table",22,23),xa(),Sa(26,"mat-tab",24),Sa(27,"mat-form-field",11),Sa(28,"textarea",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.usage=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModelOptions",Nc(17,Y2))("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModelOptions",Nc(18,Y2))("ngModel",i.node.console_auto_start),ar(3),ka("ngModel",i.node.properties.ram),ar(4),ka("ngModelOptions",Nc(19,Y2))("ngModel",i.node.properties.on_close),ar(1),ka("ngForOf",i.onCloseOptions),ar(1),ka("ngModel",i.node.properties.headless),ar(4),ka("ngModel",i.node.properties.use_any_adapter),ar(2),ka("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),ar(4),ka("ngModel",i.node.properties.usage)}}var Q2=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.virtualBoxConfigurationService=r,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required),ram:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach((function(t){e.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})})),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(I2))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-virtualbox"]],viewQuery:function(e,t){var n;1&e&&cl(W2,!0),2&e&&al(n=fl())&&(t.customAdapters=n.first)},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),ba(6,Z2,29,20,"mat-tab-group",5),xa(),xa(),xa(),xa(),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.onCancelClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.onSaveClick()})),_s(11,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.name))},directives:[oQ,wJ,Hh,sQ,h$,KQ,FQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,Q0,zf,t0,G2,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),$2=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.getImagePath=function(e,t){return"http://"+e.host+":"+e.port+"/v2/compute/qemu/images/"+t},e.prototype.getBinaries=function(e){return this.httpServer.get(e,"/computes/local/qemu/binaries")},e.prototype.getImages=function(e){return this.httpServer.get(e,"/compute/qemu/images")},e.prototype.addImage=function(e,t){return this.httpServer.post(e,"/compute/qemu/img",t)},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),J2=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","vnc","spice","spice+agent","none"]},e.prototype.getDiskInterfaces=function(){return["ide","sata","scsi","sd","mtd","floppy","pflash","virtio","nvme","none"]},e.prototype.getNetworkTypes=function(){return["e1000","e1000-82544gc","e1000-82545em","e1000e","rocker","Intel Gigabit Ethernet","i82550","i82551","i82557a","i82557b","i82557c","i82558a","i82558b","i82559a","i82559b","i82559c","i82559er","i82562","i82801","ne2k_pci","pcnet","rtl8139","virtio","virtio-net-pci","vmxnet3"]},e.prototype.getBootPriorities=function(){return[["HDD","c"],["CD/DVD-ROM","d"],["Network","n"],["HDD or Network","cn"],["HDD or CD/DVD-ROM","cd"]]},e.prototype.getOnCloseOptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","routers"],["Switches","switches"],["End devices","end_devices"],["Security devices","security_devices"]]},e.prototype.getPriorities=function(){return["realtime","very high","high","normal","low","very low"]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),e3=["input"],t3=function(){return{enterDuration:150}},n3=["*"],i3=new he("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),r3=0,o3={provide:gf,useExisting:Y((function(){return l3})),multi:!0},a3=function e(t,n){Object(m.a)(this,e),this.source=t,this.value=n},s3=new he("MatRadioGroup"),c3=function(){var e=function(){function e(t){Object(m.a)(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(r3++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Yc}return Object(g.a)(e,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach((function(t){t.name=e.name,t._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new a3(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(e){return e._markForCheck()}))}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=vm(e),this._markRadiosForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(No))},e.\u0275dir=Ke({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),l3=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(c3);return e.\u0275fac=function(t){return u3(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,f3,!0),2&e&&al(i=fl())&&(t._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Vs([o3,{provide:s3,useExisting:e}]),Es]}),e}(),u3=Qn(l3),h3=tY(nY((function e(t){Object(m.a)(this,e),this._elementRef=t}))),d3=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c,l){var u;return Object(m.a)(this,n),(u=t.call(this,i))._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=a,u._animationMode=s,u._providerOverride=c,u._uniqueId="mat-radio-".concat(++r3),u.id=u._uniqueId,u.change=new Yc,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=e,l&&(u.tabIndex=bm(l,0)),u._removeUniqueSelectionListener=a.listen((function(e,t){e!==u.id&&t===u.name&&(u.checked=!1)})),u}return Object(g.a)(n,[{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){!t&&e.radioGroup&&e.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new a3(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(e){var t=vm(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(vm(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=vm(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(h3);return e.\u0275fac=function(t){return new(t||e)(_a(c3),_a(Ks),_a(No),_a(CX),_a(Pm),_a(String),_a(void 0),_a(String))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){var n;1&e&&cl(e3,!0),2&e&&al(n=fl())&&(t._inputElement=n.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[Es]}),e}(),f3=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c,l){return Object(m.a)(this,n),t.call(this,e,i,r,o,a,s,c,l)}return n}(d3);return e.\u0275fac=function(t){return new(t||e)(_a(s3,8),_a(Ks),_a(No),_a(CX),_a(Pm),_a(__,8),_a(i3,8),wa("tabindex"))},e.\u0275cmp=ze({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&Ia("focus",(function(){return t._inputElement.nativeElement.focus()})),2&e&&(fa("tabindex",-1)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),os("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Es],ngContentSelectors:n3,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(za(),Sa(0,"label",0,1),Sa(2,"div",2),Oa(3,"div",3),Oa(4,"div",4),Sa(5,"input",5,6),Ia("change",(function(e){return t._onInputChange(e)}))("click",(function(e){return t._onInputClick(e)})),xa(),Sa(7,"div",7),Oa(8,"div",8),xa(),xa(),Sa(9,"div",9),Sa(10,"span",10),_s(11,"\xa0"),xa(),Va(12),xa(),xa()),2&e){var n=ya(1);fa("for",t.inputId),ar(5),ka("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),fa("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),ar(2),ka("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Nc(18,t3)),ar(2),os("mat-radio-label-before","before"==t.labelPosition)}},directives:[yY],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),p3=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_Y,$X],$X]}),e}();function m3(e,t){if(1&e&&(Sa(0,"mat-option",16),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function g3(e,t){if(1&e&&(Sa(0,"mat-option",16),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function v3(e,t){if(1&e&&(Sa(0,"mat-option",16),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.value),ar(1),ks(" ",n.name," ")}}function b3(e,t){if(1&e&&(Sa(0,"mat-option",16),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function y3(e,t){if(1&e&&(Sa(0,"mat-option",16),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.value),ar(1),ks(" ",n.name," ")}}function _3(e,t){if(1&e){var n=Pa();Sa(0,"div"),_s(1," Size options "),Sa(2,"mat-form-field",6),Sa(3,"mat-select",8),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuImg.preallocation=e})),ba(4,g3,2,2,"mat-option",9),xa(),xa(),Sa(5,"mat-form-field",6),Sa(6,"mat-select",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuImg.cluster_size=e})),ba(7,v3,2,2,"mat-option",9),xa(),xa(),_s(8," Refcounts "),Sa(9,"mat-form-field",6),Sa(10,"mat-select",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuImg.lazy_refcounts=e})),ba(11,b3,2,2,"mat-option",9),xa(),xa(),Sa(12,"mat-form-field",6),Sa(13,"mat-select",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuImg.refcount_bits=e})),ba(14,y3,2,2,"mat-option",9),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("ngModel",i.qemuImg.preallocation),ar(1),ka("ngForOf",i.preallocationsOptions),ar(2),ka("ngModel",i.qemuImg.cluster_size),ar(1),ka("ngForOf",i.clusterSizeOptions),ar(3),ka("ngModel",i.qemuImg.lazy_refcounts),ar(1),ka("ngForOf",i.lazyRefcountsOptions),ar(2),ka("ngModel",i.qemuImg.refcount_bits),ar(1),ka("ngForOf",i.clusterSizeOptions)}}function w3(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"mat-radio-group",20),Sa(2,"mat-radio-button",21),Ia("click",(function(){return Dt(n),Ba().setSubformat("dynamic")})),_s(3,"Dynamic"),xa(),Sa(4,"mat-radio-button",22),Ia("click",(function(){return Dt(n),Ba().setSubformat("fixed")})),_s(5,"Fixed"),xa(),xa(),xa()}}function k3(e,t){if(1&e&&(Sa(0,"mat-option",16),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function C3(e,t){if(1&e){var n=Pa();Sa(0,"div"),_s(1," Adapter type"),Oa(2,"br"),Sa(3,"mat-radio-group",23),Sa(4,"mat-radio-button",21),Ia("click",(function(){return Dt(n),Ba().setAdapterType("ide")})),_s(5,"IDE"),xa(),Sa(6,"mat-radio-button",22),Ia("click",(function(){return Dt(n),Ba().setAdapterType("lsilogic")})),_s(7,"LSI Logic"),xa(),Sa(8,"mat-radio-button",24),Ia("click",(function(){return Dt(n),Ba().setAdapterType("buslogic")})),_s(9,"BusLogic"),xa(),Sa(10,"mat-radio-button",25),Ia("click",(function(){return Dt(n),Ba().setAdapterType("legacyESX")})),_s(11,"Legacy (ESX)"),xa(),xa(),Oa(12,"br"),Oa(13,"br"),_s(14," Image file sizing mode"),Oa(15,"br"),Sa(16,"mat-radio-group",20),Sa(17,"mat-radio-button",21),Ia("click",(function(){return Dt(n),Ba().setSubformat("streamOptimized")})),_s(18,"Stream optimized"),xa(),Sa(19,"mat-radio-button",22),Ia("click",(function(){return Dt(n),Ba().setSubformat("twoGbMaxExtentSparse")})),_s(20,"Split every 2GB (sparse)"),xa(),Sa(21,"mat-radio-button",24),Ia("click",(function(){return Dt(n),Ba().setSubformat("twoGbMaxExtentFlat")})),_s(22,"Split every 2GB (flat)"),xa(),Sa(23,"mat-radio-button",25),Ia("click",(function(){return Dt(n),Ba().setSubformat("monolithicSparse")})),_s(24,"Monolithic sparse"),xa(),Sa(25,"mat-radio-button",26),Ia("click",(function(){return Dt(n),Ba().setSubformat("monolithicFlat")})),_s(26,"Monolithic flat"),xa(),xa(),Oa(27,"br"),Oa(28,"br"),Sa(29,"mat-select",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuImg.zeroed_grain=e})),ba(30,k3,2,2,"mat-option",9),xa(),xa()}if(2&e){var i=Ba();ar(29),ka("ngModel",i.qemuImg.zeroed_grain),ar(1),ka("ngForOf",i.zeroedGrainOptions)}}var S3=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.qemuService=r,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new Cp("",Df.required),path:new Cp("",Df.required),size:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){this.qemuImg={}},e.prototype.setSubformat=function(e){this.qemuImg.subformat=e},e.prototype.onSaveClick=function(){var e=this;this.inputForm.valid&&this.qemuImg.format?this.qemuService.addImage(this.server,this.qemuImg).subscribe((function(){e.dialogRef.close()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a($2))},e.\u0275cmp=ze({type:e,selectors:[["app-qemu-image-creator"]],decls:25,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","qemu_img","placeholder","Qemu image path",3,"ngModel","ngModelChange"],["placeholder","Image format",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","text","formControlName","path","placeholder","File location",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","size","placeholder","Disk size",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Cluster size",3,"ngModel","ngModelChange"],["placeholder","Lazy refcounts",3,"ngModel","ngModelChange"],["placeholder","Refcount entry size",3,"ngModel","ngModelChange"],["aria-label","Image file sizing mode",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["aria-label","Adapter type",1,"radio-selection"],["value","3",3,"click"],["value","4",3,"click"],["value","5",3,"click"],["placeholder","Zeroed grain",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Qemu image configurator"),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),Sa(6,"form",5),Sa(7,"mat-form-field",6),Sa(8,"input",7),Ia("ngModelChange",(function(e){return t.qemuImg.qemu_img=e})),xa(),xa(),xa(),Sa(9,"mat-form-field",6),Sa(10,"mat-select",8),Ia("ngModelChange",(function(e){return t.qemuImg.format=e})),ba(11,m3,2,2,"mat-option",9),xa(),xa(),ba(12,_3,15,8,"div",10),ba(13,w3,6,0,"div",10),ba(14,C3,31,2,"div",10),Sa(15,"form",5),Sa(16,"mat-form-field",6),Sa(17,"input",11),Ia("ngModelChange",(function(e){return t.qemuImg.path=e})),xa(),xa(),Sa(18,"mat-form-field",6),Sa(19,"input",12),Ia("ngModelChange",(function(e){return t.qemuImg.size=e})),xa(),xa(),xa(),xa(),xa(),xa(),xa(),Sa(20,"div",13),Sa(21,"button",14),Ia("click",(function(){return t.onCancelClick()})),_s(22,"Cancel"),xa(),Sa(23,"button",15),Ia("click",(function(){return t.onSaveClick()})),_s(24,"Apply"),xa(),xa()),2&e&&(ar(6),ka("formGroup",t.inputForm),ar(2),ka("ngModel",t.qemuImg.qemu_img),ar(2),ka("ngModel",t.qemuImg.format),ar(1),ka("ngForOf",t.formatOptions),ar(1),ka("ngIf","qcow2"===t.qemuImg.format),ar(1),ka("ngIf","vhd"===t.qemuImg.format||"vdi"===t.qemuImg.format),ar(1),ka("ngIf","vmdk"===t.qemuImg.format),ar(1),ka("formGroup",t.inputForm),ar(2),ka("ngModel",t.qemuImg.path),ar(2),ka("ngModel",t.qemuImg.size))},directives:[oQ,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,Hh,zf,sQ,h$,DY,l3,f3],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),x3=["customAdapters"];function O3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.path),ar(1),ks(" ",n.path," ")}}function M3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function T3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function E3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function P3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.filename),ar(1),ks(" ",n.filename," ")}}function j3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function A3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.filename),ar(1),ks(" ",n.filename," ")}}function I3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function D3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.filename),ar(1),ks(" ",n.filename," ")}}function R3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function L3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.filename),ar(1),ks(" ",n.filename," ")}}function F3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function N3(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",11),Sa(1,"input",50),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).node.properties.cpu_throttling=e})),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.node.properties.cpu_throttling)}}function B3(e,t){if(1&e&&(Sa(0,"mat-option",49),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function H3(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Oa(2,"br"),Sa(3,"form",10),Sa(4,"mat-form-field",11),Sa(5,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),Sa(6,"mat-form-field",11),Sa(7,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.ram=e})),xa(),Sa(8,"span",14),_s(9,"MB"),xa(),xa(),xa(),Sa(10,"mat-form-field",11),Sa(11,"input",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.cpus=e})),xa(),xa(),Sa(12,"mat-form-field",11),Sa(13,"mat-select",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.qemu_path=e})),ba(14,O3,2,2,"mat-option",17),xa(),xa(),Sa(15,"mat-form-field",11),Sa(16,"mat-select",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.boot_priority=e})),ba(17,M3,2,2,"mat-option",17),xa(),xa(),Sa(18,"mat-form-field",11),Sa(19,"mat-select",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.on_close=e})),ba(20,T3,2,2,"mat-option",17),xa(),xa(),Sa(21,"mat-form-field",20),Sa(22,"mat-select",21),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(23,E3,2,2,"mat-option",17),xa(),xa(),Sa(24,"mat-checkbox",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.console_auto_start=e})),_s(25," Auto start console "),xa(),xa(),Sa(26,"mat-tab",23),Sa(27,"mat-card"),Sa(28,"button",24),Ia("click",(function(){return Dt(n),Ba().openQemuImageCreator()})),_s(29,"Create Qemu image"),xa(),Oa(30,"mat-card-title"),Sa(31,"mat-card-subtitle"),_s(32," HDA (Primary Master) "),xa(),Sa(33,"mat-card-content"),Sa(34,"mat-select",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hda_disk_image=e})),ba(35,P3,2,2,"mat-option",17),xa(),Sa(36,"mat-form-field",11),Sa(37,"mat-select",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hda_disk_interface=e})),ba(38,j3,2,2,"mat-option",17),xa(),xa(),xa(),xa(),Sa(39,"mat-card"),Oa(40,"mat-card-title"),Sa(41,"mat-card-subtitle"),_s(42," HDB (Primary Slave) "),xa(),Sa(43,"mat-card-content"),Sa(44,"mat-select",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hdb_disk_image=e})),ba(45,A3,2,2,"mat-option",17),xa(),Sa(46,"mat-form-field",11),Sa(47,"mat-select",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hdb_disk_interface=e})),ba(48,I3,2,2,"mat-option",17),xa(),xa(),xa(),xa(),Sa(49,"mat-card"),Oa(50,"mat-card-title"),Sa(51,"mat-card-subtitle"),_s(52," HDC (Secondary Master) "),xa(),Sa(53,"mat-card-content"),Sa(54,"mat-select",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hdc_disk_image=e})),ba(55,D3,2,2,"mat-option",17),xa(),Sa(56,"mat-form-field",11),Sa(57,"mat-select",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hdc_disk_interface=e})),ba(58,R3,2,2,"mat-option",17),xa(),xa(),xa(),xa(),Sa(59,"mat-card"),Oa(60,"mat-card-title"),Sa(61,"mat-card-subtitle"),_s(62," HDD (Secondary Slave) "),xa(),Sa(63,"mat-card-content"),Sa(64,"mat-select",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hdd_disk_image=e})),ba(65,L3,2,2,"mat-option",17),xa(),Sa(66,"mat-form-field",11),Sa(67,"mat-select",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.hdd_disk_interface=e})),ba(68,F3,2,2,"mat-option",17),xa(),xa(),xa(),xa(),xa(),Sa(69,"mat-tab",27),Sa(70,"div"),Sa(71,"button",28),Ia("click",(function(){return Dt(n),ya(74).click()})),_s(72,"Browse"),xa(),Sa(73,"input",29,30),Ia("change",(function(e){return Dt(n),Ba().uploadCdromImageFile(e)})),xa(),Sa(75,"mat-form-field",31),Sa(76,"input",32),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.cdrom_image=e})),xa(),xa(),xa(),xa(),Sa(77,"mat-tab",33),Oa(78,"br"),Sa(79,"mat-checkbox",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.legacy_networking=e})),_s(80," Use the legacy networking mode "),xa(),Oa(81,"br"),Sa(82,"mat-checkbox",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.replicate_network_connection_state=e})),_s(83," Replicate network connection state "),xa(),Oa(84,"app-custom-adapters-table",34,35),xa(),Sa(86,"mat-tab",36),Sa(87,"mat-card"),Oa(88,"mat-card-title"),Sa(89,"mat-card-subtitle"),_s(90," Linux boot specific settings "),xa(),Sa(91,"mat-card-content"),Sa(92,"div"),Sa(93,"button",28),Ia("click",(function(){return Dt(n),ya(96).click()})),_s(94,"Browse"),xa(),Sa(95,"input",29,37),Ia("change",(function(e){return Dt(n),Ba().uploadInitrdFile(e)})),xa(),Sa(97,"mat-form-field",31),Sa(98,"input",38),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.initrd=e})),xa(),xa(),xa(),Sa(99,"div"),Sa(100,"button",28),Ia("click",(function(){return Dt(n),Ba().filekerenelimage.click()})),_s(101,"Browse"),xa(),Sa(102,"input",29,39),Ia("change",(function(e){return Dt(n),Ba().uploadKernelImageFile(e)})),xa(),Sa(104,"mat-form-field",31),Sa(105,"input",40),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.kernel_image=e})),xa(),xa(),xa(),Sa(106,"mat-form-field",11),Sa(107,"input",41),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.kernel_command_line=e})),xa(),xa(),xa(),xa(),Sa(108,"mat-card"),Oa(109,"mat-card-title"),Sa(110,"mat-card-subtitle"),_s(111," Bios "),xa(),Sa(112,"mat-card-content"),Sa(113,"div"),Sa(114,"button",28),Ia("click",(function(){return Dt(n),ya(117).click()})),_s(115,"Browse"),xa(),Sa(116,"input",29,42),Ia("change",(function(e){return Dt(n),Ba().uploadBiosFile(e)})),xa(),Sa(118,"mat-form-field",31),Sa(119,"input",43),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.bios_image=e})),xa(),xa(),xa(),xa(),xa(),Sa(120,"mat-card"),Oa(121,"mat-card-title"),Sa(122,"mat-card-subtitle"),_s(123," Optimization "),xa(),Sa(124,"mat-card-content"),Sa(125,"mat-checkbox",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().activateCpuThrottling=e})),_s(126," Activate CPU throttling "),xa(),ba(127,N3,2,1,"mat-form-field",44),Sa(128,"mat-form-field",11),Sa(129,"mat-select",45),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.process_priority=e})),ba(130,B3,2,2,"mat-option",17),xa(),xa(),xa(),xa(),Sa(131,"mat-card"),Oa(132,"mat-card-title"),Sa(133,"mat-card-subtitle"),_s(134," Additional settings "),xa(),Sa(135,"mat-card-content"),Sa(136,"mat-form-field",11),Sa(137,"input",46),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.options=e})),xa(),xa(),xa(),xa(),xa(),Sa(138,"mat-tab",47),Sa(139,"mat-form-field",11),Sa(140,"textarea",48),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.usage=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModel",i.node.properties.ram),ar(4),ka("ngModel",i.node.properties.cpus),ar(2),ka("ngModel",i.node.properties.qemu_path),ar(1),ka("ngForOf",i.binaries),ar(2),ka("ngModel",i.node.properties.boot_priority),ar(1),ka("ngForOf",i.bootPriorities),ar(2),ka("ngModel",i.node.properties.on_close),ar(1),ka("ngForOf",i.onCloseOptions),ar(2),ka("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModel",i.node.properties.console_auto_start),ar(10),ka("ngModel",i.node.properties.hda_disk_image),ar(1),ka("ngForOf",i.qemuImages),ar(2),ka("ngModel",i.node.properties.hda_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(6),ka("ngModel",i.node.properties.hdb_disk_image),ar(1),ka("ngForOf",i.qemuImages),ar(2),ka("ngModel",i.node.properties.hdb_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(6),ka("ngModel",i.node.properties.hdc_disk_image),ar(1),ka("ngForOf",i.qemuImages),ar(2),ka("ngModel",i.node.properties.hdc_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(6),ka("ngModel",i.node.properties.hdd_disk_image),ar(1),ka("ngForOf",i.qemuImages),ar(2),ka("ngModel",i.node.properties.hdd_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(8),ka("ngModel",i.node.properties.cdrom_image),ar(3),ka("ngModel",i.node.properties.legacy_networking),ar(3),ka("ngModel",i.node.properties.replicate_network_connection_state),ar(2),ka("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),ar(14),ka("ngModel",i.node.properties.initrd),ar(7),ka("ngModel",i.node.properties.kernel_image),ar(2),ka("ngModel",i.node.properties.kernel_command_line),ar(12),ka("ngModel",i.node.properties.bios_image),ar(6),ka("ngModel",i.activateCpuThrottling),ar(2),ka("ngIf",i.activateCpuThrottling),ar(2),ka("ngModel",i.node.properties.process_priority),ar(1),ka("ngForOf",i.priorities),ar(7),ka("ngModel",i.node.properties.options),ar(3),ka("ngModel",i.node.properties.usage)}}var z3=function(){function e(e,t,n,i,r,o,a){this.dialog=e,this.dialogRef=t,this.nodeService=n,this.toasterService=i,this.formBuilder=r,this.qemuService=o,this.qemuConfigurationService=a,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required),ram:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration()})),this.qemuService.getBinaries(this.server).subscribe((function(t){e.binaries=t})),this.qemuService.getImages(this.server).subscribe((function(t){e.qemuImages=t}))},e.prototype.openQemuImageCreator=function(){this.dialogRefQemuImageCreator=this.dialog.open(S3,this.conf),this.dialogRefQemuImageCreator.componentInstance.server=this.server},e.prototype.uploadCdromImageFile=function(e){this.node.properties.cdrom_image=e.target.files[0].name},e.prototype.uploadInitrdFile=function(e){this.node.properties.initrd=e.target.files[0].name},e.prototype.uploadKernelImageFile=function(e){this.node.properties.kernel_image=e.target.files[0].name},e.prototype.uploadBiosFile=function(e){this.node.properties.bios_image=e.target.files[0].name},e.prototype.getConfiguration=function(){var e=this;this.consoleTypes=this.qemuConfigurationService.getConsoleTypes(),this.onCloseOptions=this.qemuConfigurationService.getOnCloseOptions(),this.qemuConfigurationService.getNetworkTypes().forEach((function(t){e.networkTypes.push(t)})),this.bootPriorities=this.qemuConfigurationService.getBootPriorities(),this.diskInterfaces=this.qemuConfigurationService.getDiskInterfaces()},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach((function(t){e.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})})),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(nQ),_a(YZ),_a(D$),_a(iJ),_a(um),_a($2),_a(J2))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-qemu"]],viewQuery:function(e,t){var n;1&e&&cl(x3,!0),2&e&&al(n=fl())&&(t.customAdapters=n.first)},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Qemu binary",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","HDD"],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["label","CD/DVD"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Advanced"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),ba(6,H3,141,45,"mat-tab-group",5),xa(),xa(),xa(),xa(),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.onCancelClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.onSaveClick()})),_s(11,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.name))},directives:[oQ,wJ,Hh,sQ,h$,KQ,FQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,zf,t0,Rp,H0,Nh,Q0,hJ,dJ,uJ,G2,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}();function V3(e,t){1&e&&(Sa(0,"th",18),_s(1," Name "),xa())}function q3(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.name," ")}}function U3(e,t){1&e&&(Sa(0,"th",18),_s(1," Local port "),xa())}function G3(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.rport," ")}}function W3(e,t){1&e&&(Sa(0,"th",18),_s(1," Type "),xa())}function K3(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.rhost," ")}}function X3(e,t){1&e&&(Sa(0,"th",18),_s(1," Remote port "),xa())}function Y3(e,t){if(1&e&&(Sa(0,"td",19),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.lport," ")}}function Z3(e,t){1&e&&(Sa(0,"th",18),_s(1," Actions "),xa())}function Q3(e,t){if(1&e){var n=Pa();Sa(0,"td",19),Sa(1,"button",20),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(2).delete(e)})),Sa(2,"mat-icon",21),_s(3,"delete"),xa(),xa(),xa()}}function $3(e,t){1&e&&Oa(0,"tr",22)}function J3(e,t){1&e&&Oa(0,"tr",23)}function e5(e,t){if(1&e&&(Sa(0,"table",8),Ma(1,9),ba(2,V3,2,0,"th",10),ba(3,q3,2,1,"td",11),Ta(),Ma(4,12),ba(5,U3,2,0,"th",10),ba(6,G3,2,1,"td",11),Ta(),Ma(7,13),ba(8,W3,2,0,"th",10),ba(9,K3,2,1,"td",11),Ta(),Ma(10,14),ba(11,X3,2,0,"th",10),ba(12,Y3,2,1,"td",11),Ta(),Ma(13,15),ba(14,Z3,2,0,"th",10),ba(15,Q3,4,0,"td",11),Ta(),ba(16,$3,1,0,"tr",16),ba(17,J3,1,0,"tr",17),xa()),2&e){var n=Ba();ka("dataSource",n.dataSourceUdp),ar(16),ka("matHeaderRowDef",n.displayedColumns),ar(1),ka("matRowDefColumns",n.displayedColumns)}}function t5(e,t){1&e&&Oa(0,"br")}var n5=function(){function e(e){this.builtInTemplatesConfigurationService=e,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return e.prototype.ngOnInit=function(){this.getConfiguration()},e.prototype.getConfiguration=function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()},e.prototype.onAddUdpInterface=function(){this.dataSourceUdp=this.dataSourceUdp.concat([this.newPort]),this.newPort={name:"",port_number:0}},e.prototype.delete=function(e){this.dataSourceUdp=this.dataSourceUdp.filter((function(t){return t!==e}))},e.\u0275fac=function(t){return new(t||e)(_a(c1))},e.\u0275cmp=ze({type:e,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(ba(0,e5,18,3,"table",0),ba(1,t5,1,0,"br",1),Sa(2,"mat-form-field",2),Sa(3,"input",3),Ia("ngModelChange",(function(e){return t.newPort.name=e})),xa(),xa(),Sa(4,"mat-form-field",2),Sa(5,"input",4),Ia("ngModelChange",(function(e){return t.newPort.lport=e})),xa(),xa(),Sa(6,"mat-form-field",2),Sa(7,"input",5),Ia("ngModelChange",(function(e){return t.newPort.rhost=e})),xa(),xa(),Sa(8,"mat-form-field",2),Sa(9,"input",6),Ia("ngModelChange",(function(e){return t.newPort.rport=e})),xa(),xa(),Sa(10,"button",7),Ia("click",(function(){return t.onAddUdpInterface()})),_s(11,"Add"),xa()),2&e&&(ka("ngIf",t.dataSourceUdp.length),ar(1),ka("ngIf",t.dataSourceUdp.length),ar(2),ka("ngModel",t.newPort.name),ar(2),ka("ngModel",t.newPort.lport),ar(2),ka("ngModel",t.newPort.rhost),ar(2),ka("ngModel",t.newPort.rport))},directives:[Hh,a0,y0,wf,Mf,Rp,zf,h$,f1,w1,v1,m1,E1,I1,C1,M1,J1,P$,R1,B1],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),i5=["udpTunnels"];function r5(e,t){if(1&e&&(Sa(0,"div",16),Sa(1,"div",16),_s(2),xa(),Oa(3,"br"),Oa(4,"br"),xa()),2&e){var n=t.$implicit;ar(2),ws(n.name)}}function o5(e,t){if(1&e&&(Sa(0,"mat-option",28),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function a5(e,t){if(1&e&&(Sa(0,"div",16),Sa(1,"div",16),_s(2),xa(),Oa(3,"br"),Oa(4,"br"),xa()),2&e){var n=t.$implicit;ar(2),ws(n.name)}}function s5(e,t){if(1&e&&(Sa(0,"mat-option",28),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var c5=function(){return{standalone:!0}};function l5(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),ba(2,r5,5,1,"div",10),Sa(3,"mat-form-field",11),Sa(4,"mat-select",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetInterface=e})),ba(5,o5,2,2,"mat-option",13),xa(),xa(),Sa(6,"button",14),Ia("click",(function(){return Dt(n),Ba().onAddEthernetInterface()})),_s(7,"Add"),xa(),xa(),Sa(8,"mat-tab",15),ba(9,a5,5,1,"div",10),Sa(10,"mat-form-field",16),Sa(11,"input",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().tapInterface=e})),xa(),xa(),Sa(12,"button",14),Ia("click",(function(){return Dt(n),Ba().onAddTapInterface()})),_s(13,"Add"),xa(),xa(),Sa(14,"mat-tab",18),Oa(15,"app-udp-tunnels",19,20),xa(),Sa(17,"mat-tab",21),Sa(18,"form",22),Sa(19,"mat-form-field",16),Sa(20,"input",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),xa(),Sa(21,"mat-form-field",11),Sa(22,"mat-select",24),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(23,s5,2,2,"mat-option",13),xa(),xa(),Sa(24,"mat-form-field",16),Sa(25,"input",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.remote_console_host=e})),xa(),xa(),Sa(26,"mat-form-field",16),Sa(27,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.remote_console_port=e})),xa(),xa(),Sa(28,"mat-form-field",16),Sa(29,"input",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.remote_console_http_path=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("ngForOf",i.portsMappingEthernet),ar(2),ka("ngModelOptions",Nc(14,c5))("ngModel",i.ethernetInterface),ar(1),ka("ngForOf",i.ethernetInterfaces),ar(4),ka("ngForOf",i.portsMappingTap),ar(2),ka("ngModel",i.tapInterface),ar(4),ka("dataSourceUdp",i.portsMappingUdp),ar(3),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(2),ka("ngModel",i.node.properties.remote_console_host),ar(2),ka("ngModel",i.node.properties.remote_console_port),ar(2),ka("ngModel",i.node.properties.remote_console_http_path)}}var u5=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.builtInTemplatesConfigurationService=r,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration(),e.portsMappingEthernet=e.node.properties.ports_mapping.filter((function(e){return"ethernet"===e.type})),e.portsMappingTap=e.node.properties.ports_mapping.filter((function(e){return"tap"===e.type})),e.portsMappingUdp=e.node.properties.ports_mapping.filter((function(e){return"udp"===e.type}))}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()},e.prototype.onAddEthernetInterface=function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})},e.prototype.onAddTapInterface=function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid?(this.portsMappingUdp=this.udpTunnels.dataSourceUdp,this.node.properties.ports_mapping=this.portsMappingUdp.concat(this.portsMappingEthernet).concat(this.portsMappingTap),this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(c1))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-cloud"]],viewQuery:function(e,t){var n;1&e&&cl(i5,!0),2&e&&al(n=fl())&&(t.udpTunnels=n.first)},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Ethernet interfaces"],["class","form-field",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",1,"form-field",3,"click"],["label","TAP interfaces"],[1,"form-field"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["label","UDP tunnels"],[3,"dataSourceUdp"],["udpTunnels",""],["label","Miscellaneous"],[3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),ba(6,l5,30,15,"mat-tab-group",5),xa(),xa(),xa(),xa(),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.onCancelClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.onSaveClick()})),_s(11,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.name))},directives:[oQ,wJ,Hh,sQ,h$,KQ,FQ,Nh,a0,H0,Mf,Rp,y0,wf,n5,Lp,Tf,zp,Xp,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}();function h5(e,t){1&e&&(Sa(0,"th",27),_s(1," Port : VPI : VCI "),xa())}function d5(e,t){if(1&e&&(Sa(0,"td",28),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.portIn," ")}}function f5(e,t){1&e&&(Sa(0,"th",27),_s(1," Port : VPI : VCI "),xa())}function p5(e,t){if(1&e&&(Sa(0,"td",28),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.portOut," ")}}function m5(e,t){1&e&&(Sa(0,"th",27),_s(1," Actions "),xa())}function g5(e,t){if(1&e){var n=Pa();Sa(0,"td",28),Sa(1,"button",29),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(2).delete(e)})),Sa(2,"mat-icon",30),_s(3,"delete"),xa(),xa(),xa()}}function v5(e,t){1&e&&Oa(0,"tr",31)}function b5(e,t){1&e&&Oa(0,"tr",32)}function y5(e,t){if(1&e&&(Sa(0,"table",19),Ma(1,20),ba(2,h5,2,0,"th",21),ba(3,d5,2,1,"td",22),Ta(),Ma(4,23),ba(5,f5,2,0,"th",21),ba(6,p5,2,1,"td",22),Ta(),Ma(7,24),ba(8,m5,2,0,"th",21),ba(9,g5,4,0,"td",22),Ta(),ba(10,v5,1,0,"tr",25),ba(11,b5,1,0,"tr",26),xa()),2&e){var n=Ba();ka("dataSource",n.nodeMappingsDataSource),ar(10),ka("matHeaderRowDef",n.displayedColumns),ar(1),ka("matRowDefColumns",n.displayedColumns)}}var _5=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new Cp("",Df.required)}),this.inputForm=this.formBuilder.group({sourcePort:new Cp("",Df.required),sourceVci:new Cp("",Df.required),destinationPort:new Cp("",Df.required),destinationVci:new Cp("",Df.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new Cp("",Df.required),destinationVpi:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name;var n=t.properties.mappings;Object.keys(n).forEach((function(t){e.nodeMappings.set(t,n[t])})),e.nodeMappings.forEach((function(t,n){e.nodeMappingsDataSource.push({portIn:n,portOut:t})}))}))},e.prototype.delete=function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter((function(t){return t!==e}))},e.prototype.add=function(){var e;this.inputForm.valid?this.useVpiOnly?(e={portIn:this.sourcePort+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVci},this.nodeMappingsDataSource.filter((function(t){return t.portIn===e.portIn})).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.abstractForm.valid?(e={portIn:this.sourcePort+":"+this.sourceVpi+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVpi+":"+this.destinationVci},this.nodeMappingsDataSource.filter((function(t){return t.portIn===e.portIn})).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")},e.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"},e.prototype.strMapToObj=function(e){for(var t=Object.create(null),n=0,i=e;n<i.length;n++){var r=i[n];t[r[0]]=r[1]}return t},e.prototype.onSaveClick=function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach((function(t){e.nodeMappings.set(t.portIn,t.portOut)})),this.node.properties.mappings=Array.from(this.nodeMappings).reduce((function(e,t){var n;return Object.assign(e,((n={})[t[0]]=t[1],n))}),{}),this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVci","placeholder","VCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card"),ba(6,y5,12,3,"table",4),Oa(7,"br"),Sa(8,"form",5),Sa(9,"mat-form-field",6),Sa(10,"input",7),Ia("ngModelChange",(function(e){return t.node.name=e})),xa(),xa(),xa(),Sa(11,"mat-checkbox",8),Ia("ngModelChange",(function(e){return t.useVpiOnly=e})),_s(12," Use VPI only (VP tunnel) "),xa(),Sa(13,"form",5),_s(14," Source "),Sa(15,"mat-form-field",6),Sa(16,"input",9),Ia("ngModelChange",(function(e){return t.sourcePort=e})),xa(),xa(),xa(),Sa(17,"form",5),Sa(18,"mat-form-field",6),Sa(19,"input",10),Ia("ngModelChange",(function(e){return t.sourceVpi=e})),xa(),xa(),xa(),Sa(20,"form",5),Sa(21,"mat-form-field",6),Sa(22,"input",11),Ia("ngModelChange",(function(e){return t.sourceVci=e})),xa(),xa(),_s(23," Destination "),Sa(24,"mat-form-field",6),Sa(25,"input",12),Ia("ngModelChange",(function(e){return t.destinationPort=e})),xa(),xa(),xa(),Sa(26,"form",5),Sa(27,"mat-form-field",6),Sa(28,"input",13),Ia("ngModelChange",(function(e){return t.destinationVpi=e})),xa(),xa(),xa(),Sa(29,"form",5),Sa(30,"mat-form-field",6),Sa(31,"input",14),Ia("ngModelChange",(function(e){return t.destinationVci=e})),xa(),xa(),xa(),Sa(32,"button",15),Ia("click",(function(){return t.add()})),_s(33,"Add"),xa(),xa(),xa(),xa(),xa(),Sa(34,"div",16),Sa(35,"button",17),Ia("click",(function(){return t.onCancelClick()})),_s(36,"Cancel"),xa(),Sa(37,"button",18),Ia("click",(function(){return t.onSaveClick()})),_s(38,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.nodeMappingsDataSource.length),ar(2),ka("formGroup",t.nameForm),ar(2),ka("ngModel",t.node.name),ar(1),ka("ngModel",t.useVpiOnly),ar(2),ka("formGroup",t.inputForm),ar(3),ka("ngModel",t.sourcePort),ar(1),ka("formGroup",t.abstractForm),ar(2),ka("ngModel",t.sourceVpi),ar(1),ka("formGroup",t.inputForm),ar(2),ka("ngModel",t.sourceVci),ar(3),ka("ngModel",t.destinationPort),ar(1),ka("formGroup",t.abstractForm),ar(2),ka("ngModel",t.destinationVpi),ar(1),ka("formGroup",t.inputForm),ar(2),ka("ngModel",t.destinationVci))},directives:[oQ,wJ,Hh,Lp,Tf,zp,a0,y0,wf,Mf,Xp,Q0,Rp,zf,h$,sQ,f1,w1,v1,m1,E1,I1,C1,M1,J1,P$,R1,B1],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),w5=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","none"]},e.prototype.getOnCloseoptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","routers"],["Switches","switches"],["End devices","end_devices"],["Security devices","security_devices"]]},e.prototype.getNetworkTypes=function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),k5=["customAdapters"];function C5(e,t){if(1&e&&(Sa(0,"mat-option",24),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function S5(e,t){if(1&e&&(Sa(0,"mat-option",24),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}var x5=function(){return{standalone:!0}};function O5(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Oa(2,"br"),Sa(3,"form",10),Sa(4,"mat-form-field",11),Sa(5,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),Sa(6,"mat-form-field",13),Sa(7,"mat-select",14),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(8,C5,2,2,"mat-option",15),xa(),xa(),Sa(9,"mat-checkbox",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_auto_start=e})),_s(10," Auto start console "),xa(),Sa(11,"mat-form-field",11),Sa(12,"mat-select",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.on_close=e})),ba(13,S5,2,2,"mat-option",15),xa(),xa(),xa(),Sa(14,"mat-checkbox",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.headless=e})),_s(15," Start VM in headless mode "),xa(),Oa(16,"br"),Sa(17,"mat-checkbox",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.linked_clone=e})),_s(18," Use a linked base VM (experimental) "),xa(),xa(),Sa(19,"mat-tab",19),Oa(20,"br"),Sa(21,"mat-checkbox",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.use_any_adapter=e})),_s(22," Allow GNS3 to override non custom VMware adapter "),xa(),Oa(23,"app-custom-adapters-table",20,21),xa(),Sa(25,"mat-tab",22),Sa(26,"mat-form-field",11),Sa(27,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.usage=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModelOptions",Nc(17,x5))("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModelOptions",Nc(18,x5))("ngModel",i.node.console_auto_start),ar(3),ka("ngModelOptions",Nc(19,x5))("ngModel",i.node.properties.on_close),ar(1),ka("ngForOf",i.onCloseOptions),ar(1),ka("ngModel",i.node.properties.headless),ar(3),ka("ngModel",i.node.properties.linked_clone),ar(4),ka("ngModel",i.node.properties.use_any_adapter),ar(2),ka("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),ar(4),ka("ngModel",i.node.properties.usage)}}var M5=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.vmwareConfigurationService=r,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach((function(t){e.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})})),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()}))):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(w5))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-vmware"]],viewQuery:function(e,t){var n;1&e&&cl(k5,!0),2&e&&al(n=fl())&&(t.customAdapters=n.first)},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),ba(6,O5,28,20,"mat-tab-group",5),xa(),xa(),xa(),xa(),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.onCancelClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.onSaveClick()})),_s(11,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.name))},directives:[oQ,wJ,Hh,sQ,h$,KQ,FQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,Q0,G2,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),T5=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","none"]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","end_device"],["Security devices","security_device"]]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function E5(e,t){if(1&e&&(Sa(0,"mat-option",25),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function P5(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Oa(2,"br"),Sa(3,"form",10),Sa(4,"mat-form-field",11),Sa(5,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),xa(),Sa(6,"mat-form-field",13),Sa(7,"mat-select",14),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(8,E5,2,2,"mat-option",15),xa(),xa(),Sa(9,"mat-checkbox",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_auto_start=e})),_s(10," Auto start console "),xa(),Oa(11,"br"),Sa(12,"mat-form-field",11),Sa(13,"input",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.ram=e})),xa(),Sa(14,"span",18),_s(15,"MB"),xa(),xa(),Sa(16,"mat-form-field",11),Sa(17,"input",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.nvram=e})),xa(),Sa(18,"span",18),_s(19,"MB"),xa(),xa(),xa(),Sa(20,"mat-tab",20),Oa(21,"br"),Sa(22,"form",10),Sa(23,"mat-form-field",11),Sa(24,"input",21),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.ethernet_adapters=e})),xa(),xa(),Sa(25,"mat-form-field",11),Sa(26,"input",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.serial_adapters=e})),xa(),xa(),xa(),xa(),Sa(27,"mat-tab",23),Sa(28,"mat-form-field",11),Sa(29,"textarea",24),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.usage=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModel",i.node.console_auto_start),ar(4),ka("ngModel",i.node.properties.ram),ar(4),ka("ngModel",i.node.properties.nvram),ar(5),ka("formGroup",i.networkForm),ar(2),ka("ngModel",i.node.ethernet_adapters),ar(2),ka("ngModel",i.node.serial_adapters),ar(3),ka("ngModel",i.node.properties.usage)}}var j5=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.configurationService=r,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new Cp("",Df.required),serialAdapters:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes()},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid&&this.networkForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(T5))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-iou"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Network"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),ba(6,P5,30,11,"mat-tab-group",5),xa(),xa(),xa(),xa(),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.onCancelClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.onSaveClick()})),_s(11,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.name))},directives:[oQ,wJ,Hh,sQ,h$,KQ,FQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,Q0,zf,t0,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),A5=function(){function e(){this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"],this.c2600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW"],this.c3600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW","NM-4T"],this.c3700_nms=["NM-1FE-TX","NM-4T","NM-16ESW"],this.c7200_pas=["PA-A1","PA-FE-TX","PA-2FE-TX","PA-GE","PA-4T+","PA-8T","PA-4E","PA-8E","PA-POS-OC3"],this.c7200_io=["C7200-IO-FE","C7200-IO-2FE","C7200-IO-GE-E"]}return e.prototype.getConsoleTypes=function(){return["telnet","none"]},e.prototype.getDefaultRamSettings=function(){return{c1700:160,c2600:160,c2691:192,c3600:192,c3725:128,c3745:256,c7200:512}},e.prototype.getDefaultNvRamSettings=function(){return{c1700:128,c2600:128,c2691:256,c3600:192,c3620:192,c3640:192,c3660:192,c3725:256,c3745:256,c7200:512}},e.prototype.getAvailablePlatforms=function(){return["c1700","c2600","c2691","c3725","c3745","c3600","c7200"]},e.prototype.getPlatformsWithEtherSwitchRouterOption=function(){return{c1700:!1,c2600:!0,c2691:!0,c3725:!0,c3745:!0,c3600:!0,c7200:!1}},e.prototype.getPlatformsWithChassis=function(){return{c1700:!0,c2600:!0,c2691:!1,c3725:!1,c3745:!1,c3600:!0,c7200:!1}},e.prototype.getChassis=function(){return{c1700:["1720","1721","1750","1751","1760"],c2600:["2610","2611","2620","2621","2610XM","2611XM","2620XM","2621XM","2650XM","2651XM"],c3600:["3620","3640","3660"]}},e.prototype.getNetworkModules=function(){return{c1700:{0:this.c1700_wics,1:this.c1700_wics},c2600:{0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},c2691:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3725:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3745:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics}}},e.prototype.getNetworkAdapters=function(){return{1720:{0:["C1700-MB-1FE"]},1721:{0:["C1700-MB-1FE"]},1750:{0:["C1700-MB-1FE"]},1751:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},1760:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},2610:{0:["C2600-MB-1E"],1:this.c2600_nms},2611:{0:["C2600-MB-2E"],1:this.c2600_nms},2620:{0:["C2600-MB-1FE"],1:this.c2600_nms},2621:{0:["C2600-MB-2FE"],1:this.c2600_nms},"2610XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2611XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2620XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2621XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2650XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2651XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},3620:{0:this.c3600_nms,1:this.c3600_nms},3640:{0:this.c3600_nms,1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms},3660:{0:["Leopard-2FE"],1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms,4:this.c3600_nms,5:this.c3600_nms,6:this.c3600_nms}}},e.prototype.getNetworkAdaptersForPlatform=function(){var e={};return e.c2691={0:["GT96100-FE"],1:this.c3700_nms},e.c3725={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},e.c3745={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},e.c7200={0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas},{c2691:{0:["GT96100-FE"],1:this.c3700_nms},c3725:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},c3745:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},c7200:{0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas}}},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function I5(e,t){if(1&e&&(Sa(0,"mat-option",23),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function D5(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Oa(2,"br"),Sa(3,"form",10),Sa(4,"mat-form-field",11),Sa(5,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),xa(),Sa(6,"mat-form-field",13),Sa(7,"mat-select",14),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(8,I5,2,2,"mat-option",15),xa(),xa(),Sa(9,"mat-checkbox",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_auto_start=e})),_s(10," Auto start console "),xa(),Oa(11,"br"),xa(),Sa(12,"mat-tab",17),Oa(13,"br"),Sa(14,"form",10),Sa(15,"mat-form-field",11),Sa(16,"input",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.ram=e})),xa(),Sa(17,"span",19),_s(18,"MB"),xa(),xa(),Sa(19,"mat-form-field",11),Sa(20,"input",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.nvram=e})),xa(),Sa(21,"span",19),_s(22,"MB"),xa(),xa(),xa(),xa(),Sa(23,"mat-tab",21),Sa(24,"mat-form-field",11),Sa(25,"textarea",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.usage=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModel",i.node.console_auto_start),ar(5),ka("formGroup",i.memoryForm),ar(2),ka("ngModel",i.node.properties.ram),ar(4),ka("ngModel",i.node.properties.nvram),ar(5),ka("ngModel",i.node.properties.usage)}}var R5=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.configurationService=r,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required)}),this.memoryForm=this.formBuilder.group({ram:new Cp("",Df.required),nvram:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes()},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid&&this.memoryForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(A5))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-ios"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),ba(6,D5,26,9,"mat-tab-group",5),xa(),xa(),xa(),xa(),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.onCancelClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.onSaveClick()})),_s(11,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.name))},directives:[oQ,wJ,Hh,sQ,h$,KQ,FQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,Q0,zf,t0,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),L5=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","vnc","http","https","none"]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","routers"],["Switches","switches"],["End devices","end_devices"],["Security devices","security_devices"]]},e.prototype.getConsoleResolutions=function(){return["1920x1080","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function F5(e,t){if(1&e){var n=Pa();Sa(0,"div",5),Sa(1,"textarea",6),Ia("ngModelChange",(function(e){return Dt(n),Ba().configuration=e})),xa(),xa()}if(2&e){var i=Ba();ar(1),ka("ngModel",i.configuration)}}var N5=function(){function e(e,t,n){this.dialogRef=e,this.nodeService=t,this.toasterService=n}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNetworkConfiguration(this.server,this.node).subscribe((function(t){e.configuration=t}))},e.prototype.onSaveClick=function(){var e=this;this.nodeService.saveNetworkConfiguration(this.server,this.node,this.configuration).subscribe((function(t){e.onCancelClick(),e.toasterService.success("Configuration for node "+e.node.name+" saved.")}))},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-edit-network-configuration"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["matInput","","type","text",1,"textArea",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),ba(2,F5,2,1,"div",1),Sa(3,"div",2),Sa(4,"button",3),Ia("click",(function(){return t.onCancelClick()})),_s(5,"Cancel"),xa(),Sa(6,"button",4),Ia("click",(function(){return t.onSaveClick()})),_s(7,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Edit network configuration for node ",t.node.name,""),ar(1),ka("ngIf",t.node))},directives:[oQ,Hh,sQ,h$,y0,wf,Mf,Rp],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]}),e}(),B5=function(){var e=function(){function e(){Object(m.a)(this,e),this._vertical=!1,this._inset=!1}return Object(g.a)(e,[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=vm(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(fa("aria-orientation",t.vertical?"vertical":"horizontal"),os("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),H5=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[$X],$X]}),e}(),z5=["*"],V5='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',q5=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],U5=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],G5=["text"];function W5(e,t){if(1&e&&Oa(0,"mat-pseudo-checkbox",5),2&e){var n=Ba();ka("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var K5=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],X5=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],Y5=JX(tY((function e(){Object(m.a)(this,e)}))),Z5=tY((function e(){Object(m.a)(this,e)})),Q5=new he("MatList"),$5=new he("MatNavList"),J5=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments))._stateChanges=new w.b,e}return Object(g.a)(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Y5);return e.\u0275fac=function(t){return e4(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[Vs([{provide:$5,useExisting:e}]),Es,ct],ngContentSelectors:z5,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},styles:[V5],encapsulation:2,changeDetection:0}),e}(),e4=Qn(J5),t4=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new w.b,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return Object(g.a)(n,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Y5);return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275cmp=ze({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Vs([{provide:Q5,useExisting:e}]),Es,ct],ngContentSelectors:z5,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},styles:[V5],encapsulation:2,changeDetection:0}),e}(),n4=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),i4=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),r4=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),e}(),o4=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;Object(m.a)(this,n),(a=t.call(this))._element=e,a._isInteractiveList=!1,a._destroyed=new w.b,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(Object(Gm.a)(a._destroyed)).subscribe((function(){i.markForCheck()})),a}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){sY(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=vm(e)}}]),n}(Z5);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a($5,8),_a(Q5,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,n4,!0),ul(n,i4,!0),ul(n,aY,!0)),2&e&&(al(i=fl())&&(t._avatar=i.first),al(i=fl())&&(t._icon=i.first),al(i=fl())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&os("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Es],ngContentSelectors:U5,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(za(q5),Sa(0,"div",0),Oa(1,"div",1),Va(2),Sa(3,"div",2),Va(4,1),xa(),Va(5,2),xa()),2&e&&(ar(1),ka("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[yY],encapsulation:2,changeDetection:0}),e}(),a4=tY((function e(){Object(m.a)(this,e)})),s4=tY((function e(){Object(m.a)(this,e)})),c4={provide:gf,useExisting:Y((function(){return h4})),multi:!0},l4=function e(t,n){Object(m.a)(this,e),this.source=t,this.option=n},u4=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this))._element=e,o._changeDetector=i,o.selectionList=r,o._selected=!1,o._disabled=!1,o._hasFocus=!1,o.checkboxPosition="after",o._inputsInitialized=!1,o}return Object(g.a)(n,[{key:"ngOnInit",value:function(){var e=this,t=this.selectionList;t._value&&t._value.some((function(n){return t.compareWith(n,e._value)}))&&this._setSelected(!0);var n=this._selected;Promise.resolve().then((function(){(e._selected||n)&&(e.selected=!0,e._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){sY(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var e=this;this.selected&&Promise.resolve().then((function(){e.selected=!1}));var t=this._hasFocus,n=this.selectionList._removeOptionFromList(this);t&&n&&n.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(e){this._color=e}},{key:"value",get:function(){return this._value},set:function(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(e){var t=vm(e);t!==this._disabled&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(e){var t=vm(e);t!==this._selected&&(this._setSelected(t),this.selectionList._reportValueChange())}}]),n}(s4);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(Y((function(){return h4}))))},e.\u0275cmp=ze({type:e,selectors:[["mat-list-option"]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,n4,!0),ul(n,i4,!0),ul(n,aY,!0)),2&e&&(al(i=fl())&&(t._avatar=i.first),al(i=fl())&&(t._icon=i.first),al(i=fl())&&(t._lines=i))},viewQuery:function(e,t){var n;1&e&&cl(G5,!0),2&e&&al(n=fl())&&(t._text=n.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&Ia("focus",(function(){return t._handleFocus()}))("blur",(function(){return t._handleBlur()}))("click",(function(){return t._handleClick()})),2&e&&(fa("aria-selected",t.selected)("aria-disabled",t.disabled)("tabindex",-1),os("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)("mat-primary","primary"===t.color)("mat-accent","primary"!==t.color&&"warn"!==t.color)("mat-warn","warn"===t.color)("mat-list-single-selected-option",t.selected&&!t.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[Es],ngContentSelectors:X5,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,t){1&e&&(za(K5),Sa(0,"div",0),Oa(1,"div",1),ba(2,W5,1,2,"mat-pseudo-checkbox",2),Sa(3,"div",3,4),Va(5),xa(),Va(6,1),xa()),2&e&&(os("mat-list-item-content-reverse","after"==t.checkboxPosition),ar(1),ka("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()),ar(1),ka("ngIf",t.selectionList.multiple))},directives:[yY,Hh,wY],encapsulation:2,changeDetection:0}),e}(),h4=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this))._element=e,a._changeDetector=r,a._focusMonitor=o,a._multiple=!0,a._contentInitialized=!1,a.selectionChange=new Yc,a.tabIndex=0,a.color="accent",a.compareWith=function(e,t){return e===t},a._disabled=!1,a.selectedOptions=new Em(a._multiple),a._tabIndex=-1,a._onChange=function(e){},a._destroyed=new w.b,a._onTouched=function(){},a}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){var e,t=this;this._contentInitialized=!0,this._keyManager=new hX(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Object(Jm.a)(null),Object(Gm.a)(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(e){if(e.added){var t,n=d(e.added);try{for(n.s();!(t=n.n()).done;)t.value.selected=!0}catch(o){n.e(o)}finally{n.f()}}if(e.removed){var i,r=d(e.removed);try{for(r.s();!(i=r.n()).done;)i.value.selected=!1}catch(o){r.e(o)}finally{r.f()}}})),null===(e=this._focusMonitor)||void 0===e||e.monitor(this._element).pipe(Object(Gm.a)(this._destroyed)).subscribe((function(e){if("keyboard"===e||"program"===e){var n=t._keyManager.activeItemIndex;n&&-1!==n?t._keyManager.setActiveItem(n):t._keyManager.setFirstItemActive()}}))}},{key:"ngOnChanges",value:function(e){var t=e.disableRipple,n=e.color;(t&&!t.firstChange||n&&!n.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){var e;null===(e=this._focusMonitor)||void 0===e||e.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(e){this._element.nativeElement.focus(e)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"_removeOptionFromList",value:function(e){var t=this._getOptionIndex(e);return t>-1&&this._keyManager.activeItemIndex===t&&(t>0?this._keyManager.updateActiveItem(t-1):0===t&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(t+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(e){var t=e.keyCode,n=this._keyManager,i=n.activeItemIndex,r=YK(e);switch(t){case XK:case WK:r||n.isTyping()||(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===t&&this.multiple&&YK(e,"ctrlKey")&&!n.isTyping()){var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this._setAllOptionsSelected(o,!0),e.preventDefault()}else n.onKeydown(e)}this.multiple&&(38===t||40===t)&&e.shiftKey&&n.activeItemIndex!==i&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}},{key:"_emitChangeEvent",value:function(e){this.selectionChange.emit(new l4(this,e))}},{key:"writeValue",value:function(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"_setOptionsFromValues",value:function(e){var t=this;this.options.forEach((function(e){return e._setSelected(!1)})),e.forEach((function(e){var n=t.options.find((function(n){return!n.selected&&t.compareWith(n.value,e)}));n&&n._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(e){return e.selected})).map((function(e){return e.value}))}},{key:"_toggleFocusedOption",value:function(){var e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){var t=this.options.toArray()[e];!t||t.disabled||!this._multiple&&t.selected||(t.toggle(),this._emitChangeEvent(t))}}},{key:"_setAllOptionsSelected",value:function(e,t){var n=!1;this.options.forEach((function(i){t&&i.disabled||!i._setSelected(e)||(n=!0)})),n&&this._reportValueChange()}},{key:"_isValidIndex",value:function(e){return e>=0&&e<this.options.length}},{key:"_getOptionIndex",value:function(e){return this.options.toArray().indexOf(e)}},{key:"_markOptionsForCheck",value:function(){this.options&&this.options.forEach((function(e){return e._markForCheck()}))}},{key:"_allowFocusEscape",value:function(){var e=this;this._tabIndex=-1,setTimeout((function(){e._tabIndex=0,e._changeDetector.markForCheck()}))}},{key:"_updateTabIndex",value:function(){this._tabIndex=0===this.options.length?-1:0}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(e){var t=vm(e);t!==this._multiple&&(this._multiple=t,this.selectedOptions=new Em(this._multiple,this.selectedOptions.selected))}}]),n}(a4);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),wa("tabindex"),_a(No),_a(CX))},e.\u0275cmp=ze({type:e,selectors:[["mat-selection-list"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,u4,!0),2&e&&al(i=fl())&&(t.options=i)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,t){1&e&&Ia("keydown",(function(e){return t._keydown(e)})),2&e&&fa("aria-multiselectable",t.multiple)("aria-disabled",t.disabled.toString())("tabindex",t._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Vs([c4]),Es,ct],ngContentSelectors:z5,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},styles:[V5],encapsulation:2,changeDetection:0}),e}(),d4=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[lY,_Y,$X,kY,_d],lY,$X,kY,H5]}),e}();function f4(e,t){if(1&e){var n=Pa();Sa(0,"mat-list-item"),Sa(1,"div",6),Sa(2,"span",7),_s(3),xa(),Sa(4,"span",7),Sa(5,"input",9),Ia("ngModelChange",(function(e){return Dt(n),t.$implicit.port_name=e})),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit;ar(3),ks(" Adapter ",i.adapter_number," "),ar(2),ka("ngModel",i.port_name)}}function p4(e,t){if(1&e&&(Sa(0,"div",5),Sa(1,"div",6),Sa(2,"span",7),_s(3," Adapter number "),xa(),Sa(4,"span",7),_s(5," Port name "),xa(),xa(),Sa(6,"div"),Sa(7,"mat-list"),ba(8,f4,6,2,"mat-list-item",8),xa(),xa(),xa()),2&e){var n=Ba();ar(8),ka("ngForOf",n.adapters)}}var m4=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.dockerConfigurationService=r,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return e.prototype.ngOnInit=function(){var e=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach((function(t){e.adapters.push({adapter_number:0,port_name:""})}))},e.prototype.onSaveClick=function(){var e=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe((function(){e.onCancelClick(),e.toasterService.success("Configuration saved for node "+e.node.name)}))},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(L5))},e.\u0275cmp=ze({type:e,selectors:[["app-configure-custom-adapters"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],[1,"header"],[1,"column"],[4,"ngFor","ngForOf"],["matInput","","type","text","placeholder","Edit port name",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),ba(2,p4,9,1,"div",1),Sa(3,"div",2),Sa(4,"button",3),Ia("click",(function(){return t.onCancelClick()})),_s(5,"Cancel"),xa(),Sa(6,"button",4),Ia("click",(function(){return t.onSaveClick()})),_s(7,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configure custom adapters for node ",t.node.name,""),ar(1),ka("ngIf",t.node))},directives:[oQ,Hh,sQ,h$,t4,Nh,o4,y0,wf,Mf,Rp],styles:["th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.column[_ngcontent-%COMP%]{width:50%}"]}),e}();function g4(e,t){if(1&e&&(Sa(0,"mat-option",26),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function v4(e,t){if(1&e&&(Sa(0,"mat-option",26),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var b4=function(){return{standalone:!0}};function y4(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Oa(2,"br"),Sa(3,"form",10),Sa(4,"mat-form-field",11),Sa(5,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.name=e})),xa(),xa(),Sa(6,"mat-form-field",11),Sa(7,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.start_command=e})),xa(),xa(),Sa(8,"mat-form-field",11),Sa(9,"input",14),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.adapters=e})),xa(),xa(),Sa(10,"button",15),Ia("click",(function(){return Dt(n),Ba().configureCustomAdapters()})),_s(11," Configure custom adapters "),xa(),Sa(12,"mat-form-field",16),Sa(13,"mat-select",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_type=e})),ba(14,g4,2,2,"mat-option",18),xa(),xa(),Sa(15,"mat-checkbox",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.console_auto_start=e})),_s(16," Auto start console "),xa(),Sa(17,"mat-form-field",11),Sa(18,"mat-select",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.console_resolution=e})),ba(19,v4,2,2,"mat-option",18),xa(),xa(),Sa(20,"mat-form-field",11),Sa(21,"input",21),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.console_http_port=e})),xa(),xa(),Sa(22,"mat-form-field",11),Sa(23,"input",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.console_http_path=e})),xa(),xa(),Sa(24,"button",15),Ia("click",(function(){return Dt(n),Ba().editNetworkConfiguration()})),_s(25," Edit network configuration "),xa(),xa(),Sa(26,"h6"),_s(27,"Environment"),xa(),Sa(28,"mat-form-field",11),Sa(29,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.environment=e})),xa(),xa(),xa(),Sa(30,"mat-tab",24),Sa(31,"h6"),_s(32,"Extra hosts"),xa(),Sa(33,"mat-form-field",11),Sa(34,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.extra_hosts=e})),xa(),xa(),Oa(35,"br"),Sa(36,"h6"),_s(37,"Additional directories"),xa(),Sa(38,"mat-form-field",11),Sa(39,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.extra_volumes=e})),xa(),xa(),xa(),Sa(40,"mat-tab",25),Sa(41,"mat-form-field",11),Sa(42,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().node.properties.usage=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.node.name),ar(2),ka("ngModel",i.node.properties.start_command),ar(2),ka("ngModel",i.node.properties.adapters),ar(4),ka("ngModelOptions",Nc(18,b4))("ngModel",i.node.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModelOptions",Nc(19,b4))("ngModel",i.node.console_auto_start),ar(3),ka("ngModelOptions",Nc(20,b4))("ngModel",i.node.properties.console_resolution),ar(1),ka("ngForOf",i.consoleResolutions),ar(2),ka("ngModel",i.node.properties.console_http_port),ar(2),ka("ngModel",i.node.properties.console_http_path),ar(6),ka("ngModel",i.node.properties.environment),ar(5),ka("ngModel",i.node.properties.extra_hosts),ar(5),ka("ngModel",i.node.properties.extra_volumes),ar(3),ka("ngModel",i.node.properties.usage)}}var _4=function(){function e(e,t,n,i,r,o){this.dialogReference=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.dockerConfigurationService=r,this.dialog=o,this.consoleTypes=[],this.consoleResolutions=["640x480","800x600","1024x768","1280x800","1280x1024","1366x768","1920x1080"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required),adapter:new Cp("",Df.required),startCommand:new Cp("",Df.required),consoleHttpPort:new Cp("",Df.required),consoleHttpPath:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name,e.getConfiguration()}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.dockerConfigurationService.getConsoleTypes()},e.prototype.configureCustomAdapters=function(){this.dialogRef=this.dialog.open(m4,this.conf);var e=this.dialogRef.componentInstance;e.server=this.server,e.node=this.node},e.prototype.editNetworkConfiguration=function(){this.dialogRef=this.dialog.open(N5,this.conf);var e=this.dialogRef.componentInstance;e.server=this.server,e.node=this.node},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogReference.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um),_a(L5),_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-docker"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","formControlName","startCommand","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","consoleHttpPort","matInput","","type","number","placeholder","HTTP port in the container",3,"ngModel","ngModelChange"],["matInput","","formControlName","consoleHttpPath","type","text","placeholder","HTTP path",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),ba(6,y4,43,21,"mat-tab-group",5),xa(),xa(),xa(),xa(),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.onCancelClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.onSaveClick()})),_s(11,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("ngIf",t.name))},directives:[oQ,wJ,Hh,sQ,h$,KQ,FQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,zf,H0,Rp,Nh,Q0,DY],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),w4=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name}))},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-nat"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),Sa(6,"form",5),Sa(7,"mat-form-field",6),Sa(8,"input",7),Ia("ngModelChange",(function(e){return t.node.name=e})),xa(),xa(),xa(),xa(),xa(),xa(),xa(),Sa(9,"div",8),Sa(10,"button",9),Ia("click",(function(){return t.onCancelClick()})),_s(11,"Cancel"),xa(),Sa(12,"button",10),Ia("click",(function(){return t.onSaveClick()})),_s(13,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("formGroup",t.generalSettingsForm),ar(2),ka("ngModel",t.node.name))},directives:[oQ,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,sQ,h$],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),k4=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.generalSettingsForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=t.name}))},e.prototype.onSaveClick=function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-configurator-traceng"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),Sa(6,"form",5),Sa(7,"mat-form-field",6),Sa(8,"input",7),Ia("ngModelChange",(function(e){return t.node.name=e})),xa(),xa(),xa(),xa(),xa(),xa(),xa(),Sa(9,"div",8),Sa(10,"button",9),Ia("click",(function(){return t.onCancelClick()})),_s(11,"Cancel"),xa(),Sa(12,"button",10),Ia("click",(function(){return t.onSaveClick()})),_s(13,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configurator for node ",t.name,""),ar(5),ka("formGroup",t.generalSettingsForm),ar(2),ka("ngModel",t.node.name))},directives:[oQ,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,sQ,h$],styles:[".configButton[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),C4=function(){function e(e){this.dialog=e,this.conf={autoFocus:!1,width:"800px",disableClose:!0}}return e.prototype.configureNode=function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(o1,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(s1,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(k2,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(u5,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(R5,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(j5,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(z3,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(Q2,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(M5,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(_4,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(w4,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(A2,this.conf):"atm_switch"===this.node.node_type?this.dialogRef=this.dialog.open(_5,this.conf):"traceng"===this.node.node_type&&(this.dialogRef=this.dialog.open(k4,this.conf));var e=this.dialogRef.componentInstance;e.server=this.server,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-config-node-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.configureNode()})),Sa(1,"mat-icon"),_s(2,"settings_applications"),xa(),Sa(3,"span"),_s(4,"Configure"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}();function S4(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().startNodes()})),Sa(1,"mat-icon"),_s(2,"play_arrow"),xa(),Sa(3,"span"),_s(4,"Start"),xa(),xa()}}var x4=function(){function e(e,t){this.nodeService=e,this.toasterService=t}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;e.nodes&&(this.isNodeWithStoppedStatus=!1,this.nodes.forEach((function(e){"stopped"!==e.status&&"suspended"!==e.status||(t.isNodeWithStoppedStatus=!0)})))},e.prototype.startNodes=function(){var e=this;this.nodes.forEach((function(t){e.nodeService.start(e.server,t).subscribe((function(e){}),(function(t){e.toasterService.error(t.error.message)}))}))},e.\u0275fac=function(t){return new(t||e)(_a(D$),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-start-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[ct],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,S4,5,0,"button",0),2&e&&ka("ngIf",t.isNodeWithStoppedStatus)},directives:[Hh,OZ,P$],encapsulation:2}),e}();function O4(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().suspendNodes()})),Sa(1,"mat-icon"),_s(2,"pause"),xa(),Sa(3,"span"),_s(4,"Suspend"),xa(),xa()}}var M4=function(){function e(e){this.nodeService=e}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach((function(e){"started"===e.status&&(t.isNodeWithStartedStatus=!0)})))},e.prototype.suspendNodes=function(){var e=this;this.nodes.forEach((function(t){e.nodeService.suspend(e.server,t).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-suspend-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[ct],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,O4,5,0,"button",0),2&e&&ka("ngIf",t.isNodeWithStartedStatus)},directives:[Hh,OZ,P$],encapsulation:2}),e}();function T4(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().stopNodes()})),Sa(1,"mat-icon"),_s(2,"stop"),xa(),Sa(3,"span"),_s(4,"Stop"),xa(),xa()}}var E4=function(){function e(e){this.nodeService=e}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach((function(e){"started"===e.status&&(t.isNodeWithStartedStatus=!0)})))},e.prototype.stopNodes=function(){var e=this;this.nodes.forEach((function(t){e.nodeService.stop(e.server,t).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-stop-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[ct],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,T4,5,0,"button",0),2&e&&ka("ngIf",t.isNodeWithStartedStatus)},directives:[Hh,OZ,P$],encapsulation:2}),e}();function P4(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().reloadNodes()})),Sa(1,"mat-icon"),_s(2,"refresh"),xa(),Sa(3,"span"),_s(4,"Reload"),xa(),xa()}}var j4=function(){function e(e){this.nodeService=e,this.filteredNodes=[]}return e.prototype.ngOnInit=function(){var e=this;this.nodes.forEach((function(t){"vpcs"!==t.node_type&&"qemu"!==t.node_type&&"virtualbox"!==t.node_type&&"vmware"!==t.node_type||e.filteredNodes.push(t)}))},e.prototype.reloadNodes=function(){var e=this;this.filteredNodes.forEach((function(t){e.nodeService.reload(e.server,t).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-reload-node-action"]],inputs:{server:"server",nodes:"nodes"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,P4,5,0,"button",0),2&e&&ka("ngIf",t.filteredNodes.length>0)},directives:[Hh,OZ,P$],encapsulation:2}),e}(),A4=function(){function e(){this.nodeConsoleTrigger=new Yc,this.closeNodeConsoleTrigger=new w.b,this.consoleResized=new w.b,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return e.prototype.getNumberOfColumns=function(){return this.lastNumberOfColumns},e.prototype.getNumberOfRows=function(){return this.lastNumberOfRows},e.prototype.setNumberOfColumns=function(e){this.lastNumberOfColumns=e},e.prototype.setNumberOfRows=function(e){this.lastNumberOfRows=e},e.prototype.openConsoleForNode=function(e){this.nodeConsoleTrigger.emit(e)},e.prototype.closeConsoleForNode=function(e){this.closeNodeConsoleTrigger.next(e)},e.prototype.resizeTerminal=function(e){this.consoleResized.next(e)},e.prototype.getLineWidth=function(){return this.defaultConsoleWidth/this.defaultNumberOfColumns},e.prototype.getLineHeight=function(){return this.defaultConsoleHeight/this.defaultNumberOfRows},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),I4=function(){function e(){this.isScrollDisabled=new w.b,this.isMapLocked=new w.b,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new w.b,this.mapRenderedEmitter=new Yc,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks"))}return e.prototype.changeMapLockValue=function(e){this.isMapLocked.next(e)},e.prototype.setConsoleContextMenuAction=function(e){localStorage.setItem("consoleContextMenu",e)},e.prototype.getConsoleContextManuAction=function(){return localStorage.getItem("consoleContextMenu")},e.prototype.toggleTopologySummary=function(e){this.isTopologySummaryVisible=e},e.prototype.toggleLogConsole=function(e){this.isLogConsoleVisible=e},e.prototype.toggleLayers=function(e){this.isLayerNumberVisible=e},e.prototype.toggleShowInterfaceLabels=function(e){this.showInterfaceLabels=e},e.prototype.toggleIntegrateInterfaceLabels=function(e){this.integrateLinkLabelsToLinks=e,localStorage.removeItem("integrateLinkLabelsToLinks"),e?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),D4=function(){function e(e,t,n){this.consoleService=e,this.toasterService=t,this.mapSettingsService=n}return e.prototype.ngOnInit=function(){},e.prototype.openConsole=function(){var e=this;this.nodes.forEach((function(t){"started"===t.status?(e.mapSettingsService.logConsoleSubject.next(!0),e.consoleService.openConsoleForNode(t)):e.toasterService.error("To open console please start the node")}))},e.\u0275fac=function(t){return new(t||e)(_a(A4),_a(iJ),_a(I4))},e.\u0275cmp=ze({type:e,selectors:[["app-http-console-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.openConsole()})),Sa(1,"mat-icon"),_s(2,"http"),xa(),Sa(3,"span"),_s(4,"Web console"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),R4=function(){function e(e,t){this.toasterService=e,this.router=t}return e.prototype.ngOnInit=function(){},e.prototype.openConsole=function(){var e=this;this.nodes.forEach((function(t){if("started"===t.status){var n=e.router.url.split("/");window.open("/static/web-ui/"+n[1]+"/"+n[2]+"/"+n[3]+"/"+n[4]+"/nodes/"+t.node_id)}else e.toasterService.error("To open console please start the node")}))},e.\u0275fac=function(t){return new(t||e)(_a(iJ),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-http-console-new-tab-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.openConsole()})),Sa(1,"mat-icon"),_s(2,"http"),xa(),Sa(3,"span"),_s(4,"Web console in new tab"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),L4=function(){function e(e,t,n,i,r){this.electronService=e,this.serverService=t,this.settingsService=n,this.toasterService=i,this.nodeService=r}return e.prototype.ngOnInit=function(){},e.prototype.console=function(){return LK(this,void 0,void 0,(function(){var e,t,n,i,r;return FK(this,(function(o){switch(o.label){case 0:if(e=this.settingsService.get("console_command")?this.settingsService.get("console_command"):this.nodeService.getDefaultCommand(),0===this.nodes.filter((function(e){return"started"===e.status})).length)return this.toasterService.error("Device needs to be started in order to console to it."),[2];t=0,n=this.nodes,o.label=1;case 1:return t<n.length?"started"!==(i=n[t]).status?[3,3]:(r={command:e,type:i.console_type,host:i.console_host,port:i.console,name:i.name,project_id:i.project_id,node_id:i.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.openConsole(r)]):[3,4];case 2:o.sent(),o.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},e.prototype.openConsole=function(e){return LK(this,void 0,void 0,(function(){return FK(this,(function(t){switch(t.label){case 0:return[4,this.electronService.remote.require("./console-executor.js").openConsole(e)];case 1:return[2,t.sent()]}}))}))},e.\u0275fac=function(t){return new(t||e)(_a(hU),_a(qK),_a(UK),_a(iJ),_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-console-device-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.console()})),Sa(1,"mat-icon"),_s(2,"web_asset"),xa(),Sa(3,"span"),_s(4,"Console"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),F4=function(){function e(e,t){this.toasterService=e,this.nodeService=t}return e.prototype.openConsole=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.startConsole()}))},e.prototype.startConsole=function(){"started"!==this.node.status?this.toasterService.error("This node must be started before a console can be opened"):("0.0.0.0"!==this.node.console_host&&"0:0:0:0:0:0:0:0"!==this.node.console_host&&"::"!==this.node.console_host||(this.node.console_host=this.server.host),"telnet"===this.node.console_type?location.assign("gns3+telnet://"+this.node.console_host+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id):"vnc"===this.node.console_type?location.assign("gns3+vnc://"+this.node.console_host+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id):"spice"===this.node.console_type?location.assign("gns3+spice://"+this.node.console_host+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id):this.toasterService.error("Supported console types: telnet, vnc, spice."))},e.\u0275fac=function(t){return new(t||e)(_a(iJ),_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-console-device-action-browser"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.openConsole()})),Sa(1,"mat-icon"),_s(2,"web_asset"),xa(),Sa(3,"span"),_s(4,"Console"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),N4=function(){function e(e){this.electronService=e}return e.prototype.ngOnInit=function(){},e.prototype.open=function(){this.electronService.shell.openPath(this.node.node_directory)},e.\u0275fac=function(t){return new(t||e)(_a(hU))},e.\u0275cmp=ze({type:e,selectors:[["app-open-file-explorer-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.open()})),Sa(1,"mat-icon"),_s(2,"tab"),xa(),Sa(3,"span"),_s(4,"Open file explorer"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),B4=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.inputForm=this.formBuilder.group({name:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe((function(t){e.node=t,e.name=e.node.name}))},e.prototype.onSaveClick=function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe((function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-change-hostname-dialog-component"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div",3),Sa(5,"mat-card",4),Sa(6,"form",5),Sa(7,"mat-form-field",6),Sa(8,"input",7),Ia("ngModelChange",(function(e){return t.node.name=e})),xa(),xa(),xa(),xa(),xa(),xa(),xa(),Sa(9,"div",8),Sa(10,"button",9),Ia("click",(function(){return t.onCancelClick()})),_s(11,"Cancel"),xa(),Sa(12,"button",10),Ia("click",(function(){return t.onSaveClick()})),_s(13,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Change hostname for node ",t.name,""),ar(5),ka("formGroup",t.inputForm),ar(2),ka("ngModel",t.node.name))},directives:[oQ,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,sQ,h$],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),H4=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.changeHostname=function(){var e=this.dialog.open(B4,{autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-change-hostname-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.changeHostname()})),Sa(1,"mat-icon"),_s(2,"edit"),xa(),Sa(3,"span"),_s(4,"Change hostname"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),z4=function(){function e(e){this.httpServer=e,this.symbols=new Um.a([])}return e.prototype.get=function(e){return this.symbols.getValue().find((function(t){return t.symbol_id===e}))},e.prototype.getByFilename=function(e){return this.symbols.getValue().find((function(t){return t.filename===e}))},e.prototype.add=function(e,t,n){return this.cache=null,this.httpServer.post(e,"/symbols/"+t+"/raw",n)},e.prototype.load=function(e){return this.httpServer.get(e,"/symbols")},e.prototype.list=function(e){return this.cache||(this.cache=this.load(e).pipe(Object(ng.a)(1))),this.cache},e.prototype.raw=function(e,t){var n=encodeURI(t);return this.httpServer.getText(e,"/symbols/"+n+"/raw")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),V4=function(){function e(){}return e.prototype.transform=function(e,t){return e?t?(t=t.toLowerCase(),e.filter((function(e){return e.filename.toLowerCase().includes(t)}))):e:[]},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"filenamefilter",type:e,pure:!0}),e}(),q4=function(e){return{buttonSelected:e}},U4=function(e){return{imageSelected:e}};function G4(e,t){if(1&e){var n=Pa();Sa(0,"div",12),Sa(1,"button",13),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().setSelected(e.symbol_id)})),Oa(2,"img",14),xa(),xa()}if(2&e){var i=t.$implicit,r=Ba();ar(1),ka("ngClass",Bc(3,q4,r.isSelected===i.symbol_id)),ar(1),ka("ngClass",Bc(5,U4,r.isSelected===i.symbol_id))("src",r.getImageSourceForTemplate(i.symbol_id),Hi)}}var W4=function(){return{standalone:!0}},K4=function(){function e(e){this.symbolService=e,this.symbolChanged=new Yc,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return e.prototype.ngOnInit=function(){this.isSelected=this.symbol,this.loadSymbols()},e.prototype.setFilter=function(e){this.filteredSymbols="all"===e?this.symbols:this.symbols.filter("builtin"===e?function(e){return e.builtin}:function(e){return!e.builtin})},e.prototype.setSelected=function(e){this.isSelected=e,this.symbolChanged.emit(this.isSelected)},e.prototype.loadSymbols=function(){var e=this;this.symbolService.list(this.server).subscribe((function(t){e.symbols=t,e.filteredSymbols=t}))},e.prototype.uploadSymbolFile=function(e){this.readSymbolFile(e.target)},e.prototype.readSymbolFile=function(e){var t=this,n=e.files[0],i=e.files[0].name,r=new FileReader,o=new Image;r.onloadend=function(){var e=t.createSvgFileForImage(r.result,o);t.symbolService.add(t.server,i,e).subscribe((function(){t.loadSymbols()}))},o.onload=function(){r.readAsDataURL(n)},o.src=window.URL.createObjectURL(n)},e.prototype.createSvgFileForImage=function(e,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+e+'"/>\n</svg>'},e.prototype.getImageSourceForTemplate=function(e){return"http://"+this.server.host+":"+this.server.port+"/v2/symbols/"+e+"/raw"},e.\u0275fac=function(t){return new(t||e)(_a(z4))},e.\u0275cmp=ze({type:e,selectors:[["app-symbols"]],inputs:{server:"server",symbol:"symbol"},outputs:{symbolChanged:"symbolChanged"},decls:20,vars:7,consts:[[1,"menu"],["aria-label","Select an option",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["value","3",3,"click"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["mat-button","",3,"click"],[1,"example-full-width"],["matInput","","placeholder","Search by filename",3,"ngModel","ngModelOptions","ngModelChange"],[1,"wrapper"],["class","buttonWrapper",4,"ngFor","ngForOf"],[1,"buttonWrapper"],[1,"button",3,"ngClass","click"],[1,"image",3,"ngClass","src"]],template:function(e,t){if(1&e){var n=Pa();Sa(0,"div",0),Sa(1,"mat-radio-group",1),Sa(2,"mat-radio-button",2),Ia("click",(function(){return t.setFilter("all")})),_s(3,"All symbols"),xa(),Sa(4,"mat-radio-button",3),Ia("click",(function(){return t.setFilter("builtin")})),_s(5,"Built-in symbols"),xa(),Sa(6,"mat-radio-button",4),Ia("click",(function(){return t.setFilter("custom")})),_s(7,"Custom symbols"),xa(),xa(),Sa(8,"input",5,6),Ia("change",(function(e){return t.uploadSymbolFile(e)})),xa(),Sa(10,"button",7),Ia("click",(function(){return Dt(n),ya(9).click()})),Sa(11,"mat-icon"),_s(12,"add"),xa(),_s(13," Add symbol "),xa(),xa(),Sa(14,"form"),Sa(15,"mat-form-field",8),Sa(16,"input",9),Ia("ngModelChange",(function(e){return t.searchText=e})),xa(),xa(),xa(),Sa(17,"div",10),ba(18,G4,3,7,"div",11),Uc(19,"filenamefilter"),xa()}2&e&&(ar(16),ka("ngModel",t.searchText)("ngModelOptions",Nc(6,W4)),ar(2),ka("ngForOf",Wc(19,3,t.filteredSymbols,t.searchText)))},directives:[l3,f3,h$,P$,Lp,Tf,Tp,a0,y0,wf,Mf,Rp,Nh,Rh],pipes:[V4],styles:[".buttonWrapper[_ngcontent-%COMP%]{width:85px;height:85px;display:flex;align-items:center;margin-left:auto;margin-right:auto;outline:none}.menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.button[_ngcontent-%COMP%]{background:border-box;border-width:0;outline:none}.buttonSelected[_ngcontent-%COMP%]{border-width:3px;background:#0097a7!important}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter:invert(0)!important}.imageSelected[_ngcontent-%COMP%]{margin-left:0}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:repeat(7,1fr);grid-row-gap:3em;grid-column-gap:1em}.radio-selection[_ngcontent-%COMP%]{width:90%}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}.non-visible[_ngcontent-%COMP%]{display:none}.example-full-width[_ngcontent-%COMP%]{width:100%}"]}),e}(),X4=function(){function e(e,t){this.dialogRef=e,this.nodeService=t}return e.prototype.ngOnInit=function(){this.symbol=this.node.symbol},e.prototype.symbolChanged=function(e){this.symbol=e},e.prototype.onCloseClick=function(){this.dialogRef.close()},e.prototype.onSelectClick=function(){var e=this;this.nodeService.updateSymbol(this.server,this.node,this.symbol).subscribe((function(){e.onCloseClick()}))},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-change-symbol-dialog"]],inputs:{server:"server",node:"node"},decls:10,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"symbolsWrapper"],[3,"server","symbol","symbolChanged"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"app-symbols",3),Ia("symbolChanged",(function(e){return t.symbolChanged(e)})),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"button",5),Ia("click",(function(){return t.onCloseClick()})),_s(7,"Cancel"),xa(),Sa(8,"button",6),Ia("click",(function(){return t.onSelectClick()})),_s(9,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Change symbol for node: ",t.node.name,""),ar(3),ka("server",t.server)("symbol",t.symbol))},directives:[oQ,K4,sQ,h$],styles:[".symbolsWrapper[_ngcontent-%COMP%]{height:350px;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),e}(),Y4=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.changeSymbol=function(){var e=this.dialog.open(X4,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-change-symbol-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.changeSymbol()})),Sa(1,"mat-icon"),_s(2,"find_replace"),xa(),Sa(3,"span"),_s(4,"Change symbol"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),Z4=function(){function e(){}return e.prototype.convert=function(e){var t=new BZ;t.text=e.textContent;var n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var i=e.attributes.getNamedItem("fill-opacity");i&&(t.fill_opacity=parseFloat(i.value));var r=e.attributes.getNamedItem("font-family");r&&(t.font_family=r.value);var o=e.attributes.getNamedItem("font-size");o&&(t.font_size=+o.value);var a=e.attributes.getNamedItem("font-weight");a&&(t.font_weight=a.value);var s=e.attributes.getNamedItem("text-decoration");return s&&(t.text_decoration=s.value),t},e}(),Q4=function(){return function(){}}(),$4=function(){function e(){}return e.prototype.convert=function(e){var t=new Q4,n=e.attributes.getNamedItem("xlink:href");n&&(t.data=n.value);var i=e.attributes.getNamedItem("width");i&&(t.width=parseInt(i.value,10));var r=e.attributes.getNamedItem("height");return r&&(t.height=parseInt(r.value,10)),t},e}(),J4=function(){return function(){}}(),e6=function(){function e(){}return e.prototype.convert=function(e){var t=new J4,n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var i=e.attributes.getNamedItem("fill-opacity");n&&(t.fill_opacity=parseFloat(i.value));var r=e.attributes.getNamedItem("stroke");r&&(t.stroke=r.value);var o=e.attributes.getNamedItem("stroke-width");r&&(t.stroke_width=parseInt(o.value,10));var a=e.attributes.getNamedItem("stroke-dasharray");a&&(t.stroke_dasharray=a.value);var s=e.attributes.getNamedItem("width");s&&(t.width=parseInt(s.value,10));var c=e.attributes.getNamedItem("height");return c&&(t.height=parseInt(c.value,10)),t},e}(),t6=function(){return function(){}}(),n6=function(){function e(){}return e.prototype.convert=function(e){var t=new t6,n=e.attributes.getNamedItem("stroke");n&&(t.stroke=n.value);var i=e.attributes.getNamedItem("stroke-width");n&&(t.stroke_width=parseInt(i.value,10));var r=e.attributes.getNamedItem("stroke-dasharray");r&&(t.stroke_dasharray=r.value);var o=e.attributes.getNamedItem("x1");o&&(t.x1=parseInt(o.value,10));var a=e.attributes.getNamedItem("x2");a&&(t.x2=parseInt(a.value,10));var s=e.attributes.getNamedItem("y1");s&&(t.y1=parseInt(s.value,10));var c=e.attributes.getNamedItem("y2");return c&&(t.y2=parseInt(c.value,10)),t},e}(),i6=function(){return function(){}}(),r6=function(){function e(){}return e.prototype.convert=function(e){var t=new i6,n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var i=e.attributes.getNamedItem("fill-opacity");n&&(t.fill_opacity=parseFloat(i.value));var r=e.attributes.getNamedItem("stroke");r&&(t.stroke=r.value);var o=e.attributes.getNamedItem("stroke-width");r&&(t.stroke_width=parseInt(o.value,10));var a=e.attributes.getNamedItem("stroke-dasharray");a&&(t.stroke_dasharray=a.value);var s=e.attributes.getNamedItem("cx");s&&(t.cx=parseInt(s.value,10));var c=e.attributes.getNamedItem("cy");c&&(t.cy=parseInt(c.value,10));var l=e.attributes.getNamedItem("rx");l&&(t.rx=parseInt(l.value,10));var u=e.attributes.getNamedItem("ry");return u&&(t.ry=parseInt(u.value,10)),t},e}(),o6=function(){function e(){this.parser=new DOMParser,this.elementParsers={text:new Z4,image:new $4,rect:new e6,line:new n6,ellipse:new r6}}return e.prototype.supportedTags=function(){return Object.keys(this.elementParsers)},e.prototype.convert=function(e){var t=this.parser.parseFromString(e,"text/xml").getElementsByTagName("svg");if(1!==t.length)throw new Error("Cannot locate svg element root in '"+e+"'");var n=t[0],i=null,r=null;for(var o in n.children){var a=(r=n.children[o]).nodeName;if(a in this.elementParsers){i=this.elementParsers[a];break}}if(null===i)throw new Error("Cannot find parser for '"+e+"'");var s=i.convert(r);return s.width=+n.getAttribute("width"),s.height=+n.getAttribute("height"),s},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),a6=function(){function e(e,t){this.httpServer=e,this.svgToDrawingConverter=t}return e.prototype.add=function(e,t,n,i,r){return this.httpServer.post(e,"/projects/"+t+"/drawings",{svg:r,x:Math.round(n),y:Math.round(i),z:1})},e.prototype.duplicate=function(e,t,n){return this.httpServer.post(e,"/projects/"+t+"/drawings",{svg:n.svg,rotation:n.rotation,x:n.x+10,y:n.y+10,z:n.z})},e.prototype.updatePosition=function(e,t,n,i,r){var o=Math.round(i),a=Math.round(r);return t.snap_to_grid&&(n.element=this.svgToDrawingConverter.convert(n.svg),o=Math.round((o+n.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,a=Math.round((a+n.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,o=Math.round(o-n.element.width/2),a=Math.round(a-n.element.height/2)),this.httpServer.put(e,"/projects/"+n.project_id+"/drawings/"+n.drawing_id,{x:o,y:a})},e.prototype.updateSizeAndPosition=function(e,t,n,i,r){return this.httpServer.put(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:r,x:Math.round(n),y:Math.round(i)})},e.prototype.updateText=function(e,t,n){return this.httpServer.put(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:n,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},e.prototype.update=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{locked:t.locked,svg:t.svg,rotation:t.rotation,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},e.prototype.delete=function(e,t){return this.httpServer.delete(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK),we(o6))}}),e}(),s6=function(){function e(){this.data=[],this.dataChange=new Um.a([]),this.itemUpdated=new w.b}return e.prototype.getItems=function(){return this.data},e.prototype.add=function(e){this.findIndex(e)>=0?this.update(e):(this.data.push(e),this.dataChange.next(this.data))},e.prototype.set=function(e){var t=this;e.forEach((function(e){var n=t.findIndex(e);if(n>=0){var i=Object.assign(t.data[n],e);t.data[n]=i}else t.data.push(e)})),this.data.filter((function(n){return 0===e.filter((function(e){return t.getItemKey(e)===t.getItemKey(n)})).length})).forEach((function(e){return t.remove(e)})),this.dataChange.next(this.data)},e.prototype.get=function(e){var t=this,n=this.data.findIndex((function(n){return t.getItemKey(n)===e}));if(n>=0)return this.data[n]},e.prototype.update=function(e){var t=this.findIndex(e);if(t>=0){var n=Object.assign(this.data[t],e);this.data[t]=n,this.dataChange.next(this.data),this.itemUpdated.next(n)}},e.prototype.remove=function(e){var t=this.findIndex(e);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data))},Object.defineProperty(e.prototype,"changes",{get:function(){return this.dataChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemChanged",{get:function(){return this.itemUpdated},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.data=[],this.dataChange.next(this.data)},e.prototype.findIndex=function(e){var t=this;return this.data.findIndex((function(n){return t.getItemKey(n)===t.getItemKey(e)}))},e}(),c6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.prototype.getItemKey=function(e){return e.node_id},t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return l6(e||t)}}),t}(s6),l6=Qn(c6),u6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.prototype.getItemKey=function(e){return e.drawing_id},t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return h6(e||t)}}),t}(s6),h6=Qn(u6),d6=function(){function e(e,t,n,i,r){this.nodeService=e,this.nodesDataSource=t,this.drawingService=n,this.drawingsDataSource=i,this.toasterService=r}return e.prototype.duplicate=function(){for(var e=this,t="",n=0,i=this.nodes;n<i.length;n++){var r=i[n];"stopped"===r.status?this.nodeService.duplicate(this.server,r).subscribe((function(t){e.nodesDataSource.add(t)})):t+=r.name+", "}for(var o=0,a=this.drawings;o<a.length;o++){var s=a[o];this.drawingService.duplicate(this.server,s.project_id,s).subscribe((function(t){e.drawingsDataSource.add(t)}))}t.length>0&&(t=t.substring(0,t.length-2),this.toasterService.error("Cannot duplicate node data for nodes: "+t))},e.\u0275fac=function(t){return new(t||e)(_a(D$),_a(c6),_a(a6),_a(u6),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-duplicate-action"]],inputs:{server:"server",project:"project",drawings:"drawings",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.duplicate()})),Sa(1,"mat-icon"),_s(2,"filter_none"),xa(),Sa(3,"span"),_s(4,"Duplicate"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),f6=function(){return function(){}}(),p6=function(){return function(){}}(),m6=function(){function e(){}return e.prototype.convert=function(e){var t=new p6;return t.id=e.drawing_id,t.projectId=e.project_id,t.rotation=e.rotation,t.svg=e.svg,t.locked=e.locked,t.x=e.x,t.y=e.y,t.z=e.z,t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),g6=function(){function e(){}return e.prototype.convert=function(e){var t="";if(e.element instanceof J4)t='<rect fill="'+e.element.fill+'" fill-opacity="'+e.element.fill_opacity+'" height="'+e.element.height+'" width="'+e.element.width+'" stroke="'+e.element.stroke+'" stroke-width="'+e.element.stroke_width+'" />';else if(e.element instanceof i6)t='<ellipse fill="'+e.element.fill+'" fill-opacity="'+e.element.fill_opacity+'" cx="'+e.element.cx+'" cy="'+e.element.cy+'" rx="'+e.element.rx+'" ry="'+e.element.ry+'" stroke="'+e.element.stroke+'" stroke-width="'+e.element.stroke_width+'" />';else if(e.element instanceof t6)t='<line stroke="'+e.element.stroke+'" stroke-width="'+e.element.stroke_width+'" x1="'+e.element.x1+'" x2="'+e.element.x2+'" y1="'+e.element.y1+'" y2="'+e.element.y2+'" />';else{if(!(e.element instanceof BZ))return"";t='<text fill="'+e.element.fill+'" fill-opacity="1.0" font-family="'+e.element.font_family+'" font-size="'+e.element.font_size+'" font-weight="'+e.element.font_weight+'">'+e.element.text+"</text>"}return'<svg height="'+e.element.height+'" width="'+e.element.width+'">'+t+"</svg>"},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),v6=function(){function e(){}return e.prototype.get=function(e){return+e.value>=0?null:{negativeValue:!0}},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),b6=function(){function e(){}return e.prototype.get=function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),y6=function(){return{standalone:!0}};function _6(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",3),Sa(1,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().element.stroke_dasharray=e})),xa(),xa()}if(2&e){var i=Ba();ar(1),ka("ngModelOptions",Nc(2,y6))("ngModel",i.element.stroke_dasharray)}}var w6=function(){function e(e,t,n,i,r,o,a,s,c){this.dialogRef=e,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=n,this.drawingService=i,this.drawingsDataSource=r,this.formBuilder=o,this.toasterService=a,this.nonNegativeValidator=s,this.rotationValidator=c,this.formGroup=this.formBuilder.group({borderWidth:new Cp("",[Df.required,s.get]),rotation:new Cp("",[Df.required,c.get])})}return e.prototype.ngOnInit=function(){this.element=new k6,this.drawing.element instanceof J4||this.drawing.element instanceof i6?(this.element.fill=this.drawing.element.fill,this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof t6&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width),void 0===this.element.stroke_width&&(this.element.stroke_width=0),this.formGroup.controls.borderWidth.setValue(this.element.stroke_width),this.formGroup.controls.rotation.setValue(this.drawing.rotation)},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.onYesClick=function(){var e=this;if(this.formGroup.valid){this.element.stroke_width=this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof J4||this.drawing.element instanceof i6?(this.drawing.element.fill=this.element.fill,this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof t6&&(this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width);var t=this.drawingToMapDrawingConverter.convert(this.drawing);t.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(t),this.drawingService.update(this.server,this.drawing).subscribe((function(t){e.drawingsDataSource.update(t),e.dialogRef.close()}))}else this.toasterService.error("Entered data is incorrect")},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(m6),_a(g6),_a(a6),_a(u6),_a(um),_a(iJ),_a(v6),_a(b6))},e.\u0275cmp=ze({type:e,selectors:[["app-style-editor"]],decls:18,vars:8,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number"],["class","form-field",4,"ngIf"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Border style","type","text",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Style editor"),xa(),Sa(2,"div",1),Sa(3,"form",2),Sa(4,"mat-form-field",3),Sa(5,"input",4),Ia("ngModelChange",(function(e){return t.element.fill=e})),xa(),xa(),Sa(6,"mat-form-field",3),Sa(7,"input",5),Ia("ngModelChange",(function(e){return t.element.stroke=e})),xa(),xa(),Sa(8,"mat-form-field",3),Oa(9,"input",6),xa(),ba(10,_6,2,3,"mat-form-field",7),Sa(11,"mat-form-field",3),Oa(12,"input",8),xa(),xa(),xa(),Sa(13,"div",9),Sa(14,"button",10),Ia("click",(function(){return t.onNoClick()})),_s(15,"Cancel"),xa(),Sa(16,"button",11),Ia("click",(function(){return t.onYesClick()})),_s(17,"Apply"),xa(),xa()),2&e&&(ar(3),ka("formGroup",t.formGroup),ar(2),ka("ngModelOptions",Nc(6,y6))("ngModel",t.element.fill),ar(2),ka("ngModelOptions",Nc(7,y6))("ngModel",t.element.stroke),ar(3),ka("ngIf",t.element.stroke_dasharray))},directives:[oQ,Lp,Tf,zp,a0,y0,wf,Mf,Rp,zf,Xp,Hh,sQ,h$],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt}.item[_ngcontent-%COMP%], .item-name[_ngcontent-%COMP%], .item-value[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-field[_ngcontent-%COMP%], .modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]}),e}(),k6=function(){return function(){}}();function C6(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().editStyle()})),Sa(1,"mat-icon"),_s(2,"style"),xa(),Sa(3,"span"),_s(4,"Edit style"),xa(),xa()}}var S6=function(){function e(e){this.dialog=e,this.isImageDrawing=!1}return e.prototype.ngOnChanges=function(){this.isImageDrawing=this.drawing.element instanceof Q4},e.prototype.editStyle=function(){var e=this.dialog.open(w6,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project,e.drawing=this.drawing},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-edit-style-action"]],inputs:{server:"server",project:"project",drawing:"drawing"},features:[ct],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,C6,5,0,"button",0),2&e&&ka("ngIf",!t.isImageDrawing)},directives:[Hh,OZ,P$],encapsulation:2}),e}(),x6=function(){function e(e){this.httpServer=e}return e.prototype.createLink=function(e,t,n,i,r,o,a,s,c){return this.httpServer.post(e,"/projects/"+t.project_id+"/links",{nodes:[{node_id:t.node_id,port_number:n.port_number,adapter_number:n.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:n.short_name,x:o,y:a}},{node_id:i.node_id,port_number:r.port_number,adapter_number:r.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:r.short_name,x:s,y:c}}]})},e.prototype.getLink=function(e,t,n){return this.httpServer.get(e,"/projects/"+t+"/links/"+n)},e.prototype.deleteLink=function(e,t){return this.httpServer.delete(e,"/projects/"+t.project_id+"/links/"+t.link_id)},e.prototype.updateLink=function(e,t){return t.x=Math.round(t.x),t.y=Math.round(t.y),this.httpServer.put(e,"/projects/"+t.project_id+"/links/"+t.link_id,t)},e.prototype.getAvailableFilters=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/available_filters")},e.prototype.updateNodes=function(e,t,n){var i=n.map((function(e){return{node_id:e.node_id,port_number:e.port_number,adapter_number:e.adapter_number,label:{rotation:e.label.rotation,style:e.label.style,text:e.label.text,x:e.label.x,y:e.label.y}}}));return this.httpServer.put(e,"/projects/"+t.project_id+"/links/"+t.link_id,{nodes:i})},e.prototype.startCaptureOnLink=function(e,t,n){return this.httpServer.post(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/start_capture",n)},e.prototype.stopCaptureOnLink=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/stop_capture",{})},e.prototype.streamPcap=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/pcap")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),O6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.prototype.getItemKey=function(e){return e.link_id},t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return M6(e||t)}}),t}(s6),M6=Qn(O6),T6=n("zahk"),E6=function(){function e(){}return e.prototype.fix=function(t){return t.font_family===e.DEFAULT_FONT&&t.font_size===e.DEFAULT_SIZE&&(t.font_family=e.REPLACE_BY_FONT,t.font_size=e.REPLACE_BY_SIZE),t},e.prototype.fixStyles=function(e){var t=T6.parse(e,{context:"declarationList"}),n=null,i=null,r=!0;if(t.children.forEach((function(e){"font-family"===e.property&&e.value&&e.value.children&&e.value.children.forEach((function(e){"Identifier"===e.type&&(n=e),"String"===e.type&&(n=e,r=!1)})),"font-size"===e.property&&e.value&&e.value.children&&e.value.children.forEach((function(e){"Dimension"===e.type&&(i=e)}))})),i&&n){var o=i.value,a=this.fix({font_family:(r?n.name:n.value).split('"').join(""),font_size:parseInt(o,10)});r?n.name=a.font_family:n.value=a.font_family,i.value=a.font_size}return T6.generate(t)},e.DEFAULT_FONT="TypeWriter",e.DEFAULT_SIZE=10,e.REPLACE_BY_FONT="Noto Sans",e.REPLACE_BY_SIZE=11,e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),P6=["textArea"],j6=function(){function e(e,t,n,i,r,o,a,s,c,l,u,h,d,f){this.dialogRef=e,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=n,this.drawingService=i,this.drawingsDataSource=r,this.renderer=o,this.nodeService=a,this.nodesDataSource=s,this.linkService=c,this.linksDataSource=l,this.formBuilder=u,this.toasterService=h,this.rotationValidator=d,this.fontFixer=f}return e.prototype.ngOnInit=function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new Cp("",[Df.required,this.rotationValidator.get])}),this.label&&this.node?(this.isTextEditable=!1,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.linkNode&&this.link?(this.isTextEditable=!0,this.label=this.link.nodes.find((function(t){return t.node_id===e.linkNode.node_id})).label,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.drawing&&(this.isTextEditable=!0,this.rotation=this.drawing.rotation.toString(),this.element=this.drawing.element);var t={font_family:this.element.font_family,font_size:this.element.font_size,font_weight:this.element.font_weight};t=this.fontFixer.fix(t),this.formGroup.controls.rotation.setValue(this.rotation),this.renderer.setStyle(this.textArea.nativeElement,"color",this.element.fill),this.renderer.setStyle(this.textArea.nativeElement,"font-family",t.font_family),this.renderer.setStyle(this.textArea.nativeElement,"font-size",t.font_size+"pt"),this.renderer.setStyle(this.textArea.nativeElement,"font-weight",t.font_weight)},e.prototype.getTextElementFromLabel=function(){for(var e=[],t=new BZ,n=0,i=this.label.style.split(";");n<i.length;n++){var r=i[n];e.push({property:r.split(": ")[0],value:r.split(": ")[1]})}return t.text=this.label.text?this.label.text:"",t.font_family=e.find((function(e){return"font-family"===e.property}))?e.find((function(e){return"font-family"===e.property})).value:"TypeWriter",t.font_size=e.find((function(e){return"font-size"===e.property}))?+e.find((function(e){return"font-size"===e.property})).value:10,t.font_weight=e.find((function(e){return"font-weight"===e.property}))?e.find((function(e){return"font-weight"===e.property})).value:"normal",t.fill=e.find((function(e){return"fill"===e.property}))?e.find((function(e){return"fill"===e.property})).value:"#000000",t.fill_opacity=e.find((function(e){return"fill-opacity"===e.property}))?+e.find((function(e){return"fill-opacity"===e.property})).value:1,t},e.prototype.getStyleFromTextElement=function(){return"font-family: "+this.element.font_family+";font-size: "+this.element.font_size+";font-weight: "+this.element.font_weight+";fill: "+this.element.fill+";fill-opacity: "+this.element.fill_opacity+";"},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.onYesClick=function(){var e=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.server,this.node,this.node.label).subscribe((function(t){e.nodesDataSource.update(t),e.dialogRef.close()}));else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.server,this.link).subscribe((function(t){e.linksDataSource.update(t),e.dialogRef.close()}));else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var t=this.drawingToMapDrawingConverter.convert(this.drawing);t.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(t),this.drawingService.update(this.server,this.drawing).subscribe((function(t){e.drawingsDataSource.update(t),e.dialogRef.close()}))}}else this.toasterService.error("Entered data is incorrect")},e.prototype.changeTextColor=function(e){this.renderer.setStyle(this.textArea.nativeElement,"color",e)},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(m6),_a(g6),_a(a6),_a(u6),_a(Qs),_a(D$),_a(c6),_a(x6),_a(O6),_a(um),_a(iJ),_a(b6),_a(E6))},e.\u0275cmp=ze({type:e,selectors:[["app-text-editor"]],viewQuery:function(e,t){var n;1&e&&sl(P6,!0),2&e&&al(n=fl())&&(t.textArea=n.first)},decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModel","ngModelChange"],[3,"formGroup"],["formControlName","rotation","matInput","","placeholder","Rotation","type","text"],["id","textArea",1,"text",3,"ngModel","readonly","ngModelChange"],["textArea",""],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Text editor"),xa(),Sa(2,"div",1),Sa(3,"mat-form-field",2),Sa(4,"input",3),Ia("ngModelChange",(function(e){return t.changeTextColor(e)}))("ngModelChange",(function(e){return t.element.fill=e})),xa(),xa(),Sa(5,"form",4),Sa(6,"mat-form-field",2),Oa(7,"input",5),xa(),xa(),Sa(8,"textarea",6,7),Ia("ngModelChange",(function(e){return t.element.text=e})),xa(),xa(),Sa(10,"div",8),Sa(11,"button",9),Ia("click",(function(){return t.onNoClick()})),_s(12,"Cancel"),xa(),Sa(13,"button",10),Ia("click",(function(){return t.onYesClick()})),_s(14,"Apply"),xa(),xa()),2&e&&(ar(4),ka("ngModel",t.element.fill),ar(1),ka("formGroup",t.formGroup),ar(3),ka("ngModel",t.element.text)("readonly",!t.isTextEditable))},directives:[oQ,a0,y0,wf,Mf,Rp,Lp,Tf,zp,Xp,sQ,h$],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt}.item[_ngcontent-%COMP%], .item-name[_ngcontent-%COMP%], .item-value[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.text[_ngcontent-%COMP%]{width:100%;height:150px}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-field[_ngcontent-%COMP%], .modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]}),e}(),A6=function(){return function(){}}(),I6=function(){return function(){}}(),D6=function(){return function(){}}(),R6=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.editText=function(){var e=this.dialog.open(j6,{width:"300px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project,e.drawing=this.drawing,e.node=this.node,e.label=this.label,e.link=this.link,e.linkNode=this.linkNode},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-edit-text-action"]],inputs:{server:"server",project:"project",drawing:"drawing",node:"node",label:"label",link:"link",linkNode:"linkNode"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.editText()})),Sa(1,"mat-icon"),_s(2,"text_format"),xa(),Sa(3,"span"),_s(4,"Edit text"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}();function L6(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"textarea",7,8),Ia("ngModelChange",(function(e){return Dt(n),Ba().config=e})),xa(),xa()}if(2&e){var i=Ba();ar(1),ka("ngModel",i.config)}}function F6(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Sa(2,"textarea",10,8),Ia("ngModelChange",(function(e){return Dt(n),Ba().config=e})),xa(),xa(),Sa(4,"mat-tab",11),Sa(5,"textarea",10,8),Ia("ngModelChange",(function(e){return Dt(n),Ba().privateConfig=e})),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("ngModel",i.config),ar(3),ka("ngModel",i.privateConfig)}}var N6=function(){function e(e,t,n){this.dialogRef=e,this.nodeService=t,this.toasterService=n}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getStartupConfiguration(this.server,this.node).subscribe((function(t){e.config=t})),"iou"!==this.node.node_type&&"dynamips"!==this.node.node_type||this.nodeService.getPrivateConfiguration(this.server,this.node).subscribe((function(t){e.privateConfig=t}))},e.prototype.onSaveClick=function(){var e=this;this.nodeService.saveConfiguration(this.server,this.node,this.config).subscribe((function(t){"iou"===e.node.node_type||"dynamips"===e.node.node_type?e.nodeService.savePrivateConfiguration(e.server,e.node,e.privateConfig).subscribe((function(t){e.dialogRef.close(),e.toasterService.success("Configuration for node "+e.node.name+" saved.")})):(e.dialogRef.close(),e.toasterService.success("Configuration for node "+e.node.name+" saved."))}))},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(D$),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-config-editor"]],decls:9,vars:3,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["id","textArea",1,"textArea",3,"ngModel","ngModelChange"],["textArea",""],["label","Startup config"],["id","textArea",1,"textAreaTab",3,"ngModel","ngModelChange"],["label","Private config"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),ba(2,L6,3,1,"div",1),ba(3,F6,7,2,"mat-tab-group",2),Sa(4,"div",3),Sa(5,"button",4),Ia("click",(function(){return t.onCancelClick()})),_s(6,"Cancel"),xa(),Sa(7,"button",5),Ia("click",(function(){return t.onSaveClick()})),_s(8,"Apply"),xa(),xa()),2&e&&(ar(1),ks("Configuration for node ",t.node.name,""),ar(1),ka("ngIf","vpcs"===t.node.node_type),ar(1),ka("ngIf","iou"===t.node.node_type||"dynamips"===t.node.node_type))},directives:[oQ,Hh,sQ,h$,wf,Mf,Rp,KQ,FQ],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]}),e}();function B6(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().editConfig()})),Sa(1,"mat-icon"),_s(2,"settings"),xa(),Sa(3,"span"),_s(4,"Edit config"),xa(),xa()}}var H6=function(){function e(e){this.dialog=e}return e.prototype.editConfig=function(){var e=this.dialog.open(N6,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-edit-config-action"]],inputs:{server:"server",project:"project",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,B6,5,0,"button",0),2&e&&ka("ngIf","vpcs"===t.node.node_type||"iou"===t.node.node_type||"dynamips"===t.node.node_type)},directives:[Hh,OZ,P$],encapsulation:2}),e}(),z6=function(){function e(e){this.dialogRef=e}return e.prototype.close=function(e){this.dialogRef.close(e)},e.\u0275fac=function(t){return new(t||e)(_a(YZ))},e.\u0275cmp=ze({type:e,selectors:[["app-config-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"container"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Choose configuration file"),xa(),Sa(2,"div",1),Sa(3,"div",2),Sa(4,"div"),Sa(5,"button",3),Ia("click",(function(){return t.close("startup-config")})),_s(6," startup configuration "),xa(),xa(),Sa(7,"div"),Sa(8,"button",3),Ia("click",(function(){return t.close("private-config")})),_s(9," private configuration "),xa(),xa(),xa(),xa())},directives:[oQ,h$],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]}),e}();function V6(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().exportConfig()})),Sa(1,"mat-icon"),_s(2,"call_made"),xa(),Sa(3,"span"),_s(4,"Export config"),xa(),xa()}}var q6=function(){function e(e,t){this.nodeService=e,this.dialog=t}return e.prototype.exportConfig=function(){var e=this;"vpcs"===this.node.node_type?this.nodeService.getStartupConfiguration(this.server,this.node).subscribe((function(t){e.downloadByHtmlTag(t)})):this.dialog.open(z6,{width:"500px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(t){"startup-config"===t?e.nodeService.getStartupConfiguration(e.server,e.node).subscribe((function(t){e.downloadByHtmlTag(t)})):"private-config"===t&&e.nodeService.getPrivateConfiguration(e.server,e.node).subscribe((function(t){e.downloadByHtmlTag(t)}))}))},e.prototype.downloadByHtmlTag=function(e){var t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),"vpcs"===this.node.node_type?t.setAttribute("download",this.node.name+"_startup.vpc"):"iou"!==this.node.node_type&&"dynamips"!==this.node.node_type||t.setAttribute("download",this.node.name+"_startup.cfg");var n=new MouseEvent("click");t.dispatchEvent(n)},e.\u0275fac=function(t){return new(t||e)(_a(D$),_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-export-config-action"]],inputs:{server:"server",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,V6,5,0,"button",0),2&e&&ka("ngIf","vpcs"===t.node.node_type||"dynamips"===t.node.node_type||"iou"===t.node.node_type)},directives:[Hh,OZ,P$],encapsulation:2}),e}(),U6=["fileInput"],G6=function(){function e(e,t,n){this.nodeService=e,this.toasterService=t,this.dialog=n}return e.prototype.triggerClick=function(){var e=this;"vpcs"!==this.node.node_type?this.dialog.open(z6,{width:"500px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(t){e.configType=t,e.fileInput.nativeElement.click()})):(this.configType="startup-config",this.fileInput.nativeElement.click())},e.prototype.importConfig=function(e){var t=this,n=e.target.files[0],i=new FileReader;i.onload=function(e){var n=i.result;"string"!=typeof n&&(n=n.toString()),"startup-config"===t.configType?t.nodeService.saveConfiguration(t.server,t.node,n).subscribe((function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")})):"private-config"===t.configType&&t.nodeService.savePrivateConfiguration(t.server,t.node,n).subscribe((function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")}))},i.readAsText(n)},e.\u0275fac=function(t){return new(t||e)(_a(D$),_a(iJ),_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-import-config-action"]],viewQuery:function(e,t){var n;1&e&&cl(U6,!0),2&e&&al(n=fl())&&(t.fileInput=n.first)},inputs:{server:"server",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"input",0,1),Ia("change",(function(e){return t.importConfig(e)})),xa(),Sa(2,"button",2),Ia("click",(function(){return t.triggerClick()})),Sa(3,"mat-icon"),_s(4,"call_received"),xa(),Sa(5,"span"),_s(6,"Import config"),xa(),xa())},directives:[OZ,P$],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]}),e}(),W6=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnInit=function(){},e.prototype.moveLayerUp=function(){var e=this;this.nodes.forEach((function(t){t.z++,e.nodesDataSource.update(t),e.nodeService.update(e.server,t).subscribe((function(e){}))})),this.drawings.forEach((function(t){t.z++,e.drawingsDataSource.update(t),e.drawingService.update(e.server,t).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(u6),_a(D$),_a(a6))},e.\u0275cmp=ze({type:e,selectors:[["app-move-layer-up-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.moveLayerUp()})),Sa(1,"mat-icon"),_s(2,"keyboard_arrow_up"),xa(),Sa(3,"span"),_s(4,"Move layer up"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),K6=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnInit=function(){},e.prototype.moveLayerDown=function(){var e=this;this.nodes.forEach((function(t){t.z--,e.nodesDataSource.update(t),e.nodeService.update(e.server,t).subscribe((function(e){}))})),this.drawings.forEach((function(t){t.z--,e.drawingsDataSource.update(t),e.drawingService.update(e.server,t).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(u6),_a(D$),_a(a6))},e.\u0275cmp=ze({type:e,selectors:[["app-move-layer-down-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.moveLayerDown()})),Sa(1,"mat-icon"),_s(2,"keyboard_arrow_down"),xa(),Sa(3,"span"),_s(4,"Move layer down"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),X6=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnInit=function(){},e.prototype.bringToFront=function(){var e=this,t=Math.max.apply(Math,this.nodes.map((function(e){return e.z}))),n=Math.max.apply(Math,this.drawings.map((function(e){return e.z}))),i=Math.max(t,n);i<100&&i++,this.nodes.forEach((function(t){t.z=i,e.nodesDataSource.update(t),e.nodeService.update(e.server,t).subscribe((function(e){}))})),this.drawings.forEach((function(t){t.z=i,e.drawingsDataSource.update(t),e.drawingService.update(e.server,t).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(u6),_a(D$),_a(a6))},e.\u0275cmp=ze({type:e,selectors:[["app-bring-to-front-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.bringToFront()})),Sa(1,"mat-icon"),_s(2,"vertical_align_top"),xa(),Sa(3,"span"),_s(4,"Bring to front"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),Y6=function(){function e(){}return e.prototype.startCapture=function(e,t,n,i){location.assign("gns3+pcap://"+e.host+":"+e.port+"?project_id="+t.project_id+"&link_id="+n.link_id+"&name="+i)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function Z6(e,t){if(1&e&&(Sa(0,"mat-option",11),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}var Q6=function(){return{standalone:!0}},$6=function(){function e(e,t,n,i,r,o){this.dialogRef=e,this.linkService=t,this.formBuilder=n,this.toasterService=i,this.nodesDataSource=r,this.packetCaptureService=o,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new Cp("",Df.required),fileName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){this.linkTypes="ethernet"===this.link.link_type?[["Ethernet","DLT_EN10MB"]]:[["Cisco HDLC","DLT_C_HDLC"],["Cisco PPP","DLT_PPP_SERIAL"],["Frame Relay","DLT_FRELAY"],["ATM","DLT_ATM_RFC1483"]];var e=this.nodesDataSource.get(this.link.nodes[0].node_id),t=this.nodesDataSource.get(this.link.nodes[1].node_id);this.inputForm.controls.fileName.setValue(e.name+"_"+e.ports[this.link.nodes[0].port_number].name+"_to_"+t.name+"_"+t.ports[this.link.nodes[1].port_number].name)},e.prototype.onYesClick=function(){var e=this,t=!1;if(this.link.nodes.forEach((function(n){"started"===e.nodesDataSource.get(n.node_id).status&&(t=!0)})),t)if(this.inputForm.invalid)this.toasterService.error("Fill all required fields");else{var n={capture_file_name:this.inputForm.get("fileName").value,data_link_type:this.inputForm.get("linkType").value};this.startProgram&&this.packetCaptureService.startCapture(this.server,this.project,this.link,n.capture_file_name),this.linkService.startCaptureOnLink(this.server,this.link,n).subscribe((function(){e.dialogRef.close()}))}else this.toasterService.error("Cannot capture because there is no running device on this link")},e.prototype.onNoClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(x6),_a(um),_a(iJ),_a(c6),_a(Y6))},e.\u0275cmp=ze({type:e,selectors:[["app-start-capture"]],decls:16,vars:5,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"input-field"],["placeholder","Link type","formControlName","linkType","ngDefaultControl",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","File name","formControlName","fileName","matInput","","type","text"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Packet capture"),xa(),Sa(2,"div",1),Sa(3,"form",2),Sa(4,"mat-form-field",3),Sa(5,"mat-select",4),ba(6,Z6,2,2,"mat-option",5),xa(),xa(),Sa(7,"mat-form-field",3),Oa(8,"input",6),xa(),Sa(9,"mat-checkbox",7),Ia("ngModelChange",(function(e){return t.startProgram=e})),_s(10," Start the capture visualization program "),xa(),xa(),xa(),Sa(11,"div",8),Sa(12,"button",9),Ia("click",(function(){return t.onNoClick()})),_s(13,"Cancel"),xa(),Sa(14,"button",10),Ia("click",(function(){return t.onYesClick()})),_s(15,"Ok"),xa(),xa()),2&e&&(ar(3),ka("formGroup",t.inputForm),ar(3),ka("ngForOf",t.linkTypes),ar(3),ka("ngModelOptions",Nc(4,Q6))("ngModel",t.startProgram))},directives:[oQ,Lp,Tf,zp,a0,H0,Mf,Xp,wf,Nh,y0,Q0,Rp,sQ,h$,DY],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function J6(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().startCapture()})),Sa(1,"mat-icon"),_s(2,"loupe"),xa(),Sa(3,"span"),_s(4,"Start capture"),xa(),xa()}}var e8=function(){function e(e){this.dialog=e}return e.prototype.startCapture=function(){var e=this.dialog.open($6,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project,e.link=this.link},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-start-capture-action"]],inputs:{server:"server",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,J6,5,0,"button",0),2&e&&ka("ngIf",!t.link.capturing)},directives:[Hh,OZ,P$],encapsulation:2}),e}();function t8(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().stopCapture()})),Sa(1,"mat-icon"),_s(2,"pause_circle_filled"),xa(),Sa(3,"span"),_s(4,"Stop capture"),xa(),xa()}}var n8=function(){function e(e){this.linkService=e}return e.prototype.stopCapture=function(){this.linkService.stopCaptureOnLink(this.server,this.link).subscribe((function(){}))},e.\u0275fac=function(t){return new(t||e)(_a(x6))},e.\u0275cmp=ze({type:e,selectors:[["app-stop-capture-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,t8,5,0,"button",0),2&e&&ka("ngIf",t.link.capturing)},directives:[Hh,OZ,P$],encapsulation:2}),e}();function i8(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().startCapture()})),Sa(1,"mat-icon"),_s(2,"search"),xa(),Sa(3,"span"),_s(4,"Start Wireshark"),xa(),xa()}}var r8=function(){function e(e){this.packetCaptureService=e}return e.prototype.startCapture=function(){var e=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.server,this.project,this.link,e[0])},e.\u0275fac=function(t){return new(t||e)(_a(Y6))},e.\u0275cmp=ze({type:e,selectors:[["app-start-capture-on-started-link-action"]],inputs:{server:"server",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,i8,5,0,"button",0),2&e&&ka("ngIf",t.link.capturing)},directives:[Hh,OZ,P$],encapsulation:2}),e}();function o8(e,t){if(1&e&&(Sa(0,"div",5),Sa(1,"h6"),_s(2),xa(),Sa(3,"span",6),_s(4),xa(),xa()),2&e){var n=t.$implicit;ar(2),ks(" ",n.name," "),ar(2),ks(" ",n.description," ")}}var a8=function(){function e(e){this.dialogRef=e}return e.prototype.onCloseClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ))},e.\u0275cmp=ze({type:e,selectors:[["app-help-dialog"]],inputs:{title:"title",messages:"messages"},decls:7,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["class","message",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],[1,"message"],[1,"description"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1),xa(),Sa(2,"div",1),ba(3,o8,5,2,"div",2),xa(),Sa(4,"div",3),Sa(5,"button",4),Ia("click",(function(){return t.onCloseClick()})),_s(6,"Close"),xa(),xa()),2&e&&(ar(1),ws(t.title),ar(2),ka("ngForOf",t.messages))},directives:[oQ,Nh,sQ,h$],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]}),e}();function s8(e,t){if(1&e){var n=Pa();Sa(0,"mat-tab-group"),Sa(1,"mat-tab",9),Sa(2,"mat-form-field",10),Sa(3,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().filters.frequency_drop[0]=e})),xa(),xa(),xa(),Sa(4,"mat-tab",12),Sa(5,"mat-form-field",10),Sa(6,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().filters.packet_loss[0]=e})),xa(),xa(),xa(),Sa(7,"mat-tab",14),Sa(8,"mat-form-field",10),Sa(9,"input",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().filters.delay[0]=e})),xa(),xa(),Sa(10,"mat-form-field",10),Sa(11,"input",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().filters.delay[1]=e})),xa(),xa(),xa(),Sa(12,"mat-tab",17),Sa(13,"mat-form-field",10),Sa(14,"input",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().filters.corrupt[0]=e})),xa(),xa(),xa(),Sa(15,"mat-tab",18),Sa(16,"mat-form-field",10),Sa(17,"textarea",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().filters.bpf[0]=e})),xa(),xa(),xa(),xa()}if(2&e){var i=Ba();ar(3),ka("ngModel",i.filters.frequency_drop[0]),ar(3),ka("ngModel",i.filters.packet_loss[0]),ar(3),ka("ngModel",i.filters.delay[0]),ar(2),ka("ngModel",i.filters.delay[1]),ar(3),ka("ngModel",i.filters.corrupt[0]),ar(3),ka("ngModel",i.filters.bpf[0])}}var c8=function(){function e(e,t,n){this.dialogRef=e,this.linkService=t,this.dialog=n}return e.prototype.ngOnInit=function(){var e=this;this.linkService.getLink(this.server,this.link.project_id,this.link.link_id).subscribe((function(t){e.link=t,e.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},e.link.filters&&(e.filters.bpf=e.link.filters.bpf?e.link.filters.bpf:[],e.filters.corrupt=e.link.filters.corrupt?e.link.filters.corrupt:[0],e.filters.delay=e.link.filters.delay?e.link.filters.delay:[0,0],e.filters.frequency_drop=e.link.filters.frequency_drop?e.link.filters.frequency_drop:[0],e.filters.packet_loss=e.link.filters.packet_loss?e.link.filters.packet_loss:[0])})),this.linkService.getAvailableFilters(this.server,this.link).subscribe((function(t){e.availableFilters=t}))},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.onResetClick=function(){var e=this;this.link.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},this.linkService.updateLink(this.server,this.link).subscribe((function(t){e.dialogRef.close()}))},e.prototype.onYesClick=function(){var e=this;this.link.filters=this.filters,this.linkService.updateLink(this.server,this.link).subscribe((function(t){e.dialogRef.close()}))},e.prototype.onHelpClick=function(){var e=this.dialog.open(a8,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;e.title="Help for filters";var t=[];this.availableFilters.forEach((function(e){t.push({name:e.name,description:e.description})})),e.messages=t},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(x6),_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-packet-filters"]],decls:16,vars:1,consts:[["mat-dialog-title",""],[1,"content"],[4,"ngIf"],[1,"bottom-bar"],[1,"spacer"],["mat-dialog-actions","","layout","row",1,"dialog-actions"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"divider"],["label","Frequency drop"],[1,"input-field"],["matInput","","placeholder","Frequency","type","number",3,"ngModel","ngModelChange"],["label","Packet loss"],["matInput","","placeholder","Chance","type","number",3,"ngModel","ngModelChange"],["label","Delay"],["matInput","","placeholder","Latency","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Jitter","type","number",3,"ngModel","ngModelChange"],["label","Corrupt"],["label","Berkeley Packet Filter (BPF)"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Packet filters"),xa(),Sa(2,"div",1),ba(3,s8,18,6,"mat-tab-group",2),xa(),Sa(4,"div",3),Oa(5,"div",4),Sa(6,"div",5),Sa(7,"button",6),Ia("click",(function(){return t.onNoClick()})),_s(8,"Cancel"),xa(),Sa(9,"button",6),Ia("click",(function(){return t.onResetClick()})),_s(10,"Reset"),xa(),Sa(11,"button",7),Ia("click",(function(){return t.onYesClick()})),_s(12,"Apply"),xa(),Oa(13,"div",8),Sa(14,"button",6),Ia("click",(function(){return t.onHelpClick()})),_s(15,"Help"),xa(),xa(),xa()),2&e&&(ar(3),ka("ngIf",t.filters))},directives:[oQ,Hh,sQ,h$,KQ,FQ,a0,y0,zf,wf,Mf,Rp],styles:[".spacer[_ngcontent-%COMP%]{flex-grow:1}.content[_ngcontent-%COMP%]{height:260px}.item[_ngcontent-%COMP%]{height:25px;font-size:10pt}.item[_ngcontent-%COMP%], .item-name[_ngcontent-%COMP%], .item-value[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%}.input-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}.divider[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;flex:1 1 auto}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]}),e}(),l8=function(){function e(e){this.dialog=e}return e.prototype.openPacketFilters=function(){var e=this.dialog.open(c8,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project,e.link=this.link},e.\u0275fac=function(t){return new(t||e)(_a(nQ))},e.\u0275cmp=ze({type:e,selectors:[["app-packet-filters-action"]],inputs:{server:"server",project:"project",link:"link"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.openPacketFilters()})),Sa(1,"mat-icon"),_s(2,"filter_list"),xa(),Sa(3,"span"),_s(4,"Packet filters"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}();function u8(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().resumeLink()})),Sa(1,"mat-icon"),_s(2,"play_arrow"),xa(),Sa(3,"span"),_s(4,"Resume"),xa(),xa()}}var h8=function(){function e(e){this.linkService=e}return e.prototype.resumeLink=function(){this.link.suspend=!1,this.linkService.updateLink(this.server,this.link).subscribe((function(){}))},e.\u0275fac=function(t){return new(t||e)(_a(x6))},e.\u0275cmp=ze({type:e,selectors:[["app-resume-link-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,u8,5,0,"button",0),2&e&&ka("ngIf",t.link.suspend)},directives:[Hh,OZ,P$],encapsulation:2}),e}();function d8(e,t){if(1&e){var n=Pa();Sa(0,"button",1),Ia("click",(function(){return Dt(n),Ba().suspendLink()})),Sa(1,"mat-icon"),_s(2,"pause"),xa(),Sa(3,"span"),_s(4,"Suspend"),xa(),xa()}}var f8=function(){function e(e){this.linkService=e}return e.prototype.suspendLink=function(){this.link.suspend=!0,this.linkService.updateLink(this.server,this.link).subscribe((function(){}))},e.\u0275fac=function(t){return new(t||e)(_a(x6))},e.\u0275cmp=ze({type:e,selectors:[["app-suspend-link-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ba(0,d8,5,0,"button",0),2&e&&ka("ngIf",!t.link.suspend)},directives:[Hh,OZ,P$],encapsulation:2}),e}(),p8=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnChanges=function(){this.command=1===this.nodes.length&&0===this.drawings.length?this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.drawings[0].locked?"Unlock item":"Lock item":"Lock/unlock items"},e.prototype.lock=function(){var e=this;this.nodes.forEach((function(t){t.locked=!t.locked,e.nodeService.updateNode(e.server,t).subscribe((function(t){e.nodesDataSource.update(t)}))})),this.drawings.forEach((function(t){t.locked=!t.locked,e.drawingService.update(e.server,t).subscribe((function(t){e.drawingsDataSource.update(t)}))}))},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(u6),_a(D$),_a(a6))},e.\u0275cmp=ze({type:e,selectors:[["app-lock-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},features:[ct],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.lock()})),Sa(1,"mat-icon"),_s(2,"lock"),xa(),Sa(3,"span"),_s(4),xa(),xa()),2&e&&(ar(4),ws(t.command))},directives:[OZ,P$],encapsulation:2}),e}(),m8=function(){function e(e,t,n,i,r,o){this.nodesDataSource=e,this.drawingsDataSource=t,this.linksDataSource=n,this.nodeService=i,this.drawingService=r,this.linkService=o}return e.prototype.ngOnInit=function(){},e.prototype.delete=function(){var e=this;this.nodes.forEach((function(t){e.nodesDataSource.remove(t),e.nodeService.delete(e.server,t).subscribe((function(e){}))})),this.drawings.forEach((function(t){e.drawingsDataSource.remove(t),e.drawingService.delete(e.server,t).subscribe((function(e){}))})),this.links.forEach((function(t){e.linksDataSource.remove(t),e.linkService.deleteLink(e.server,t).subscribe((function(){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(u6),_a(O6),_a(D$),_a(a6),_a(x6))},e.\u0275cmp=ze({type:e,selectors:[["app-delete-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings",links:"links"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.delete()})),Sa(1,"mat-icon"),_s(2,"delete"),xa(),Sa(3,"span"),_s(4,"Delete"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),g8=function(){function e(e,t){this.nodesDataSource=e,this.nodeService=t}return e.prototype.ngOnInit=function(){},e.prototype.alignHorizontally=function(){var e=this,t=0;this.nodes.forEach((function(e){t+=e.y})),t/=this.nodes.length,this.nodes.forEach((function(n){n.y=t,e.nodesDataSource.update(n),e.nodeService.update(e.server,n).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-align-horizontally-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.alignHorizontally()})),Sa(1,"mat-icon"),_s(2,"more_horiz"),xa(),Sa(3,"span"),_s(4,"Align horizontally"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}(),v8=function(){function e(e,t){this.nodesDataSource=e,this.nodeService=t}return e.prototype.ngOnInit=function(){},e.prototype.alignVertically=function(){var e=this,t=0;this.nodes.forEach((function(e){t+=e.x})),t/=this.nodes.length,this.nodes.forEach((function(n){n.x=t,e.nodesDataSource.update(n),e.nodeService.update(e.server,n).subscribe((function(e){}))}))},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-align-vertically-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.alignVertically()})),Sa(1,"mat-icon"),_s(2,"more_vert"),xa(),Sa(3,"span"),_s(4,"Align vertically"),xa(),xa())},directives:[OZ,P$],encapsulation:2}),e}();function b8(e,t){if(1&e&&Oa(0,"app-show-node-action",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function y8(e,t){if(1&e&&Oa(0,"app-config-node-action",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function _8(e,t){if(1&e&&Oa(0,"app-start-node-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function w8(e,t){if(1&e&&Oa(0,"app-suspend-node-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function k8(e,t){if(1&e&&Oa(0,"app-stop-node-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function C8(e,t){if(1&e&&Oa(0,"app-reload-node-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function S8(e,t){if(1&e&&Oa(0,"app-http-console-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function x8(e,t){if(1&e&&Oa(0,"app-http-console-new-tab-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function O8(e,t){if(1&e&&Oa(0,"app-console-device-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function M8(e,t){if(1&e&&Oa(0,"app-console-device-action-browser",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function T8(e,t){if(1&e&&Oa(0,"app-open-file-explorer-action",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function E8(e,t){if(1&e&&Oa(0,"app-change-hostname-action",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function P8(e,t){if(1&e&&Oa(0,"app-change-symbol-action",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function j8(e,t){if(1&e&&Oa(0,"app-duplicate-action",16),2&e){var n=Ba();ka("server",n.server)("project",n.project)("nodes",n.nodes)("drawings",n.drawings)}}function A8(e,t){if(1&e&&Oa(0,"app-edit-style-action",17),2&e){var n=Ba();ka("server",n.server)("project",n.project)("drawing",n.drawings[0])}}function I8(e,t){if(1&e&&Oa(0,"app-edit-text-action",18),2&e){var n=Ba();ka("server",n.server)("project",n.project)("drawing",n.drawings[0])("node",n.nodes[0])("label",n.labels[0])("link",n.links[0])("linkNode",n.linkNodes[0])}}function D8(e,t){if(1&e&&Oa(0,"app-edit-config-action",19),2&e){var n=Ba();ka("server",n.server)("project",n.project)("node",n.nodes[0])}}function R8(e,t){if(1&e&&Oa(0,"app-export-config-action",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function L8(e,t){if(1&e&&Oa(0,"app-import-config-action",14),2&e){var n=Ba();ka("server",n.server)("node",n.nodes[0])}}function F8(e,t){if(1&e&&Oa(0,"app-move-layer-up-action",20),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function N8(e,t){if(1&e&&Oa(0,"app-move-layer-down-action",20),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function B8(e,t){if(1&e&&Oa(0,"app-bring-to-front-action",20),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function H8(e,t){if(1&e&&Oa(0,"app-start-capture-action",21),2&e){var n=Ba();ka("server",n.server)("project",n.project)("link",n.links[0])}}function z8(e,t){if(1&e&&Oa(0,"app-stop-capture-action",22),2&e){var n=Ba();ka("server",n.server)("link",n.links[0])}}function V8(e,t){if(1&e&&Oa(0,"app-start-capture-on-started-link-action",21),2&e){var n=Ba();ka("server",n.server)("project",n.project)("link",n.links[0])}}function q8(e,t){if(1&e&&Oa(0,"app-packet-filters-action",21),2&e){var n=Ba();ka("server",n.server)("project",n.project)("link",n.links[0])}}function U8(e,t){if(1&e&&Oa(0,"app-resume-link-action",22),2&e){var n=Ba();ka("server",n.server)("link",n.links[0])}}function G8(e,t){if(1&e&&Oa(0,"app-suspend-link-action",22),2&e){var n=Ba();ka("server",n.server)("link",n.links[0])}}function W8(e,t){if(1&e&&Oa(0,"app-lock-action",20),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function K8(e,t){if(1&e&&Oa(0,"app-delete-action",23),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)("drawings",n.drawings)("links",n.links)}}function X8(e,t){if(1&e&&Oa(0,"app-align-horizontally-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}function Y8(e,t){if(1&e&&Oa(0,"app-align-vertically-action",15),2&e){var n=Ba();ka("server",n.server)("nodes",n.nodes)}}var Z8=function(){function e(e,t,n,i){this.sanitizer=e,this.changeDetector=t,this.electronService=n,this.projectService=i,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledServer=!1}return e.prototype.ngOnInit=function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledServer="bundled"===this.server.location},e.prototype.setPosition=function(e,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},e.prototype.openMenuForDrawing=function(e,t,n){this.resetCapabilities(),this.hasTextCapabilities=e.element instanceof BZ,this.drawings=[e],this.setPosition(t,n),this.contextMenu.openMenu()},e.prototype.openMenuForNode=function(e,t,n){this.resetCapabilities(),this.nodes=[e],this.setPosition(t,n),this.contextMenu.openMenu()},e.prototype.openMenuForLabel=function(e,t,n,i){this.resetCapabilities(),this.labels=[e],this.nodes=[t],this.setPosition(n,i),this.contextMenu.openMenu()},e.prototype.openMenuForInterfaceLabel=function(e,t,n,i){this.resetCapabilities(),this.linkNodes=[e],this.links=[t],this.setPosition(n,i),this.contextMenu.openMenu()},e.prototype.openMenuForListOfElements=function(e,t,n,i,r,o){this.resetCapabilities(),this.drawings=e,this.nodes=t,this.labels=n,this.links=i,this.setPosition(r,o),this.contextMenu.openMenu()},e.prototype.resetCapabilities=function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1},e.\u0275fac=function(t){return new(t||e)(_a(Jd),_a(No),_a(hU),_a(GK))},e.\u0275cmp=ze({type:e,selectors:[["app-context-menu"]],viewQuery:function(e,t){var n;1&e&&cl(LZ,!0),2&e&&al(n=fl())&&(t.contextMenu=n.first)},inputs:{project:"project",server:"server"},decls:36,vars:37,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextMenu","matMenu"],[3,"server","node",4,"ngIf"],[3,"server","nodes",4,"ngIf"],[3,"server","project","nodes","drawings",4,"ngIf"],[3,"server","project","drawing",4,"ngIf"],[3,"server","project","drawing","node","label","link","linkNode",4,"ngIf"],[3,"server","project","node",4,"ngIf"],[3,"server","nodes","drawings",4,"ngIf"],[3,"server","project","link",4,"ngIf"],[3,"server","link",4,"ngIf"],[3,"server","nodes","drawings","links",4,"ngIf"],[3,"server","node"],[3,"server","nodes"],[3,"server","project","nodes","drawings"],[3,"server","project","drawing"],[3,"server","project","drawing","node","label","link","linkNode"],[3,"server","project","node"],[3,"server","nodes","drawings"],[3,"server","project","link"],[3,"server","link"],[3,"server","nodes","drawings","links"]],template:function(e,t){if(1&e&&(Sa(0,"div",0),Oa(1,"span",1),Sa(2,"mat-menu",2,3),ba(4,b8,1,2,"app-show-node-action",4),ba(5,y8,1,2,"app-config-node-action",4),ba(6,_8,1,2,"app-start-node-action",5),ba(7,w8,1,2,"app-suspend-node-action",5),ba(8,k8,1,2,"app-stop-node-action",5),ba(9,C8,1,2,"app-reload-node-action",5),ba(10,S8,1,2,"app-http-console-action",5),ba(11,x8,1,2,"app-http-console-new-tab-action",5),ba(12,O8,1,2,"app-console-device-action",5),ba(13,M8,1,2,"app-console-device-action-browser",4),ba(14,T8,1,2,"app-open-file-explorer-action",4),ba(15,E8,1,2,"app-change-hostname-action",4),ba(16,P8,1,2,"app-change-symbol-action",4),ba(17,j8,1,4,"app-duplicate-action",6),ba(18,A8,1,3,"app-edit-style-action",7),ba(19,I8,1,7,"app-edit-text-action",8),ba(20,D8,1,3,"app-edit-config-action",9),ba(21,R8,1,2,"app-export-config-action",4),ba(22,L8,1,2,"app-import-config-action",4),ba(23,F8,1,3,"app-move-layer-up-action",10),ba(24,N8,1,3,"app-move-layer-down-action",10),ba(25,B8,1,3,"app-bring-to-front-action",10),ba(26,H8,1,3,"app-start-capture-action",11),ba(27,z8,1,2,"app-stop-capture-action",12),ba(28,V8,1,3,"app-start-capture-on-started-link-action",11),ba(29,q8,1,3,"app-packet-filters-action",11),ba(30,U8,1,2,"app-resume-link-action",12),ba(31,G8,1,2,"app-suspend-link-action",12),ba(32,W8,1,3,"app-lock-action",10),ba(33,K8,1,4,"app-delete-action",13),ba(34,X8,1,2,"app-align-horizontally-action",5),ba(35,Y8,1,2,"app-align-vertically-action",5),xa(),xa()),2&e){var n=ya(3);rs("left",t.leftPosition)("top",t.topPosition),ar(1),ka("matMenuTriggerFor",n),ar(3),ka("ngIf",1===t.nodes.length),ar(1),ka("ngIf",1===t.nodes.length),ar(1),ka("ngIf",t.nodes.length),ar(1),ka("ngIf",t.nodes.length),ar(1),ka("ngIf",t.nodes.length),ar(1),ka("ngIf",t.nodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length&&t.isElectronApp),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length&&!t.isElectronApp),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length&&t.isElectronApp),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),ar(1),ka("ngIf",t.drawings.length>0||t.nodes.length>0),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.drawings.length&&!t.hasTextCapabilities),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&(1===t.drawings.length&&t.hasTextCapabilities&&0===t.labels.length&&0===t.linkNodes.length||1===t.labels.length&&0===t.linkNodes.length&&0===t.drawings.length||1===t.linkNodes.length&&0===t.labels.length&&0===t.drawings.length)),ar(1),ka("ngIf",1===t.nodes.length&&"vpcs"===t.nodes[0].node_type),ar(1),ka("ngIf",1===t.nodes.length&&("vpcs"===t.nodes[0].node_type||"iou"===t.nodes[0].node_type||"dynamips"===t.nodes[0].node_type)),ar(1),ka("ngIf",1===t.nodes.length&&("vpcs"===t.nodes[0].node_type||"iou"===t.nodes[0].node_type||"dynamips"===t.nodes[0].node_type)),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length>0||t.nodes.length>0)),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length>0||t.nodes.length>0||t.links.length>0)&&0===t.linkNodes.length),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>1),ar(1),ka("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>1)}},directives:[LZ,AZ,Hh,A$,C4,x4,M4,E4,j4,D4,R4,L4,F4,N4,H4,Y4,d6,S6,R6,H6,q6,G6,W6,K6,X6,e8,n8,r8,l8,h8,f8,p8,m8,g8,v8],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute;min-height:0}.mat-menu-panel[_ngcontent-%COMP%] ng-trigger[_ngcontent-%COMP%] ng-trigger-transformMenu[_ngcontent-%COMP%] ng-tns-c7-5[_ngcontent-%COMP%] context-menu-items[_ngcontent-%COMP%] mat-menu-after[_ngcontent-%COMP%] mat-menu-below[_ngcontent-%COMP%] ng-star-inserted[_ngcontent-%COMP%] mat-elevation-z4[_ngcontent-%COMP%]{min-height:0!important}"]}),e}(),Q8=["container"],$8=function(){function e(e,t,n,i,r,o,a,s){this.sanitizer=e,this.changeDetector=t,this.mapSettingsService=n,this.electronService=i,this.consoleService=r,this.toasterService=o,this.router=a,this.resolver=s,this.isElectronApp=!1}return e.prototype.ngOnInit=function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp},e.prototype.setPosition=function(e,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},e.prototype.openMenu=function(e,t,n){this.node=e;var i=this.mapSettingsService.getConsoleContextManuAction();i?"web console"===i?this.openWebConsole():"web console in new tab"===i?this.openWebConsoleInNewTab():"console"===i&&this.openConsole():(this.setPosition(t,n),this.contextConsoleMenu.openMenu())},e.prototype.openConsole=function(){if(this.mapSettingsService.setConsoleContextMenuAction("console"),this.isElectronApp){var e=this.resolver.resolveComponentFactory(L4);this.componentRef=this.container.createComponent(e),this.componentRef.instance.server=this.server,this.componentRef.instance.nodes=[this.node],this.componentRef.instance.console()}else e=this.resolver.resolveComponentFactory(F4),this.componentBrowserRef=this.container.createComponent(e),this.componentBrowserRef.instance.server=this.server,this.componentBrowserRef.instance.node=this.node,this.componentBrowserRef.instance.openConsole()},e.prototype.openWebConsole=function(){this.mapSettingsService.setConsoleContextMenuAction("web console"),"started"===this.node.status?(this.mapSettingsService.logConsoleSubject.next(!0),this.consoleService.openConsoleForNode(this.node)):this.toasterService.error("To open console please start the node")},e.prototype.openWebConsoleInNewTab=function(){if(this.mapSettingsService.setConsoleContextMenuAction("web console in new tab"),"started"===this.node.status){var e=this.router.url.split("/");window.open("/static/web-ui/"+e[1]+"/"+e[2]+"/"+e[3]+"/"+e[4]+"/nodes/"+this.node.node_id)}else this.toasterService.error("To open console please start the node")},e.\u0275fac=function(t){return new(t||e)(_a(Jd),_a(No),_a(I4),_a(hU),_a(A4),_a(iJ),_a(nK),_a(Ws))},e.\u0275cmp=ze({type:e,selectors:[["app-context-console-menu"]],viewQuery:function(e,t){var n;1&e&&(cl(LZ,!0),cl(Q8,!0,yc)),2&e&&(al(n=fl())&&(t.contextConsoleMenu=n.first),al(n=fl())&&(t.container=n.first))},inputs:{project:"project",server:"server"},decls:23,vars:6,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextConsoleMenu","matMenu"],[1,"title"],["mat-menu-item","",3,"click"],[3,"hidden"],["container",""]],template:function(e,t){if(1&e&&(Sa(0,"div",0),Oa(1,"span",1),Sa(2,"mat-menu",2,3),Sa(4,"span",4),_s(5," Choose default behavior for double click on node "),xa(),Sa(6,"button",5),Ia("click",(function(){return t.openConsole()})),Sa(7,"mat-icon"),_s(8,"web_asset"),xa(),Sa(9,"span"),_s(10,"Open console"),xa(),xa(),Sa(11,"button",5),Ia("click",(function(){return t.openWebConsole()})),Sa(12,"mat-icon"),_s(13,"http"),xa(),Sa(14,"span"),_s(15,"Open web console"),xa(),xa(),Sa(16,"button",5),Ia("click",(function(){return t.openWebConsoleInNewTab()})),Sa(17,"mat-icon"),_s(18,"http"),xa(),Sa(19,"span"),_s(20,"Open web console in new tab"),xa(),xa(),xa(),xa(),Oa(21,"template",6,7)),2&e){var n=ya(3);rs("left",t.leftPosition)("top",t.topPosition),ar(1),ka("matMenuTriggerFor",n),ar(20),ka("hidden",!0)}},directives:[LZ,AZ,OZ,P$],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute;min-height:0}.mat-menu-panel[_ngcontent-%COMP%] ng-trigger[_ngcontent-%COMP%] ng-trigger-transformMenu[_ngcontent-%COMP%] ng-tns-c7-5[_ngcontent-%COMP%] context-menu-items[_ngcontent-%COMP%] mat-menu-after[_ngcontent-%COMP%] mat-menu-below[_ngcontent-%COMP%] ng-star-inserted[_ngcontent-%COMP%] mat-elevation-z4[_ngcontent-%COMP%]{min-height:0!important}.title[_ngcontent-%COMP%]{margin:10px}"]}),e}(),J8=function(){function e(e,t,n){this.nodesDataSource=e,this.linksDataSource=t,this.drawingsDataSource=n,this.nodeNotificationEmitter=new Yc,this.linkNotificationEmitter=new Yc,this.drawingNotificationEmitter=new Yc,this.infoNotificationEmitter=new Yc,this.warningNotificationEmitter=new Yc,this.errorNotificationEmitter=new Yc}return e.prototype.handleMessage=function(e){"node.updated"===e.action&&(this.nodesDataSource.update(e.event),this.nodeNotificationEmitter.emit(e)),"node.created"===e.action&&(this.nodesDataSource.add(e.event),this.nodeNotificationEmitter.emit(e)),"node.deleted"===e.action&&(this.nodesDataSource.remove(e.event),this.nodeNotificationEmitter.emit(e)),"link.created"===e.action&&(this.linksDataSource.add(e.event),this.linkNotificationEmitter.emit(e)),"link.updated"===e.action&&(this.linksDataSource.update(e.event),this.linkNotificationEmitter.emit(e)),"link.deleted"===e.action&&(this.linksDataSource.remove(e.event),this.linkNotificationEmitter.emit(e)),"drawing.created"===e.action&&(this.drawingsDataSource.add(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.updated"===e.action&&(this.drawingsDataSource.update(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.deleted"===e.action&&(this.drawingsDataSource.remove(e.event),this.drawingNotificationEmitter.emit(e)),"log.error"===e.action&&this.errorNotificationEmitter.emit(e.event.message),"log.warning"===e.action&&this.warningNotificationEmitter.emit(e.event.message),"log.info"===e.action&&this.infoNotificationEmitter.emit(e.event.message)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(c6),we(O6),we(u6))}}),e}(),e7=function(){return function(e,t,n){void 0===n&&(n=!1),this.visible=e,this.error=t,this.clear=n}}(),t7=function(){function e(){this.state=new Um.a(new e7(!1))}return e.prototype.setError=function(e){this.state.next(new e7(!1,e.error))},e.prototype.clear=function(){this.state.next(new e7(!1,null,!0))},e.prototype.activate=function(){this.state.next(new e7(!0))},e.prototype.deactivate=function(){this.state.next(new e7(!1))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),n7=function(){function e(){this.changesDetected=new Yc,this.hasBeenDrawn=!1}return e.prototype.detectChanges=function(){this.changesDetected.emit(!0)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),i7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t}(function(){return function(e,t){this.event=e,this.node=t}}()),r7=function(){return function(){}}(),o7=function(){return function(){}}(),a7=function(){function e(){}return e.prototype.calculate=function(e,t){var n=document.createElement("text");n.innerText=e,n.setAttribute("fill","#00000"),n.setAttribute("fill-opacity","0"),n.setAttribute("style",t),document.documentElement.appendChild(n);var i=n.getBoundingClientRect();return document.documentElement.removeChild(n),{width:i.width,height:i.height}},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),s7=function(){function e(){}return e.prototype.fix=function(e){var t=T6.parse(e,{context:"declarationList"});return t.children.forEach((function(e){"font-size"===e.property&&e.value&&e.value.children&&e.value.children.forEach((function(e){if("Number"===e.type){var t=e.value.toString();t.indexOf("pt")>=0||t.indexOf("px")>=0||(e.value=t+"pt")}}))})),T6.generate(t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),c7=function(){function e(e,t,n){this.fontBBoxCalculator=e,this.cssFixer=t,this.fontFixer=n}return e.prototype.convert=function(e,t){var n=new o7;n.rotation=e.rotation,n.style=e.style,n.text=e.text,n.x=e.x,n.y=e.y,n.originalX=e.x,n.originalY=e.y,void 0!==t&&(n.id=t.node_id,n.nodeId=t.node_id);var i=this.cssFixer.fix(n.style),r=this.fontFixer.fixStyles(i),o=this.fontBBoxCalculator.calculate(n.text,r);return null!==n.x&&(n.x+=3),null!==n.y&&(n.y+=o.height),n},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(a7),we(s7),we(E6))}}),e}(),l7=function(){return function(){}}(),u7=function(){function e(){}return e.prototype.convert=function(e){var t=new l7;return t.adapterNumber=e.adapter_number,t.linkType=e.link_type,t.name=e.name,t.portNumber=e.port_number,t.shortName=e.short_name,t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),h7=function(){function e(e,t,n,i,r){this.labelToMapLabel=e,this.portToMapPort=t,this.fontBBoxCalculator=n,this.cssFixer=i,this.fontFixer=r}return e.prototype.convert=function(e){var t=this,n=new r7;if(n.id=e.node_id,n.commandLine=e.command_line,n.computeId=e.compute_id,n.console=e.console,n.consoleHost=e.console_host,n.consoleType=e.console_type,n.firstPortName=e.first_port_name,n.height=e.height,n.label=this.labelToMapLabel?this.labelToMapLabel.convert(e.label,{node_id:e.node_id}):void 0,n.locked=e.locked,n.name=e.name,n.nodeDirectory=e.node_directory,n.nodeType=e.node_type,n.portNameFormat=e.port_name_format,n.portSegmentSize=e.port_segment_size,n.ports=e.ports?e.ports.map((function(e){return t.portToMapPort.convert(e)})):[],n.projectId=e.project_id,n.status=e.status,n.symbol=e.symbol,n.symbolUrl=e.symbol_url,n.usage=e.usage,n.width=e.width,n.x=e.x,n.y=e.y,n.z=e.z,void 0!==n.label){var i=this.cssFixer.fix(n.label.style),r=this.fontFixer.fixStyles(i),o=this.fontBBoxCalculator.calculate(n.label.text,r);null!==e.label.x&&null!==e.label.y||(n.label.x=e.width/2-o.width/2+3,n.label.y=-8)}return n},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(c7),we(u7),we(a7),we(s7),we(E6))}}),e}(),d7=function(){return function(){}}(),f7=function(){function e(e){this.labelToMapLabel=e}return e.prototype.convert=function(e,t){var n=new d7;return n.nodeId=e.node_id,n.adapterNumber=e.adapter_number,n.portNumber=e.port_number,n.label=this.labelToMapLabel.convert(e.label),void 0!==t&&(n.linkId=t.link_id,n.id=n.nodeId+"-"+n.linkId),n},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(c7))}}),e}(),p7=function(){return function(){this.isSelected=!1,this.isMultiplied=!1}}(),m7=function(){function e(e){this.linkNodeToMapLinkNode=e}return e.prototype.convert=function(e){var t=this,n=new p7;return n.id=e.link_id,n.captureFileName=e.capture_file_name,n.captureFilePath=e.capture_file_path,n.capturing=e.capturing,n.filters=e.filters,n.linkType=e.link_type,n.nodes=e.nodes.map((function(n){return t.linkNodeToMapLinkNode.convert(n,{link_id:e.link_id})})),n.projectId=e.project_id,n.suspend=e.suspend,n},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(f7))}}),e}(),g7=function(){return function(){}}(),v7=function(){function e(){}return e.prototype.convert=function(e){var t=new g7;return t.id=e.symbol_id,t.builtin=e.builtin,t.filename=e.filename,t.raw=e.raw,t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),b7=function(){return function(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]),this.index=e,this.nodes=t,this.drawings=n,this.links=i}}(),y7=function(){function e(){this.layers={}}return e.prototype.getLayersList=function(){var e=this;return Object.keys(this.layers).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e.layers[t]}))},e.prototype.setNodes=function(e){var t=this;e.forEach((function(e){t.getLayerForKey(e.z.toString()).nodes.push(e)}))},e.prototype.setDrawings=function(e){var t=this;e.forEach((function(e){t.getLayerForKey(e.z.toString()).drawings.push(e)}))},e.prototype.setLinks=function(e){var t=this;e.filter((function(e){return e.source&&e.target})).forEach((function(e){var n=Math.min(e.source.z,e.target.z).toString();t.getLayerForKey(n).links.push(e)}))},e.prototype.clear=function(){this.layers={}},e.prototype.getLayerForKey=function(e){return e in this.layers||(this.layers[e]=new b7,this.layers[e].index=Number(e)),this.layers[e]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),_7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.prototype.getItemKey=function(e){return e.id},t}(s6),w7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return k7(e||t)}}),t}(_7),k7=Qn(w7),C7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return S7(e||t)}}),t}(_7),S7=Qn(C7),x7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return O7(e||t)}}),t}(_7),O7=Qn(x7),M7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return T7(e||t)}}),t}(_7),T7=Qn(M7),E7=function(){function e(){this.LINK_WIDTH=2}return e.prototype.linkTranslation=function(e,t,n){var i,r,o=n.y-t.y;if(0===o)i=0,r=e;else{var a=Math.atan((n.x-t.x)/o);i=-e*Math.cos(a),r=e*Math.sin(a)}return{dx:i,dy:r}},e.prototype.assignDataToLinks=function(e){var t=this,n={};e.forEach((function(e,i){var r=e.source.id,o=e.target.id,a=r<o?r+","+o:o+","+r,s=1;a in n?s=n[a].push(i):n[a]=[i],e.distance=s%2==0?s*t.LINK_WIDTH:(1-s)*t.LINK_WIDTH}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),P7=function(){function e(e,t,n,i,r,o,a,s,c,l){this.mapNodesDataSource=e,this.mapLinksDataSource=t,this.mapDrawingsDataSource=n,this.mapSymbolsDataSource=i,this.nodeToMapNode=r,this.linkToMapLink=o,this.drawingToMapDrawing=a,this.symbolToMapSymbol=s,this.layersManager=c,this.multiLinkCalculator=l}return e.prototype.setNodes=function(e){var t=this;if(e){var n=e.map((function(e){return t.nodeToMapNode.convert(e)}));this.mapNodesDataSource.set(n),this.assignDataToLinks(),this.onDataUpdate()}},e.prototype.setLinks=function(e){var t=this;if(e){var n=e.map((function(e){return t.linkToMapLink.convert(e)}));this.mapLinksDataSource.set(n),this.assignDataToLinks(),this.onDataUpdate()}},e.prototype.setDrawings=function(e){var t=this;if(e){var n=e.map((function(e){return t.drawingToMapDrawing.convert(e)}));this.mapDrawingsDataSource.set(n),this.onDataUpdate()}},e.prototype.setSymbols=function(e){var t=this;if(e){var n=e.map((function(e){return t.symbolToMapSymbol.convert(e)}));this.mapSymbolsDataSource.set(n)}},e.prototype.getNodes=function(){return this.mapNodesDataSource.getItems()},e.prototype.getLinks=function(){return this.mapLinksDataSource.getItems()},e.prototype.getDrawings=function(){return this.mapDrawingsDataSource.getItems()},e.prototype.getSymbols=function(){return this.mapSymbolsDataSource.getItems()},e.prototype.onDataUpdate=function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())},e.prototype.assignDataToLinks=function(){var e={};this.getNodes().forEach((function(t){e[t.id]=t})),this.getLinks().forEach((function(t){var n=t.nodes[0].nodeId,i=t.nodes[1].nodeId;n in e&&(t.source=e[n]),i in e&&(t.target=e[i]),t.source&&t.target&&(t.x=t.source.x+.5*(t.target.x-t.source.x),t.y=t.source.y+.5*(t.target.y-t.source.y))})),this.multiLinkCalculator.assignDataToLinks(this.getLinks())},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(w7),we(C7),we(x7),we(M7),we(h7),we(m7),we(m6),we(v7),we(y7),we(E7))}}),e}(),j7=function(){function e(){this.selection={},this.selected=new Yc,this.unselected=new Yc}return e.prototype.setSelected=function(e){var t=this,n=this.convertToKeyDict(e),i=Object.keys(n).filter((function(e){return!t.isSelectedByKey(e)})).map((function(e){return n[e]})),r=Object.keys(this.selection).filter((function(e){return!(e in n)})).map((function(e){return t.selection[e]}));this.selection=n,i.length>0&&this.selected.emit(i),r.length>0&&this.unselected.emit(r)},e.prototype.getSelected=function(){var e=this;return Object.keys(this.selection).map((function(t){return e.selection[t]}))},e.prototype.isSelected=function(e){var t=this.getKey(e);return this.isSelectedByKey(t)},e.prototype.isSelectedByKey=function(e){return e in this.selection},e.prototype.getKey=function(e){return e.constructor.name+"-"+e.id},e.prototype.convertToKeyDict=function(e){var t=this,n={};return e.forEach((function(e){n[t.getKey(e)]=e})),n},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),A7=function(){return function(){}}(),I7=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return DK(t,e),t}(A7),D7=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return DK(t,e),t}(A7),R7=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return DK(t,e),t}(A7),L7=function(){function e(){this.start=new Yc,this.drag=new Yc,this.end=new Yc}return e.prototype.call=function(e){e.call(this.behaviour())},e.prototype.behaviour=function(){var e,t,n,i=this;return IM().on("start",(function(r){t=Ik.sourceEvent.clientX,n=Ik.sourceEvent.clientY,(e=new I7(r)).dx=Ik.dx,e.dy=Ik.dy,e.x=Ik.x,e.y=Ik.y,i.start.emit(e)})).on("drag",(function(e){var r=new D7(e);r.dx=Ik.sourceEvent.clientX-t,r.dy=Ik.sourceEvent.clientY-n,t=Ik.sourceEvent.clientX,n=Ik.sourceEvent.clientY,i.drag.emit(r)})).on("end",(function(t){var n=new R7(t);n.dx=Ik.x-e.x,n.dy=Ik.y-e.y,i.end.emit(n)}))},e}(),F7=function(){function e(){this.isReadOnly=!1}return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),N7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t}(function(){return function(e,t,n){this.datum=e,this.dx=t,this.dy=n}}()),B7=function(){return function(e,t,n,i,r){this.datum=e,this.x=t,this.y=n,this.width=i,this.height=r}}(),H7=function(){return function(e,t){this.x=e,this.y=t}}(),z7=function(){return function(e,t,n){this.datum=e,this.x=t,this.y=n}}(),V7=function(){return function(e,t,n){this.savedText=e,this.x=t,this.y=n}}(),q7=function(){return function(e,t,n){this.textDrawingId=e,this.editedText=t,this.textElement=n}}(),U7=function(){return function(e,t){this.event=e,this.drawing=t}}(),G7=function(){return function(e,t){this.event=e,this.link=t}}(),W7=function(){return function(e,t){this.event=e,this.interfaceLabel=t}}(),K7=function(){return function(e,t){this.event=e,this.label=t}}(),X7=function(){function e(e,t,n,i){this.cssFixer=e,this.fontFixer=t,this.selectionManager=n,this.mapSettings=i,this.onContextMenu=new Yc,this.draggable=new L7}return e.prototype.redrawLabel=function(e,t){this.drawLabel(this.selectLabel(e,t))},e.prototype.draw=function(e){var t=this,n=e.selectAll("g.label_container").data((function(e){return[e.label]})),i=n.enter().append("g").attr("class","label_container").attr("label_id",(function(e){return e.id})),r=n.merge(i).on("contextmenu",(function(e,n){event.preventDefault(),t.onContextMenu.emit(new K7(event,e))}));this.drawLabel(r),n.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(n)},e.prototype.drawLabel=function(e){var t=this,n=e.selectAll("g.label_body").data((function(e){return[e]})),i=n.enter().append("g").attr("class","label_body");i.append("text").attr("class","label"),i.append("rect").attr("class","label_selection");var r=n.merge(i);r.select("text.label").attr("label_id",(function(e){return e.id})).attr("style",(function(e){var n=t.cssFixer.fix(e.style);return t.fontFixer.fixStyles(n)})).text((function(e){return e.text})).attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).attr("transform",(function(e){return"rotate("+e.rotation+", "+e.x+", "+e.y+")"})),r.select("rect.label_selection").attr("visibility",(function(e){return t.selectionManager.isSelected(e)?"visible":"hidden"})).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each((function(e){var t=Kk(this),n=r.select('text[label_id="'+e.id+'"]').node().getBBox();t.attr("width",n.width+4),t.attr("height",n.height+4),t.attr("x",n.x-2),t.attr("y",n.y-2),t.attr("transform","rotate("+e.rotation+", "+e.x+", "+e.y+")")}))},e.prototype.selectLabel=function(e,t){return e.selectAll('g.label_container[label_id="'+t.id+'"]')},e.NODE_LABEL_MARGIN=3,e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(s7),we(E6),we(j7),we(F7))}}),e}(),Y7=function(){function e(){this.dragged=new Yc,this.labelDragged=new Yc,this.clicked=new Yc}return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Z7=function(){function e(e,t,n,i,r){this.graphDataManager=e,this.selectionManager=t,this.labelWidget=n,this.nodesEventSource=i,this.mapSettingsService=r,this.onContextMenu=new Yc,this.onContextConsoleMenu=new Yc,this.onNodeClicked=new Yc}return e.prototype.draw=function(e){var t=this,n=this,i=e.selectAll("g.node_body").data((function(e){return[e]})),r=i.enter().append("g").attr("class","node_body");r.append("image");var o=i.merge(r).classed("selected",(function(e){return t.selectionManager.isSelected(e)})).on("click",(function(e){t.nodesEventSource.clicked.emit(new z7(e,Ik.pageX,Ik.pageY))}));o.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&o.append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",(function(e){return e.width/2-13})).attr("y",(function(e){return e.height/2-13})).attr("fill","red"),o.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&o.append("text").attr("class","layer_label").text((function(e){return e.z})).attr("x",(function(e){return e.z>=100?e.width/2-13:e.z>=10?e.width/2-9:e.width/2-5})).attr("y",(function(e){return e.height/2+5})).attr("style",(function(){var e=[];return e.push('font-family: "Noto Sans"'),e.push("font-size: 11pt"),e.push("font-weight: bold"),e.join("; ")})).attr("fill","#ffffff"),o.select("image").on("contextmenu",(function(e,t){Ik.preventDefault(),n.onContextMenu.emit(new i7(Ik,e))})).on("dblclick",(function(e,t){Ik.preventDefault(),n.onContextConsoleMenu.emit(new i7(Ik,e))})).attr("xnode:href",(function(e){return e.symbolUrl})).attr("width",(function(e){return"cloud"===e.nodeType||"nat"===e.nodeType?120:e.width?e.width>64?64:e.width:60})).attr("height",(function(e){return"cloud"===e.nodeType||"nat"===e.nodeType?60:e.height?e.height>64?64:e.height:60})).attr("x",(function(e){return 0})).attr("y",(function(e){return 0})).on("mouseover",(function(e){Kk(this).attr("class","over")})).on("mouseout",(function(e){Kk(this).attr("class","")})),o.attr("transform",(function(e){return"translate("+e.x+","+e.y+")"})),this.labelWidget.draw(o)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(P7),we(j7),we(X7),we(Y7),we(I4))}}),e}(),Q7=function(){function e(e){this.fontFixer=e}return e.prototype.draw=function(t){var n=this,i=t.selectAll("text.text_element").data((function(e){return e.element&&e.element instanceof BZ?[e.element]:[]})),r=i.enter().append("text").attr("class","text_element noselect"),o=i.merge(r);o.attr("style",(function(e){var t=n.fontFixer.fix(e),i=[];return t.font_family&&i.push('font-family: "'+e.font_family+'"'),t.font_size&&i.push("font-size: "+e.font_size+"pt"),t.font_weight&&i.push("font-weight: "+e.font_weight),i.join("; ")})).attr("fill",(function(e){return e.fill})).attr("text-decoration",(function(e){return e.text_decoration}));var a=o.selectAll("tspan").data((function(e){return e.text.split(/\r?\n/)})),s=a.enter().append("tspan");a.merge(s).text((function(e){return e})).attr("xml:space","preserve").attr("x",0).attr("dy",(function(e,t){return 0===t?"0em":"1.4em"})),a.exit().remove(),o.attr("transform",(function(){var t=Kk(this).selectAll("tspan"),n=this.getBBox().height/t.size();return"translate("+e.MARGIN+", "+(n-e.MARGIN)+")"})),i.exit().remove()},e.MARGIN=4,e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(E6))}}),e}(),$7=function(){function e(){}return e.prototype.draw=function(e){var t=e.selectAll("image.image_element").data((function(e){return e.element&&e.element instanceof Q4?[e.element]:[]})),n=t.enter().append("image").attr("class","image_element noselect");t.merge(n).attr("xlink:href",(function(e){return e.data})).attr("width",(function(e){return e.width})).attr("height",(function(e){return e.height})),t.exit().remove()},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),J7=function(){function e(){}return e.prototype.fix=function(t){return t in e.MAPPING?e.MAPPING[t]:t},e.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"5, 5, 1, 5","25, 25, 5, 25, 5":"5, 2, 5, 2, 5"},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),e9=function(){function e(e){this.qtDasharrayFixer=e}return e.prototype.draw=function(e){var t=this,n=e.selectAll("rect.rect_element").data((function(e){return e.element&&e.element instanceof J4?[e.element]:[]}));n.enter().append("line").attr("class","top"),n.enter().append("line").attr("class","bottom"),n.enter().append("line").attr("class","right"),n.enter().append("line").attr("class","left");var i=n.enter().append("rect").attr("class","rect_element noselect");n.merge(i).attr("fill",(function(e){return e.fill})).attr("fill-opacity",(function(e){return e.fill_opacity})).attr("stroke",(function(e){return e.stroke})).attr("stroke-width",(function(e){return e.stroke_width})).attr("stroke-dasharray",(function(e){return t.qtDasharrayFixer.fix(e.stroke_dasharray)})).attr("width",(function(e){return e.width})).attr("height",(function(e){return e.height})),n.exit().remove()},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(J7))}}),e}(),t9=function(){function e(e){this.qtDasharrayFixer=e}return e.prototype.draw=function(e){var t=this,n=e.selectAll("line.line_element").data((function(e){return e.element&&e.element instanceof t6?[e.element]:[]}));n.enter().append("circle").attr("class","right"),n.enter().append("circle").attr("class","left");var i=n.enter().append("line").attr("class","line_element noselect");n.merge(i).attr("stroke",(function(e){return e.stroke})).attr("stroke-width",(function(e){return e.stroke_width})).attr("stroke-dasharray",(function(e){return t.qtDasharrayFixer.fix(e.stroke_dasharray)})).attr("x1",(function(e){return e.x1})).attr("x2",(function(e){return e.x2})).attr("y1",(function(e){return e.y1})).attr("y2",(function(e){return e.y2})),n.exit().remove()},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(J7))}}),e}(),n9=function(){function e(e){this.qtDasharrayFixer=e}return e.prototype.draw=function(e){var t=this,n=e.selectAll("ellipse.ellipse_element").data((function(e){return e.element&&e.element instanceof i6?[e.element]:[]}));n.enter().append("line").attr("class","top"),n.enter().append("line").attr("class","bottom"),n.enter().append("line").attr("class","right"),n.enter().append("line").attr("class","left");var i=n.enter().append("ellipse").attr("class","ellipse_element noselect");n.merge(i).attr("fill",(function(e){return e.fill})).attr("fill-opacity",(function(e){return e.fill_opacity})).attr("stroke",(function(e){return e.stroke})).attr("stroke-width",(function(e){return e.stroke_width})).attr("stroke-dasharray",(function(e){return t.qtDasharrayFixer.fix(e.stroke_dasharray)})).attr("cx",(function(e){return e.cx})).attr("cy",(function(e){return e.cy})).attr("rx",(function(e){return e.rx})).attr("ry",(function(e){return e.ry})),n.exit().remove()},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(J7))}}),e}(),i9=function(){function e(e,t,n,i,r,o,a){this.textDrawingWidget=e,this.imageDrawingWidget=t,this.rectDrawingWidget=n,this.lineDrawingWidget=i,this.ellipseDrawingWidget=r,this.selectionManager=o,this.mapSettingsService=a,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return e.prototype.draw=function(e){var t=this,n=e.selectAll("g.drawing_body").data((function(e){return[e]})),i=n.enter().append("g").attr("class","drawing_body"),r=n.merge(i).attr("transform",(function(e){return"translate("+e.x+","+e.y+") rotate("+e.rotation+")"}));this.drawingWidgets.forEach((function(e){e.draw(r)})),r.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&r.filter((function(e){return e.element instanceof J4||e.element instanceof i6})).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",(function(e){return e.element?e.element.width/2-13:0})).attr("y",(function(e){return e.element?e.element.height/2-13:0})).attr("fill","red"),r.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&r.filter((function(e){return e.element instanceof J4||e.element instanceof i6})).append("text").attr("class","layer_label").text((function(e){return e.z})).attr("x",(function(e){return e.z>=100?e.element?e.element.width/2-13:0:e.z>=10?e.element?e.element.width/2-9:0:e.element.width/2-5})).attr("y",(function(e){return e.element?e.element.height/2+5:0})).attr("style",(function(){var e=[];return e.push('font-family: "Noto Sans"'),e.push("font-size: 11pt"),e.push("font-weight: bold"),e.join("; ")})).attr("fill","#ffffff"),r.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",(function(e){return e.element instanceof i6?e.element.cx-e.element.width/10:"0"})).attr("x2",(function(e){return e.element instanceof i6?e.element.cx+e.element.width/10:e.element.width})).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),r.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",(function(e){return e.element instanceof i6?e.element.cx-e.element.width/10:"0"})).attr("x2",(function(e){return e.element instanceof i6?e.element.cx+e.element.width/10:e.element.width})).attr("y1",(function(e){return e.element.height})).attr("y2",(function(e){return e.element.height})).attr("draggable","true").attr("cursor","ns-resize"),r.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",(function(e){return e.element instanceof i6?e.element.cy-e.element.height/10:"0"})).attr("y2",(function(e){return e.element instanceof i6?e.element.cy+e.element.height/10:e.element.height})).attr("draggable","true").attr("cursor","ew-resize"),r.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",(function(e){return e.element.width})).attr("x2",(function(e){return e.element.width})).attr("y1",(function(e){return e.element instanceof i6?e.element.cy-e.element.height/10:"0"})).attr("y2",(function(e){return e.element instanceof i6?e.element.cy+e.element.height/10:e.element.height})).attr("draggable","true").attr("cursor","ew-resize"),r.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",(function(e){return e.element.x1})).attr("cy",(function(e){return e.element.y1})).attr("r",10).attr("cursor","move"),r.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",(function(e){return e.element.x2})).attr("cy",(function(e){return e.element.y2})).attr("r",10).attr("cursor","move"),r.classed("drawing_selected",(function(e){return t.selectionManager.isSelected(e)}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(Q7),we($7),we(e9),we(t9),we(n9),we(j7),we(I4))}}),e}(),r9=function(){return function(e,t){this.width=e,this.height=t}}(),o9=function(){return function(e,t){this.x=e,this.y=t}}(),a9=function(){return function(e,t,n){this.x=e,this.y=t,this.k=n}}(),s9=function(){function e(){this.centerZeroZeroPoint=!0,this.size=new r9(0,0),this.transformation=new a9(0,0,1)}return e.prototype.getZeroZeroTransformationPoint=function(){return this.centerZeroZeroPoint?new o9(this.size.width/2,this.size.height/2):new o9(0,0)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),c9=function(){return function(){}}(),l9=function(){function e(e,t,n,i){this.drawingWidget=e,this.svgToDrawingConverter=t,this.context=n,this.mapSettings=i,this.draggable=new L7,this.draggingEnabled=!1,this.resizingFinished=new Yc,this.onContextMenu=new Yc,this.svgToDrawingConverter=new o6}return e.prototype.redrawDrawing=function(e,t){this.drawingWidget.draw(this.selectDrawing(e,t))},e.prototype.draw=function(e){var t,n,i,r,o=this,a=e.selectAll("g.drawing").data((function(e){return e.drawings.forEach((function(e){try{e.element=o.svgToDrawingConverter.convert(e.svg)}catch(t){console.log("Cannot convert due to Error: '"+t+"'")}})),e.drawings}),(function(e){return e.id})),s=a.enter().append("g").attr("class","drawing").attr("drawing_id",(function(e){return e.id})).on("contextmenu",(function(e){Ik.preventDefault(),o.onContextMenu.emit(new U7(Ik,e))})),c=a.merge(s);this.drawingWidget.draw(c),a.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(c);var l,u,h,d,f=!1,p=IM().on("start",(function(e){document.body.style.cursor="ns-resize",i=e.y})).on("drag",(function(r){var a=Ik;f?(n=t-(a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y)),t=a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),r.element.height+n<0?(f=!1,t=i,r.element.height=Math.abs(r.element.height+a.dy)):(r.y=a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),r.element.height+=n,r.element instanceof i6&&(r.element.cy=r.element.cy+n/2<0?1:r.element.cy+=n/2,r.element.ry=r.element.ry+n/2<0?1:r.element.ry+=n/2))):r.element.height+a.dy<0?(f=!0,t=i,r.element.height=Math.abs(r.element.height+a.dy)):(r.element.height+=a.dy,r.element instanceof i6&&(r.element.cy=r.element.cy+a.dy/2<0?1:r.element.cy+=a.dy/2,r.element.ry=r.element.ry+a.dy/2<0?1:r.element.ry+=a.dy/2)),o.redrawDrawing(e,r)})).on("end",(function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))})),m=IM().on("start",(function(e){t=Ik.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),r=t+e.element.height,document.body.style.cursor="ns-resize"})).on("drag",(function(i){var a=Ik;f?i.element.height+a.dy<0?(f=!1,t=r,i.element.height=Math.abs(i.element.height+a.dy)):(i.element.height+=a.dy,i.element instanceof i6&&(i.element.cy=i.element.cy+a.dy/2<0?1:i.element.cy+=a.dy/2,i.element.ry=i.element.ry+a.dy/2<0?1:i.element.ry+=a.dy/2)):(n=t-(a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y)),t=a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),i.element.height+n<0?(t=r,f=!0,i.element.height=Math.abs(i.element.height+a.dy)):(i.y=a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),i.element.height+=n,i.element instanceof i6&&(i.element.cy=i.element.cy+n/2<0?1:i.element.cy+=n/2,i.element.ry=i.element.ry+n/2<0?1:i.element.ry+=n/2))),o.redrawDrawing(e,i)})).on("end",(function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))})),g=!1,v=IM().on("start",(function(e){l=Ik.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),d=l+e.element.width,document.body.style.cursor="ew-resize"})).on("drag",(function(t){var n=Ik;g?t.element.width+n.dx<0?(l=d,g=!1,t.element.width=Math.abs(t.element.width+n.dx)):(t.element instanceof i6&&(t.element.cx=t.element.cx+n.dx/2<0?1:t.element.cx+=n.dx/2,t.element.rx=t.element.rx+n.dx/2<0?1:t.element.rx+=n.dx/2),t.element.width=t.element.width+n.dx<0?1:t.element.width+=n.dx):(u=l-(n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x)),l=n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),t.element.width+u<0?(l=d,g=!0,t.element.width=Math.abs(t.element.width+n.dx)):(t.x=n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),t.element.width+=u,t.element instanceof i6&&(t.element.cx=t.element.cx+u/2<0?1:t.element.cx+=u/2,t.element.rx=t.element.rx+u/2<0?1:t.element.rx+=u/2))),o.redrawDrawing(e,t)})).on("end",(function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))})),b=IM().on("start",(function(e){document.body.style.cursor="ew-resize",h=e.x})).on("drag",(function(t){var n=Ik;g?(u=l-(n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x)),l=n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),t.element.width+u<0?(l=h,g=!1,t.element.width=Math.abs(t.element.width+n.dx)):(t.x=n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),t.element.width+=u,t.element instanceof i6&&(t.element.cx=t.element.cx+u/2<0?1:t.element.cx+=u/2,t.element.rx=t.element.rx+u/2<0?1:t.element.rx+=u/2))):t.element.width+n.dx<0?(l=h,g=!0,t.element.width=Math.abs(t.element.width+n.dx)):(t.element instanceof i6&&(t.element.cx=t.element.cx+n.dx/2<0?1:t.element.cx+=n.dx/2,t.element.rx=t.element.rx+n.dx/2<0?1:t.element.rx+=n.dx/2),t.element.width=t.element.width+n.dx<0?1:t.element.width+=n.dx),o.redrawDrawing(e,t)})).on("end",(function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))})),y=IM().on("start",(function(){document.body.style.cursor="move"})).on("drag",(function(t){var n=Ik;t.element.width+=n.dx,t.element.height+=n.dy,t.element.x2+=n.dx,t.element.y2+=n.dy,o.redrawDrawing(e,t)})).on("end",(function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))})),_=IM().on("start",(function(){document.body.style.cursor="move"})).on("drag",(function(t){var n=Ik;t.element.width+=n.dx,t.element.height+=n.dy,t.element.x1+=n.dx,t.element.y1+=n.dy,o.redrawDrawing(e,t)})).on("end",(function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))}));c.select("line.bottom").call(p),c.select("line.top").call(m),c.select("line.right").call(v),c.select("line.left").call(b),c.select("circle.right").call(y),c.select("circle.left").call(_)},e.prototype.createResizingEvent=function(e){var t=new c9;return t.x=e.x,t.y=e.y,t.width=e.element.width,t.height=e.element.height,t.datum=e,t},e.prototype.selectDrawing=function(e,t){return e.selectAll('g.drawing[drawing_id="'+t.id+'"]')},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(i9),we(o6),we(s9),we(F7))}}),e}(),u9=function(){function e(e,t,n){this.fontBBoxCalculator=e,this.cssFixer=t,this.fontFixer=n}return e.prototype.convert=function(e){var t=this.cssFixer.fix(e.style),n=this.fontFixer.fixStyles(t),i=this.fontBBoxCalculator.calculate(e.text,n),r=new A6;return r.rotation=e.rotation,r.style=e.style,r.text=e.text,r.x=e.x,r.y=e.y,null!==r.x&&(r.x-=3),null!==r.y&&(r.y-=i.height),r},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(a7),we(s7),we(E6))}}),e}(),h9=function(){return function(){}}(),d9=function(){function e(){}return e.prototype.convert=function(e){var t=new h9;return t.adapter_number=e.adapterNumber,t.link_type=e.linkType,t.name=e.name,t.port_number=e.portNumber,t.short_name=e.shortName,t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),f9=function(){function e(e,t){this.mapLabelToLabel=e,this.mapPortToPort=t}return e.prototype.convert=function(e){var t=this,n=new HZ;return n.node_id=e.id,n.command_line=e.commandLine,n.compute_id=e.computeId,n.console=e.console,n.console_host=e.consoleHost,n.console_type=e.consoleType,n.first_port_name=e.firstPortName,n.height=e.height,n.label=e.label?this.mapLabelToLabel.convert(e.label):void 0,n.locked=e.locked,n.name=e.name,n.node_directory=e.nodeDirectory,n.node_type=e.nodeType,n.port_name_format=e.portNameFormat,n.port_segment_size=e.portSegmentSize,n.ports=e.ports?e.ports.map((function(e){return t.mapPortToPort.convert(e)})):[],n.project_id=e.projectId,n.status=e.status,n.symbol=e.symbol,n.symbol_url=e.symbolUrl,n.usage=e.usage,n.width=e.width,n.x=e.x,n.y=e.y,n.z=e.z,n},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(u9),we(d9))}}),e}(),p9=function(){function e(e,t){this.nodeWidget=e,this.mapSettings=t,this.draggable=new L7}return e.prototype.redrawNode=function(e,t){this.nodeWidget.draw(this.selectNode(e,t))},e.prototype.draw=function(e){var t=e.selectAll("g.node").data((function(e){return e.nodes?e.nodes:[]}),(function(e){return e.id})),n=t.enter().append("g").attr("class","node").attr("node_id",(function(e){return e.id})),i=t.merge(n);this.nodeWidget.draw(i),t.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(i)},e.prototype.selectNode=function(e,t){return e.selectAll('g.node[node_id="'+t.id+'"]')},e.NODE_LABEL_MARGIN=3,e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(Z7),we(F7))}}),e}(),m9=function(){return function(){}}(),g9=function(){function e(){this.drawingLine=new m9,this.drawing=!1,this.data={}}return e.prototype.start=function(e,t,n){var i=this;this.drawing=!0,this.data=n,this.drawingLine.start=new o9(e,t),this.drawingLine.end=new o9(e,t),this.selection.on("mousemove",(function(e,t){var n=i.selection.select("g.canvas").node(),r=eC(n);i.drawingLine.end.x=r[0],i.drawingLine.end.y=r[1],i.draw(null,null)})),this.draw(null,null)},e.prototype.isDrawing=function(){return this.drawing},e.prototype.stop=function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data},e.prototype.connect=function(e,t){this.selection=e},e.prototype.draw=function(e,t){var n=this.selection.select("g.canvas");n.select("g.drawing-line-tool").node()||n.append("g").attr("class","drawing-line-tool");var i=[];this.drawing&&(i=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var r=$H(),o=this.selection.select("g.drawing-line-tool").selectAll("path").data(i),a=o.enter().append("path");o.merge(a).attr("d",r).attr("stroke","#000").attr("stroke-width","2"),o.exit().remove()},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),v9=function(){return function(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}}(),b9=function(){function e(){this.selected=new w.b}return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),y9=function(){function e(e,t){this.context=e,this.selectionEventSource=t,this.rectangleSelected=new w.b,this.contextMenuOpened=new Yc,this.enabled=!1}return e.prototype.disableContextMenu=function(){},e.prototype.setEnabled=function(e){this.enabled=e,this.contextMenuOpened.emit(!0)},e.prototype.activate=function(t){var n=this;t.on("mousedown",(function(){if(2==Ik.button)return t.on("contextmenu",(function(){Ik.preventDefault()})),void n.contextMenuOpened.emit(Ik);var i=Kk(window),r=this.parentElement,o=n.transformation(eC(r));n.startSelection(o),t.selectAll(e.SELECTABLE_CLASS).classed("selected",!1),i.on("mousemove.selection",(function(){var e=n.transformation(eC(r));n.moveSelection(o,e)})).on("mouseup.selection",(function(){var e=n.transformation(eC(r));n.endSelection(o,e),i.on("mousemove.selection",null).on("mouseup.selection",null)}))}))},e.prototype.deactivate=function(e){e.on("mousedown",null)},e.prototype.draw=function(e,t){var n=e.select("g.canvas");if(!n.select("g.selection-line-tool").node()){var i=n.append("g");i.attr("class","selection-line-tool"),this.path=i.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var r=n.select("g.selection-line-tool"),o=r.attr("status");"activated"!==o&&this.enabled&&(this.activate(e),r.attr("activated")),"deactivated"===o||this.enabled||(this.deactivate(e),r.attr("deactivated"))},e.prototype.startSelection=function(e){this.path.attr("d",this.rect(e[0],e[1],0,0)).attr("visibility","visible")},e.prototype.moveSelection=function(e,t){var n=e[0]/this.context.transformation.k,i=e[1]/this.context.transformation.k;this.path.attr("d",this.rect(n,i,t[0]/this.context.transformation.k-n,t[1]/this.context.transformation.k-i)),this.selectedEvent(e,t)},e.prototype.endSelection=function(e,t){this.path.attr("visibility","hidden"),this.selectedEvent(e,t)},e.prototype.selectedEvent=function(e,t){var n=Math.min(e[0],t[0]),i=Math.min(e[1],t[1]),r=Math.abs(e[0]-t[0]),o=Math.abs(e[1]-t[1]);this.selectionEventSource.selected.next(new v9(n,i,r,o))},e.prototype.rect=function(e,t,n,i){return"M"+[e,t]+" l"+[n,0]+" l"+[0,i]+" l"+[-n,0]+"z"},e.prototype.transformation=function(e){var t=this.context.getZeroZeroTransformationPoint();return[e[0]-t.x-this.context.transformation.x,e[1]-t.y-this.context.transformation.y]},e.SELECTABLE_CLASS=".selectable",e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(s9),we(b9))}}),e}(),_9=function(){function e(e){this.context=e,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=Bq().scaleExtent([.5,8])}return e.prototype.setEnabled=function(e){this.enabled!=e&&(e?this.needsActivate=!0:this.needsDeactivate=!0),this.enabled=e},e.prototype.draw=function(e,t){this.needsActivate&&(this.activate(e),this.needsActivate=!1),this.needsDeactivate&&(this.deactivate(e),this.needsDeactivate=!1)},e.prototype.activate=function(e){var t=this;this.zoom.filter((function(){return"mousedown"===Ik.type})),this.zoom.on("zoom",(function(){var n=e.select("g.canvas"),i=Ik;n.attr("transform",(function(){return t.context.transformation.x=i.transform.x,t.context.transformation.y=i.transform.y,t.context.transformation.k=i.transform.k,"translate("+(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)+", "+(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)+") scale("+t.context.transformation.k+")"}))})),e.call(this.zoom)},e.prototype.deactivate=function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(s9))}}),e}(),w9=function(){return function(e,t,n,i){this.source=e,this.source_angle=t,this.target_angle=n,this.target=i}}(),k9=function(){function e(){this.onContextMenu=new Yc}return e.prototype.linkToSerialLink=function(e){var t={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},n={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},i=n.x-t.x,r=n.y-t.y,o=Math.atan2(r,i),a=-Math.PI/4,s=[Math.cos(o+a),Math.sin(o+a)];return new w9([t.x,t.y],[t.x+i/2+15*s[0],t.y+r/2+15*s[1]],[n.x-i/2-15*s[0],n.y-r/2-15*s[1]],[n.x,n.y])},e.prototype.draw=function(e){var t=this,n=e.selectAll("path.serial_link").data((function(e){return"serial"===e.linkType?[t.linkToSerialLink(e)]:[]})),i=n.enter().append("path").attr("class","serial_link").on("contextmenu",(function(e){var n=event;t.onContextMenu.emit(new G7(n,e))}));i.attr("stroke","#B22222").attr("fill","none").attr("stroke-width","2"),n.merge(i).attr("d",(function(e){var t=UO();return t.moveTo(e.source[0],e.source[1]),t.lineTo(e.source_angle[0],e.source_angle[1]),t.lineTo(e.target_angle[0],e.target_angle[1]),t.lineTo(e.target[0],e.target[1]),t.toString()}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),C9=function(){return function(e,t){this.source=e,this.target=t}}(),S9=function(){function e(){this.onContextMenu=new Yc}return e.prototype.linktoEthernetLink=function(e){return new C9([e.source.x+e.source.width/2,e.source.y+e.source.height/2],[e.target.x+e.target.width/2,e.target.y+e.target.height/2])},e.prototype.draw=function(e){var t=this,n=e.selectAll("path.ethernet_link").data((function(e){return"ethernet"===e.linkType?[t.linktoEthernetLink(e)]:[]})),i=n.enter().append("path").attr("class","ethernet_link").on("contextmenu",(function(e){var n=event;t.onContextMenu.emit(new G7(n,e))}));i.attr("stroke","#000").attr("stroke-width","2").on("contextmenu",(function(e){var n=event;t.onContextMenu.emit(new G7(n,e))})),n.merge(i).attr("d",(function(e){var t=UO();return t.moveTo(e.source[0],e.source[1]),t.lineTo(e.target[0],e.target[1]),t.toString()}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),x9=function(){function e(e,t,n,i){this.cssFixer=e,this.fontFixer=t,this.selectionManager=n,this.mapSettings=i,this.onContextMenu=new Yc,this.draggable=new L7,this.enabled=!0}return e.prototype.setEnabled=function(e){this.enabled=e},e.prototype.draw=function(e){var t=this,n=this,i=e.selectAll("g.link_node_position").data((function(e){return[[e.source,e.nodes[0]],[e.target,e.nodes[1]]]})),r=i.enter().append("g").classed("link_node_position",!0),o=i.merge(r);o.attr("transform",(function(e){return"translate("+e[0].x+", "+e[0].y+")"}));var a=o.selectAll("g.interface_label_container").data((function(e){return t.enabled?[e[1]]:[]})),s=a.enter().append("g").classed("interface_label_container",!0);s.append("rect").attr("class","interface_label_selection"),s.append("text").attr("class","interface_label noselect").attr("interface_label_id",(function(e){return""+e.id}));var c=a.merge(s).on("contextmenu",(function(e,t){event.preventDefault(),n.onContextMenu.emit(new W7(event,e))}));c.select("text.interface_label").text((function(e){return e.label.text})).attr("style",(function(e){var n=t.cssFixer.fix(e.label.style);return t.fontFixer.fixStyles(n)})).attr("x",(function(e){return e.label.x})).attr("y",(function(e){return e.label.y})).attr("transform",(function(e){return"rotate("+e.label.rotation+", "+e.label.x+", "+e.label.y+")"})),c.select("rect.interface_label_selection").attr("visibility",(function(e){return t.selectionManager.isSelected(e)?"visible":"hidden"})).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each((function(e){var t=Kk(this),n=c.select('text[interface_label_id="'+e.id+'"]').node().getBBox();t.attr("width",n.width+4),t.attr("height",n.height+4),t.attr("x",n.x-2),t.attr("y",n.y-2),t.attr("transform","rotate("+e.label.rotation+", "+(n.x-2)+", "+(n.y-2)+")")})),a.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(c)},e.SURROUNDING_TEXT_BORDER=5,e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(s7),we(E6),we(j7),we(F7))}}),e}(),O9=function(){return function(e,t,n,i){this.x=e,this.y=t,this.status=n,this.port=i}}(),M9=function(){function e(e){this._mapSettingsService=e,this.mapSettingsService=e}return e.prototype.draw=function(e){var t=this,n=[];e.each((function(e){n.push(e)})),n.forEach((function(e){n.forEach((function(t){t.nodes[0].linkId!==e.nodes[0].linkId&&(e.nodes[0].nodeId===t.nodes[0].nodeId&&e.nodes[1].nodeId===t.nodes[1].nodeId||e.nodes[0].nodeId===t.nodes[1].nodeId&&e.nodes[1].nodeId===t.nodes[0].nodeId||e.nodes[1].nodeId===t.nodes[0].nodeId&&e.nodes[0].nodeId===t.nodes[1].nodeId)&&(e.isMultiplied=!0)}))})),e.each((function(e){var n=Kk(this),i=n.select("path"),r=[];if(i.node()){var o=i.node().getPointAtLength(80),a=i.node().getPointAtLength(i.node().getTotalLength()-80);if(i.node().getTotalLength()>220&&e.source&&e.target){var s=e.nodes.find((function(t){return t.nodeId===e.source.id})).label.text,c=e.nodes.find((function(t){return t.nodeId===e.target.id})).label.text;r=[new O9(o.x,o.y,e.capturing&&e.suspend?"suspended":e.source.status,s),new O9(a.x,a.y,e.capturing&&e.suspend?"suspended":e.target.status,c)]}}if(n.selectAll("circle.status_started").remove(),n.selectAll("circle.status_stopped").remove(),n.selectAll("circle.status_suspended").remove(),n.selectAll("rect.status_started").remove(),n.selectAll("text.status_started_label").remove(),n.selectAll("rect.status_stopped").remove(),n.selectAll("text.status_stopped_label").remove(),n.selectAll("rect.status_suspended").remove(),n.selectAll("text.status_suspended_label").remove(),t.mapSettingsService.showInterfaceLabels&&t.mapSettingsService.integrateLinkLabelsToLinks&&!e.isMultiplied){var l=(b=n.selectAll("rect.status_started").data(r.filter((function(e){return"started"===e.status})))).enter().append("rect");b.merge(l).attr("class","status_started").attr("width",(function(e){return 8*e.port.length+10})).attr("height",20).attr("x",(function(e){return e.x-30})).attr("y",(function(e){return e.y-10})).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),b.exit().remove();var u=n.selectAll("text.status_started_label").data(r.filter((function(e){return"started"===e.status}))),h=u.enter().append("text");u.merge(h).attr("class","status_started_label").text((function(e){return e.port})).attr("x",(function(e){return e.x-25})).attr("y",(function(e){return e.y+5})).attr("fill","black"),u.exit().remove();var d=(y=n.selectAll("rect.status_stopped").data(r.filter((function(e){return"stopped"===e.status})))).enter().append("rect");y.merge(d).attr("class","status_stopped").attr("width",(function(e){return 8*e.port.length+10})).attr("height",20).attr("x",(function(e){return e.x-30})).attr("y",(function(e){return e.y-10})).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),y.exit().remove();var f=n.selectAll("text.status_stopped_label").data(r.filter((function(e){return"stopped"===e.status}))),p=f.enter().append("text");f.merge(p).attr("class","status_stopped_label").text((function(e){return e.port})).attr("x",(function(e){return e.x-25})).attr("y",(function(e){return e.y+5})).attr("fill","black"),f.exit().remove();var m=(_=n.selectAll("rect.status_suspended").data(r.filter((function(e){return"suspended"===e.status})))).enter().append("rect");_.merge(m).attr("class","status_suspended").attr("width",(function(e){return 8*e.port.length+10})).attr("height",20).attr("x",(function(e){return e.x-30})).attr("y",(function(e){return e.y-10})).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),_.exit().remove();var g=n.selectAll("text.status_suspended_label").data(r.filter((function(e){return"suspended"===e.status}))),v=g.enter().append("text");g.merge(v).attr("class","status_suspended_label").text((function(e){return e.port})).attr("x",(function(e){return e.x-25})).attr("y",(function(e){return e.y+5})).attr("fill","black"),g.exit().remove()}else{var b,y,_;l=(b=n.selectAll("circle.status_started").data(r.filter((function(e){return"started"===e.status})))).enter().append("circle"),b.merge(l).attr("class","status_started").attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})).attr("r",6).attr("text",(function(e){return e.port})).attr("fill","#2ecc71"),b.exit().remove(),d=(y=n.selectAll("rect.status_stopped").data(r.filter((function(e){return"stopped"===e.status})))).enter().append("rect"),y.merge(d).attr("class","status_stopped").attr("x",(function(e){return e.x-5})).attr("y",(function(e){return e.y-5})).attr("width",10).attr("height",10).attr("fill","red"),y.exit().remove(),m=(_=n.selectAll("circle.status_suspended").data(r.filter((function(e){return"suspended"===e.status})))).enter().append("circle"),_.merge(m).attr("class","status_suspended").attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})).attr("r",6).attr("fill","#FFFF00"),_.exit().remove()}}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(I4))}}),e}(),T9=function(){function e(e,t,n,i,r,o){this.multiLinkCalculatorHelper=e,this.interfaceLabelWidget=t,this.interfaceStatusWidget=n,this.selectionManager=i,this.ethernetLinkWidget=r,this.serialLinkWidget=o,this.onContextMenu=new Yc}return e.prototype.draw=function(e){var t=this,n=e.selectAll("g.link_body").data((function(e){return[e]})),i=n.enter().append("g").attr("class","link_body"),r=n.merge(i).attr("transform",(function(e){var n=t.multiLinkCalculatorHelper.linkTranslation(e.distance,e.source,e.target);return"translate ("+n.dx+", "+n.dy+")"}));n.select(".capture-icon").remove(),n.filter((function(e){return e.capturing&&!e.suspend&&!(e.filters.bpf||e.filters.corrupt||e.filters.delay||e.filters.frequency_drop||e.filters.packet_loss)})).append("g").on("contextmenu",(function(e){t.onContextMenu.emit(new G7(Ik,e))})).attr("class","capture-icon").attr("transform",(function(e){return"translate ("+((e.source.x+e.target.x)/2+24)+", "+((e.source.y+e.target.y)/2+24)+") scale(0.5)"})).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/inspect.svg"),n.select(".filter-capture-icon").remove(),n.filter((function(e){return e.capturing&&!e.suspend&&(e.filters.bpf||e.filters.corrupt||e.filters.delay||e.filters.frequency_drop||e.filters.packet_loss)})).append("g").on("contextmenu",(function(e){t.onContextMenu.emit(new G7(Ik,e))})).attr("class","filter-capture-icon").attr("transform",(function(e){return"translate ("+((e.source.x+e.target.x)/2+24)+", "+((e.source.y+e.target.y)/2+24)+") scale(0.5)"})).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/filter-capture.svg"),n.select(".filter-icon").remove(),n.filter((function(e){return!e.capturing&&(e.filters.bpf||e.filters.corrupt||e.filters.delay||e.filters.frequency_drop||e.filters.packet_loss)})).append("g").on("contextmenu",(function(e){t.onContextMenu.emit(new G7(Ik,e))})).attr("class","filter-icon").attr("width","48px").attr("height","48px").attr("transform",(function(e){return"translate ("+((e.source.x+e.target.x)/2+24)+", "+((e.source.y+e.target.y)/2+24)+") scale(0.5)"})).attr("viewBox","0 0 20 20").append("image").attr("width","48px").attr("height","48px").attr("xlink:href","assets/resources/images/filter.svg"),n.select(".pause-icon").remove(),n.filter((function(e){return e.capturing&&e.suspend&&!(e.filters.bpf||e.filters.corrupt||e.filters.delay||e.filters.frequency_drop||e.filters.packet_loss)})).append("g").on("contextmenu",(function(e){t.onContextMenu.emit(new G7(Ik,e))})).attr("class","pause-icon").attr("transform",(function(e){return"translate ("+((e.source.x+e.target.x)/2+24)+", "+((e.source.y+e.target.y)/2+24)+") scale(0.5)"})).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(r),this.ethernetLinkWidget.draw(r),r.select("path").classed("selected",(function(e){return t.selectionManager.isSelected(e)})),this.interfaceLabelWidget.draw(r),this.interfaceStatusWidget.draw(r)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(E7),we(x9),we(M9),we(j7),we(S9),we(k9))}}),e}(),E9=function(){function e(e,t){this.multiLinkCalculatorHelper=e,this.linkWidget=t}return e.prototype.redrawLink=function(e,t){this.linkWidget.draw(this.selectLink(e,t))},e.prototype.draw=function(e){var t=this,n=e.selectAll("g.link").data((function(e){if(e.links){var n=e.links.filter((function(e){return e.target&&e.source}));return t.multiLinkCalculatorHelper.assignDataToLinks(n),n}return[]}),(function(e){return e.id})),i=n.enter().append("g").attr("class","link").attr("link_id",(function(e){return e.id})).attr("map-source",(function(e){return e.source.id})).attr("map-target",(function(e){return e.target.id})),r=n.merge(i);this.linkWidget.draw(r),n.exit().remove()},e.prototype.selectLink=function(e,t){return e.selectAll('g.link[link_id="'+t.id+'"]')},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(E7),we(T9))}}),e}(),P9=function(){function e(e,t,n){this.linksWidget=e,this.nodesWidget=t,this.drawingsWidget=n}return e.prototype.draw=function(e,t){var n=e.selectAll("g.layer").data(t,(function(e){return e.index.toString()})),i=n.enter().append("g").attr("class","layer");i.append("g").attr("class","links"),i.append("g").attr("class","nodes"),i.append("g").attr("class","drawings");var r=n.merge(i);r.attr("data-index",(function(e){return e.index}));var o=r.select("g.links"),a=r.select("g.nodes"),s=r.select("g.drawings");n.exit().remove(),this.linksWidget.draw(o),this.nodesWidget.draw(a),this.drawingsWidget.draw(s)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(E9),we(p9),we(l9))}}),e}(),j9=function(){function e(e,t,n,i,r,o){this.nodesWidget=e,this.drawingLineTool=t,this.selectionTool=n,this.movingTool=i,this.layersWidget=r,this.layersManager=o}return e.prototype.getNodesWidget=function(){return this.nodesWidget},e.prototype.getDrawingLineTool=function(){return this.drawingLineTool},e.prototype.getSelectionTool=function(){return this.selectionTool},e.prototype.connect=function(e,t){this.drawingLineTool.connect(e,t)},e.prototype.draw=function(e,t){e.attr("width",t.size.width).attr("height",t.size.height);var n=e.selectAll("g.canvas").data([t]),i=n.enter().append("g").attr("class","canvas");n.merge(i).attr("transform",(function(e){return"translate("+(e.getZeroZeroTransformationPoint().x+e.transformation.x)+", "+(e.getZeroZeroTransformationPoint().y+e.transformation.y)+") scale("+e.transformation.k+")"})),this.layersWidget.draw(n,this.layersManager.getLayersList()),this.drawingLineTool.draw(e,t),this.selectionTool.draw(e,t),this.movingTool.draw(e,t)},e.prototype.disconnect=function(e){e.empty&&!e.empty()&&e.selectAll("*").remove()},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(p9),we(g9),we(y9),we(_9),we(P9),we(y7))}}),e}(),A9=function(){function e(){}return e.prototype.getOptimalSize=function(e,t){var n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return e>n&&(n=e),t>i&&(i=t),new r9(n,i)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),I9=function(){function e(){this.isSelectionToolActivated=new w.b,this.isMovingToolActivated=new w.b,this.isTextEditingToolActivated=new w.b,this.isTextAddingToolActivated=new w.b,this.isDrawLinkToolActivated=new w.b}return e.prototype.selectionToolActivation=function(e){this.isSelectionToolActivated.next(e)},e.prototype.movingToolActivation=function(e){this.isMovingToolActivated.next(e)},e.prototype.textEditingToolActivation=function(e){this.isTextEditingToolActivated.next(e)},e.prototype.textAddingToolActivation=function(e){this.isTextAddingToolActivated.next(e)},e.prototype.drawLinkToolActivation=function(e){this.isDrawLinkToolActivated.next(e)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),D9=function(){function e(){this.dragged=new Yc,this.resized=new Yc,this.selected=new Yc,this.pointToAddSelected=new Yc,this.saved=new Yc,this.textAdded=new Yc,this.textEdited=new Yc,this.textSaved=new Yc}return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),R9=function(){function e(e){this.context=e,this.scaleChangeEmitter=new Yc,this.currentScale=1}return e.prototype.getScale=function(){return this.currentScale},e.prototype.setScale=function(e){this.currentScale=e,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)},e.prototype.resetToDefault=function(){this.currentScale=1,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(s9))}}),e}(),L9=["temporaryTextElement"],F9=function(){function e(e,t,n,i,r,o,a,s,c,l,u){this.drawingsEventSource=e,this.toolsService=t,this.context=n,this.renderer=i,this.mapScaleService=r,this.linkService=o,this.linksDataSource=a,this.nodesDataSource=s,this.selectionManager=c,this.fontFixer=l,this.ngZone=u,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new Yc}return e.prototype.ngOnInit=function(){var e=this;this.textAddingSubscription=this.toolsService.isTextAddingToolActivated.subscribe((function(t){t?e.activateTextAdding():e.deactivateTextAdding()})),this.ngZone.runOutsideAngular(this.activateTextEditingForDrawings.bind(this)),this.ngZone.runOutsideAngular(this.activateTextEditingForNodeLabels.bind(this))},e.prototype.activateTextAdding=function(){var e=this;this.deactivateTextAdding(),this.mapListener=function(t){e.leftPosition=t.pageX.toString()+"px",e.topPosition=t.pageY.toString()+"px",e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale("+e.mapScaleService.getScale()+")"),e.temporaryTextElement.nativeElement.focus(),e.textListener=function(){e.drawingsEventSource.textAdded.emit(new V7(e.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),t.pageX,t.pageY)),e.deactivateTextAdding(),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener)},this.svg.addEventListener("click",this.mapListener)},e.prototype.deactivateTextAdding=function(){this.svg.removeEventListener("click",this.mapListener)},e.prototype.activateTextEditingForNodeLabels=function(){var e=this,t=Kk(this.svg);t.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",(function(n,i,r){e.selectionManager.setSelected([]),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale("+e.mapScaleService.getScale()+")"),e.editedLink=n,Kk(r[i]).attr("visibility","hidden"),Kk(r[i]).classed("editingMode",!0),e.editedNode=e.nodesDataSource.get(n.nodeId),e.editedLink=n;var o=(n.label.originalX+e.editedNode.x-1)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,a=(n.label.originalY+e.editedNode.y+4)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=o.toString()+"px",e.topPosition=a.toString()+"px",e.temporaryTextElement.nativeElement.innerText=n.label.text;for(var s=[],c=0,l=n.label.style.split(";");c<l.length;c++){var u=l[c];s.push({property:u.split(": ")[0],value:u.split(": ")[1]})}var h={font_family:s.find((function(e){return"font-family"===e.property}))?s.find((function(e){return"font-family"===e.property})).value:"TypeWriter",font_size:s.find((function(e){return"font-size"===e.property}))?Number(s.find((function(e){return"font-size"===e.property})).value):10,font_weight:s.find((function(e){return"font-weight"===e.property}))?s.find((function(e){return"font-weight"===e.property})).value:"normal"};h=e.fontFixer.fix(h),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",s.find((function(e){return"fill"===e.property}))?s.find((function(e){return"fill"===e.property})).value:"#000000"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",h.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size",h.font_size+"pt"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",h.font_weight),e.textListener=function(){var n=e.temporaryTextElement.nativeElement.innerText,i=e.linksDataSource.get(e.editedLink.linkId);i.nodes.find((function(t){return t.node_id===e.editedNode.node_id})).label.text=n,e.linkService.updateLink(e.server,i).subscribe((function(n){t.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")}))},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()}))},e.prototype.activateTextEditingForDrawings=function(){var e=this,t=Kk(this.svg);t.selectAll("text.text_element").on("dblclick",(function(n,i,r){e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale("+e.mapScaleService.getScale()+")"),e.editedElement=n,Kk(r[i]).attr("visibility","hidden"),Kk(r[i]).classed("editingMode",!0),e.editingDrawingId=r[i].parentElement.parentElement.getAttribute("drawing_id");var o=r[i].parentElement.getAttribute("transform").split(/\(|\)/),a=Number(o[1].split(/,/)[0])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,s=Number(o[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=a.toString()+"px",e.topPosition=s.toString()+"px",e.temporaryTextElement.nativeElement.innerText=n.text,e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",n.fill),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",n.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size",n.font_size+"pt"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",n.font_weight),e.textListener=function(){e.drawingsEventSource.textEdited.emit(new q7(e.editingDrawingId,e.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),e.editedElement)),t.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()}))},e.prototype.ngOnDestroy=function(){this.textAddingSubscription.unsubscribe()},e.prototype.clearStyle=function(){this.renderer.setStyle(this.temporaryTextElement.nativeElement,"color","#000000"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-family","Noto Sans"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-size","11pt"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-weight","bold")},e.\u0275fac=function(t){return new(t||e)(_a(D9),_a(I9),_a(s9),_a(Qs),_a(R9),_a(x6),_a(O6),_a(c6),_a(j7),_a(E6),_a(Nl))},e.\u0275cmp=ze({type:e,selectors:[["app-text-editor"]],viewQuery:function(e,t){var n;1&e&&cl(L9,!0),2&e&&al(n=fl())&&(t.temporaryTextElement=n.first)},inputs:{svg:"svg",server:"server"},decls:3,vars:5,consts:[["id","temporaryElement","contenteditable","true",1,"temporaryElement"],["temporaryTextElement",""]],template:function(e,t){1&e&&(Sa(0,"div",0,1),_s(2),xa()),2&e&&(rs("top",t.topPosition)("left",t.leftPosition),ar(2),ks(" ",t.innerText,"\n"))},styles:[".temporaryElement[_ngcontent-%COMP%]{padding-left:4px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:absolute;z-index:99;font-family:Noto Sans;font-size:11pt;font-weight:700;color:#000}"]}),e}(),N9=function(){function e(){this.movingModeState=new Yc}return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),B9=function(){function e(e,t,n){this.element=e,this.movingEventSource=t,this.context=n,this.activated=!1}return e.prototype.ngOnInit=function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe((function(t){e.activated=t,t||e.removelisteners()}))},e.prototype.ngOnDestroy=function(){this.movingModeState.unsubscribe()},e.prototype.onMouseDown=function(e){var t=this;this.activated&&(this.mousemoveListener=function(e){Kk(t.element.nativeElement).selectAll("g.canvas").data([t.context]).attr("transform",(function(){return t.context.transformation.x=t.context.transformation.x+e.movementX,t.context.transformation.y=t.context.transformation.y+e.movementY,"translate("+(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)+", "+(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)+") scale("+t.context.transformation.k+")"}))},this.mouseupListener=function(e){t.removelisteners()},this.element.nativeElement.addEventListener("mouseup",this.mouseupListener),this.element.nativeElement.addEventListener("mousemove",this.mousemoveListener))},e.prototype.removelisteners=function(){this.element.nativeElement.removeEventListener("mouseup",this.mouseupListener),this.element.nativeElement.removeEventListener("mousemove",this.mousemoveListener)},e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(N9),_a(s9))},e.\u0275dir=Ke({type:e,selectors:[["","movingCanvas",""]],hostBindings:function(e,t){1&e&&Ia("mousedown",(function(e){return t.onMouseDown(e)}))}}),e}(),H9=function(){function e(e,t,n,i){this.element=e,this.movingEventSource=t,this.context=n,this.mapsScaleService=i}return e.prototype.ngOnInit=function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe((function(t){t?e.addListener():e.removeListener()}))},e.prototype.ngOnDestroy=function(){this.movingModeState.unsubscribe()},e.prototype.addListener=function(){var e=this;this.wheelListener=function(t){t.stopPropagation(),t.preventDefault();var n=t.deltaY;n=0===t.deltaMode?n/100:n/3,Kk(e.element.nativeElement).selectAll("g.canvas").data([e.context]).attr("transform",(function(){e.context.transformation.k=e.context.transformation.k-n/10;var t=e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,i=e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y,r=e.context.transformation.k;return e.mapsScaleService.setScale(r),"translate("+t+", "+i+") scale("+r+")"}))},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})},e.prototype.removeListener=function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)},e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(N9),_a(s9),_a(R9))},e.\u0275dir=Ke({type:e,selectors:[["","zoomingCanvas",""]]}),e}(),z9=function(){function e(e,t){this.drawingsEventSource=e,this.context=t}return e.prototype.ngOnInit=function(){var e=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe((function(t){""===t?e.deactivate():e.activate()}))},e.prototype.activate=function(){var e=this;this.deactivate(),this.mapListener=function(t){var n=(t.pageX-(e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x))/e.context.transformation.k,i=(t.pageY-(e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y))/e.context.transformation.k;e.drawingsEventSource.pointToAddSelected.emit(new H7(n,i)),e.deactivate()},this.svg.addEventListener("click",this.mapListener)},e.prototype.deactivate=function(){this.svg.removeEventListener("click",this.mapListener)},e.prototype.ngOnDestroy=function(){this.drawingSelected.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(D9),_a(s9))},e.\u0275cmp=ze({type:e,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),V9=["*"],q9=function(){function e(e,t){this.drawingsWidget=e,this.drawingsEventSource=t}return e.prototype.ngOnInit=function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe((function(t){e.drawingsEventSource.resized.emit(new B7(t.datum,t.x,t.y,t.width,t.height))}))},e.prototype.ngOnDestroy=function(){this.resizingFinished.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(l9),_a(D9))},e.\u0275cmp=ze({type:e,selectors:[["app-drawing-resizing"]],ngContentSelectors:V9,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},styles:[""]}),e}(),U9=function(){function e(){}return e.prototype.inRectangle=function(e,t,n){return e.x<=t&&t<e.x+e.width&&e.y<=n&&n<e.y+e.height},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),G9=function(){function e(e,t,n,i){this.selectionEventSource=e,this.graphDataManager=t,this.inRectangleHelper=n,this.selectionManager=i}return e.prototype.ngOnInit=function(){var e=this;this.onSelection=this.selectionEventSource.selected.subscribe((function(t){var n=e.graphDataManager.getNodes().filter((function(n){return e.inRectangleHelper.inRectangle(t,n.x,n.y)})),i=e.graphDataManager.getLinks().filter((function(n){return e.inRectangleHelper.inRectangle(t,n.x,n.y)})),r=e.graphDataManager.getDrawings().filter((function(n){return e.inRectangleHelper.inRectangle(t,n.x,n.y)})),o=e.graphDataManager.getNodes().filter((function(n){return void 0!==n.label&&e.inRectangleHelper.inRectangle(t,n.x+n.label.x,n.y+n.label.y)})).map((function(e){return e.label})),a=NK(e.graphDataManager.getLinks().filter((function(n){return void 0!==n.source&&2==n.nodes.length&&void 0!==n.nodes[0].label&&e.inRectangleHelper.inRectangle(t,n.source.x+n.nodes[0].label.x,n.source.y+n.nodes[0].label.y)})).map((function(e){return e.nodes[0]})),e.graphDataManager.getLinks().filter((function(n){return void 0!==n.target&&2==n.nodes.length&&void 0!==n.nodes[1].label&&e.inRectangleHelper.inRectangle(t,n.target.x+n.nodes[1].label.x,n.target.y+n.nodes[1].label.y)})).map((function(e){return e.nodes[1]}))),s=NK(n,i,r,o,a);e.selectionManager.setSelected(s)}))},e.prototype.ngOnDestroy=function(){this.onSelection.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(b9),_a(P7),_a(U9),_a(j7))},e.\u0275cmp=ze({type:e,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),W9=function(){function e(e,t){this.selectionManager=e,this.mapChangeDetectorRef=t}return e.prototype.ngOnInit=function(){var e=this;this.onSelected=this.selectionManager.selected.subscribe((function(){e.mapChangeDetectorRef.detectChanges()})),this.onUnselected=this.selectionManager.unselected.subscribe((function(){e.mapChangeDetectorRef.detectChanges()}))},e.prototype.ngOnDestroy=function(){this.onSelected.unsubscribe(),this.onUnselected.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(j7),_a(n7))},e.\u0275cmp=ze({type:e,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),K9=function(){function e(){this.created=new Yc,this.interfaceDragged=new Yc}return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),X9=function(){function e(e,t,n,i,r,o,a,s,c,l,u){this.nodesWidget=e,this.drawingsWidget=t,this.linksWidget=n,this.labelWidget=i,this.interfaceWidget=r,this.selectionManager=o,this.nodesEventSource=a,this.drawingsEventSource=s,this.graphDataManager=c,this.linksEventSource=l,this.mapSettingsService=u,this.isMapLocked=!1}return e.prototype.ngOnInit=function(){var e=this,t=Kk(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe((function(t){e.isMapLocked=t})),this.start=Object(C.a)(this.nodesWidget.draggable.start,this.drawingsWidget.draggable.start,this.labelWidget.draggable.start,this.interfaceWidget.draggable.start).subscribe((function(t){var n=e.selectionManager.getSelected();t.datum instanceof r7&&0===n.filter((function(e){return e instanceof r7&&e.id===t.datum.id})).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof p6&&0===n.filter((function(e){return e instanceof p6&&e.id===t.datum.id})).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof o7&&0===n.filter((function(e){return e instanceof o7&&e.id===t.datum.id})).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof d7&&0===n.filter((function(e){return e instanceof d7&&e.id===t.datum.id})).length&&e.selectionManager.setSelected([t.datum])})),this.drag=Object(C.a)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe((function(n){if(!e.isMapLocked){var i=e.selectionManager.getSelected(),r=i.filter((function(e){return e instanceof r7})),o=r.filter((function(e){return e.locked})),a=r.filter((function(e){return!e.locked}));a.forEach((function(i){i.x+=n.dx,i.y+=n.dy,e.nodesWidget.redrawNode(t,i),e.graphDataManager.getLinks().filter((function(e){return void 0!==e.target&&e.target.id===i.id||void 0!==e.source&&e.source.id===i.id})).forEach((function(n){e.linksWidget.redrawLink(t,n)}))})),i.filter((function(e){return e instanceof p6})).filter((function(e){return!e.locked})).forEach((function(i){i.x+=n.dx,i.y+=n.dy,e.drawingsWidget.redrawDrawing(t,i)})),i.filter((function(e){return e instanceof o7})).filter((function(e){return 0===o.filter((function(t){return t.id===e.nodeId})).length})).forEach((function(i){if(!(a.filter((function(e){return e.id===i.nodeId})).length>0)){var r=e.graphDataManager.getNodes().filter((function(e){return e.id===i.nodeId}))[0];r.label.x+=n.dx,r.label.y+=n.dy,e.labelWidget.redrawLabel(t,i)}})),i.filter((function(e){return e instanceof d7})).filter((function(e){return 0===o.filter((function(t){return t.id===e.nodeId})).length})).forEach((function(i){if(!(a.filter((function(e){return e.id===i.nodeId})).length>0)){var r=e.graphDataManager.getLinks().filter((function(e){return e.nodes[0].id===i.id||e.nodes[1].id===i.id}))[0];r.nodes[0].id===i.id&&(r.nodes[0].label.x+=n.dx,r.nodes[0].label.y+=n.dy),r.nodes[1].id===i.id&&(r.nodes[1].label.x+=n.dx,r.nodes[1].label.y+=n.dy),e.linksWidget.redrawLink(t,r)}}))}})),this.end=Object(C.a)(this.nodesWidget.draggable.end,this.drawingsWidget.draggable.end,this.labelWidget.draggable.end,this.interfaceWidget.draggable.end).subscribe((function(t){if(!e.isMapLocked){var n=e.selectionManager.getSelected(),i=n.filter((function(e){return e instanceof r7})),r=i.filter((function(e){return e.locked})),o=i.filter((function(e){return!e.locked}));o.forEach((function(n){e.nodesEventSource.dragged.emit(new N7(n,t.dx,t.dy))})),n.filter((function(e){return e instanceof p6})).filter((function(e){return!e.locked})).forEach((function(n){e.drawingsEventSource.dragged.emit(new N7(n,t.dx,t.dy))})),n.filter((function(e){return e instanceof o7})).filter((function(e){return 0===r.filter((function(t){return t.id===e.nodeId})).length})).forEach((function(n){o.filter((function(e){return e.id===n.nodeId})).length>0||e.nodesEventSource.labelDragged.emit(new N7(n,t.dx,t.dy))})),n.filter((function(e){return e instanceof d7})).filter((function(e){return 0===r.filter((function(t){return t.id===e.nodeId})).length})).forEach((function(n){o.filter((function(e){return e.id===n.nodeId})).length>0||e.linksEventSource.interfaceDragged.emit(new N7(n,t.dx,t.dy))}))}}))},e.prototype.ngOnDestroy=function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(p9),_a(l9),_a(E9),_a(X7),_a(x9),_a(j7),_a(Y7),_a(D9),_a(P7),_a(K9),_a(I4))},e.\u0275cmp=ze({type:e,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Y9=["svg"],Z9=["textEditor"],Q9=function(){function e(e,t,n,i,r,o,a,s,c,l,u,h,d){this.graphDataManager=e,this.context=t,this.mapChangeDetectorRef=n,this.canvasSizeDetector=i,this.mapSettings=r,this.element=o,this.interfaceLabelWidget=a,this.selectionToolWidget=s,this.movingToolWidget=c,this.graphLayout=l,this.toolsService=u,this.mapScaleService=h,this.mapSettingsService=d,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.subscriptions=[],this.settings={show_interface_labels:!0},this.gridVisibility=0,this.nodeGridX=0,this.nodeGridY=0,this.drawingGridX=0,this.drawingGridY=0,this.parentNativeElement=o.nativeElement}return Object.defineProperty(e.prototype,"showInterfaceLabels",{set:function(e){e&&!this.mapSettingsService.integrateLinkLabelsToLinks?(this.settings.show_interface_labels=!0,this.interfaceLabelWidget.setEnabled(!0)):(this.settings.show_interface_labels=!1,this.interfaceLabelWidget.setEnabled(!1)),this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{set:function(e){this.mapSettings.isReadOnly=e},enumerable:!1,configurable:!0}),e.prototype.resize=function(e){this.svg.attr("height",e?window.innerHeight+window.scrollY-16:this.height)},e.prototype.ngOnChanges=function(e){(e.width&&!e.width.isFirstChange()||e.height&&!e.height.isFirstChange()||e.drawings&&!e.drawings.isFirstChange()||e.nodes&&!e.nodes.isFirstChange()||e.links&&!e.links.isFirstChange()||e.symbols&&!e.symbols.isFirstChange())&&this.svg.empty&&!this.svg.empty()&&(e.symbols&&this.onSymbolsChange(e.symbols),this.changeLayout())},e.prototype.ngOnInit=function(){var e=this;null!==this.parentNativeElement&&this.createGraph(this.parentNativeElement),this.context.size=this.getSize(),this.onChangesDetected=this.mapChangeDetectorRef.changesDetected.subscribe((function(){e.mapChangeDetectorRef.hasBeenDrawn&&e.redraw()})),this.subscriptions.push(this.mapScaleService.scaleChangeEmitter.subscribe((function(t){return e.redraw()}))),this.subscriptions.push(this.toolsService.isMovingToolActivated.subscribe((function(t){e.mapChangeDetectorRef.detectChanges()}))),this.subscriptions.push(this.toolsService.isSelectionToolActivated.subscribe((function(t){e.selectionToolWidget.setEnabled(t),e.mapChangeDetectorRef.detectChanges()}))),this.subscriptions.push(this.toolsService.isDrawLinkToolActivated.subscribe((function(t){e.drawLinkTool=t}))),this.gridVisibility="true"===localStorage.getItem("gridVisibility")?1:0,this.mapSettingsService.isScrollDisabled.subscribe((function(t){return e.resize(t)}))},e.prototype.ngOnDestroy=function(){this.graphLayout.disconnect(this.svg),this.onChangesDetected.unsubscribe(),this.subscriptions.forEach((function(e){e.unsubscribe()}))},e.prototype.applyMapSettingsChanges=function(){this.redraw()},e.prototype.createGraph=function(e){var t=Kk(e);this.svg=t.select("svg"),this.graphLayout.connect(this.svg,this.context),this.graphLayout.draw(this.svg,this.context),this.mapChangeDetectorRef.hasBeenDrawn=!0},e.prototype.getSize=function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)},e.prototype.changeLayout=function(){null!=this.parentNativeElement&&(this.context.size=this.getSize()),this.redraw()},e.prototype.onSymbolsChange=function(e){this.graphDataManager.setSymbols(this.symbols)},e.prototype.redraw=function(){this.updateGrid(),this.graphDataManager.setNodes(this.nodes),this.graphDataManager.setLinks(this.links),this.graphDataManager.setDrawings(this.drawings),this.graphLayout.draw(this.svg,this.context),this.textEditor.activateTextEditingForDrawings(),this.textEditor.activateTextEditingForNodeLabels(),this.mapSettingsService.mapRenderedEmitter.emit(!0)},e.prototype.updateGrid=function(){this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.grid_size)*this.project.grid_size),this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.grid_size)*this.project.grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.drawing_grid_size)*this.project.drawing_grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.drawing_grid_size)*this.project.drawing_grid_size)},e.prototype.onResize=function(e){this.changeLayout()},e.\u0275fac=function(t){return new(t||e)(_a(P7),_a(s9),_a(n7),_a(A9),_a(F7),_a(Ks),_a(x9),_a(y9),_a(_9),_a(j9),_a(I9),_a(R9),_a(I4))},e.\u0275cmp=ze({type:e,selectors:[["app-d3-map"]],viewQuery:function(e,t){var n;1&e&&(cl(Y9,!0),cl(Z9,!0)),2&e&&(al(n=fl())&&(t.svgRef=n.first),al(n=fl())&&(t.textEditor=n.first))},hostBindings:function(e,t){1&e&&Ia("resize",(function(e){return t.onResize(e)}),!1,En)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",project:"project",server:"server",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],readonly:"readonly"},features:[ct],decls:19,vars:18,consts:[["id","map","preserveAspectRatio","none","movingCanvas","","zoomingCanvas","",1,"map"],["svg",""],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],["id","gridDrawing","patternUnits","userSpaceOnUse"],["fill","none","stroke","silver"],["id","gridNode","patternUnits","userSpaceOnUse"],["fill","none","stroke","DarkSlateGray"],["width","100%","height","100%","fill","url(#gridDrawing)"],["width","100%","height","100%","fill","url(#gridNode)"],[3,"svg"],[3,"server","svg"],["textEditor",""]],template:function(e,t){if(1&e&&(cn(),Sa(0,"svg",0,1),Sa(2,"filter",2),Oa(3,"feColorMatrix",3),xa(),Sa(4,"defs"),Sa(5,"pattern",4),Oa(6,"path",5),xa(),xa(),Sa(7,"defs"),Sa(8,"pattern",6),Oa(9,"path",7),xa(),xa(),Oa(10,"rect",8),Oa(11,"rect",9),xa(),ln(),Oa(12,"app-drawing-adding",10),Oa(13,"app-drawing-resizing"),Oa(14,"app-selection-control"),Oa(15,"app-selection-select"),Oa(16,"app-text-editor",11,12),Oa(18,"app-draggable-selection",10)),2&e){var n=ya(1);ar(5),fa("x",t.drawingGridX)("y",t.drawingGridY)("width",t.project.drawing_grid_size)("height",t.project.drawing_grid_size),ar(1),va("d","M ",t.project.drawing_grid_size," 0 L 0 0 0 ",t.project.drawing_grid_size,""),fa("stroke-width",t.gridVisibility),ar(2),fa("x",t.nodeGridX)("y",t.nodeGridY)("width",t.project.grid_size)("height",t.project.grid_size),ar(1),va("d","M ",t.project.grid_size," 0 L 0 0 0 ",t.project.grid_size,""),fa("stroke-width",t.gridVisibility),ar(3),ka("svg",n),ar(4),ka("server",t.server)("svg",n),ar(2),ka("svg",n)}},directives:[B9,H9,z9,q9,G9,W9,F9,X9],styles:["svg[_ngcontent-%COMP%]{display:block}"]}),e}(),$9=function(){function e(){}return e.prototype.convert=function(e){var t=new f6;return t.drawing_id=e.id,t.project_id=e.projectId,t.rotation=e.rotation,t.svg=e.svg,t.locked=e.locked,t.x=e.x,t.y=e.y,t.z=e.z,t.element=e.element,t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),J9=function(){function e(){}return e.prototype.setServerId=function(e){this.serverId=e},e.prototype.setProjectId=function(e){this.projectId=e},e.prototype.getServerId=function(){return this.serverId},e.prototype.getProjectId=function(){return this.projectId},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),eee=function(){function e(e){this.mapLabelToLabel=e}return e.prototype.convert=function(e){var t=new D6;return t.node_id=e.nodeId,t.adapter_number=e.adapterNumber,t.port_number=e.portNumber,t.label=this.mapLabelToLabel.convert(e.label),t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(u9))}}),e}(),tee=function(){function e(e){this.mapLinkNodeToMapLinkNode=e}return e.prototype.convert=function(e){var t=this,n=new I6;return n.link_id=e.id,n.capture_file_name=e.captureFileName,n.capture_file_path=e.captureFilePath,n.capturing=e.capturing,n.filters=e.filters,n.link_type=e.linkType,n.nodes=e.nodes.map((function(e){return t.mapLinkNodeToMapLinkNode.convert(e)})),n.project_id=e.projectId,n.suspend=e.suspend,n},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(eee))}}),e}(),nee=function(){function e(e){this.fontBBCalculator=e,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return e.prototype.fix=function(e){e.label.style="font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;";var t=this.fontBBCalculator.calculate(e.label.text,e.label.style);return e.label.x=e.width/2-t.width/2,e.label.y=-t.height-this.MARGIN_BETWEEN_NODE_AND_LABEL,e},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(a7))}}),e}(),iee=n("vAVA"),ree='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',oee="http://www.w3.org/2000/xmlns/",aee="http://www.w3.org/1999/xlink",see="http://www.w3.org/2000/svg",cee="untitled";function lee(){var e=document.createElementNS(see,"svg");document.body.appendChild(e),e.style.all="initial";var t=getComputedStyle(e);return document.body.removeChild(e),e=null,t}function uee(e,t){function n(e){for(var n,i,r=getComputedStyle(e),o="",a=0,s=r.length;a<s;a++)(i=r.getPropertyValue(n=r[a]))!==t.getPropertyValue(n)&&(o+="".concat(n,":").concat(i,";"));e.setAttribute("style",o)}for(var i,r,o=((r=[]).push(i=e),function e(t){if(t&&t.hasChildNodes())for(var n=t.firstChild;n;)1===n.nodeType&&"SCRIPT"!==n.nodeName&&(r.push(n),e(n)),n=n.nextSibling}(i),r),a=o.length;a--;)n(o[a])}function hee(e){var t=document.createElement("style");t.innerHTML=Array.from(document.styleSheets).map((function(e){return Array.from(e.cssRules).map((function(e){return e.cssText})).join(" ")})).join(" "),e.prepend(t)}function dee(e,t,n){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",e),i.setAttribute("href",t),i.style.display="none",i.click(),setTimeout((function(){n&&n(),document.body.removeChild(i)}),10)}var fee={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:"Unknown"},pee={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},mee={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},gee={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:"Unknown",HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},vee=Object.assign(Object.assign(Object.assign({},pee),mee),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),bee={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},yee={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},_ee=function(e,t){return e[t]=bee[t],e},wee=Object.keys(bee).reduce(_ee,{}),kee=function(e,t){return e[fee[t]]=yee[t],e},Cee=Object.keys(yee).reduce(kee,{}),See=Object.freeze({__proto__:null,BROWSERS:fee,MOBILES_RE:pee,TABLETS_RE:mee,DEVICES:gee,OS:{WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:"Unknown"},OS_VERSIONS:{WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:"unknown"},OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:vee,OS_VERSIONS_RE_MAP:bee,BROWSER_VERSIONS_RE_MAP:yee,OS_VERSIONS_RE:wee,BROWSER_VERSIONS_RE:Cee,"\u02750":_ee,"\u02751":kee}),xee=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,[{key:"test",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.test(e):t&&Array.isArray(t.and)?t.and.every((function(t){return n.test(e,t)})):t&&Array.isArray(t.or)?t.or.some((function(t){return n.test(e,t)})):!(!t||!t.not||this.test(e,t.not))}},{key:"exec",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.exec(e):t&&Array.isArray(t)?t.reduce((function(t,i){return t||n.exec(e,i)}),null):null}}]),e}(),Oee="iPad",Mee=function(){var e=function(){function e(t){Object(m.a)(this,e),this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new xee,wd(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return Object(g.a)(e,[{key:"setDeviceInfo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;t!==this.userAgent&&(this.userAgent=t);var n=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(n.forEach((function(n){e[n.prop]=Object.keys(See[n.const]).reduce((function(i,r){return"device"===See[n.const][r]&&wd(e.platformId)&&(e.reTree.test(e.userAgent,mee.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(i[See[n.const][r]]=Oee,Object):(i[See[n.const][r]]=e.reTree.test(t,See["".concat(n.const,"_RE")][r]),i)}),{})})),n.forEach((function(t){e[t.prop]=Object.keys(See[t.const]).map((function(e){return See[t.const][e]})).reduce((function(n,i){return"device"===t.prop&&n===See[t.const].ANDROID?e[t.prop][i]?i:n:n===See[t.const].UNKNOWN&&e[t.prop][i]?i:n}),See[t.const].UNKNOWN)})),this.browser_version="0",this.browser!==fee.UNKNOWN){var i=Cee[this.browser],r=this.reTree.exec(t,i);r&&(this.browser_version=r[1])}}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version}}},{key:"isMobile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(this.isTablet(t))return!1;var n=Object.keys(pee).find((function(n){return e.reTree.test(t,pee[n])}));return!!n}},{key:"isTablet",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(wd(this.platformId)&&(this.reTree.test(this.userAgent,mee.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var n=Object.keys(mee).find((function(n){return!!e.reTree.test(t,mee[n])}));return!!n}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent,t=[gee.PS4,gee.CHROME_BOOK,gee.UNKNOWN];return(this.device!==gee.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&t.indexOf(this.device)>-1}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Cl))},e.\u0275prov=R({factory:function(){return new e(we(Cl))},token:e,providedIn:"root"}),e}();function Tee(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Name for screenshot is required"),xa())}function Eee(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Entered name is incorrect"),xa())}var Pee=function(e){return{"is-invalid":e}},jee=function(){function e(e,t,n,i,r){this.dialogRef=e,this.toasterService=t,this.formBuilder=n,this.electronService=i,this.deviceService=r,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new Cp("screenshot-"+Date.now(),[Df.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"form",{get:function(){return this.nameForm.controls},enumerable:!1,configurable:!0}),e.prototype.onAddClick=function(){if(!this.nameForm.invalid){var e={name:this.nameForm.get("screenshotName").value,filetype:this.filetype};this.dialogRef.close(e)}},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.onKeyDown=function(e){"Enter"===e.key&&this.onAddClick()},e.prototype.setFiletype=function(e){this.isPngAvailable&&(this.filetype=e)},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(iJ),_a(um),_a(hU),_a(Mee))},e.\u0275cmp=ze({type:e,selectors:[["app-screenshot-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["aria-label","Sorting",1,"radio-group"],["value","1","checked","",3,"click"],["value","2",3,"disabled","click"],[1,"name-form",3,"formGroup"],[1,"name-form"],["matInput","","type","text","formControlName","screenshotName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Take a screenshot"),xa(),Sa(2,"mat-radio-group",1),Sa(3,"mat-radio-button",2),Ia("click",(function(){return t.setFiletype("svg")})),_s(4,"SVG"),xa(),Sa(5,"mat-radio-button",3),Ia("click",(function(){return t.setFiletype("png")})),_s(6,"PNG"),xa(),xa(),Sa(7,"form",4),Sa(8,"mat-form-field",5),Sa(9,"input",6),Ia("keydown",(function(e){return t.onKeyDown(e)})),xa(),ba(10,Tee,2,0,"mat-error",7),ba(11,Eee,2,0,"mat-error",7),xa(),Sa(12,"div",8),Sa(13,"button",9),Ia("click",(function(){return t.onNoClick()})),_s(14,"Cancel"),xa(),Sa(15,"button",10),Ia("click",(function(){return t.onAddClick()})),_s(16,"Take a screenshot"),xa(),xa(),xa()),2&e&&(ar(5),ka("disabled",!t.isPngAvailable),ar(2),ka("formGroup",t.nameForm),ar(2),ka("ngClass",Bc(5,Pee,null==t.form.acreenshotName?null:t.form.acreenshotName.errors)),ar(1),ka("ngIf",(null==t.form.screenshotName?null:t.form.screenshotName.touched)&&(null==t.form.screenshotName?null:t.form.screenshotName.errors)&&(null==t.form.screenshotName?null:t.form.screenshotName.errors.required)),ar(1),ka("ngIf",(null==t.form.screenshotName?null:t.form.screenshotName.touched)&&(null==t.form.screenshotName?null:t.form.screenshotName.errors)&&(null==t.form.acreenshotName?null:t.form.acreenshotName.errors.invalidName)))},directives:[oQ,l3,f3,Lp,Tf,zp,a0,y0,wf,Mf,Xp,Rh,Hh,sQ,h$,UJ],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),e}(),Aee=function(){function e(e,t){var n=this;this._mainTheme$=new Um.a("theme-default"),this._darkMode$=new Um.a(!1),this.themeLinks=[],this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new Yc,this.savedTheme="dark",this.head=t.head,this._renderer=e.createRenderer(null,null),this.theme$=Object(wU.b)(this._mainTheme$,this._darkMode$),this.theme$.subscribe((function(e){var t=e[0],i=e[1];return LK(n,void 0,void 0,(function(){var e;return FK(this,(function(n){switch(n.label){case 0:return e=".css",[4,this.loadCss(i?t+"-dark"+e:t+e)];case 1:return n.sent(),2==this.themeLinks.length&&this._renderer.removeChild(this.head,this.themeLinks.shift()),[2]}}))}))}))}return e.prototype.getActualTheme=function(){return this.savedTheme},e.prototype.setMainTheme=function(e){this._mainTheme$.next(e)},e.prototype.setDarkMode=function(e){this._darkMode$.next(e),localStorage.removeItem("theme"),e?(this.savedTheme="dark",this.themeChanged.emit(this.savedTheme),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit(this.savedTheme),localStorage.setItem("theme","light"))},e.prototype.loadCss=function(e){return LK(this,void 0,void 0,(function(){var t=this;return FK(this,(function(n){return[2,new Promise((function(n){var i=t._renderer.createElement("link");t._renderer.setAttribute(i,"rel","stylesheet"),t._renderer.setAttribute(i,"type","text/css"),t._renderer.setAttribute(i,"href",e),t._renderer.setProperty(i,"onload",n),t._renderer.appendChild(t.head,i),t.themeLinks=NK(t.themeLinks,[i])}))]}))}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(Ys),we(bu))},providedIn:"root"}),e}(),Iee=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new BZ;return e.height=100,e.width=100,e.fill="#000000",e.fill_opacity=0,e.font_family="Noto Sans",e.font_size=11,e.font_weight="bold",e},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Dee=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new i6;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.cx=100,e.cy=100,e.rx=100,e.ry=100,e.width=200,e.height=200,e},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Ree=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new J4;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Lee=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new t6;return e.stroke="#000000",e.stroke_width=2,e.x1=0,e.x2=200,e.y1=0,e.y2=0,e.width=100,e.height=0,e},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Fee=function(){function e(e,t,n,i){this.textElementFactory=e,this.ellipseElementFactory=t,this.rectangleElementFactory=n,this.lineElementFactory=i,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return e.prototype.getDrawingMock=function(e){this.factory=this.availableFactories[e];var t=new p6;return t.element=this.factory.getDrawingElement(),t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(Iee),we(Dee),we(Ree),we(Lee))}}),e}(),Nee=function(){function e(e,t,n,i,r){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.drawingsFactory=i,this.mapDrawingToSvgConverter=r,this.drawingSaved=new Yc}return e.prototype.ngOnInit=function(){var e=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe((function(t){return e.onDrawingSaved(t)}))},e.prototype.ngOnChanges=function(e){e.selectedDrawing&&!e.selectedDrawing.isFirstChange()&&(this.selectedDrawing=e.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))},e.prototype.onDrawingSaved=function(e){var t=this,n=this.drawingsFactory.getDrawingMock(this.selectedDrawing),i=this.mapDrawingToSvgConverter.convert(n);this.drawingService.add(this.server,this.project.project_id,e.x,e.y,i).subscribe((function(e){t.drawingsDataSource.add(e),t.drawingSaved.emit(!0)}))},e.prototype.ngOnDestroy=function(){this.pointToAddSelected.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(a6),_a(u6),_a(D9),_a(Fee),_a(g6))},e.\u0275cmp=ze({type:e,selectors:[["app-drawing-added"]],inputs:{server:"server",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[ct],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Bee=function(e){return{selected:e}};function Hee(e,t){if(1&e){var n=Pa();Sa(0,"button",12),Ia("click",(function(){return Dt(n),Ba().addDrawing("line")})),cn(),Sa(1,"svg",13),Oa(2,"line",14),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("ngClass",Bc(1,Bee,i.drawTools.isLineChosen))}}function zee(e,t){if(1&e){var n=Pa();Sa(0,"button",12),Ia("click",(function(){return Dt(n),Ba().addDrawing("line")})),cn(),Sa(1,"svg",13),Oa(2,"line",15),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("ngClass",Bc(1,Bee,i.drawTools.isLineChosen))}}var Vee=function(e,t){return{unmarkedLight:e,marked:t}},qee=function(e){return{unmarkedLight:e}},Uee=function(){function e(e,t,n,i,r,o){this.toolsService=e,this.mapSettingsService=t,this.drawingService=n,this.symbolService=i,this.dialog=r,this.themeService=o,this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return e.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},e.prototype.getCssClassForIcon=function(e){return"text"===e?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===e?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}},e.prototype.takeScreenshot=function(){var e=this;this.dialog.open(jee,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(t){t&&e.saveImage(t)}))},e.prototype.saveImage=function(e){return LK(this,void 0,void 0,(function(){var t,n,i,r,o,a,s,c;return FK(this,(function(l){switch(l.label){case 0:if("png"!==e.filetype)return[3,4];t=document.getElementsByTagName("svg")[0].outerHTML.split("image"),n=1,l.label=1;case 1:return n<t.length?(i=t[n].split('"'),r=i[1].split("/"),[4,this.symbolService.raw(this.server,r[7]).toPromise()]):[3,3];case 2:return o=l.sent(),a=o.split("--\x3e"),t[n]=a[1].substring(2),n+=2,[3,1];case 3:return s=t.join(),(c=document.createElement("div")).innerHTML=s,iee.saveSvgAsPng(c.firstChild,e.name+".png"),[3,5];case 4:Kk("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),u=Kk("svg").node(),h=""+e.name,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cee,n=URL.createObjectURL(new Blob([e.source],{type:"text/xml"}));dee("".concat(t,".svg"),n,(function(){return URL.revokeObjectURL(n)}))}(function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).css,n=void 0===t?"inline":t;if(!(e instanceof SVGElement))throw new Error("SVG element is required");e.setAttribute("version","1.1"),e.removeAttribute("xmlns"),e.removeAttribute("xlink"),e.hasAttributeNS(oee,"xmlns")||e.setAttributeNS(oee,"xmlns",see),e.hasAttributeNS(oee,"xmlns:xlink")||e.setAttributeNS(oee,"xmlns:xlink",aee),"inline"===n?uee(e,lee()):"internal"===n&&hee(e);var i=(new XMLSerializer).serializeToString(e),r=e.getBoundingClientRect();return{top:r.top,left:r.left,width:r.width,height:r.height,class:e.getAttribute("class"),id:e.getAttribute("id"),name:e.getAttribute("name"),childElementCount:e.childElementCount,source:ree+i}}(u,d),h||function(e){if(!(e instanceof SVGElement))throw new Error("SVG Element is required");return e.getAttribute("id")||e.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||cee}(u)),l.label=5;case 5:return[2]}var u,h,d}))}))},e.prototype.addDrawing=function(e){switch(e){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===e?"":e},e.prototype.onDrawingSaved=function(){this.resetDrawToolChoice()},e.prototype.resetDrawToolChoice=function(){this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)},e.prototype.changeLockValue=function(){this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked)},e.prototype.uploadImageFile=function(e){this.readImageFile(e.target)},e.prototype.readImageFile=function(e){var t=this,n=e.files[0],i=new FileReader,r=new Image;i.onloadend=function(){var e=t.createSvgFileForImage(i.result,r);t.drawingService.add(t.server,t.project.project_id,-r.width/2,-r.height/2,e).subscribe((function(){}))},r.onload=function(){i.readAsDataURL(n)},r.src=window.URL.createObjectURL(n)},e.prototype.createSvgFileForImage=function(e,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+e+'"/>\n</svg>'},e.prototype.ngOnDestroy=function(){},e.\u0275fac=function(t){return new(t||e)(_a(I9),_a(I4),_a(a6),_a(z4),_a(nQ),_a(Aee))},e.\u0275cmp=ze({type:e,selectors:[["app-project-map-menu"]],inputs:{project:"project",server:"server"},decls:24,vars:15,consts:[["matTooltip","Add a note","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"ngClass"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["matTooltip","Insert a picture","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a rectangle","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw an ellipse","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","","class","menu-button",3,"click",4,"ngIf"],["matTooltip","Lock or unlock all items","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Take a screenshot","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"server","project","selectedDrawing","drawingSaved"],["id","crowbar-workspace"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["height","40","width","40"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","white","stroke-width","2",3,"ngClass"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","black","stroke-width","2",3,"ngClass"]],template:function(e,t){if(1&e){var n=Pa();Sa(0,"button",0),Ia("click",(function(){return t.addDrawing("text")})),Sa(1,"mat-icon",1),_s(2,"create"),xa(),xa(),Sa(3,"input",2,3),Ia("change",(function(e){return t.uploadImageFile(e)})),xa(),Sa(5,"button",4),Ia("click",(function(){return Dt(n),ya(4).click()})),Sa(6,"mat-icon"),_s(7,"image"),xa(),xa(),Sa(8,"button",5),Ia("click",(function(){return t.addDrawing("rectangle")})),Sa(9,"mat-icon",1),_s(10,"crop_3_2"),xa(),xa(),Sa(11,"button",6),Ia("click",(function(){return t.addDrawing("ellipse")})),Sa(12,"mat-icon",1),_s(13,"panorama_fish_eye"),xa(),xa(),ba(14,Hee,3,3,"button",7),ba(15,zee,3,3,"button",7),Sa(16,"button",8),Ia("click",(function(){return t.changeLockValue()})),Sa(17,"mat-icon",1),_s(18,"lock"),xa(),xa(),Sa(19,"button",9),Ia("click",(function(){return t.takeScreenshot()})),Sa(20,"mat-icon",1),_s(21,"photo_camera"),xa(),xa(),Sa(22,"app-drawing-added",10),Ia("drawingSaved",(function(){return t.onDrawingSaved()})),xa(),Oa(23,"div",11)}2&e&&(ar(1),ka("ngClass",t.getCssClassForIcon("text")),ar(8),ka("ngClass",t.getCssClassForIcon("rectangle")),ar(3),ka("ngClass",t.getCssClassForIcon("ellipse")),ar(2),ka("ngIf",!t.isLightThemeEnabled),ar(1),ka("ngIf",t.isLightThemeEnabled),ar(2),ka("ngClass",Hc(10,Vee,!t.isLocked&&t.isLightThemeEnabled,t.isLocked)),ar(3),ka("ngClass",Bc(13,qee,!t.isLocked&&t.isLightThemeEnabled)),ar(2),ka("server",t.server)("project",t.project)("selectedDrawing",t.selectedDrawing))},directives:[h$,J1,P$,Rh,Hh,Nee],styles:[".menu-button[_ngcontent-%COMP%]{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}mat-divider.divider[_ngcontent-%COMP%]{height:40px;margin-left:1px;margin-right:7px;width:10px;color:grey}.non-visible[_ngcontent-%COMP%]{display:none}.unmarked[_ngcontent-%COMP%]{color:#fff!important}.unmarkedLight[_ngcontent-%COMP%]{color:#000!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),e}(),Gee=n("EcEN");function Wee(e,t){if(1&e){var n=Pa();Sa(0,"div",1),Sa(1,"button",2),Ia("click",(function(){return Dt(n),Ba().onNoClick()})),_s(2,"No"),xa(),Sa(3,"button",3),Ia("click",(function(){return Dt(n),Ba().onYesClick()})),_s(4," Yes "),xa(),xa()}}function Kee(e,t){if(1&e){var n=Pa();Sa(0,"div",1),Sa(1,"button",4),Ia("click",(function(){return Dt(n),Ba().onNoClick()})),_s(2,"Ok"),xa(),xa()}}var Xee=function(){function e(e,t){this.dialogRef=e,this.data=t,this.existingProject=t.existingProject}return e.prototype.ngOnInit=function(){"opened"===this.existingProject.status?(this.confirmationMessage="Project "+this.existingProject.name+" is open. You can not overwrite it.",this.isOpen=!0):this.confirmationMessage="Project "+this.existingProject.name+" already exist, overwrite it?"},e.prototype.onNoClick=function(){this.dialogRef.close(!1)},e.prototype.onYesClick=function(){this.dialogRef.close(!0)},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(QZ))},e.\u0275cmp=ze({type:e,selectors:[["app-import-project-dialog"]],decls:4,vars:3,consts:[["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"],["mat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(Sa(0,"span"),_s(1),xa(),ba(2,Wee,5,0,"div",0),ba(3,Kee,3,0,"div",0)),2&e&&(ar(1),ws(t.confirmationMessage),ar(1),ka("ngIf",!t.isOpen),ar(1),ka("ngIf",t.isOpen))},directives:[Hh,sQ,h$],styles:[""]}),e}(),Yee=function(){function e(){}return e.prototype.get=function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function Zee(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Project name is required"),xa())}function Qee(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Project name is incorrect"),xa())}var $ee=function(e){return{empty:e}},Jee=function(e){return{"is-invalid":e}},ete=function(e){return{width:e}},tte=function(){function e(e,t,n,i,r,o){this.dialog=e,this.dialogRef=t,this.data=n,this.formBuilder=i,this.projectService=r,this.projectNameValidator=o,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new Yc,this.projectNameForm=this.formBuilder.group({projectName:new Cp(null,[Df.required,o.get])})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new vU({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){var o=JSON.parse(n);e.resultMessage="An error occured: "+o.message,e.isFinishEnabled=!0},this.uploader.onCompleteItem=function(t,n,i,r){e.onImportProject.emit(e.uuid),e.resultMessage="Project was imported succesfully!",e.isFinishEnabled=!0}},Object.defineProperty(e.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),e.prototype.uploadProjectFile=function(e){this.projectNameForm.controls.projectName.setValue(e.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0},e.prototype.onImportClick=function(){var e=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.server).subscribe((function(t){var n=e.projectNameForm.controls.projectName.value,i=t.find((function(e){return e.name===n}));i?e.openConfirmationDialog(i):e.importProject()}))},e.prototype.importProject=function(){var e=this.prepareUploadPath();this.uploader.queue.forEach((function(t){return t.url=e})),this.isFirstStepCompleted=!0,this.uploader.uploadItem(this.uploader.queue[0])},e.prototype.openConfirmationDialog=function(e){var t=this;this.dialog.open(Xee,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(n){n&&t.projectService.close(t.server,e.project_id).subscribe((function(){t.projectService.delete(t.server,e.project_id).subscribe((function(){t.importProject()}))}))}))},e.prototype.onNoClick=function(){this.uploader.cancelAll(),this.dialogRef.close()},e.prototype.onFinishClick=function(){this.dialogRef.close()},e.prototype.onDeleteClick=function(){this.uploader.queue.pop(),this.isImportEnabled=!1,this.isDeleteVisible=!1,this.projectNameForm.controls.projectName.setValue("")},e.prototype.prepareUploadPath=function(){return this.uuid=Object(Gee.v4)(),this.projectService.getUploadPath(this.server,this.uuid,this.projectNameForm.controls.projectName.value)},e.\u0275fac=function(t){return new(t||e)(_a(nQ),_a(YZ),_a(QZ),_a(um),_a(GK),_a(Yee))},e.\u0275cmp=ze({type:e,selectors:[["app-import-project-dialog"]],features:[Vs([Yee])],decls:29,vars:19,consts:[["mat-dialog-title",""],[3,"hidden"],[1,"file-name-form",3,"formGroup"],["type","file","accept",".gns3project, .gns3p","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary","matTooltip","Import your .gns3p or .gns3project file","matTooltipClass","custom-tooltip",1,"file-button",3,"click"],[1,"file-name-form-field",3,"ngClass"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass"],[4,"ngIf"],[1,"delete-button",3,"hidden"],["color","primary",1,"delete-icon",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],[1,"result-message-box"]],template:function(e,t){if(1&e){var n=Pa();Sa(0,"h1",0),_s(1,"Import project"),xa(),Sa(2,"div",1),Sa(3,"form",2),Sa(4,"input",3,4),Ia("change",(function(e){return t.uploadProjectFile(e)})),xa(),Sa(6,"button",5),Ia("click",(function(){return Dt(n),ya(5).click()})),_s(7,"Choose file"),xa(),Sa(8,"mat-form-field",6),Oa(9,"input",7),ba(10,Zee,2,0,"mat-error",8),ba(11,Qee,2,0,"mat-error",8),xa(),Sa(12,"button",9),Sa(13,"mat-icon",10),Ia("click",(function(){return t.onDeleteClick()})),_s(14,"clear"),xa(),xa(),Sa(15,"div",11),Sa(16,"button",12),Ia("click",(function(){return t.onNoClick()})),_s(17,"Cancel"),xa(),Sa(18,"button",13),Ia("click",(function(){return t.onImportClick()})),_s(19," Import "),xa(),xa(),xa(),xa(),Sa(20,"div",1),Sa(21,"div",14),Oa(22,"div",15),xa(),Sa(23,"div",16),Sa(24,"span"),_s(25),xa(),xa(),Sa(26,"div",11),Sa(27,"button",13),Ia("click",(function(){return t.onNoClick()})),_s(28," Finish "),xa(),xa(),xa()}2&e&&(ar(2),ka("hidden",t.isFirstStepCompleted),ar(1),ka("formGroup",t.projectNameForm),ar(1),ka("uploader",t.uploader),ar(4),ka("ngClass",Bc(13,$ee,!t.isDeleteVisible)),ar(1),ka("ngClass",Bc(15,Jee,t.form.projectName.errors)),ar(1),ka("ngIf",t.form.projectName.errors&&t.form.projectName.errors.required),ar(1),ka("ngIf",t.form.projectName.errors&&t.form.projectName.errors.invalidName),ar(1),ka("hidden",!t.isDeleteVisible),ar(6),ka("disabled",!t.isImportEnabled),ar(2),ka("hidden",!t.isFirstStepCompleted),ar(2),ka("ngStyle",Bc(17,ete,t.uploader.progress+"%")),ar(3),ws(t.resultMessage),ar(2),ka("disabled",!t.isFinishEnabled))},directives:[oQ,Lp,Tf,zp,bU,h$,J1,a0,Rh,y0,wf,Mf,Xp,Hh,P$,sQ,Yh,UJ],styles:['.non-visible[_ngcontent-%COMP%]{display:none}.file-button[_ngcontent-%COMP%]{width:100%;margin-top:5px;margin-bottom:10px;padding:0}.file-name-form[_ngcontent-%COMP%]{float:right;width:100%}.file-name-form-field[_ngcontent-%COMP%]{width:90%}.empty[_ngcontent-%COMP%]{width:100%}.delete-button[_ngcontent-%COMP%]{background:transparent;border:none;outline:0;width:10%}.delete-icon[_ngcontent-%COMP%]{vertical-align:"middle"}.result-message-box[_ngcontent-%COMP%]{margin-top:10px;text-align:center}.progress-bar[_ngcontent-%COMP%]{background-color:#0097a7}']}),e}();function nte(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Project name is required"),xa())}function ite(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Project name is incorrect"),xa())}function rte(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Project with this name exists"),xa())}var ote=function(e){return{"is-invalid":e}},ate=function(){function e(e,t,n,i,r,o,a){this.dialogRef=e,this.router=t,this.dialog=n,this.projectService=i,this.toasterService=r,this.formBuilder=o,this.projectNameValidator=a,this.onAddProject=new Yc}return e.prototype.ngOnInit=function(){var e,t;this.projectNameForm=this.formBuilder.group({projectName:new Cp(null,[Df.required,this.projectNameValidator.get],[(e=this.server,t=this.projectService,function(n){return Object(uQ.a)(500).pipe(Object(tg.a)((function(){return t.list(e)})),Object(mf.a)((function(e){return e.find((function(e){return e.name===n.value}))?{projectExist:!0}:null})))})])})},Object.defineProperty(e.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),e.prototype.onAddClick=function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.server).subscribe((function(t){var n=e.projectNameForm.controls.projectName.value,i=t.find((function(e){return e.name===n}));i?e.openConfirmationDialog(i):e.addProject()}))},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.addProject=function(){var e=this;this.uuid=Object(Gee.v4)(),this.projectService.add(this.server,this.projectNameForm.controls.projectName.value,this.uuid).subscribe((function(t){e.dialogRef.close(),e.toasterService.success("Project "+t.name+" added"),e.router.navigate(["/server",e.server.id,"project",t.project_id])}))},e.prototype.onKeyDown=function(e){"Enter"===e.key&&this.onAddClick()},e.prototype.openConfirmationDialog=function(e){var t=this;this.dialog.open(Xee,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(n){n&&t.projectService.close(t.server,e.project_id).subscribe((function(){t.projectService.delete(t.server,e.project_id).subscribe((function(){t.addProject()}))}))}))},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(nK),_a(nQ),_a(GK),_a(iJ),_a(um),_a(Yee))},e.\u0275cmp=ze({type:e,selectors:[["app-add-blank-project-dialog"]],features:[Vs([Yee])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Create new project"),xa(),Sa(2,"form",1),Sa(3,"mat-form-field",2),Sa(4,"input",3),Ia("keydown",(function(e){return t.onKeyDown(e)})),xa(),ba(5,nte,2,0,"mat-error",4),ba(6,ite,2,0,"mat-error",4),ba(7,rte,2,0,"mat-error",4),xa(),Sa(8,"div",5),Sa(9,"button",6),Ia("click",(function(){return t.onNoClick()})),_s(10,"Cancel"),xa(),Sa(11,"button",7),Ia("click",(function(){return t.onAddClick()})),_s(12,"Add project"),xa(),xa(),xa()),2&e&&(ar(2),ka("formGroup",t.projectNameForm),ar(2),ka("ngClass",Bc(5,ote,null==t.form.projectName?null:t.form.projectName.errors)),ar(1),ka("ngIf",(null==t.form.projectName?null:t.form.projectName.touched)&&(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.required)),ar(1),ka("ngIf",(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.invalidName)),ar(1),ka("ngIf",(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.projectExist)))},directives:[oQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,Rh,Hh,sQ,h$,UJ],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}();function ste(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Project name is required"),xa())}function cte(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Project name is incorrect"),xa())}var lte=function(e){return{"is-invalid":e}},ute=function(){function e(e,t,n,i,r,o){this.dialogRef=e,this.projectService=t,this.nodesDataSource=n,this.toasterService=i,this.formBuilder=r,this.projectNameValidator=o,this.onAddProject=new Yc,this.projectNameForm=this.formBuilder.group({projectName:new Cp(null,[Df.required,o.get])})}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),e.prototype.onAddClick=function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.server).subscribe((function(t){var n=e.projectNameForm.controls.projectName.value;t.find((function(e){return e.name===n}))?e.toasterService.error("Project with this name already exists."):e.nodesDataSource.getItems().filter((function(e){return"started"===e.status&&"vpcs"===e.node_type||"started"===e.status&&"virtualbox"===e.node_type||"started"===e.status&&"vmware"===e.node_type})).length>0?e.toasterService.error("Please stop all nodes in order to save project."):e.addProject()}))},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.addProject=function(){var e=this;this.projectService.duplicate(this.server,this.project.project_id,this.projectNameForm.controls.projectName.value).subscribe((function(t){e.dialogRef.close(),e.toasterService.success("Project "+t.name+" added")}))},e.prototype.onKeyDown=function(e){"Enter"===e.key&&this.onAddClick()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(GK),_a(c6),_a(iJ),_a(um),_a(Yee))},e.\u0275cmp=ze({type:e,selectors:[["app-save-project-dialog"]],features:[Vs([Yee])],decls:12,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Save project as"),xa(),Sa(2,"form",1),Sa(3,"mat-form-field",2),Sa(4,"input",3),Ia("keydown",(function(e){return t.onKeyDown(e)})),xa(),ba(5,ste,2,0,"mat-error",4),ba(6,cte,2,0,"mat-error",4),xa(),Sa(7,"div",5),Sa(8,"button",6),Ia("click",(function(){return t.onNoClick()})),_s(9,"Cancel"),xa(),Sa(10,"button",7),Ia("click",(function(){return t.onAddClick()})),_s(11,"Save project"),xa(),xa(),xa()),2&e&&(ar(2),ka("formGroup",t.projectNameForm),ar(2),ka("ngClass",Bc(4,lte,null==t.form.projectName?null:t.form.projectName.errors)),ar(1),ka("ngIf",(null==t.form.projectName?null:t.form.projectName.touched)&&(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.required)),ar(1),ka("ngIf",(null==t.form.projectName?null:t.form.projectName.touched)&&(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.invalidName)))},directives:[oQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,Rh,Hh,sQ,h$,UJ],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}();function hte(e,t){1&e&&(Sa(0,"th",26),_s(1,"Name"),xa())}function dte(e,t){if(1&e&&(Sa(0,"td",27),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks("",n.name," ")}}function fte(e,t){1&e&&(Sa(0,"th",26),_s(1,"Value"),xa())}function pte(e,t){if(1&e&&(Sa(0,"td",27),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ws(n.value)}}function mte(e,t){1&e&&(Sa(0,"th",26),_s(1,"Actions"),xa())}function gte(e,t){if(1&e){var n=Pa();Sa(0,"td",27),Sa(1,"button",28),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().deleteVariable(e)})),Sa(2,"mat-icon",29),_s(3,"delete"),xa(),xa(),xa()}}function vte(e,t){1&e&&Oa(0,"tr",30)}function bte(e,t){1&e&&Oa(0,"tr",31)}var yte=function(){return{standalone:!0}},_te=function(){function e(e,t,n,i,r){this.dialogRef=e,this.formBuilder=t,this.projectService=n,this.toasterService=i,this.nonNegativeValidator=r,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new Cp("",[Df.required]),width:new Cp("",[Df.required,r.get]),height:new Cp("",[Df.required,r.get]),nodeGridSize:new Cp("",[Df.required,r.get]),drawingGridSize:new Cp("",[Df.required,r.get])}),this.variableFormGroup=this.formBuilder.group({name:new Cp("",[Df.required]),value:new Cp("",[Df.required])})}return e.prototype.ngOnInit=function(){var e=this;this.formGroup.controls.projectName.setValue(this.project.name),this.formGroup.controls.width.setValue(this.project.scene_width),this.formGroup.controls.height.setValue(this.project.scene_height),this.formGroup.controls.nodeGridSize.setValue(this.project.grid_size),this.formGroup.controls.drawingGridSize.setValue(this.project.drawing_grid_size),this.project.variables&&this.project.variables.forEach((function(t){return e.variables.push(t)})),this.auto_close=!this.project.auto_close},e.prototype.addVariable=function(){if(this.variableFormGroup.valid){var e={name:this.variableFormGroup.get("name").value,value:this.variableFormGroup.get("value").value};this.variables=this.variables.concat([e])}else this.toasterService.error("Fill all required fields with correct values.")},e.prototype.deleteVariable=function(e){this.variables=this.variables.filter((function(t){return t!==e}))},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.onYesClick=function(){var e=this;this.formGroup.valid?(this.project.name=this.formGroup.get("projectName").value,this.project.scene_width=this.formGroup.get("width").value,this.project.scene_height=this.formGroup.get("height").value,this.project.drawing_grid_size=this.formGroup.get("drawingGridSize").value,this.project.grid_size=this.formGroup.get("nodeGridSize").value,this.project.variables=this.variables,this.project.auto_close=!this.project.auto_close,this.projectService.update(this.server,this.project).subscribe((function(t){e.toasterService.success("Project "+t.name+" updated."),e.onNoClick()}))):this.toasterService.error("Fill all required fields with correct values.")},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(um),_a(GK),_a(iJ),_a(v6))},e.\u0275cmp=ze({type:e,selectors:[["app-edit-project-dialog"]],decls:49,vars:17,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["label","General"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","projectName","placeholder","Project name","type","text"],["matInput","","formControlName","width","placeholder","Scene width (px)","type","number"],["matInput","","formControlName","height","placeholder","Scene height (px)","type","number"],["matInput","","formControlName","nodeGridSize","placeholder","Node grid size","type","number"],["matInput","","formControlName","drawingGridSize","placeholder","Drawing grid size","type","number"],[3,"ngModelOptions","ngModel","ngModelChange"],["label","Global variables"],["matInput","","formControlName","name","placeholder","Name","type","text"],["matInput","","formControlName","value","placeholder","Value","type","text"],["mat-button","","mat-raised-button","","color","primary",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete variable","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Edit project"),xa(),Sa(2,"div",1),Sa(3,"mat-tab-group"),Sa(4,"mat-tab",2),Sa(5,"form",3),Sa(6,"mat-form-field",4),Oa(7,"input",5),xa(),Sa(8,"mat-form-field",4),Oa(9,"input",6),xa(),Sa(10,"mat-form-field",4),Oa(11,"input",7),xa(),Sa(12,"mat-form-field",4),Oa(13,"input",8),xa(),Sa(14,"mat-form-field",4),Oa(15,"input",9),xa(),xa(),Sa(16,"mat-checkbox",10),Ia("ngModelChange",(function(e){return t.project.auto_open=e})),_s(17," Open this project in the background when GNS3 server starts "),xa(),Sa(18,"mat-checkbox",10),Ia("ngModelChange",(function(e){return t.project.auto_start=e})),_s(19," Start all nodes when this project is opened "),xa(),Sa(20,"mat-checkbox",10),Ia("ngModelChange",(function(e){return t.auto_close=e})),_s(21," Leave this project running in the background after closing "),xa(),Sa(22,"mat-checkbox",10),Ia("ngModelChange",(function(e){return t.project.show_interface_labels=e})),_s(23," Show interface labels at start "),xa(),xa(),Sa(24,"mat-tab",11),Sa(25,"form",3),Sa(26,"mat-form-field",4),Oa(27,"input",12),xa(),Sa(28,"mat-form-field",4),Oa(29,"input",13),xa(),xa(),Sa(30,"button",14),Ia("click",(function(){return t.addVariable()})),_s(31,"Add variable"),xa(),Sa(32,"table",15),Ma(33,16),ba(34,hte,2,0,"th",17),ba(35,dte,2,1,"td",18),Ta(),Ma(36,19),ba(37,fte,2,0,"th",17),ba(38,pte,2,1,"td",18),Ta(),Ma(39,20),ba(40,mte,2,0,"th",17),ba(41,gte,4,0,"td",18),Ta(),ba(42,vte,1,0,"tr",21),ba(43,bte,1,0,"tr",22),xa(),xa(),xa(),xa(),Sa(44,"div",23),Sa(45,"button",24),Ia("click",(function(){return t.onNoClick()})),_s(46,"Cancel"),xa(),Sa(47,"button",25),Ia("click",(function(){return t.onYesClick()})),_s(48,"Apply"),xa(),xa()),2&e&&(ar(5),ka("formGroup",t.formGroup),ar(11),ka("ngModelOptions",Nc(13,yte))("ngModel",t.project.auto_open),ar(2),ka("ngModelOptions",Nc(14,yte))("ngModel",t.project.auto_start),ar(2),ka("ngModelOptions",Nc(15,yte))("ngModel",t.auto_close),ar(2),ka("ngModelOptions",Nc(16,yte))("ngModel",t.project.show_interface_labels),ar(3),ka("formGroup",t.variableFormGroup),ar(7),ka("dataSource",t.variables),ar(10),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns))},directives:[oQ,KQ,FQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,zf,Q0,Rp,h$,f1,w1,v1,m1,E1,I1,sQ,C1,M1,J1,P$,R1,B1],styles:[".form-field[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}"]}),e}();function wte(e,t){}var kte=new he("MatBottomSheetData"),Cte=function e(){Object(m.a)(this,e),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0},Ste={bottomSheetState:jv("state",[Lv("void, hidden",Rv({transform:"translateY(100%)"})),Lv("visible",Rv({transform:"translateY(0%)"})),Nv("visible => void, visible => hidden",Av("".concat(YX.COMPLEX," ").concat(XX.ACCELERATION_CURVE))),Nv("void => visible",Av("".concat(YX.EXITING," ").concat(XX.DECELERATION_CURVE)))])},xte=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s){var c;return Object(m.a)(this,n),(c=t.call(this))._elementRef=e,c._changeDetectorRef=i,c._focusTrapFactory=r,c.bottomSheetConfig=s,c._animationState="void",c._animationStateChanged=new Yc,c._elementFocusedBeforeOpened=null,c.attachDomPortal=function(e){return c._validatePortalAttached(),c._setPanelClass(),c._savePreviouslyFocusedElement(),c._portalOutlet.attachDomPortal(e)},c._document=a,c._breakpointSubscription=o.observe([V$,q$,U$]).subscribe((function(){c._toggleClass("mat-bottom-sheet-container-medium",o.isMatched(V$)),c._toggleClass("mat-bottom-sheet-container-large",o.isMatched(q$)),c._toggleClass("mat-bottom-sheet-container-xlarge",o.isMatched(U$))})),c}return Object(g.a)(n,[{key:"attachComponentPortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_toggleClass",value:function(e,t){var n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):t&&e.classList.add(t)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._elementFocusedBeforeOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()}))}}]),n}(LX);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(gX),_a(H$),_a(bu,8),_a(Cte))},e.\u0275cmp=ze({type:e,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){var n;1&e&&sl(BX,!0),2&e&&al(n=fl())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&Da("@state.start",(function(e){return t._onAnimationStart(e)}))("@state.done",(function(e){return t._onAnimationDone(e)})),2&e&&(fa("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),Ms("@state",t._animationState))},features:[Es],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ba(0,wte,0,0,"ng-template",0)},directives:[BX],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[Ste.bottomSheetState]},changeDetection:0}),e}(),Ote=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[vZ,$X,VX],$X]}),e}(),Mte=function(){function e(t,n,i){var r=this;Object(m.a)(this,e),this._overlayRef=n,this._afterDismissed=new w.b,this._afterOpened=new w.b,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe(Object($m.a)((function(e){return"done"===e.phaseName&&"visible"===e.toState})),Object(Wm.a)(1)).subscribe((function(){r._afterOpened.next(),r._afterOpened.complete()})),t._animationStateChanged.pipe(Object($m.a)((function(e){return"done"===e.phaseName&&"hidden"===e.toState})),Object(Wm.a)(1)).subscribe((function(){clearTimeout(r._closeFallbackTimeout),n.dispose()})),n.detachments().pipe(Object(Wm.a)(1)).subscribe((function(){r._afterDismissed.next(r._result),r._afterDismissed.complete()})),Object(C.a)(n.backdropClick(),n.keydownEvents().pipe(Object($m.a)((function(e){return e.keyCode===KK})))).subscribe((function(e){r.disableClose||"keydown"===e.type&&YK(e)||(e.preventDefault(),r.dismiss())}))}return Object(g.a)(e,[{key:"dismiss",value:function(e){var t=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(Object($m.a)((function(e){return"start"===e.phaseName})),Object(Wm.a)(1)).subscribe((function(e){t._closeFallbackTimeout=setTimeout((function(){t._overlayRef.dispose()}),e.totalTime+100),t._overlayRef.detachBackdrop()})),this._result=e,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),e}(),Tte=new he("mat-bottom-sheet-default-options"),Ete=function(){var e=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this._overlay=t,this._injector=n,this._parentBottomSheet=i,this._location=r,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null}return Object(g.a)(e,[{key:"open",value:function(e,t){var n=this,i=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new Cte,t),r=this._createOverlay(i),o=this._attachContainer(r,i),a=new Mte(o,r,this._location);if(e instanceof vc)o.attachTemplatePortal(new DX(e,null,{$implicit:i.data,bottomSheetRef:a}));else{var s=new IX(e,void 0,this._createInjector(i,a)),c=o.attachComponentPortal(s);a.instance=c.instance}return a.afterDismissed().subscribe((function(){n._openedBottomSheetRef==a&&(n._openedBottomSheetRef=null)})),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe((function(){return a.containerInstance.enter()})),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(e,t){var n=na.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:Cte,useValue:t}]}),i=new IX(xte,t.viewContainerRef,n);return e.attach(i).instance}},{key:"_createOverlay",value:function(e){var t=new WY({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:Mte,useValue:t},{provide:kte,useValue:e.data}];return!e.direction||n&&n.get(pm,null)||i.push({provide:pm,useValue:{value:e.direction,change:Object(Sm.a)()}}),na.create({parent:n||this._injector,providers:i})}},{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(hZ),we(na),we(e,12),we(Iu,8),we(Tte,8))},e.\u0275prov=R({factory:function(){return new e(we(hZ),we(de),we(e,12),we(Iu,8),we(Tte,8))},token:e,providedIn:Ote}),e}(),Pte=function(e){return{lightTheme:e}},jte=function(){function e(e,t){this.bottomSheetRef=e,this.themeService=t,this.projectMessage="",this.isLightThemeEnabled=!1}return e.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},e.prototype.onNoClick=function(){this.bottomSheetRef.dismiss(!1)},e.prototype.onYesClick=function(){this.bottomSheetRef.dismiss(!0)},e.\u0275fac=function(t){return new(t||e)(_a(Mte),_a(Aee))},e.\u0275cmp=ze({type:e,selectors:[["app-navigation-dialog"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"],["mat-button","",1,"confirmButton",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),_s(2),xa(),Sa(3,"div"),Sa(4,"button",2),Ia("click",(function(){return t.onNoClick()})),_s(5,"No"),xa(),Sa(6,"button",3),Ia("click",(function(){return t.onYesClick()})),_s(7,"Yes"),xa(),xa(),xa()),2&e&&(ka("ngClass",Bc(2,Pte,t.isLightThemeEnabled)),ar(2),ks(" Do you want to navigate to ",t.projectMessage,"?"))},directives:[Rh,h$],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]}),e}(),Ate=function(e){return{lightTheme:e}},Ite=function(){function e(e,t){this.bottomSheetRef=e,this.themeService=t,this.message="",this.isLightThemeEnabled=!1}return e.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},e.prototype.onNoClick=function(){this.bottomSheetRef.dismiss(!1)},e.prototype.onYesClick=function(){this.bottomSheetRef.dismiss(!0)},e.\u0275fac=function(t){return new(t||e)(_a(Mte),_a(Aee))},e.\u0275cmp=ze({type:e,selectors:[["app-confirmation-bottomsheet"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),_s(2),xa(),Sa(3,"div"),Sa(4,"button",2),Ia("click",(function(){return t.onNoClick()})),_s(5,"No"),xa(),Sa(6,"button",2),Ia("click",(function(){return t.onYesClick()})),_s(7,"Yes"),xa(),xa(),xa()),2&e&&(ka("ngClass",Bc(2,Ate,t.isLightThemeEnabled)),ar(2),ws(t.message))},directives:[Rh,h$],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]}),e}(),Dte=function(){function e(e){this.httpServer=e}return e.prototype.notificationsPath=function(e){return"ws://"+e.host+":"+e.port+"/v2/notifications/ws"},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function Rte(e,t){if(1&e&&(Sa(0,"mat-option",19),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Lte(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",16),Sa(1,"mat-select",17),Ia("selectionChange",(function(e){return Dt(n),Ba(2)._changePageSize(e.value)})),ba(2,Rte,2,2,"mat-option",18),xa(),xa()}if(2&e){var i=Ba(2);ka("appearance",i._formFieldAppearance)("color",i.color),ar(1),ka("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),ar(1),ka("ngForOf",i._displayedPageSizeOptions)}}function Fte(e,t){if(1&e&&(Sa(0,"div",20),_s(1),xa()),2&e){var n=Ba(2);ar(1),ws(n.pageSize)}}function Nte(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),_s(2),xa(),ba(3,Lte,3,6,"mat-form-field",14),ba(4,Fte,2,1,"div",15),xa()),2&e){var n=Ba();ar(2),ks(" ",n._intl.itemsPerPageLabel," "),ar(1),ka("ngIf",n._displayedPageSizeOptions.length>1),ar(1),ka("ngIf",n._displayedPageSizeOptions.length<=1)}}function Bte(e,t){if(1&e){var n=Pa();Sa(0,"button",21),Ia("click",(function(){return Dt(n),Ba().firstPage()})),cn(),Sa(1,"svg",7),Oa(2,"path",22),xa(),xa()}if(2&e){var i=Ba();ka("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),fa("aria-label",i._intl.firstPageLabel)}}function Hte(e,t){if(1&e){var n=Pa();cn(),ln(),Sa(0,"button",23),Ia("click",(function(){return Dt(n),Ba().lastPage()})),cn(),Sa(1,"svg",7),Oa(2,"path",24),xa(),xa()}if(2&e){var i=Ba();ka("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),fa("aria-label",i._intl.lastPageLabel)}}var zte=function(){var e=function e(){Object(m.a)(this,e),this.changes=new w.b,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t,r=i<(n=Math.max(n,0))?Math.min(i+t,n):i+t;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Vte={provide:zte,deps:[[new E,new j,zte]],useFactory:function(e){return e||new zte}},qte=new he("MAT_PAGINATOR_DEFAULT_OPTIONS"),Ute=JX(rY((function e(){Object(m.a)(this,e)}))),Gte=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;if(Object(m.a)(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Yc,o._intlChanges=e.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),r){var a=r.pageSize,s=r.pageSizeOptions,c=r.hidePageSize,l=r.showFirstLastButtons,u=r.formFieldAppearance;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=c&&(o._hidePageSize=c),null!=l&&(o._showFirstLastButtons=l),null!=u&&(o._formFieldAppearance=u)}return o}return Object(g.a)(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((function(e,t){return e-t})),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}},{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(bm(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=bm(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(bm(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map((function(e){return bm(e)})),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=vm(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=vm(e)}}]),n}(Ute);return e.\u0275fac=function(t){return new(t||e)(_a(zte),_a(No),_a(qte,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[Es],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),ba(2,Nte,5,3,"div",2),Sa(3,"div",3),Sa(4,"div",4),_s(5),xa(),ba(6,Bte,3,5,"button",5),Sa(7,"button",6),Ia("click",(function(){return t.previousPage()})),cn(),Sa(8,"svg",7),Oa(9,"path",8),xa(),xa(),ln(),Sa(10,"button",9),Ia("click",(function(){return t.nextPage()})),cn(),Sa(11,"svg",7),Oa(12,"path",10),xa(),xa(),ba(13,Hte,3,5,"button",11),xa(),xa(),xa()),2&e&&(ar(2),ka("ngIf",!t.hidePageSize),ar(3),ks(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),ar(1),ka("ngIf",t.showFirstLastButtons),ar(1),ka("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),fa("aria-label",t._intl.previousPageLabel),ar(3),ka("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),fa("aria-label",t._intl.nextPageLabel),ar(3),ka("ngIf",t.showFirstLastButtons))},directives:[Hh,h$,J1,a0,H0,Nh,DY],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),e}(),Wte=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[Vte],imports:[[_d,f$,z0,t2]]}),e}(),Kte=function(){function e(e){this.httpServer=e}return e.prototype.getAppliances=function(e){return this.httpServer.get(e,"/appliances")},e.prototype.getAppliance=function(e,t){return this.httpServer.get(e,t)},e.prototype.getUploadPath=function(e,t,n){return"http://"+e.host+":"+e.port+"/v2/compute/"+t+"/images/"+n},e.prototype.updateAppliances=function(e){return this.httpServer.get(e,"/appliances?update=yes")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function Xte(e,t){if(1&e&&(Sa(0,"div"),_s(1),xa()),2&e){var n=Ba();ar(1),ks(" Adapters: ",n.appliance.qemu.adapters," ")}}function Yte(e,t){if(1&e&&(Sa(0,"div"),_s(1),xa()),2&e){var n=Ba();ar(1),ks(" Console type: ",n.appliance.qemu.console_type," ")}}var Zte=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.onNoClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(QZ))},e.\u0275cmp=ze({type:e,selectors:[["appliance-info-dialog"]],decls:15,vars:6,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"h1",1),_s(2),xa(),xa(),Sa(3,"div",2),Sa(4,"div"),_s(5),xa(),Sa(6,"div"),_s(7),xa(),Sa(8,"div"),_s(9),xa(),ba(10,Xte,2,1,"div",3),ba(11,Yte,2,1,"div",3),xa(),Sa(12,"div",4),Sa(13,"button",5),Ia("click",(function(){return t.onNoClick()})),_s(14,"Close"),xa(),xa()),2&e&&(ar(2),ws(t.appliance.name),ar(3),ks(" Vendor: ",t.appliance.vendor_name," "),ar(2),ks(" Status: ",t.appliance.status," "),ar(2),ks(" Maintainer: ",t.appliance.maintainer," "),ar(1),ka("ngIf",t.appliance.qemu),ar(1),ka("ngIf",t.appliance.qemu))},directives:[oQ,aQ,Hh,sQ,h$],encapsulation:2}),e}(),Qte=function(){return function(){}}(),$te=function(){return function(){}}(),Jte=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.getImages=function(e){return this.httpServer.get(e,"/compute/docker/images")},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),ene=function(){return function(){}}(),tne=function(){function e(e){this.httpServer=e}return e.prototype.getImages=function(e){return this.httpServer.get(e,"/compute/dynamips/images")},e.prototype.getImagePath=function(e,t){return"http://"+e.host+":"+e.port+"/v2/compute/dynamips/images/"+t},e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),nne=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.getImages=function(e){return this.httpServer.get(e,"/compute/iou/images")},e.prototype.getImagePath=function(e,t){return"http://"+e.host+":"+e.port+"/v2/compute/iou/images/"+t},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),ine=function(){return function(){}}(),rne=function(){function e(e){this.httpServer=e,this.newTemplateCreated=new w.b}return e.prototype.list=function(e){return this.httpServer.get(e,"/templates")},e.prototype.deleteTemplate=function(e,t){return this.httpServer.delete(e,"/templates/"+t,{observe:"body"})},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),one=function(){function e(e){this.httpServer=e}return e.prototype.getComputes=function(e){return this.httpServer.get(e,"/computes")},e.prototype.getUploadPath=function(e,t,n){return"http://"+e.host+":"+e.port+"/v2/"+t+"/images/"+n},e.prototype.getStatistics=function(e){return this.httpServer.get(e,"/statistics")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),ane=function(){function e(e){this.dialogRef=e}return e.prototype.ngOnInit=function(){},e.prototype.onNoClick=function(){this.dialogRef.close(!1)},e.prototype.onYesClick=function(){this.dialogRef.close(!0)},e.\u0275fac=function(t){return new(t||e)(_a(YZ))},e.\u0275cmp=ze({type:e,selectors:[["app-information-dialog"]],decls:7,vars:1,consts:[["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(e,t){1&e&&(Sa(0,"span"),_s(1),xa(),Sa(2,"div",0),Sa(3,"button",1),Ia("click",(function(){return t.onNoClick()})),_s(4,"No"),xa(),Sa(5,"button",2),Ia("click",(function(){return t.onYesClick()})),_s(6," Yes "),xa(),xa()),2&e&&(ar(1),ws(t.confirmationMessage))},directives:[sQ,h$],styles:[""]}),e}();function sne(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Template name is required"),xa())}function cne(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Template name is incorrect"),xa())}function lne(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"Template with this name exists"),xa())}var une=function(e){return{"is-invalid":e}},hne=function(){function e(e,t,n,i,r,o,a,s){this.dialogRef=e,this.router=t,this.dialog=n,this.toasterService=i,this.formBuilder=r,this.templateNameValidator=o,this.templateService=a,this.data=s}return e.prototype.ngOnInit=function(){var e,t,n=this;this.templateNameForm=this.formBuilder.group({templateName:new Cp(this.data.name,[Df.required,this.templateNameValidator.get],[(e=this.server,t=this.templateService,function(n){return Object(uQ.a)(500).pipe(Object(tg.a)((function(){return t.list(e)})),Object(mf.a)((function(e){return e.find((function(e){return e.name===n.value}))?{templateExist:!0}:null})))})])}),setTimeout((function(){n.templateNameForm.controls.templateName.markAsTouched()}),100)},Object.defineProperty(e.prototype,"form",{get:function(){return this.templateNameForm.controls},enumerable:!1,configurable:!0}),e.prototype.onAddClick=function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Please enter correct name for new template"):this.templateService.list(this.server).subscribe((function(t){var n=e.templateNameForm.controls.templateName.value;t.find((function(e){return e.name===n}))?e.toasterService.error("Template with this name exists"):e.dialogRef.close(e.templateNameForm.controls.templateName.value)}))},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.onKeyDown=function(e){"Enter"===e.key&&this.onAddClick()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(nK),_a(nQ),_a(iJ),_a(um),_a(Yee),_a(rne),_a(QZ))},e.\u0275cmp=ze({type:e,selectors:[["app-template-name-dialog"]],features:[Vs([Yee])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Please enter name for the new template"),xa(),Sa(2,"form",1),Sa(3,"mat-form-field",2),Sa(4,"input",3),Ia("keydown",(function(e){return t.onKeyDown(e)})),xa(),ba(5,sne,2,0,"mat-error",4),ba(6,cne,2,0,"mat-error",4),ba(7,lne,2,0,"mat-error",4),xa(),Sa(8,"div",5),Sa(9,"button",6),Ia("click",(function(){return t.onNoClick()})),_s(10,"Cancel"),xa(),Sa(11,"button",7),Ia("click",(function(){return t.onAddClick()})),_s(12,"Add template"),xa(),xa(),xa()),2&e&&(ar(2),ka("formGroup",t.templateNameForm),ar(2),ka("ngClass",Bc(5,une,null==t.form.templateName?null:t.form.templateName.errors)),ar(1),ka("ngIf",(null==t.form.templateName?null:t.form.templateName.touched)&&(null==t.form.templateName?null:t.form.templateName.errors)&&(null==t.form.templateName?null:t.form.templateName.errors.required)),ar(1),ka("ngIf",(null==t.form.templateName?null:t.form.templateName.errors)&&(null==t.form.templateName?null:t.form.templateName.errors.invalidName)),ar(1),ka("ngIf",(null==t.form.templateName?null:t.form.templateName.errors)&&(null==t.form.templateName?null:t.form.templateName.errors.templateExist)))},directives:[oQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,Rh,Hh,sQ,h$,UJ],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}();function dne(e,t){1&e&&Va(0)}var fne=["*"],pne=function(){var e=function(){function e(t){Object(m.a)(this,e),this._elementRef=t}return Object(g.a)(e,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e}(),mne=function(){var e=function e(t){Object(m.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkStepLabel",""]]}),e}(),gne=0,vne="number",bne="edit",yne="done",_ne="error",wne=new he("STEPPER_GLOBAL_OPTIONS"),kne=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=n||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return Object(g.a)(e,[{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"editable",get:function(){return this._editable},set:function(e){this._editable=vm(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=vm(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=vm(e)}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(e){this._customError=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Y((function(){return Cne}))),_a(wne,8))},e.\u0275cmp=ze({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,mne,!0),2&e&&al(i=fl())&&(t.stepLabel=i.first)},viewQuery:function(e,t){var n;1&e&&sl(vc,!0),2&e&&al(n=fl())&&(t.content=n.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[ct],ngContentSelectors:fne,decls:1,vars:0,template:function(e,t){1&e&&(za(),ba(0,dne,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),Cne=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._dir=t,this._changeDetectorRef=n,this._elementRef=i,this._destroyed=new w.b,this.steps=new Qc,this._linear=!1,this._selectedIndex=0,this.selectionChange=new Yc,this._orientation="horizontal",this._groupId=gne++,this._document=r}return Object(g.a)(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._steps.changes.pipe(Object(Jm.a)(this._steps),Object(Gm.a)(this._destroyed)).subscribe((function(t){e.steps.reset(t.filter((function(t){return t._stepper===e}))),e.steps.notifyOnChanges()}))}},{key:"ngAfterViewInit",value:function(){var e=this;this._keyManager=new hX(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(Sm.a)()).pipe(Object(Jm.a)(this._layoutDirection()),Object(Gm.a)(this._destroyed)).subscribe((function(t){return e._keyManager.withHorizontalOrientation(t)})),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe((function(){e.selected||(e._selectedIndex=Math.max(e._selectedIndex-1,0))}))}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach((function(e){return e.reset()})),this._stateChanged()}},{key:"_getStepLabelId",value:function(e){return"cdk-step-label-".concat(this._groupId,"-").concat(e)}},{key:"_getStepContentId",value:function(e){return"cdk-step-content-".concat(this._groupId,"-").concat(e)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(e){var t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vne,n=this.steps.toArray()[e],i=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,t)}},{key:"_getDefaultIndicatorLogic",value:function(e,t){return e._showError&&e.hasError&&!t?_ne:!e.completed||t?vne:e.editable?bne:yne}},{key:"_getGuidelineLogic",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vne;return e._showError&&e.hasError&&!t?_ne:e.completed&&!t?yne:e.completed&&t?n:e.editable&&t?bne:n}},{key:"_isCurrentStep",value:function(e){return this._selectedIndex===e}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(e){var t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}},{key:"_onKeydown",value:function(e){var t=YK(e),n=e.keyCode,i=this._keyManager;null==i.activeItemIndex||t||n!==XK&&n!==WK?i.onKeydown(e):(this.selectedIndex=i.activeItemIndex,e.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(e){var t=this.steps.toArray();return t[this._selectedIndex].interacted=!0,!!(this._linear&&e>=0)&&t.slice(0,e).some((function(e){var t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride}))}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){if(!this._document||!this._elementRef)return!1;var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}},{key:"linear",get:function(){return this._linear},set:function(e){this._linear=vm(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var t=bm(e);this.steps&&this._steps?this._selectedIndex!=t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e):this._selectedIndex=t}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(pm,8),_a(No),_a(Ks),_a(bu))},e.\u0275dir=Ke({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,kne,!0),ul(n,pne,!0)),2&e&&(al(i=fl())&&(t._steps=i),al(i=fl())&&(t._stepHeader=i))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),e}(),Sne=function(){var e=function(){function e(t){Object(m.a)(this,e),this._stepper=t,this.type="submit"}return Object(g.a)(e,[{key:"_handleClick",value:function(){this._stepper.next()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Cne))},e.\u0275dir=Ke({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&Ia("click",(function(){return t._handleClick()})),2&e&&Os("type",t.type)},inputs:{type:"type"}}),e}(),xne=function(){var e=function(){function e(t){Object(m.a)(this,e),this._stepper=t,this.type="button"}return Object(g.a)(e,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Cne))},e.\u0275dir=Ke({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&Ia("click",(function(){return t._handleClick()})),2&e&&Os("type",t.type)},inputs:{type:"type"}}),e}(),One=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[gm]]}),e}();function Mne(e,t){if(1&e&&Ea(0,8),2&e){var n=Ba();ka("ngTemplateOutlet",n.iconOverrides[n.state])("ngTemplateOutletContext",n._getIconContext())}}function Tne(e,t){if(1&e&&(Sa(0,"span"),_s(1),xa()),2&e){var n=Ba(2);ar(1),ws(n._getDefaultTextForState(n.state))}}function Ene(e,t){if(1&e&&(Sa(0,"mat-icon"),_s(1),xa()),2&e){var n=Ba(2);ar(1),ws(n._getDefaultTextForState(n.state))}}function Pne(e,t){1&e&&(Ma(0,9),ba(1,Tne,2,1,"span",10),ba(2,Ene,2,1,"mat-icon",11),Ta()),2&e&&(ka("ngSwitch",Ba().state),ar(1),ka("ngSwitchCase","number"))}function jne(e,t){if(1&e&&(Sa(0,"div",12),Ea(1,13),xa()),2&e){var n=Ba();ar(1),ka("ngTemplateOutlet",n._templateLabel().template)}}function Ane(e,t){if(1&e&&(Sa(0,"div",12),_s(1),xa()),2&e){var n=Ba();ar(1),ws(n.label)}}function Ine(e,t){if(1&e&&(Sa(0,"div",14),_s(1),xa()),2&e){var n=Ba();ar(1),ws(n._intl.optionalLabel)}}function Dne(e,t){if(1&e&&(Sa(0,"div",15),_s(1),xa()),2&e){var n=Ba();ar(1),ws(n.errorMessage)}}function Rne(e,t){1&e&&Va(0)}var Lne=["*"];function Fne(e,t){1&e&&Oa(0,"div",6)}function Nne(e,t){if(1&e){var n=Pa();Ma(0),Sa(1,"mat-step-header",4),Ia("click",(function(){return t.$implicit.select()}))("keydown",(function(e){return Dt(n),Ba()._onKeydown(e)})),xa(),ba(2,Fne,1,0,"div",5),Ta()}if(2&e){var i=t.$implicit,r=t.index,o=t.last,a=Ba();ar(1),ka("tabIndex",a._getFocusIndex()===r?0:-1)("id",a._getStepLabelId(r))("index",r)("state",a._getIndicatorType(r,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===r)("active",i.completed||a.selectedIndex===r||!a.linear)("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple),fa("aria-posinset",r+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),ar(1),ka("ngIf",!o)}}function Bne(e,t){if(1&e){var n=Pa();Sa(0,"div",7),Ia("@stepTransition.done",(function(e){return Dt(n),Ba()._animationDone.next(e)})),Ea(1,8),xa()}if(2&e){var i=t.$implicit,r=t.index,o=Ba();ka("@stepTransition",o._getAnimationDirection(r))("id",o._getStepContentId(r)),fa("aria-labelledby",o._getStepLabelId(r))("aria-expanded",o.selectedIndex===r),ar(1),ka("ngTemplateOutlet",i.content)}}function Hne(e,t){if(1&e){var n=Pa();Sa(0,"div",1),Sa(1,"mat-step-header",2),Ia("click",(function(){return t.$implicit.select()}))("keydown",(function(e){return Dt(n),Ba()._onKeydown(e)})),xa(),Sa(2,"div",3),Sa(3,"div",4),Ia("@stepTransition.done",(function(e){return Dt(n),Ba()._animationDone.next(e)})),Sa(4,"div",5),Ea(5,6),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=t.index,o=t.last,a=Ba();ar(1),ka("tabIndex",a._getFocusIndex()==r?0:-1)("id",a._getStepLabelId(r))("index",r)("state",a._getIndicatorType(r,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===r)("active",i.completed||a.selectedIndex===r||!a.linear)("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple),fa("aria-posinset",r+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(r))("aria-selected",a.selectedIndex===r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),ar(1),os("mat-stepper-vertical-line",!o),ar(1),ka("@stepTransition",a._getAnimationDirection(r))("id",a._getStepContentId(r)),fa("aria-labelledby",a._getStepLabelId(r))("aria-expanded",a.selectedIndex===r),ar(2),ka("ngTemplateOutlet",i.content)}}var zne='.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n',Vne=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(mne);return e.\u0275fac=function(t){return qne(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matStepLabel",""]],features:[Es]}),e}(),qne=Qn(Vne),Une=function(){var e=function e(){Object(m.a)(this,e),this.changes=new w.b,this.optionalLabel="Optional"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Gne={provide:Une,deps:[[new E,new j,Une]],useFactory:function(e){return e||new Une}},Wne=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,r))._intl=e,a._focusMonitor=i,a._intlSubscription=e.changes.subscribe((function(){return o.markForCheck()})),a}return Object(g.a)(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){this._focusMonitor.focusVia(this._elementRef,"program")}},{key:"_stringLabel",value:function(){return this.label instanceof Vne?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof Vne?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(e){return"number"==e?"".concat(this.index+1):"edit"==e?"create":"error"==e?"warning":e}}]),n}(pne);return e.\u0275fac=function(t){return new(t||e)(_a(Une),_a(CX),_a(Ks),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[Es],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(Oa(0,"div",0),Sa(1,"div"),Sa(2,"div",1),ba(3,Mne,1,2,"ng-container",2),ba(4,Pne,3,2,"ng-container",3),xa(),xa(),Sa(5,"div",4),ba(6,jne,2,1,"div",5),ba(7,Ane,2,1,"div",5),ba(8,Ine,2,1,"div",6),ba(9,Dne,2,1,"div",7),xa()),2&e&&(ka("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),ar(1),xs("mat-step-icon-state-",t.state," mat-step-icon"),os("mat-step-icon-selected",t.selected),ar(1),ka("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),ar(1),ka("ngSwitchCase",!0),ar(2),os("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),ar(1),ka("ngIf",t._templateLabel()),ar(1),ka("ngIf",t._stringLabel()),ar(1),ka("ngIf",t.optional&&"error"!=t.state),ar(1),ka("ngIf","error"==t.state))},directives:[yY,Uh,Gh,Wh,Hh,Zh,P$],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e}(),Kne={horizontalStepTransition:jv("stepTransition",[Lv("previous",Rv({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Lv("current",Rv({transform:"none",visibility:"visible"})),Lv("next",Rv({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Nv("* => *",Av("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:jv("stepTransition",[Lv("previous",Rv({height:"0px",visibility:"hidden"})),Lv("next",Rv({height:"0px",visibility:"hidden"})),Lv("current",Rv({height:"*",visibility:"visible"})),Nv("* <=> current",Av("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},Xne=function(){var e=function e(t){Object(m.a)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),e}(),Yne=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,r))._errorStateMatcher=i,o}return Object(g.a)(n,[{key:"isErrorState",value:function(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}]),n}(kne);return e.\u0275fac=function(t){return new(t||e)(_a(Y((function(){return Zne}))),_a(oY,4),_a(wne,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-step"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,Vne,!0),2&e&&al(i=fl())&&(t.stepLabel=i.first)},exportAs:["matStep"],features:[Vs([{provide:oY,useExisting:e},{provide:kne,useExisting:e}]),Es],ngContentSelectors:Lne,decls:1,vars:0,template:function(e,t){1&e&&(za(),ba(0,Rne,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),Zne=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments)).steps=new Qc,e.animationDone=new Yc,e._iconOverrides={},e._animationDone=new w.b,e}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){var e=this;Object(o.a)(Object(a.a)(n.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach((function(t){return e._iconOverrides[t.name]=t.templateRef})),this.steps.changes.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){e._stateChanged()})),this._animationDone.pipe(Object(Zm.a)((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})),Object(Gm.a)(this._destroyed)).subscribe((function(t){"current"===t.toState&&e.animationDone.emit()}))}}]),n}(Cne);return e.\u0275fac=function(t){return Qne(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matStepper",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,Yne,!0),ul(n,Xne,!0)),2&e&&(al(i=fl())&&(t._steps=i),al(i=fl())&&(t._icons=i))},viewQuery:function(e,t){var n;1&e&&cl(Wne,!0),2&e&&al(n=fl())&&(t._stepHeader=n)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[Vs([{provide:Cne,useExisting:e}]),Es]}),e}(),Qne=Qn(Zne),$ne=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments)).labelPosition="end",e}return n}(Zne);return e.\u0275fac=function(t){return Jne(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(e,t){2&e&&os("mat-stepper-label-position-end","end"==t.labelPosition)("mat-stepper-label-position-bottom","bottom"==t.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[Vs([{provide:Zne,useExisting:e},{provide:Cne,useExisting:e}]),Es],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(Sa(0,"div",0),ba(1,Nne,3,18,"ng-container",1),xa(),Sa(2,"div",2),ba(3,Bne,2,5,"div",3),xa()),2&e&&(ar(1),ka("ngForOf",t.steps),ar(2),ka("ngForOf",t.steps))},directives:[Nh,Wne,Hh,Zh],styles:[zne],encapsulation:2,data:{animation:[Kne.horizontalStepTransition]},changeDetection:0}),e}(),Jne=Qn($ne),eie=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e,i,r,o))._orientation="vertical",a}return n}(Zne);return e.\u0275fac=function(t){return new(t||e)(_a(pm,8),_a(No),_a(Ks),_a(bu))},e.\u0275cmp=ze({type:e,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[Vs([{provide:Zne,useExisting:e},{provide:Cne,useExisting:e}]),Es],decls:1,vars:1,consts:[["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&ba(0,Hne,6,24,"div",0),2&e&&ka("ngForOf",t.steps)},directives:[Nh,Wne,Zh],styles:[zne],encapsulation:2,data:{animation:[Kne.verticalStepTransition]},changeDetection:0}),e}(),tie=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Sne);return e.\u0275fac=function(t){return nie(t||e)},e.\u0275dir=Ke({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&Os("type",t.type)},inputs:{type:"type"},features:[Es]}),e}(),nie=Qn(tie),iie=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(xne);return e.\u0275fac=function(t){return rie(t||e)},e.\u0275dir=Ke({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&Os("type",t.type)},inputs:{type:"type"},features:[Es]}),e}(),rie=Qn(iie),oie=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[Gne,oY],imports:[[$X,_d,VX,f$,One,j$,_Y],$X]}),e}(),aie=["mat-sort-header",""];function sie(e,t){if(1&e){var n=Pa();Sa(0,"div",3),Ia("@arrowPosition.start",(function(){return Dt(n),Ba()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return Dt(n),Ba()._disableViewStateAnimation=!1})),Oa(1,"div",4),Sa(2,"div",5),Oa(3,"div",6),Oa(4,"div",7),Oa(5,"div",8),xa(),xa()}if(2&e){var i=Ba();ka("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),ar(2),ka("@indicator",i._getArrowDirectionState()),ar(1),ka("@leftPointer",i._getArrowDirectionState()),ar(1),ka("@rightPointer",i._getArrowDirectionState())}}var cie=["*"],lie=rY(JX((function e(){Object(m.a)(this,e)}))),uie=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments)).sortables=new Map,e._stateChanges=new w.b,e.start="asc",e._direction="",e.sortChange=new Yc,e}return Object(g.a)(n,[{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){if(!e)return"";var t,n,i=(t=null!=e.disableClear?e.disableClear:this.disableClear,n=["asc","desc"],"desc"==(e.start||this.start)&&n.reverse(),t||n.push(""),n),r=i.indexOf(this.direction)+1;return r>=i.length&&(r=0),i[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=vm(e)}}]),n}(lie);return e.\u0275fac=function(t){return hie(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Es,ct]}),e}(),hie=Qn(uie),die=YX.ENTERING+" "+XX.STANDARD_CURVE,fie={indicator:jv("indicator",[Lv("active-asc, asc",Rv({transform:"translateY(0px)"})),Lv("active-desc, desc",Rv({transform:"translateY(10px)"})),Nv("active-asc <=> active-desc",Av(die))]),leftPointer:jv("leftPointer",[Lv("active-asc, asc",Rv({transform:"rotate(-45deg)"})),Lv("active-desc, desc",Rv({transform:"rotate(45deg)"})),Nv("active-asc <=> active-desc",Av(die))]),rightPointer:jv("rightPointer",[Lv("active-asc, asc",Rv({transform:"rotate(45deg)"})),Lv("active-desc, desc",Rv({transform:"rotate(-45deg)"})),Nv("active-asc <=> active-desc",Av(die))]),arrowOpacity:jv("arrowOpacity",[Lv("desc-to-active, asc-to-active, active",Rv({opacity:1})),Lv("desc-to-hint, asc-to-hint, hint",Rv({opacity:.54})),Lv("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Rv({opacity:0})),Nv("* => asc, * => desc, * => active, * => hint, * => void",Av("0ms")),Nv("* <=> *",Av(die))]),arrowPosition:jv("arrowPosition",[Nv("* => desc-to-hint, * => desc-to-active",Av(die,Fv([Rv({transform:"translateY(-25%)"}),Rv({transform:"translateY(0)"})]))),Nv("* => hint-to-desc, * => active-to-desc",Av(die,Fv([Rv({transform:"translateY(0)"}),Rv({transform:"translateY(25%)"})]))),Nv("* => asc-to-hint, * => asc-to-active",Av(die,Fv([Rv({transform:"translateY(25%)"}),Rv({transform:"translateY(0)"})]))),Nv("* => hint-to-asc, * => active-to-asc",Av(die,Fv([Rv({transform:"translateY(0)"}),Rv({transform:"translateY(-25%)"})]))),Lv("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Rv({transform:"translateY(0)"})),Lv("hint-to-desc, active-to-desc, desc",Rv({transform:"translateY(-25%)"})),Lv("hint-to-asc, active-to-asc, asc",Rv({transform:"translateY(25%)"}))]),allowChildren:jv("allowChildren",[Nv("* <=> *",[Hv("@*",Bv(),{optional:!0})])])},pie=function(){var e=function e(){Object(m.a)(this,e),this.changes=new w.b,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({factory:function(){return new e},token:e,providedIn:"root"}),e}(),mie={provide:pie,deps:[[new E,new j,pie]],useFactory:function(e){return e||new pie}},gie=JX((function e(){Object(m.a)(this,e)})),vie=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s){var c;return Object(m.a)(this,n),(c=t.call(this))._intl=e,c._sort=r,c._columnDef=o,c._focusMonitor=a,c._elementRef=s,c._showIndicatorHint=!1,c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",c._rerenderSubscription=Object(C.a)(r.sortChange,r._stateChanges,e.changes).subscribe((function(){c._isSorted()&&c._updateArrowDirection(),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),i.markForCheck()})),c}return Object(g.a)(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){return e._setIndicatorHintVisible(!!t)}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(e){this._isDisabled()||e.keyCode!==XK&&e.keyCode!==WK||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=vm(e)}}]),n}(gie);return e.\u0275fac=function(t){return new(t||e)(_a(pie),_a(No),_a(uie,8),_a("MAT_SORT_HEADER_COLUMN_DEF",8),_a(CX),_a(Ks))},e.\u0275cmp=ze({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Ia("click",(function(){return t._handleClick()}))("keydown",(function(e){return t._handleKeydown(e)}))("mouseenter",(function(){return t._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return t._setIndicatorHintVisible(!1)})),2&e&&(fa("aria-sort",t._getAriaSortAttribute()),os("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Es],attrs:aie,ngContentSelectors:cie,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(za(),Sa(0,"div",0),Sa(1,"div",1),Va(2),xa(),ba(3,sie,6,6,"div",2),xa()),2&e&&(os("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),fa("tabindex",t._isDisabled()?null:0),ar(3),ka("ngIf",t._renderArrow()))},directives:[Hh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[fie.indicator,fie.leftPointer,fie.rightPointer,fie.arrowOpacity,fie.arrowPosition,fie.allowChildren]},changeDetection:0}),e}(),bie=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[mie],imports:[[_d]]}),e}(),yie=function(){function e(){}return e.prototype.transform=function(e,t){return e?t?(t=t.toLowerCase(),e.filteredData.filter((function(e){return e.name.toLowerCase().includes(t)}))):e:[]},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"datasourcefilter",type:e,pure:!0}),e}(),_ie=["stepper"];function wie(e,t){1&e&&_s(0,"Please select how you want to create new template")}function kie(e,t){1&e&&_s(0),2&e&&ws(Ba().actionTitle)}function Cie(e,t){if(1&e&&(Sa(0,"mat-option",33),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Sie(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Name "),xa())}function xie(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.name," ")}}function Oie(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Emulator "),xa())}function Mie(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.emulator," ")}}function Tie(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Vendor "),xa())}function Eie(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.vendor_name," ")}}function Pie(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Actions "),xa())}function jie(e,t){if(1&e){var n=Pa();Sa(0,"mat-cell",34),Sa(1,"button",35),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().install(e)})),Sa(2,"mat-icon",36),_s(3,"archive"),xa(),xa(),Sa(4,"button",37),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().showInfo(e)})),Sa(5,"mat-icon",38),_s(6,"info"),xa(),xa(),xa()}}function Aie(e,t){1&e&&Oa(0,"mat-header-row")}function Iie(e,t){1&e&&Oa(0,"mat-row")}function Die(e,t){1&e&&_s(0),2&e&&ws(Ba(2).secondActionTitle)}function Rie(e,t){if(1&e&&(Sa(0,"mat-option",33),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n.path," ")}}function Lie(e,t){1&e&&(Sa(0,"span"),Sa(1,"mat-icon",52),_s(2,"check"),xa(),xa())}function Fie(e,t){1&e&&(Sa(0,"span"),Sa(1,"mat-icon",53),_s(2,"close"),xa(),xa())}function Nie(e,t){if(1&e){var n=Pa();Sa(0,"div",48),Sa(1,"span"),_s(2),xa(),Sa(3,"div"),ba(4,Lie,3,0,"span",32),ba(5,Fie,3,0,"span",32),Sa(6,"input",49,50),Ia("change",(function(e){return Dt(n),Ba(4).importImage(e)})),xa(),Sa(8,"button",51),Ia("click",(function(){return Dt(n),ya(7).click()})),_s(9,"Import"),xa(),Sa(10,"button",51),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba(3).downloadImageFromVersion(e.images.hda_disk_image)})),_s(11,"Download"),xa(),xa(),xa()}if(2&e){var i=Ba().$implicit,r=Ba(3);ar(2),ks(" ",i.images.hda_disk_image," "),ar(2),ka("ngIf",r.checkImageFromVersion(i.images.hda_disk_image)),ar(1),ka("ngIf",!r.checkImageFromVersion(i.images.hda_disk_image)),ar(1),ka("uploader",r.uploaderImage)}}function Bie(e,t){1&e&&(Sa(0,"span"),Sa(1,"mat-icon",52),_s(2,"check"),xa(),xa())}function Hie(e,t){1&e&&(Sa(0,"span"),Sa(1,"mat-icon",53),_s(2,"close"),xa(),xa())}function zie(e,t){if(1&e){var n=Pa();Sa(0,"div",48),Sa(1,"span"),_s(2),xa(),Sa(3,"div"),ba(4,Bie,3,0,"span",32),ba(5,Hie,3,0,"span",32),Sa(6,"input",49,50),Ia("change",(function(e){return Dt(n),Ba(4).importImage(e)})),xa(),Sa(8,"button",51),Ia("click",(function(){return Dt(n),ya(7).click()})),_s(9,"Import"),xa(),Sa(10,"button",51),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba(3).downloadImageFromVersion(e.images.hdb_disk_image)})),_s(11,"Download"),xa(),xa(),xa()}if(2&e){var i=Ba().$implicit,r=Ba(3);ar(2),ks(" ",i.images.hdb_disk_image," "),ar(2),ka("ngIf",r.checkImageFromVersion(i.images.hdb_disk_image)),ar(1),ka("ngIf",!r.checkImageFromVersion(i.images.hdb_disk_image)),ar(1),ka("uploader",r.uploaderImage)}}function Vie(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"div",45),Sa(2,"span"),_s(3),xa(),Sa(4,"div"),Sa(5,"button",46),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).createQemuTemplateFromVersion(e)})),_s(6,"Create"),xa(),xa(),xa(),ba(7,Nie,12,4,"div",47),ba(8,zie,12,4,"div",47),xa()}if(2&e){var i=t.$implicit,r=Ba(3);ar(3),Cs("",r.applianceToInstall.name," version ",i.name,""),ar(4),ka("ngIf",i.images.hda_disk_image),ar(1),ka("ngIf",i.images.hdb_disk_image)}}var qie=function(){return{standalone:!0}};function Uie(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"div"),_s(2," Server type"),Oa(3,"br"),Sa(4,"mat-radio-group",4),Sa(5,"mat-radio-button",39),Ia("click",(function(){return Dt(n),Ba(2).setServerType("local")})),_s(6,"Install the appliance locally"),xa(),Sa(7,"mat-radio-button",40),Ia("click",(function(){return Dt(n),Ba(2).setServerType("gns3 vm")})),_s(8,"Install the appliance on the GNS3 VM"),xa(),xa(),xa(),Sa(9,"div"),_s(10," Qemu binary"),Oa(11,"br"),Sa(12,"mat-select",41),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).selectedBinary=e})),ba(13,Rie,2,2,"mat-option",14),xa(),xa(),Sa(14,"div"),_s(15," Install required files "),Sa(16,"button",42),Ia("click",(function(){return Dt(n),Ba(2).refreshImages()})),Sa(17,"mat-icon",43),_s(18,"refresh"),xa(),xa(),Oa(19,"br"),Sa(20,"div"),ba(21,Vie,9,4,"div",44),xa(),xa(),xa()}if(2&e){var i=Ba(2);ar(5),ka("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),ar(2),ka("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),ar(5),ka("ngModel",i.selectedBinary)("ngModelOptions",Nc(8,qie)),ar(1),ka("ngForOf",i.qemuBinaries),ar(8),ka("ngForOf",i.applianceToInstall.versions)}}function Gie(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"div"),_s(2," Server type"),Oa(3,"br"),Sa(4,"mat-radio-group",4),Sa(5,"mat-radio-button",39),Ia("click",(function(){return Dt(n),Ba(2).setServerType("local")})),_s(6,"Install the appliance locally"),xa(),Sa(7,"mat-radio-button",40),Ia("click",(function(){return Dt(n),Ba(2).setServerType("gns3 vm")})),_s(8,"Install the appliance on the GNS3 VM"),xa(),xa(),xa(),Sa(9,"button",29),Ia("click",(function(){return Dt(n),Ba(2).createDockerTemplate()})),_s(10,"Create docker template"),xa(),xa()}if(2&e){var i=Ba(2);ar(5),ka("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),ar(2),ka("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen)}}function Wie(e,t){if(1&e){var n=Pa();Sa(0,"mat-list-item"),Sa(1,"div",45),Sa(2,"div"),_s(3),xa(),Sa(4,"div"),Sa(5,"input",49,50),Ia("change",(function(e){return Dt(n),Ba(3).importImage(e)})),xa(),Sa(7,"button",51),Ia("click",(function(){return Dt(n),ya(6).click()})),_s(8,"Import"),xa(),Sa(9,"button",46),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).createIosTemplate(e)})),_s(10,"Create"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=Ba(3);ar(3),ks(" ",i.filename," "),ar(2),ka("uploader",r.uploaderImage)}}function Kie(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"div"),_s(2," Server type"),Oa(3,"br"),Sa(4,"mat-radio-group",4),Sa(5,"mat-radio-button",54),Ia("click",(function(){return Dt(n),Ba(2).setServerType("local")})),_s(6,"Install the appliance locally"),xa(),Sa(7,"mat-radio-button",40),Ia("click",(function(){return Dt(n),Ba(2).setServerType("gns3 vm")})),_s(8,"Install the appliance on the GNS3 VM"),xa(),xa(),xa(),Sa(9,"div"),_s(10," Install required files "),Sa(11,"button",42),Ia("click",(function(){return Dt(n),Ba(2).refreshImages()})),Sa(12,"mat-icon",43),_s(13,"refresh"),xa(),xa(),Oa(14,"br"),Sa(15,"mat-list"),ba(16,Wie,11,2,"mat-list-item",44),xa(),xa(),xa()}if(2&e){var i=Ba(2);ar(5),ka("checked",!i.isGns3VmChosen),ar(2),ka("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),ar(9),ka("ngForOf",i.applianceToInstall.images)}}function Xie(e,t){if(1&e){var n=Pa();Sa(0,"mat-list-item"),Sa(1,"div",45),Sa(2,"div"),_s(3),xa(),Sa(4,"div"),Sa(5,"input",49,50),Ia("change",(function(e){return Dt(n),Ba(3).importImage(e)})),xa(),Sa(7,"button",51),Ia("click",(function(){return Dt(n),ya(6).click()})),_s(8,"Import"),xa(),Sa(9,"button",46),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).createIouTemplate(e)})),_s(10,"Create"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=Ba(3);ar(3),ks(" ",i.filename," "),ar(2),ka("uploader",r.uploaderImage)}}function Yie(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"div"),_s(2," Server type"),Oa(3,"br"),Sa(4,"mat-radio-group",4),Sa(5,"mat-radio-button",39),Ia("click",(function(){return Dt(n),Ba(2).setServerType("local")})),_s(6,"Install the appliance locally"),xa(),Sa(7,"mat-radio-button",40),Ia("click",(function(){return Dt(n),Ba(2).setServerType("gns3 vm")})),_s(8,"Install the appliance on the GNS3 VM"),xa(),xa(),xa(),Sa(9,"div"),_s(10," Install required files "),Sa(11,"button",42),Ia("click",(function(){return Dt(n),Ba(2).refreshImages()})),Sa(12,"mat-icon",43),_s(13,"refresh"),xa(),xa(),Oa(14,"br"),Sa(15,"mat-list"),ba(16,Xie,11,2,"mat-list-item",44),xa(),xa(),xa()}if(2&e){var i=Ba(2);ar(5),ka("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),ar(2),ka("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),ar(9),ka("ngForOf",i.applianceToInstall.images)}}function Zie(e,t){if(1&e){var n=Pa();Sa(0,"mat-step"),ba(1,Die,1,1,"ng-template",3),Sa(2,"mat-card",9),_s(3," Please configure GNS3 VM to install selected appliance "),xa(),Sa(4,"mat-card",9),ba(5,Uie,22,9,"div",32),ba(6,Gie,11,4,"div",32),ba(7,Kie,17,4,"div",32),ba(8,Yie,17,5,"div",32),xa(),Sa(9,"div"),Sa(10,"button",30),_s(11,"Back"),xa(),Sa(12,"button",8),Ia("click",(function(){return Dt(n),Ba().onCloseClick()})),_s(13,"Cancel"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("hidden",!(!i.isLinuxPlatform&&!i.isGns3VmAvailable&&!i.applianceToInstall.dynamips)),ar(2),ka("hidden",!(i.isLinuxPlatform||i.isGns3VmAvailable||i.applianceToInstall.dynamips)),ar(1),ka("ngIf",i.applianceToInstall.qemu),ar(1),ka("ngIf",i.applianceToInstall.docker),ar(1),ka("ngIf",i.applianceToInstall.dynamips),ar(1),ka("ngIf",i.applianceToInstall.iou)}}var Qie=function(){return[5,10,20,50,100]},$ie=function(){function e(e,t,n,i,r,o,a,s,c,l,u,h,d){this.dialogRef=e,this.applianceService=t,this.changeDetector=n,this.toasterService=i,this.qemuService=r,this.dockerService=o,this.iosService=a,this.iouService=s,this.templateService=c,this.dialog=l,this.computeService=u,this.changeDetectorRef=h,this.progressService=d,this.action="install",this.actionTitle="Install appliance from server",this.secondActionTitle="Appliance settings",this.searchText="",this.allAppliances=[],this.appliances=[],this.isGns3VmAvailable=!1,this.isLinuxPlatform=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!1,this.qemuBinaries=[],this.categories=["all categories","router","multilayer_switch","guest","firewall"],this.category="all categories",this.displayedColumns=["name","emulator","vendor","actions"],this.qemuImages=[],this.iosImages=[],this.iouImages=[],this.templates=[]}return e.prototype.ngOnInit=function(){var e=this;this.templateService.list(this.server).subscribe((function(t){e.templates=t})),this.computeService.getComputes(this.server).subscribe((function(t){t.forEach((function(t){"vm"===t.compute_id&&(e.isGns3VmAvailable=!0,e.isGns3VmChosen=!0),"linux"===t.capabilities.platform&&(e.isLinuxPlatform=!0)}))})),this.qemuService.getImages(this.server).subscribe((function(t){e.qemuImages=t})),this.iosService.getImages(this.server).subscribe((function(t){e.iosImages=t})),this.iouService.getImages(this.server).subscribe((function(t){e.iouImages=t})),this.applianceService.getAppliances(this.server).subscribe((function(t){e.appliances=t,e.appliances.forEach((function(e){e.docker&&(e.emulator="Docker"),e.dynamips&&(e.emulator="Dynamips"),e.iou&&(e.emulator="Iou"),e.qemu&&(e.emulator="Qemu")})),e.allAppliances=t,e.dataSource=new K1(e.allAppliances),e.dataSource.paginator=e.paginator})),this.qemuService.getBinaries(this.server).subscribe((function(t){e.qemuBinaries=t})),this.uploader=new vU({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(t,n,i,r){e.toasterService.success("Appliance imported succesfully"),e.getAppliance(t.url)},this.uploaderImage=new vU({}),this.uploaderImage.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploaderImage.onErrorItem=function(t,n,i,r){e.toasterService.error("An error has occured"),e.progressService.deactivate()},this.uploaderImage.onSuccessItem=function(t,n,i,r){e.toasterService.success("Image imported succesfully"),e.refreshImages(),e.progressService.deactivate()}},e.prototype.updateAppliances=function(){var e=this;this.progressService.activate(),this.applianceService.updateAppliances(this.server).subscribe((function(t){e.appliances=t,e.progressService.deactivate(),e.toasterService.success("Appliances are up-to-date.")}),(function(t){e.progressService.deactivate(),e.toasterService.error("Appliances were not updated correctly.")}))},e.prototype.refreshImages=function(){var e=this;this.qemuService.getImages(this.server).subscribe((function(t){e.qemuImages=t})),this.iosService.getImages(this.server).subscribe((function(t){e.iosImages=t})),this.iouService.getImages(this.server).subscribe((function(t){e.iouImages=t}))},e.prototype.getAppliance=function(e){var t=this,n=e.split("/v2");this.applianceService.getAppliance(this.server,n[n.length-1]).subscribe((function(e){t.applianceToInstall=e,setTimeout((function(){t.stepper.next()}),100)}))},e.prototype.addAppliance=function(e){var t,n=this,i=(e.target.files[0].name.split("-"),e.target.files[0].name),r=e.target.files[0],o=new FileReader;o.onloadend=function(){var e=JSON.parse(o.result);e.docker&&(t="docker"),e.dynamips&&(t="dynamips"),e.iou&&(t="iou"),e.qemu&&(t="qemu");var r=n.applianceService.getUploadPath(n.server,t,i);n.uploader.queue.forEach((function(e){return e.url=r}));var a=n.uploader.queue[0];a.options.disableMultipart=!0,n.uploader.uploadItem(a)},o.readAsText(r)},e.prototype.filterAppliances=function(e){var t=this,n=this.allAppliances.filter((function(e){return e.name.toLowerCase().includes(t.searchText.toLowerCase())}));this.appliances="all categories"!==this.category&&this.category?n.filter((function(e){return e.category===t.category})):n,this.dataSource=new K1(this.appliances),this.dataSource.paginator=this.paginator},e.prototype.setAction=function(e){this.action=e,"install"===e?this.actionTitle="Install appliance from server":"import"===e&&(this.actionTitle="Import an appliance file")},e.prototype.setServerType=function(e){"gns3 vm"===e?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.sortData=function(e){if(e.active&&""!==e.direction){var t=this.appliances.slice();this.appliances=t.sort((function(t,n){var i="asc"===e.direction;return"name"===e.active?Jie(t.name,n.name,i):"emulator"===e.active?Jie(t.emulator,n.emulator,i):"vendor"===e.active?Jie(t.vendor_name,n.vendor_name,i):0}))}},e.prototype.onCloseClick=function(){this.dialogRef.close()},e.prototype.install=function(e){var t=this;this.applianceToInstall=e,setTimeout((function(){t.stepper.next(),t.applianceToInstall.qemu&&setTimeout((function(){if(t.qemuBinaries.length)if("x86_64"===t.applianceToInstall.qemu.arch)(e=t.qemuBinaries.filter((function(e){return e.path.includes("qemu-system-x86_64")}))).length&&(t.selectedBinary=e[0]);else if("i386"===t.applianceToInstall.qemu.arch)(e=t.qemuBinaries.filter((function(e){return e.path.includes("qemu-system-i386")}))).length&&(t.selectedBinary=e[0]);else if("x86_64"===t.applianceToInstall.qemu.arch){var e;(e=t.qemuBinaries.filter((function(e){return e.path.includes("qemu-system-arm")}))).length&&(t.selectedBinary=e[0])}else t.selectedBinary=t.qemuBinaries[0]}),100)}),100)},e.prototype.showInfo=function(e){this.dialog.open(Zte,{width:"250px",data:{appliance:e}}).componentInstance.appliance=e},e.prototype.importImage=function(e){var t,n=this,i=(e.target.files[0].name.split("-"),e.target.files[0].name),r=e.target.files[0],o=new FileReader;o.onloadend=function(){n.applianceToInstall.qemu&&(t="qemu"),n.applianceToInstall.dynamips&&(t="dynamips"),n.applianceToInstall.iou&&(t="iou");var e=n.applianceService.getUploadPath(n.server,t,i);n.uploaderImage.queue.forEach((function(t){return t.url=e}));var r=n.uploaderImage.queue[0];r.options.disableMultipart=!0,n.uploaderImage.uploadItem(r),n.progressService.activate()},o.readAsText(r)},e.prototype.checkImageFromVersion=function(e){var t=this.applianceToInstall.images.filter((function(t){return t.filename===e}))[0];if(this.applianceToInstall.qemu){if(this.qemuImages.filter((function(e){return e.md5sum===t.md5sum})).length>0)return!0}else if(this.applianceToInstall.dynamips){if(this.iosImages.filter((function(e){return e.md5sum===t.md5sum})).length>0)return!0}else if(this.applianceToInstall.iou&&this.iouImages.filter((function(e){return e.md5sum===t.md5sum})).length>0)return!0;return!1},e.prototype.checkImages=function(e){return!!(e.images.hdb_disk_image&&this.checkImageFromVersion(e.images.hda_disk_image)&&this.checkImageFromVersion(e.images.hdb_disk_image))||!!this.checkImageFromVersion(e.images.hda_disk_image)},e.prototype.openConfirmationDialog=function(e,t){var n=this.dialog.open(ane,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});n.componentInstance.confirmationMessage=e,n.afterClosed().subscribe((function(e){e&&window.open(t)}))},e.prototype.downloadImage=function(e){e.direct_download_url?e.compression?this.openConfirmationDialog("The file is compressed with "+e.compression+", it must be uncompressed first.",e.direct_download_url):window.open(e.direct_download_url):this.openConfirmationDialog("Download will redirect you where the required file can be downloaded, you may have to be registered with the vendor in order to download the file.",e.download_url)},e.prototype.downloadImageFromVersion=function(e){var t=this;this.applianceToInstall.images.forEach((function(n){n.filename===e&&t.downloadImage(n)}))},e.prototype.getCategory=function(){return"multilayer_switch"===this.applianceToInstall.category?"switch":this.applianceToInstall.category},e.prototype.createIouTemplate=function(e){var t=this,n=new ine;n.nvram=this.applianceToInstall.iou.nvram,n.ram=this.applianceToInstall.iou.ram,n.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,n.serial_adapters=this.applianceToInstall.iou.serial_adapters,n.startup_config=this.applianceToInstall.iou.startup_config,n.builtin=this.applianceToInstall.builtin,n.category=this.getCategory(),n.default_name_format=this.applianceToInstall.port_name_format,n.symbol=this.applianceToInstall.symbol,n.compute_id=this.isGns3VmChosen?"vm":"local",n.template_id=Object(Gee.v4)(),n.path=e.filename,n.template_type="iou";var i=this.dialog.open(hne,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe((function(e){if(!e)return!1;n.name=e,t.iouService.addTemplate(t.server,n).subscribe((function(e){t.templateService.newTemplateCreated.next(e),t.toasterService.success("Template added"),t.dialogRef.close()}))}))},e.prototype.createIosTemplate=function(e){var t=this,n=new ene;n.chassis=this.applianceToInstall.dynamips.chassis,n.nvram=this.applianceToInstall.dynamips.nvram,n.platform=this.applianceToInstall.dynamips.platform,n.ram=this.applianceToInstall.dynamips.ram,n.startup_config=this.applianceToInstall.dynamips.startup_config,n.slot0=this.applianceToInstall.dynamips.slot0,n.slot1=this.applianceToInstall.dynamips.slot1,n.slot2=this.applianceToInstall.dynamips.slot2,n.slot3=this.applianceToInstall.dynamips.slot3,n.slot4=this.applianceToInstall.dynamips.slot4,n.slot5=this.applianceToInstall.dynamips.slot5,n.slot6=this.applianceToInstall.dynamips.slot6,n.slot7=this.applianceToInstall.dynamips.slot7,n.builtin=this.applianceToInstall.builtin,n.category=this.getCategory(),n.default_name_format=this.applianceToInstall.port_name_format,n.symbol=this.applianceToInstall.symbol,n.compute_id=this.isGns3VmChosen?"vm":"local",n.template_id=Object(Gee.v4)(),n.image=e.filename,n.template_type="dynamips";var i=this.dialog.open(hne,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe((function(e){if(!e)return!1;n.name=e,t.iosService.addTemplate(t.server,n).subscribe((function(e){t.templateService.newTemplateCreated.next(e),t.toasterService.success("Template added"),t.dialogRef.close()}))}))},e.prototype.createDockerTemplate=function(){var e=this,t=new $te;t.adapters=this.applianceToInstall.docker.adapters,t.console_type=this.applianceToInstall.docker.console_type,t.builtin=this.applianceToInstall.builtin,t.category=this.getCategory(),t.default_name_format=this.applianceToInstall.port_name_format,t.symbol=this.applianceToInstall.symbol,t.compute_id=this.isGns3VmChosen?"vm":"local",t.template_id=Object(Gee.v4)(),t.image=this.applianceToInstall.docker.image,t.template_type="docker";var n=this.dialog.open(hne,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});n.componentInstance.server=this.server,n.afterClosed().subscribe((function(n){if(!n)return!1;t.name=n,e.dockerService.addTemplate(e.server,t).subscribe((function(t){e.templateService.newTemplateCreated.next(t),e.toasterService.success("Template added"),e.dialogRef.close()}))}))},e.prototype.createQemuTemplateFromVersion=function(e){var t=this;if(this.checkImages(e))if(this.selectedBinary){var n=new Qte;n.ram=this.applianceToInstall.qemu.ram,n.adapters=this.applianceToInstall.qemu.adapters,n.adapter_type=this.applianceToInstall.qemu.adapter_type,n.boot_priority=this.applianceToInstall.qemu.boot_priority,n.console_type=this.applianceToInstall.qemu.console_type,n.hda_disk_interface=this.applianceToInstall.qemu.hda_disk_interface,n.hdb_disk_interface=this.applianceToInstall.qemu.hdb_disk_interface,n.hdc_disk_interface=this.applianceToInstall.qemu.hdc_disk_interface,n.hdd_disk_interface=this.applianceToInstall.qemu.hdd_disk_interface,n.builtin=this.applianceToInstall.builtin,n.category=this.getCategory(),n.first_port_name=this.applianceToInstall.first_port_name,n.port_name_format=this.applianceToInstall.port_name_format,n.symbol=this.applianceToInstall.symbol,n.qemu_path=this.selectedBinary.path,n.compute_id=this.isGns3VmChosen?"vm":"local",n.template_id=Object(Gee.v4)(),n.hda_disk_image=e.images.hda_disk_image,n.hdb_disk_image=e.images.hdb_disk_image,n.template_type="qemu",n.usage=this.applianceToInstall.usage;var i=this.dialog.open(hne,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe((function(e){if(!e)return!1;n.name=e,t.qemuService.addTemplate(t.server,n).subscribe((function(e){t.templateService.newTemplateCreated.next(e),t.toasterService.success("Template added"),t.dialogRef.close()}))}))}else this.toasterService.error("Please select QEMU binary first");else this.toasterService.error("Please install required images first")},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(Kte),_a(No),_a(iJ),_a($2),_a(Jte),_a(tne),_a(nne),_a(rne),_a(nQ),_a(one),_a(No),_a(t7))},e.\u0275cmp=ze({type:e,selectors:[["app-new-template-dialog"]],viewQuery:function(e,t){var n;1&e&&(sl(Gte,!0),sl(_ie,!0)),2&e&&(al(n=fl())&&(t.paginator=n.first),al(n=fl())&&(t.stepper=n.first))},inputs:{server:"server",project:"project"},decls:56,vars:19,consts:[["mat-dialog-title",""],[3,"linear"],["stepper",""],["matStepLabel",""],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"click"],["mat-button","","matStepperNext",""],["mat-button","",3,"click"],[3,"hidden"],[1,"tableHeader"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matSort","","multiTemplateDataRows","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emulator"],["matColumnDef","vendor"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["type","file","accept",".gns3appliance, .gns3a","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["mat-button","","matStepperPrevious",""],["mat-button","",3,"hidden","click"],[4,"ngIf"],[3,"value"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Install","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Install"],["mat-icon-button","","matTooltip","Show info","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Show info"],["value","1",1,"radio-button",3,"disabled","checked","click"],["value","2",1,"radio-button",3,"disabled","checked","click"],["placeholder","Qemu binary",1,"selection-group",3,"ngModel","ngModelOptions","ngModelChange"],["mat-icon-button","","matTooltip","Refresh list of images","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Refresh list of images"],[4,"ngFor","ngForOf"],[1,"list-item"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","list-item-inside",4,"ngIf"],[1,"list-item-inside"],["type","file","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file2",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["value","1",1,"radio-button",3,"checked","click"]],template:function(e,t){if(1&e){var n=Pa();Sa(0,"h1",0),_s(1,"Add new template"),xa(),Sa(2,"mat-horizontal-stepper",1,2),Sa(4,"mat-step"),ba(5,wie,1,0,"ng-template",3),Sa(6,"mat-radio-group",4),Sa(7,"mat-radio-button",5),Ia("click",(function(){return t.setAction("install")})),_s(8,"Install new appliance from the GNS server"),xa(),Oa(9,"br"),Sa(10,"mat-radio-button",6),Ia("click",(function(){return t.setAction("import")})),_s(11,"Import an appliance file"),xa(),xa(),Sa(12,"div"),Sa(13,"button",7),_s(14,"Next"),xa(),Sa(15,"button",8),Ia("click",(function(){return t.onCloseClick()})),_s(16,"Cancel"),xa(),xa(),xa(),Sa(17,"mat-step"),ba(18,kie,1,1,"ng-template",3),Sa(19,"mat-card",9),Sa(20,"div",10),Sa(21,"mat-form-field",11),Sa(22,"input",12),Ia("ngModelChange",(function(e){return t.searchText=e})),xa(),xa(),Sa(23,"mat-select",13),Ia("selectionChange",(function(e){return t.filterAppliances(e)}))("ngModelChange",(function(e){return t.category=e})),ba(24,Cie,2,2,"mat-option",14),xa(),xa(),Sa(25,"mat-table",15,16),Ia("matSortChange",(function(e){return t.sortData(e)})),Uc(27,"datasourcefilter"),Ma(28,17),ba(29,Sie,2,0,"mat-header-cell",18),ba(30,xie,2,1,"mat-cell",19),Ta(),Ma(31,20),ba(32,Oie,2,0,"mat-header-cell",18),ba(33,Mie,2,1,"mat-cell",19),Ta(),Ma(34,21),ba(35,Tie,2,0,"mat-header-cell",18),ba(36,Eie,2,1,"mat-cell",19),Ta(),Ma(37,22),ba(38,Pie,2,0,"mat-header-cell",18),ba(39,jie,7,0,"mat-cell",23),Ta(),ba(40,Aie,1,0,"mat-header-row",24),ba(41,Iie,1,0,"mat-row",25),xa(),Oa(42,"mat-paginator",26),xa(),Sa(43,"mat-card",9),Sa(44,"input",27,28),Ia("change",(function(e){return t.addAppliance(e)})),xa(),Sa(46,"button",29),Ia("click",(function(){return Dt(n),ya(45).click()})),_s(47,"Click to import appliance"),xa(),xa(),Sa(48,"div"),Sa(49,"button",30),_s(50,"Back"),xa(),Sa(51,"button",31),Ia("click",(function(){return t.updateAppliances()})),_s(52,"Update from online registry"),xa(),Sa(53,"button",8),Ia("click",(function(){return t.onCloseClick()})),_s(54,"Cancel"),xa(),xa(),xa(),ba(55,Zie,14,6,"mat-step",32),xa()}2&e&&(ar(2),ka("linear",!1),ar(17),ka("hidden",!("install"===t.action)),ar(3),ka("ngModel",t.searchText),ar(1),ka("ngModelOptions",Nc(17,qie))("ngModel",t.category),ar(1),ka("ngForOf",t.categories),ar(1),ka("dataSource",Wc(27,14,t.dataSource,t.searchText)),ar(15),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns),ar(1),ka("pageSizeOptions",Nc(18,Qie)),ar(1),ka("hidden","install"===t.action),ar(1),ka("uploader",t.uploader),ar(7),ka("hidden","install"!==t.action),ar(4),ka("ngIf",t.applianceToInstall))},directives:[oQ,$ne,Yne,Vne,l3,f3,h$,tie,wJ,a0,y0,wf,Mf,Rp,H0,Nh,f1,uie,w1,v1,m1,E1,I1,Gte,bU,iie,Hh,DY,C1,M1,J1,P$,R1,B1,t4,o4],pipes:[yie],styles:[".radio-button[_ngcontent-%COMP%]{margin-bottom:30px}.filter-field[_ngcontent-%COMP%], .tableHeader[_ngcontent-%COMP%]{width:100%}.example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:500px;min-width:300px}.mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.element-row[_ngcontent-%COMP%]{position:relative}.element-row[_ngcontent-%COMP%]:not(.expanded){cursor:pointer}.element-row[_ngcontent-%COMP%]:not(.expanded):hover{background:#f5f5f5}.element-row.expanded[_ngcontent-%COMP%]{border-bottom-color:transparent}.list-item[_ngcontent-%COMP%], .list-item-inside[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:15px}.list-item-inside[_ngcontent-%COMP%]{padding-left:30px}.button[_ngcontent-%COMP%]{margin-left:10px}.create-button[_ngcontent-%COMP%]{width:100%;margin-top:10px;margin-bottom:10px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.selection-group[_ngcontent-%COMP%]{padding-bottom:20px}"],data:{animation:[jv("detailExpand",[Lv("collapsed",Rv({height:"0px",minHeight:"0",visibility:"hidden"})),Lv("expanded",Rv({height:"*",visibility:"visible"})),Nv("expanded <=> collapsed",Av("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e}();function Jie(e,t,n){return((e=e.toLowerCase())<(t=t.toLowerCase())?-1:1)*(n?1:-1)}function ere(e,t){if(1&e&&(cn(),Oa(0,"circle",3)),2&e){var n=Ba();rs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),fa("r",n._getCircleRadius())}}function tre(e,t){if(1&e&&(cn(),Oa(0,"circle",3)),2&e){var n=Ba();rs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),fa("r",n._getCircleRadius())}}function nre(e,t){if(1&e&&(cn(),Oa(0,"circle",3)),2&e){var n=Ba();rs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),fa("r",n._getCircleRadius())}}function ire(e,t){if(1&e&&(cn(),Oa(0,"circle",3)),2&e){var n=Ba();rs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),fa("r",n._getCircleRadius())}}var rre=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",ore=eY((function e(t){Object(m.a)(this,e),this._elementRef=t}),"primary"),are=new he("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),sre=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){var s;Object(m.a)(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),c.has(r.head)||c.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return Object(g.a)(n,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=qm(e)||this._document.head,this._attachStyleNode();var t="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");e.classList.add(t)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*e)).replace(/END_VALUE/g,"".concat(.2*e)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=bm(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=bm(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,bm(e)))}}]),n}(ore);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Fm),_a(bu,8),_a(__,8),_a(are))},e.\u0275cmp=ze({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(fa("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),rs("width",t.diameter,"px")("height",t.diameter,"px"),os("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Es],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(cn(),Sa(0,"svg",0),ba(1,ere,1,9,"circle",1),ba(2,tre,1,7,"circle",2),xa()),2&e&&(rs("width",t.diameter,"px")("height",t.diameter,"px"),ka("ngSwitch","indeterminate"===t.mode),fa("viewBox",t._getViewBox()),ar(1),ka("ngSwitchCase",!0),ar(1),ka("ngSwitchCase",!1))},directives:[Uh,Gh],styles:[rre],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),cre=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){var s;return Object(m.a)(this,n),(s=t.call(this,e,i,r,o,a)).mode="indeterminate",s}return n}(sre);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Fm),_a(bu,8),_a(__,8),_a(are))},e.\u0275cmp=ze({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(rs("width",t.diameter,"px")("height",t.diameter,"px"),os("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[Es],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(cn(),Sa(0,"svg",0),ba(1,nre,1,9,"circle",1),ba(2,ire,1,7,"circle",2),xa()),2&e&&(rs("width",t.diameter,"px")("height",t.diameter,"px"),ka("ngSwitch","indeterminate"===t.mode),fa("viewBox",t._getViewBox()),ar(1),ka("ngSwitchCase",!0),ar(1),ka("ngSwitchCase",!1))},directives:[Uh,Gh],styles:[rre],encapsulation:2,changeDetection:0}),e}(),lre=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[$X,_d],$X]}),e}();function ure(e,t){1&e&&(Sa(0,"div",4),Oa(1,"mat-spinner",5),xa())}function hre(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"div",7),Sa(2,"mat-icon"),_s(3,"error_outline"),xa(),xa(),Sa(4,"div"),_s(5),xa(),Sa(6,"div"),Sa(7,"button",8),Ia("click",(function(){return Dt(n),Ba(2).refresh()})),Sa(8,"mat-icon"),_s(9,"refresh"),xa(),xa(),Sa(10,"button",9),Sa(11,"mat-icon"),_s(12,"home"),xa(),xa(),xa(),xa()}if(2&e){var i=Ba(2);ar(5),ks("Error occurred: ",i.error.message,"")}}function dre(e,t){if(1&e&&(Sa(0,"div",1),ba(1,ure,2,0,"div",2),ba(2,hre,13,1,"div",3),xa()),2&e){var n=Ba();ar(1),ka("ngIf",n.visible&&!n.error),ar(1),ka("ngIf",n.error)}}var fre=function(){function e(e,t){this.progressService=e,this.router=t,this.visible=!1}return e.prototype.ngOnInit=function(){var e=this;this.progressService.state.subscribe((function(t){e.visible=t.visible,t.error&&!e.error&&(e.error=t.error),t.clear&&(e.error=null)})),this.routerSubscription=this.router.events.subscribe((function(){e.progressService.clear()}))},e.prototype.refresh=function(){this.router.navigateByUrl(this.router.url)},e.prototype.ngOnDestroy=function(){this.routerSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(t7),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(e,t){1&e&&ba(0,dre,3,2,"div",0),2&e&&ka("ngIf",t.visible||t.error)},directives:[Hh,cre,P$,h$,J1,rK],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);z-index:2000}.error-state[_ngcontent-%COMP%], .loading-spinner[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]}),e}(),pre=function(){function e(e,t,n){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n}return e.prototype.ngOnInit=function(){var e=this;this.drawingDragged=this.drawingsEventSource.dragged.subscribe((function(t){return e.onDrawingDragged(t)}))},e.prototype.onDrawingDragged=function(e){var t=this,n=this.drawingsDataSource.get(e.datum.id);n.x+=e.dx,n.y+=e.dy,this.drawingService.updatePosition(this.server,this.project,n,n.x,n.y).subscribe((function(e){t.drawingsDataSource.update(e)}))},e.prototype.ngOnDestroy=function(){this.drawingDragged.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(a6),_a(u6),_a(D9))},e.\u0275cmp=ze({type:e,selectors:[["app-drawing-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),mre=function(){function e(e,t,n,i){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.mapDrawingToSvgConverter=i}return e.prototype.ngOnInit=function(){var e=this;this.drawingResized=this.drawingsEventSource.resized.subscribe((function(t){return e.onDrawingResized(t)}))},e.prototype.onDrawingResized=function(e){var t=this,n=this.drawingsDataSource.get(e.datum.id),i=this.mapDrawingToSvgConverter.convert(e.datum);this.drawingService.updateSizeAndPosition(this.server,n,e.x,e.y,i).subscribe((function(e){t.drawingsDataSource.update(e)}))},e.prototype.ngOnDestroy=function(){this.drawingResized.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(a6),_a(u6),_a(D9),_a(g6))},e.\u0275cmp=ze({type:e,selectors:[["app-drawing-resized"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),gre=function(){function e(e,t,n){this.linkService=e,this.linksDataSource=t,this.linksEventSource=n}return e.prototype.ngOnInit=function(){var e=this;this.interfaceDragged=this.linksEventSource.interfaceDragged.subscribe((function(t){return e.onInterfaceLabelDragged(t)}))},e.prototype.onInterfaceLabelDragged=function(e){var t=this,n=this.linksDataSource.get(e.datum.linkId);n.nodes[0].node_id===e.datum.nodeId&&(n.nodes[0].label.x+=e.dx,n.nodes[0].label.y+=e.dy),n.nodes[1].node_id===e.datum.nodeId&&(n.nodes[1].label.x+=e.dx,n.nodes[1].label.y+=e.dy),this.linkService.updateNodes(this.server,n,n.nodes).subscribe((function(e){t.linksDataSource.update(e)}))},e.prototype.ngOnDestroy=function(){this.interfaceDragged.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(x6),_a(O6),_a(K9))},e.\u0275cmp=ze({type:e,selectors:[["app-interface-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),vre=function(){function e(e,t,n,i,r,o){this.projectService=e,this.linkService=t,this.linksDataSource=n,this.linksEventSource=i,this.mapNodeToNode=r,this.mapPortToPort=o}return e.prototype.ngOnInit=function(){var e=this;this.linkCreated=this.linksEventSource.created.subscribe((function(t){return e.onLinkCreated(t)}))},e.prototype.onLinkCreated=function(e){var t=this,n=Math.abs(e.sourceNode.x-e.targetNode.x),i=Math.abs(e.sourceNode.y-e.targetNode.y),r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),o=i/r,a=45/r*n,s=45/r*i,c=0,l=0,u=0,h=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(c=Math.floor(e.sourceNode.width/2)+Math.round(a)+5,l=Math.floor(e.sourceNode.height/2)+Math.round(s)+5,u=Math.floor(e.targetNode.width/2)-Math.round(a)-5-Math.round(20*o),h=Math.floor(e.targetNode.height/2)-Math.round(s)+5-Math.round(20*o)):e.sourceNode.x>e.targetNode.x&&e.sourceNode.y<e.targetNode.y?(c=Math.floor(e.sourceNode.width/2)-Math.round(a)-5-Math.round(20*o),l=Math.floor(e.sourceNode.height/2)+Math.round(s)+5-Math.round(20*o),u=Math.floor(e.targetNode.width/2)+Math.round(a)+5,h=Math.floor(e.targetNode.height/2)-Math.round(s)-5):e.sourceNode.x<e.targetNode.x&&e.sourceNode.y>e.targetNode.y?(c=Math.floor(e.sourceNode.width/2)+Math.round(a)+5-Math.round(20*o),l=Math.floor(e.sourceNode.height/2)-Math.round(s)-5-Math.round(20*o),u=Math.floor(e.targetNode.width/2)-Math.round(a)-5,h=Math.floor(e.targetNode.height/2)+Math.round(s)+5):e.sourceNode.x>=e.targetNode.x&&e.sourceNode.y>=e.targetNode.y&&(c=Math.floor(e.sourceNode.width/2)-Math.round(a)-5-Math.round(20*o),l=Math.floor(e.sourceNode.height/2)-Math.round(s)+5-Math.round(20*o),u=Math.floor(e.targetNode.width/2)+Math.round(a)+5,h=Math.floor(e.targetNode.height/2)+Math.round(s)+5);var d=this.mapNodeToNode.convert(e.sourceNode),f=this.mapPortToPort.convert(e.sourcePort),p=this.mapNodeToNode.convert(e.targetNode),m=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.server,d,f,p,m,c,l,u,h).subscribe((function(){t.projectService.links(t.server,t.project.project_id).subscribe((function(e){t.linksDataSource.set(e)}))}))},e.prototype.ngOnDestroy=function(){this.linkCreated.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(GK),_a(x6),_a(O6),_a(K9),_a(f9),_a(d9))},e.\u0275cmp=ze({type:e,selectors:[["app-link-created"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),bre=function(){function e(e,t,n){this.nodesDataSource=e,this.nodeService=t,this.nodesEventSource=n}return e.prototype.ngOnInit=function(){var e=this;this.nodeDragged=this.nodesEventSource.dragged.subscribe((function(t){return e.onNodeDragged(t)}))},e.prototype.onNodeDragged=function(e){var t=this,n=this.nodesDataSource.get(e.datum.id);n.x+=e.dx,n.y+=e.dy,this.nodeService.updatePosition(this.server,this.project,n,n.x,n.y).subscribe((function(e){t.nodesDataSource.update(e)}))},e.prototype.ngOnDestroy=function(){this.nodeDragged.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(D$),_a(Y7))},e.\u0275cmp=ze({type:e,selectors:[["app-node-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),yre=function(){function e(e,t,n,i){this.nodesDataSource=e,this.nodeService=t,this.nodesEventSource=n,this.mapLabelToLabel=i}return e.prototype.ngOnInit=function(){var e=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe((function(t){return e.onNodeLabelDragged(t)}))},e.prototype.onNodeLabelDragged=function(e){var t=this,n=this.nodesDataSource.get(e.datum.nodeId),i=e.datum;i.x+=e.dx,i.y+=e.dy;var r=this.mapLabelToLabel.convert(i);n.label=r,this.nodeService.updateLabel(this.server,n,n.label).subscribe((function(e){t.nodesDataSource.update(e)}))},e.prototype.ngOnDestroy=function(){this.nodeLabelDragged.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(D$),_a(Y7),_a(u9))},e.\u0275cmp=ze({type:e,selectors:[["app-node-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),_re=function(){function e(e,t,n,i,r,o){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.drawingsFactory=i,this.mapDrawingToSvgConverter=r,this.context=o,this.drawingSaved=new Yc}return e.prototype.ngOnInit=function(){var e=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe((function(t){return e.onTextAdded(t)}))},e.prototype.onTextAdded=function(e){var t=this,n=this.drawingsFactory.getDrawingMock("text");n.element.text=e.savedText;var i=this.mapDrawingToSvgConverter.convert(n);this.drawingService.add(this.server,this.project.project_id,(e.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(e.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,i).subscribe((function(e){t.drawingsDataSource.add(e),t.drawingSaved.emit(!0)}))},e.prototype.ngOnDestroy=function(){this.textAdded.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(a6),_a(u6),_a(D9),_a(Fee),_a(g6),_a(s9))},e.\u0275cmp=ze({type:e,selectors:[["app-text-added"]],inputs:{server:"server",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),wre=function(){function e(e,t,n,i){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.mapDrawingToSvgConverter=i}return e.prototype.ngOnInit=function(){var e=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe((function(t){return e.onTextEdited(t)}))},e.prototype.onTextEdited=function(e){var t=this,n=new p6;n.element=e.textElement,n.element.text=e.editedText;var i=this.mapDrawingToSvgConverter.convert(n),r=this.drawingsDataSource.get(e.textDrawingId);this.drawingService.updateText(this.server,r,i).subscribe((function(e){t.drawingsDataSource.update(e),t.drawingsEventSource.textSaved.emit(!0)}))},e.prototype.ngOnDestroy=function(){this.textEdited.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(a6),_a(u6),_a(D9),_a(g6))},e.\u0275cmp=ze({type:e,selectors:[["app-text-edited"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),kre=["app-selection",""];function Cre(e,t){1&e&&(cn(),Oa(0,"path",2)),2&e&&fa("d",Ba().d)}var Sre=function(){function e(e){this.ref=e,this.started=!1,this.visible=!1,this.rectangleSelected=new Yc}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this,t=k.a.fromEvent(this.svg,"mousedown").do((function(e){return e.preventDefault()}));t.subscribe((function(t){t.target===e.svg&&(e.started=!0,e.startX=t.clientX+window.scrollX,e.startY=t.clientY+window.scrollY,e.width=0,e.height=0,e.visible=!0,e.ref.detectChanges())}));var n=k.a.fromEvent(document,"mouseup").do((function(e){e.preventDefault()})),i=k.a.fromEvent(document,"mousemove").do((function(e){return e.stopPropagation()})),r=k.a.fromEvent(document,"scroll").startWith({}),o=k.a.combineLatest(i,r),a=t.mergeMap((function(t){return o.map((function(e){return e[0]})).do((function(t){e.started&&(e.visible=!0,e.width=t.clientX-e.startX+window.scrollX,e.height=t.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))})).skipUntil(n.take(1).do((function(t){e.started&&(e.visible=!1,e.started=!1,e.width=t.clientX-e.startX+window.scrollX,e.height=t.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))}))).take(1)}));this.draggable=a.subscribe((function(e){}))},e.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},Object.defineProperty(e.prototype,"d",{get:function(){return this.rect(this.startX,this.startY,this.width,this.height)},enumerable:!1,configurable:!0}),e.prototype.rect=function(e,t,n,i){return"M"+[e,t]+" l"+[n,0]+" l"+[0,i]+" l"+[-n,0]+"z"},e.prototype.selectedEvent=function(e,t){var n=Math.min(e[0],t[0]),i=Math.min(e[1],t[1]),r=Math.abs(e[0]-t[0]),o=Math.abs(e[1]-t[1]);this.rectangleSelected.emit(new v9(n,i,r,o))},e.\u0275fac=function(t){return new(t||e)(_a(No))},e.\u0275cmp=ze({type:e,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:kre,decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(e,t){1&e&&(cn(),Sa(0,"g",0),ba(1,Cre,1,1,"path",1),xa()),2&e&&(ar(1),ka("ngIf",t.visible))},directives:[Hh],styles:[""]}),e}(),xre=function(){function e(){}return e.prototype.d=function(e){var t=[[e.source.x+e.source.width/2,e.source.y+e.source.height/2],[e.target.x+e.target.width/2,e.target.y+e.target.height/2]],n=UO();return n.moveTo(t[0][0],t[0][1]),n.lineTo(t[1][0],t[1][1]),n.toString()},e}(),Ore=function(){function e(){}return e.prototype.linkToPoints=function(e){var t={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},n={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},i=n.x-t.x,r=n.y-t.y,o=Math.atan2(r,i),a=-Math.PI/4,s=[Math.cos(o+a),Math.sin(o+a)];return[[t.x,t.y],[t.x+i/2+15*s[0],t.y+r/2+15*s[1]],[n.x-i/2-15*s[0],n.y-r/2-15*s[1]],[n.x,n.y]]},e.prototype.d=function(e){var t=this.linkToPoints(e),n=UO();return n.moveTo(t[0][0],t[0][1]),n.lineTo(t[1][0],t[1][1]),n.lineTo(t[2][0],t[2][1]),n.lineTo(t[3][0],t[3][1]),n.toString()},e}(),Mre=["app-status",""];function Tre(e,t){if(1&e&&(cn(),Oa(0,"circle",3)),2&e){var n=Ba(2);fa("cx",n.point.x)("cy",n.point.y)}}function Ere(e,t){if(1&e&&(cn(),Oa(0,"rect",4)),2&e){var n=Ba(2);fa("x",n.point.x-5)("y",n.point.y-5)}}function Pre(e,t){if(1&e&&(cn(),Sa(0,"g"),ba(1,Tre,1,2,"circle",1),ba(2,Ere,1,2,"rect",2),xa()),2&e){var n=Ba();ar(1),ka("ngIf","started"==n.status),ar(1),ka("ngIf","stopped"==n.status)}}var jre=function(){function e(e,t){this.element=e,this.ref=t,this.data={status:"",path:null,direction:null,d:null}}return Object.defineProperty(e.prototype,"status",{get:function(){return this.data.status},set:function(e){this.data.status=e,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.data.path},set:function(e){this.data.path=e,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this.data.direction},set:function(e){this.data.direction=e,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"d",{set:function(e){this.data.d!==e&&(this.data.d=e,this.ref.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sourceStatusPoint",{get:function(){return this.path?this.path.nativeElement.getPointAtLength(45):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetStatusPoint",{get:function(){return this.path?this.path.nativeElement.getPointAtLength(this.path.nativeElement.getTotalLength()-45):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return"source"===this.direction?this.sourceStatusPoint:this.targetStatusPoint},enumerable:!1,configurable:!0}),e.STOPPED_STATUS_RECT_WIDTH=10,e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:Mre,decls:1,vars:1,consts:[[4,"ngIf"],["class","status_started","r","6","fill","#2ecc71",4,"ngIf"],["class","status_stopped","width","10","height","10","r","6","fill","red",4,"ngIf"],["r","6","fill","#2ecc71",1,"status_started"],["width","10","height","10","r","6","fill","red",1,"status_stopped"]],template:function(e,t){1&e&&ba(0,Pre,3,2,"g",0),2&e&&ka("ngIf",t.status&&t.point&&t.direction)},directives:[Hh],styles:[""]}),e}(),Are=["textSvg"],Ire=["app-interface-label",""],Dre=function(){function e(e,t,n,i){this.elementRef=e,this.ref=t,this.sanitizer=n,this.cssFixer=i,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"x",{set:function(e){this.label.x=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{set:function(e){this.label.y=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.label.text},set:function(e){this.label.text=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{set:function(e){this.label.style=this.cssFixer.fix(e),this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{set:function(e){this.label.rotation=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sanitizedStyle",{get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectY",{get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectWidth",{get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectHeight",{get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){var e=this.elementRef.nativeElement.getBBox(),t=this.label.x,n=this.label.y+e.height;return"translate("+t+", "+n+") rotate("+this.label.rotation+", "+t+", "+n+")"},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(Jd),_a(s7))},e.\u0275cmp=ze({type:e,selectors:[["","app-interface-label",""]],viewQuery:function(e,t){var n;1&e&&cl(Are,!0),2&e&&al(n=fl())&&(t.textRef=n.first)},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:Ire,decls:5,vars:9,consts:[["width","100","height","100",1,"text_container"],["stroke-dasharray","3,3","stroke-width","0.5","fill","none","stroke","black"],[1,"interface_label"],["textSvg",""]],template:function(e,t){1&e&&(cn(),Sa(0,"g",0),Oa(1,"rect",1),Sa(2,"text",2,3),_s(4),xa(),xa()),2&e&&(fa("transform",t.transform),ar(1),fa("x",t.rectX)("y",t.rectY)("width",t.rectWidth)("height",t.rectHeight),ar(1),fa("style",t.sanitizedStyle,Bi)("x",t.borderSize)("y",-t.borderSize),ar(2),ks(" ",t.text," "))},styles:[""]}),e}(),Rre=["path"],Lre=["app-link",""];function Fre(e,t){1&e&&(cn(),Oa(0,"path",5,6)),2&e&&fa("d",Ba().d)}function Nre(e,t){1&e&&(cn(),Oa(0,"path",7,6)),2&e&&fa("d",Ba().d)}function Bre(e,t){if(1&e&&(cn(),Oa(0,"g",8)),2&e){var n=Ba();as(n.link.nodes[0].label.style),ka("x",n.link.source.x+n.link.nodes[0].label.x)("y",n.link.source.y+n.link.nodes[0].label.y)("text",n.link.nodes[0].label.text)("rotation",n.link.nodes[0].label.rotation)}}function Hre(e,t){if(1&e&&(cn(),Oa(0,"g",8)),2&e){var n=Ba();as(n.link.nodes[1].label.style),ka("x",n.link.target.x+n.link.nodes[1].label.x)("y",n.link.target.y+n.link.nodes[1].label.y)("text",n.link.nodes[1].label.text)("rotation",n.link.nodes[1].label.rotation)}}var zre=function(){function e(e,t){this.multiLinkCalculatorHelper=e,this.ref=t,this.ethernetLinkStrategy=new xre,this.serialLinkStrategy=new Ore}return e.prototype.ngOnInit=function(){this.ref.detectChanges()},e.prototype.ngOnDestroy=function(){},Object.defineProperty(e.prototype,"strategy",{get:function(){return"serial"===this.link.linkType?this.serialLinkStrategy:this.ethernetLinkStrategy},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){var e=this.multiLinkCalculatorHelper.linkTranslation(this.link.distance,this.link.source,this.link.target);return"translate ("+e.dx+", "+e.dy+")"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.strategy.d(this.link)},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(_a(E7),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["","app-link",""]],viewQuery:function(e,t){var n;1&e&&cl(Rre,!0),2&e&&al(n=fl())&&(t.path=n.first)},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:Lre,decls:7,vars:16,consts:[[1,"link"],["class","ethernet_link","stroke","#000","stroke-width","2",4,"ngIf"],["class","serial_link","stroke","#B22222","fill","none","stroke-width","2",4,"ngIf"],[3,"app-status","direction","path","d"],[3,"app-interface-label","x","y","text","style","rotation",4,"ngIf"],["stroke","#000","stroke-width","2",1,"ethernet_link"],["path",""],["stroke","#B22222","fill","none","stroke-width","2",1,"serial_link"],[3,"app-interface-label","x","y","text","rotation"]],template:function(e,t){1&e&&(cn(),Sa(0,"g",0),ba(1,Fre,2,1,"path",1),ba(2,Nre,2,1,"path",2),Oa(3,"g",3),Oa(4,"g",3),ba(5,Bre,1,6,"g",4),ba(6,Hre,1,6,"g",4),xa()),2&e&&(fa("link_id",t.link.id)("map-source",t.link.source.id)("map-target",t.link.target.id)("transform",t.transform),ar(1),ka("ngIf","ethernet"==t.link.linkType),ar(1),ka("ngIf","serial"==t.link.linkType),ar(1),ka("app-status",t.link.source.status)("direction","source")("path",t.path)("d",t.d),ar(1),ka("app-status",t.link.target.status)("direction","target")("path",t.path)("d",t.d),ar(1),ka("ngIf",t.showInterfaceLabels),ar(1),ka("ngIf",t.showInterfaceLabels))},directives:[Hh,jre,Dre],styles:[""]}),e}(),Vre=["app-draggable",""],qre=["*"],Ure=function(){return function(e,t,n,i){this.x=e,this.y=t,this.dx=n,this.dy=i}}(),Gre=function(){function e(e){this.elementRef=e,this.dragging=new Yc,this.dragged=new Yc}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this,t=k.a.fromEvent(this.elementRef.nativeElement,"mousedown").do((function(e){return e.preventDefault()}));t.subscribe((function(t){e.posX=e.item.x,e.posY=e.item.y,e.startX=t.clientX,e.startY=t.clientY}));var n=k.a.fromEvent(document,"mouseup").do((function(e){e.preventDefault()})),i=k.a.fromEvent(document,"mousemove").do((function(e){return e.stopPropagation()})),r=k.a.fromEvent(document,"scroll").startWith({}),o=k.a.combineLatest(i,r),a=t.mergeMap((function(t){return o.map((function(e){return e[0]})).do((function(t){var n=e.startX-t.clientX,i=e.startY-t.clientY;e.item.x=Math.round(e.posX-n),e.item.y=Math.round(e.posY-i),e.dragging.emit(new Ure(e.item.x,e.item.y,-n,-i))})).skipUntil(n.take(1).do((function(t){var n=e.startX-t.clientX,i=e.startY-t.clientY;e.item.x=Math.round(e.posX-n),e.item.y=Math.round(e.posY-i),e.dragged.emit(new Ure(e.item.x,e.item.y,-n,-i))}))).take(1)}));this.draggable=a.subscribe((function(e){}))},e.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275cmp=ze({type:e,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:Vre,ngContentSelectors:qre,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},styles:[""]}),e}(),Wre=["label"],Kre=["image"],Xre=["app-node",""],Yre=function(){function e(e,t,n,i,r,o){this.cssFixer=e,this.fontFixer=t,this.sanitizer=n,this.element=i,this.cd=r,this.nodesEventSource=o,this.labelHeight=0}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},e.prototype.ngOnChanges=function(e){this.cd.detectChanges()},e.prototype.ngAfterViewInit=function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()},e.prototype.OnDragging=function(e){this.node.x=e.x,this.node.y=e.y,this.cd.detectChanges()},e.prototype.OnDragged=function(e){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new N7(this.node,e.dx,e.dy))},Object.defineProperty(e.prototype,"symbol",{get:function(){var e=this,t=this.symbols.find((function(t){return t.symbol_id===e.node.symbol}));return t?"data:image/svg+xml;base64,"+btoa(t.raw):"data:image/svg+xml;base64,none"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label_style",{get:function(){var e=this.cssFixer.fix(this.node.label.style);return e=this.fontFixer.fixStyles(e),this.sanitizer.bypassSecurityTrustStyle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label_x",{get:function(){return null===this.node.label.x?-this.label.nativeElement.getBBox().width/2:this.node.label.x+e.NODE_LABEL_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label_y",{get:function(){return this.labelHeight=this.getLabelHeight(),null===this.node.label.x?-this.node.height/2-this.labelHeight:this.node.label.y+this.labelHeight-e.NODE_LABEL_MARGIN},enumerable:!1,configurable:!0}),e.prototype.getLabelHeight=function(){return this.label.nativeElement.getBBox().height},e.NODE_LABEL_MARGIN=3,e.\u0275fac=function(t){return new(t||e)(_a(s7),_a(E6),_a(Jd),_a(Ks),_a(No),_a(Y7))},e.\u0275cmp=ze({type:e,selectors:[["","app-node",""]],viewQuery:function(e,t){var n;1&e&&(cl(Wre,!0),cl(Kre,!0)),2&e&&(al(n=fl())&&(t.label=n.first),al(n=fl())&&(t.imageRef=n.first))},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[ct],attrs:Xre,decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(e,t){1&e&&(cn(),Sa(0,"g",0),Sa(1,"image",1,2),Ia("dragging",(function(e){return t.OnDragging(e)}))("dragged",(function(e){return t.OnDragged(e)})),xa(),Sa(3,"text",3,4),_s(5),xa(),xa()),2&e&&(fa("transform","translate("+t.node.x+","+t.node.y+")"),ar(1),ka("app-draggable",t.node),fa("width",t.node.width)("height",t.node.height)("x",0)("y",0)("href",t.symbol,null,"xlink"),ar(2),fa("style",t.label_style,Bi)("x",t.label_x)("y",t.label_y),ar(2),ks(" ",t.node.label.text," "))},directives:[Gre],styles:[""],changeDetection:0}),e}(),Zre=["app-ellipse",""],Qre=function(){function e(e){this.qtDasharrayFixer=e}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"fill_opacity",{get:function(){return isFinite(this.ellipse.fill_opacity)?this.ellipse.fill_opacity:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke_width",{get:function(){return isFinite(this.ellipse.stroke_width)?this.ellipse.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke_dasharray",{get:function(){return this.ellipse.stroke_dasharray?this.qtDasharrayFixer.fix(this.ellipse.stroke_dasharray):null},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(_a(J7))},e.\u0275cmp=ze({type:e,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:Zre,decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(e,t){1&e&&(cn(),Oa(0,"ellipse",0)),2&e&&fa("fill",t.ellipse.fill)("fill-opacity",t.fill_opacity)("stroke",t.ellipse.stroke)("stroke-width",t.stroke_width)("stroke-dasharray",t.stroke_dasharray)("cx",t.ellipse.cx)("cy",t.ellipse.cy)("rx",t.ellipse.rx)("ry",t.ellipse.ry)},styles:[""]}),e}(),$re=["app-image",""],Jre=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:$re,decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(e,t){1&e&&(cn(),Oa(0,"image",0)),2&e&&fa("href",t.image.data,null,"xlink")("width",t.image.width)("height",t.image.height)},styles:[""]}),e}(),eoe=["app-line",""],toe=function(){function e(e){this.qtDasharrayFixer=e}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"stroke_width",{get:function(){return isFinite(this.line.stroke_width)?this.line.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke_dasharray",{get:function(){return this.line.stroke_dasharray?this.qtDasharrayFixer.fix(this.line.stroke_dasharray):null},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(_a(J7))},e.\u0275cmp=ze({type:e,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:eoe,decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(e,t){1&e&&(cn(),Oa(0,"line",0)),2&e&&fa("stroke",t.line.stroke)("stroke-width",t.stroke_width)("stroke-dasharray",t.stroke_dasharray)("x1",t.line.x1)("x2",t.line.x2)("y1",t.line.y1)("y2",t.line.y2)},styles:[""]}),e}(),noe=["app-rect",""],ioe=function(){function e(e){this.qtDasharrayFixer=e}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"fill_opacity",{get:function(){return isFinite(this.rect.fill_opacity)?this.rect.fill_opacity:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke_width",{get:function(){return isFinite(this.rect.stroke_width)?this.rect.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke_dasharray",{get:function(){return this.rect.stroke_dasharray?this.qtDasharrayFixer.fix(this.rect.stroke_dasharray):null},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(_a(J7))},e.\u0275cmp=ze({type:e,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:noe,decls:1,vars:7,consts:[[1,"rect_element","noselect"]],template:function(e,t){1&e&&(cn(),Oa(0,"rect",0)),2&e&&fa("fill",t.rect.fill)("fill-opacity",t.fill_opacity)("stroke",t.rect.stroke)("stroke-width",t.stroke_width)("stroke-dasharray",t.stroke_dasharray)("width",t.rect.width)("height",t.rect.height)},styles:[""]}),e}(),roe=["text"],ooe=["app-text",""];function aoe(e,t){if(1&e&&(cn(),Sa(0,"tspan",3),_s(1),xa()),2&e){var n=t.$implicit;fa("dy",0==t.index?"0em":"1.4em"),ar(1),ks(" ",n," ")}}var soe=function(){function e(e,t){this.fontFixer=e,this.sanitizer=t,this.lines=[],this.transformation=""}return e.prototype.ngOnInit=function(){this.lines=this.getLines(this.text.text)},e.prototype.ngDoCheck=function(){this.transformation=this.calculateTransformation()},Object.defineProperty(e.prototype,"style",{get:function(){var e=this.fontFixer.fix(this.text),t=[];return e.font_family&&t.push('font-family: "'+this.text.font_family+'"'),e.font_size&&t.push("font-size: "+this.text.font_size+"pt"),e.font_weight&&t.push("font-weight: "+this.text.font_weight),this.sanitizer.bypassSecurityTrustStyle(t.join("; "))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textDecoration",{get:function(){return this.text.text_decoration},enumerable:!1,configurable:!0}),e.prototype.calculateTransformation=function(){var t=this.textRef.nativeElement.getElementsByTagName("tspan");if(t.length>0){var n=this.textRef.nativeElement.getBBox().height/t.length;return"translate("+e.MARGIN+", "+(n-e.MARGIN)+")"}return""},e.prototype.getLines=function(e){return e.split(/\r?\n/)},e.MARGIN=4,e.\u0275fac=function(t){return new(t||e)(_a(E6),_a(Jd))},e.\u0275cmp=ze({type:e,selectors:[["","app-text",""]],viewQuery:function(e,t){var n;1&e&&cl(roe,!0),2&e&&al(n=fl())&&(t.textRef=n.first)},inputs:{text:["app-text","text"]},attrs:ooe,decls:3,vars:5,consts:[[1,"text_element","noselect"],["text",""],[0,"xml","space","preserve","x","0",4,"ngFor","ngForOf"],[0,"xml","space","preserve","x","0"]],template:function(e,t){if(1&e&&(cn(),Sa(0,"text",0,1),ba(2,aoe,2,2,"tspan",2),xa()),2&e){var n=ya(1);fa("style",t.style,Bi)("text-decoration",t.textDecoration)("fill",n.fill)("transform",t.transformation),ar(2),ka("ngForOf",t.lines)}},directives:[Nh],styles:[""]}),e}(),coe=["app-drawing",""];function loe(e,t){1&e&&(cn(),Oa(0,"g",6)),2&e&&ka("app-ellipse",Ba().drawing.element)}function uoe(e,t){1&e&&(cn(),Oa(0,"g",7)),2&e&&ka("app-image",Ba().drawing.element)}function hoe(e,t){1&e&&(cn(),Oa(0,"g",8)),2&e&&ka("app-line",Ba().drawing.element)}function doe(e,t){1&e&&(cn(),Oa(0,"g",9)),2&e&&ka("app-rect",Ba().drawing.element)}function foe(e,t){1&e&&(cn(),Oa(0,"g",10)),2&e&&ka("app-text",Ba().drawing.element)}var poe=function(){function e(e,t,n){this.svgToDrawingConverter=e,this.drawingsEventSource=t,this.cd=n}return e.prototype.ngOnInit=function(){try{this.drawing.element=this.svgToDrawingConverter.convert(this.drawing.svg)}catch(e){console.log("Cannot convert due to Error: '"+e+"'")}},e.prototype.OnDragging=function(e){this.drawing.x=e.x,this.drawing.y=e.y,this.cd.detectChanges()},e.prototype.OnDragged=function(e){this.cd.detectChanges(),this.drawingsEventSource.dragged.emit(new N7(this.drawing,e.dx,e.dy))},e.prototype.is=function(e,t){return!!e&&("ellipse"===t?e instanceof i6:"image"===t?e instanceof Q4:"line"===t?e instanceof t6:"rect"===t?e instanceof J4:"text"===t&&e instanceof BZ)},Object.defineProperty(e.prototype,"transformation",{get:function(){return"translate("+this.drawing.x+","+this.drawing.y+") rotate("+this.drawing.rotation+")"},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(_a(o6),_a(D9),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:coe,decls:6,vars:7,consts:[[1,"drawing",3,"app-draggable","dragging","dragged"],[3,"app-ellipse",4,"ngIf"],[3,"app-image",4,"ngIf"],[3,"app-line",4,"ngIf"],[3,"app-rect",4,"ngIf"],[3,"app-text",4,"ngIf"],[3,"app-ellipse"],[3,"app-image"],[3,"app-line"],[3,"app-rect"],[3,"app-text"]],template:function(e,t){1&e&&(cn(),Sa(0,"g",0),Ia("dragging",(function(e){return t.OnDragging(e)}))("dragged",(function(e){return t.OnDragged(e)})),ba(1,loe,1,1,"g",1),ba(2,uoe,1,1,"g",2),ba(3,hoe,1,1,"g",3),ba(4,doe,1,1,"g",4),ba(5,foe,1,1,"g",5),xa()),2&e&&(ka("app-draggable",t.drawing),fa("transform",t.transformation),ar(1),ka("ngIf",t.is(t.drawing.element,"ellipse")),ar(1),ka("ngIf",t.is(t.drawing.element,"image")),ar(1),ka("ngIf",t.is(t.drawing.element,"line")),ar(1),ka("ngIf",t.is(t.drawing.element,"rect")),ar(1),ka("ngIf",t.is(t.drawing.element,"text")))},directives:[Gre,Hh,Qre,Jre,toe,ioe,soe],styles:[""]}),e}(),moe=["svg"];function goe(e,t){if(1&e&&(cn(),Oa(0,"g",12)),2&e){var n=t.$implicit,i=Ba(2);ka("app-link",n)("show-interface-labels",i.settings.show_interface_labels)}}function voe(e,t){if(1&e&&(cn(),Oa(0,"g",13)),2&e){var n=t.$implicit,i=Ba(2);ka("app-node",n)("symbols",i.symbols)}}function boe(e,t){1&e&&(cn(),Oa(0,"g",14)),2&e&&ka("app-drawing",t.$implicit)}function yoe(e,t){if(1&e&&(cn(),Sa(0,"g"),Sa(1,"g",6),ba(2,goe,1,2,"g",7),xa(),Sa(3,"g",8),ba(4,voe,1,2,"g",9),xa(),Sa(5,"g",10),ba(6,boe,1,1,"g",11),xa(),xa()),2&e){var n=t.$implicit;ar(2),ka("ngForOf",n.links),ar(2),ka("ngForOf",n.nodes),ar(2),ka("ngForOf",n.drawings)}}var _oe=function(){function e(e,t,n,i,r,o,a){this.graphDataManager=e,this.context=t,this.mapChangeDetectorRef=n,this.canvasSizeDetector=i,this.changeDetectorRef=r,this.layersManger=o,this.graphLayout=a,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return Object.defineProperty(e.prototype,"showInterfaceLabels",{set:function(e){this.settings.show_interface_labels=e,this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movingTool",{set:function(e){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionTool",{set:function(e){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{set:function(e){},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){var e=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe((function(){e.graphDataManager.setNodes(e.nodes),e.graphDataManager.setLinks(e.links),e.graphDataManager.setDrawings(e.drawings),e.graphDataManager.setSymbols(e.symbols),e.changeDetectorRef.detectChanges()}))},e.prototype.ngOnDestroy=function(){this.changesDetected.unsubscribe()},e.prototype.getSize=function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)},Object.defineProperty(e.prototype,"layers",{get:function(){return this.layersManger.getLayersList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){var e=new s9;return e.size=this.getSize(),"translate("+(e.getZeroZeroTransformationPoint().x+e.transformation.x)+", "+(e.getZeroZeroTransformationPoint().y+e.transformation.y)+") scale("+e.transformation.k+")"},enumerable:!1,configurable:!0}),e.prototype.onResize=function(e){},e.\u0275fac=function(t){return new(t||e)(_a(P7),_a(s9),_a(n7),_a(A9),_a(No),_a(y7),_a(j9))},e.\u0275cmp=ze({type:e,selectors:[["app-experimental-map"]],viewQuery:function(e,t){var n;1&e&&cl(moe,!0),2&e&&al(n=fl())&&(t.svg=n.first)},hostBindings:function(e,t){1&e&&Ia("resize",(function(e){return t.onResize(e)}),!1,En)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],movingTool:["moving-tool","movingTool"],selectionTool:["selection-tool","selectionTool"],drawLinkTool:["draw-link-tool","drawLinkTool"],readonly:"readonly"},features:[ct],decls:7,vars:5,consts:[["preserveAspectRatio","none",1,"map"],["svg",""],[4,"ngFor","ngForOf"],[3,"app-selection"],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],[1,"links"],[3,"app-link","show-interface-labels",4,"ngFor","ngForOf"],[1,"nodes"],[3,"app-node","symbols",4,"ngFor","ngForOf"],[1,"drawings"],[3,"app-drawing",4,"ngFor","ngForOf"],[3,"app-link","show-interface-labels"],[3,"app-node","symbols"],[3,"app-drawing"]],template:function(e,t){if(1&e&&(cn(),Sa(0,"svg",0,1),Sa(2,"g"),ba(3,yoe,7,3,"g",2),xa(),Oa(4,"g",3),Sa(5,"filter",4),Oa(6,"feColorMatrix",5),xa(),xa()),2&e){var n=ya(1);fa("width",t.width)("height",t.height),ar(2),fa("transform",t.transform),ar(1),ka("ngForOf",t.layers),ar(1),ka("app-selection",n)}},directives:[Nh,Sre,zre,Yre,poe],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),e}(),woe=["*",[["mat-toolbar-row"]]],koe=["*","mat-toolbar-row"],Coe=eY((function e(t){Object(m.a)(this,e),this._elementRef=t})),Soe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),xoe=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return Object(g.a)(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return e._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Coe);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Fm),_a(bu))},e.\u0275cmp=ze({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,Soe,!0),2&e&&al(i=fl())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&os("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Es],ngContentSelectors:koe,decls:2,vars:0,template:function(e,t){1&e&&(za(woe),Va(0),Va(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),Ooe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[$X],$X]}),e}(),Moe=function(){function e(e,t,n,i,r){this.toasterService=e,this.dockerService=t,this.qemuService=n,this.iouService=i,this.iosService=r}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new vU({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(t,n,i,r){"qemu"===e.template.template_type?e.qemuService.addTemplate(e.server,e.template).subscribe((function(){return e.onUploadComplete()})):"iou"===e.template.template_type?e.iouService.addTemplate(e.server,e.template).subscribe((function(){return e.onUploadComplete()})):"dynamips"===e.template.template_type?e.iosService.addTemplate(e.server,e.template).subscribe((function(){return e.onUploadComplete()})):"docker"===e.template.template_type&&e.dockerService.addTemplate(e.server,e.template).subscribe((function(){return e.onUploadComplete()}))}},e.prototype.onUploadComplete=function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]},e.prototype.uploadAppliance=function(e){var t,n=this,i=e.target.files[0],r=i.name,o=new FileReader;o.onloadend=function(){var e=JSON.parse(o.result);if(e.qemu)(t=new Qte).template_type="qemu",t.adapter_type=e.qemu.adapter_type,t.adapters=e.qemu.adapters,t.ram=e.qemu.ram,t.options=e.qemu.options,t.console_type=e.qemu.console_type;else if(e.iou)(t=new ine).template_type="iou",t.console_type=e.iou.console_type,t.console_auto_start=e.iou.console_auto_start,t.ethernet_adapters=e.iou.ethernet_adapters,t.l1_keepalives=e.iou.l1_keepalives,t.nvram=e.iou.nvram,t.ram=e.iou.ram,t.serial_adapters=e.iou.serial_adapters;else if(e.dynamips)(t=new ene).template_type="dynamips",t.platform=e.dynamips.platform,t.ram=e.dynamips.ram,t.nvram=e.dynamips.nvram,t.startup_config=e.dynamips.startup_config,t.wic0=e.dynamips.wic0,t.wic1=e.dynamips.wic1,t.wic2=e.dynamips.wic2,t.slot0=e.dynamips.slot0,t.slot1=e.dynamips.slot1,t.slot2=e.dynamips.slot2,t.slot3=e.dynamips.slot3,t.slot4=e.dynamips.slot4,t.slot5=e.dynamips.slot5,t.slot6=e.dynamips.slot6,t.slot7=e.dynamips.slot7;else{if(!e.docker)return void n.toasterService.error("Template type not supported");(t=new $te).template_type="docker",t.adapters=e.docker.adapters,t.console_type=e.docker.console_type,t.image=e.docker.image}t.name=e.name,t.category=e.category,t.builtin=!1,t.default_name_format="{name}-{0}",t.compute_id="vm",t.symbol="guest"===t.category?":/symbols/computer.svg":":/symbols/"+t.category+"_guest.svg",n.template=t;var i=n.getUploadPath(n.server,t.template_type,r);n.uploader.queue.forEach((function(e){return e.url=i})),n.uploader.uploadItem(n.uploader.queue[0])},o.readAsText(i)},e.prototype.getUploadPath=function(e,t,n){return"http://"+e.host+":"+e.port+"/v2/"+t+"/images/"+n},e.\u0275fac=function(t){return new(t||e)(_a(iJ),_a(Jte),_a($2),_a(nne),_a(tne))},e.\u0275cmp=ze({type:e,selectors:[["app-import-appliance"]],inputs:{project:"project",server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Toe=function(){function e(){}return e.prototype.transform=function(e,t){return e?t?(t=t.toLowerCase(),e.filter((function(e){return e.name.toLowerCase().includes(t)}))):e:[]},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"templatefilter",type:e,pure:!0}),e}();function Eoe(e,t){if(1&e&&(Sa(0,"mat-option",18),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Poe(e,t){if(1&e&&(Sa(0,"mat-option",18),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n.name," ")}}function joe(e,t){if(1&e&&(Sa(0,"mat-option",18),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Aoe(e,t){if(1&e){var n=Pa();Sa(0,"mat-select",19),Ia("valueChange",(function(e){return Dt(n),Ba().selectedTemplate.compute_id=e})),ba(1,joe,2,2,"mat-option",8),xa()}if(2&e){var i=Ba();ka("value",i.selectedTemplate.compute_id),ar(1),ka("ngForOf",i.nodeServers)}}var Ioe=function(){return{standalone:!0}},Doe=function(){function e(e,t,n,i,r,o){this.dialogRef=e,this.templateService=t,this.formBuilder=n,this.data=i,this.toasterService=r,this.nonNegativeValidator=o,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeServers=["local","vm"],this.server=i.server,this.project=i.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new Cp(1,[Df.required,o.get])}),this.positionForm=this.formBuilder.group({top:new Cp(0,Df.required),left:new Cp(0,Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.templateService.list(this.server).subscribe((function(t){e.filteredTemplates=t,e.templates=t}))},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.filterTemplates=function(e){var t=this,n=this.templates.filter((function(e){return e.name.toLowerCase().includes(t.searchText.toLowerCase())}));this.filteredTemplates=n.filter((function(t){return t.template_type===e.value.toString()}))},e.prototype.chooseTemplate=function(e){this.selectedTemplate=e.value,"cloud"!==this.selectedTemplate.template_type&&"ethernet_hub"!==this.selectedTemplate.template_type&&"ethernet_switch"!==this.selectedTemplate.template_type||(this.selectedTemplate.compute_id="local")},e.prototype.onAddClick=function(){if(this.selectedTemplate&&0!==this.filteredTemplates.length)if(this.positionForm.valid&&this.configurationForm.valid&&this.selectedTemplate.compute_id){var e=this.positionForm.get("left").value,t=this.positionForm.get("top").value;if(e>this.project.scene_width/2||e<-this.project.scene_width/2||t>this.project.scene_height/2||t<-this.project.scene_height)this.toasterService.error("Please set correct position values.");else{var n={template:this.selectedTemplate,server:this.selectedTemplate.compute_id,numberOfNodes:this.configurationForm.get("numberOfNodes").value,x:e,y:t};this.dialogRef.close(n)}}else this.toasterService.error("Please fill all required fields.");else this.toasterService.error("Please firstly choose template.")},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(rne),_a(um),_a(QZ),_a(iJ),_a(v6))},e.\u0275cmp=ze({type:e,selectors:[["app-template-list-dialog"]],decls:40,vars:18,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content","",1,"content"],["floatPlaceholder","never",1,"form-field"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"form-field"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Choose template",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"formGroup"],["type","number","matInput","","formControlName","numberOfNodes","placeholder","Enter number of nodes (default value is 1)"],["placeholder","Choose server for node",3,"value","valueChange",4,"ngIf"],["matInput","","type","number","formControlName","left"],["matInput","","type","number","formControlName","top"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"addButton",3,"click"],[3,"value"],["placeholder","Choose server for node",3,"value","valueChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"h1",1),_s(2,"Add a node"),xa(),Sa(3,"button",2),Ia("click",(function(){return t.onNoClick()})),_s(4,"Go to template preferences"),xa(),xa(),Sa(5,"div",3),Sa(6,"div",0),Sa(7,"h6"),_s(8,"Template"),xa(),xa(),Sa(9,"mat-form-field",4),Sa(10,"input",5),Ia("ngModelChange",(function(e){return t.searchText=e})),xa(),xa(),Sa(11,"mat-form-field",6),Sa(12,"mat-select",7),Ia("selectionChange",(function(e){return t.filterTemplates(e)}))("ngModelChange",(function(e){return t.selectedType=e})),ba(13,Eoe,2,2,"mat-option",8),xa(),xa(),Sa(14,"mat-form-field",6),Sa(15,"mat-select",9),Ia("selectionChange",(function(e){return t.chooseTemplate(e)}))("ngModelChange",(function(e){return t.selectedTemplate=e})),ba(16,Poe,2,2,"mat-option",8),Uc(17,"templatefilter"),xa(),xa(),Sa(18,"div",0),Sa(19,"h6"),_s(20,"Configuration"),xa(),xa(),Sa(21,"form",10),Sa(22,"mat-form-field",6),Oa(23,"input",11),xa(),xa(),ba(24,Aoe,2,2,"mat-select",12),Sa(25,"div",0),Sa(26,"h6"),_s(27,"Position"),xa(),xa(),Sa(28,"form",10),_s(29," Left:\xa0 "),Sa(30,"mat-form-field"),Oa(31,"input",13),xa(),_s(32," Top:\xa0 "),Sa(33,"mat-form-field"),Oa(34,"input",14),xa(),xa(),xa(),Sa(35,"div",15),Sa(36,"button",16),Ia("click",(function(){return t.onNoClick()})),_s(37,"Close"),xa(),Sa(38,"button",17),Ia("click",(function(){return t.onAddClick()})),_s(39,"Add"),xa(),xa()),2&e&&(ar(3),Ua("routerLink","/server/",t.server.id,"/preferences"),ar(7),ka("ngModel",t.searchText)("ngModelOptions",Nc(15,Ioe)),ar(2),ka("ngModelOptions",Nc(16,Ioe))("ngModel",t.selectedType),ar(1),ka("ngForOf",t.templateTypes),ar(2),ka("ngModelOptions",Nc(17,Ioe))("ngModel",t.selectedTemplate),ar(1),ka("ngForOf",Wc(17,12,t.filteredTemplates,t.searchText)),ar(5),ka("formGroup",t.configurationForm),ar(3),ka("ngIf",t.selectedTemplate),ar(4),ka("formGroup",t.positionForm))},directives:[oQ,h$,rK,aQ,a0,y0,wf,Mf,Rp,H0,Nh,Lp,Tf,zp,zf,Xp,Hh,sQ,DY],pipes:[Toe],styles:[".header[_ngcontent-%COMP%]{min-height:64px;display:flex;align-items:baseline;padding:8px 24px 0;font-size:20px;justify-content:space-between}.mat-table[_ngcontent-%COMP%]{height:200px;overflow:scroll}.mat-form-field[_ngcontent-%COMP%]{font-size:16px;flex-grow:1}.form-field[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%]{scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}h6[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px;color:#0097a7}mat-table[_ngcontent-%COMP%]{scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.filterBox[_ngcontent-%COMP%], .title-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.title-container[_ngcontent-%COMP%]{align-items:baseline}"]}),e}(),Roe=n("jtHE");function Loe(e,t){var n,i;return i=t,"function"==typeof(e=void 0===(n=e)?void 0===i?n:i:n)?function(){for(var t=arguments,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=t[r];return!!e.apply(this,i)}:e?function(){return!0}:function(){return!1}}var Foe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},Noe=function(e){return null!=e&&"object"===(void 0===e?"undefined":Foe(e))&&1===e.nodeType&&"object"===Foe(e.style)&&"object"===Foe(e.ownerDocument)};function Boe(e,t){if(t=Uoe(t,!0),!Noe(t))return-1;for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Hoe(e,t){return-1!==Boe(e,t)}function zoe(e,t){for(var n=0;n<t.length;n++)Hoe(e,t[n])||e.push(t[n]);return t}function Voe(e){for(var t=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=t[i+1];return zoe(e,n=n.map(Uoe))}function qoe(e){for(var t=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=t[i+1];return n.map(Uoe).reduce((function(t,n){var i=Boe(e,n);return-1!==i?t.concat(e.splice(i,1)):t}),[])}function Uoe(e,t){if("string"==typeof e)try{return document.querySelector(e)}catch(n){throw n}if(!Noe(e)&&!t)throw new TypeError(e+" is not a DOM element.");return e}function Goe(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var t={};return Object.defineProperties(t,e),t}();try{var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(n){throw new TypeError("Can't call getBoundingClientRect on "+e)}}var Woe,Koe=void 0;"function"!=typeof Object.create?(Woe=function(){},Koe=function(e,t){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");Woe.prototype=e||{};var n=new Woe;return Woe.prototype=null,void 0!==t&&Object.defineProperties(n,t),null===e&&(n.__proto__=null),n}):Koe=Object.create;var Xoe=Koe,Yoe=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function Zoe(e,t){t=t||{};for(var n=Xoe(e),i=0;i<Yoe.length;i++)void 0!==t[Yoe[i]]&&(n[Yoe[i]]=t[Yoe[i]]);return n}function Qoe(e,t){console.log("data ",t),e.data=t||{},e.dispatched="mousemove"}var $oe=["webkit","moz","ms","o"],Joe=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=$oe.length;e<t&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[$oe[e]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(e){var t=(new Date).getTime(),i=Math.max(0,16-t-n),r=window.setTimeout((function(){return e(t+i)}),i);return n=t+i,r}}return window.requestAnimationFrame.bind(window)}(),eae=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=$oe.length;e<t&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[$oe[e]+"CancelAnimationFrame"]||window[$oe[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function tae(e,t){void 0===t&&(t={});var n=this,i=4,r=!1;if("object"!=typeof t.margin){var o=t.margin||-1;this.margin={left:o,right:o,top:o,bottom:o}}else this.margin=t.margin;this.scrollWhenOutside=t.scrollWhenOutside||!1;var a,s={},c=function(e,t){var n=Loe((t=t||{}).allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,n(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var i=t.target&&t.target.ownerDocument||document,r=i.documentElement,o=i.body;e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}(s),l=(a={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null},{destroy:function(){a=null},dispatch:MouseEvent?function(e,t,n){var i=new MouseEvent("mousemove",Zoe(a,t));return Qoe(i,n),e.dispatchEvent(i)}:"function"==typeof document.createEvent?function(e,t,n){var i=Zoe(a,t),r=document.createEvent("MouseEvents");return r.initMouseEvent("mousemove",!0,!0,window,0,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget),Qoe(r,n),e.dispatchEvent(r)}:"function"==typeof document.createEventObject?function(e,t,n){var i=document.createEventObject(),r=Zoe(a,t);for(var o in r)i[o]=r[o];return Qoe(i,n),e.dispatchEvent(i)}:void 0}),u=!1;window.addEventListener("mousemove",c,!1),window.addEventListener("touchmove",c,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=Loe(t.autoScroll),this.syncMove=Loe(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",c,!1),window.removeEventListener("touchmove",c,!1),window.removeEventListener("mousedown",v,!1),window.removeEventListener("touchstart",v,!1),window.removeEventListener("mouseup",b,!1),window.removeEventListener("touchend",b,!1),window.removeEventListener("pointerup",b,!1),window.removeEventListener("mouseleave",_,!1),window.removeEventListener("mousemove",k,!1),window.removeEventListener("touchmove",k,!1),window.removeEventListener("scroll",g,!0),e=[],t&&y()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Voe.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return qoe.apply(void 0,[e].concat(t))};var h,d,f=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),d=e,e=[],d.forEach((function(e){e===window?f=window:n.add(e)})),Object.defineProperties(this,{down:{get:function(){return u}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return r}}});var p,m=null;function g(t){for(var n=0;n<e.length;n++)if(e[n]===t.target){r=!0;break}r&&Joe((function(){return r=!1}))}function v(){u=!0}function b(){u=!1,y()}function y(){eae(p),eae(h)}function _(){u=!1}function w(){for(var t=null,n=0;n<e.length;n++)nae(s,e[n])&&(t=e[n]);return t}function k(t){if(n.autoScroll()&&!t.dispatched){var i=t.target,r=document.body;m&&!nae(s,m)&&(n.scrollWhenOutside||(m=null)),i&&i.parentNode===r?i=w():(i=function(t){if(!t)return null;if(m===t)return t;if(Hoe(e,t))return t;for(;t=t.parentNode;)if(Hoe(e,t))return t;return null}(i))||(i=w()),i&&i!==m&&(m=i),f&&(eae(h),h=Joe(C)),m&&(eae(p),p=Joe(S))}}function C(){x(f),eae(h),h=Joe(C)}function S(){m&&(x(m),eae(p),p=Joe(S))}function x(e){var t,i,r=Goe(e);t=s.x<r.left+n.margin.left?Math.floor(Math.max(-1,(s.x-r.left)/n.margin.left-1)*n.maxSpeed.left):s.x>r.right-n.margin.right?Math.ceil(Math.min(1,(s.x-r.right)/n.margin.right+1)*n.maxSpeed.right):0,i=s.y<r.top+n.margin.top?Math.floor(Math.max(-1,(s.y-r.top)/n.margin.top-1)*n.maxSpeed.top):s.y>r.bottom-n.margin.bottom?Math.ceil(Math.min(1,(s.y-r.bottom)/n.margin.bottom+1)*n.maxSpeed.bottom):0,n.syncMove()&&l.dispatch(e,{pageX:s.pageX+t,pageY:s.pageY+i,clientX:s.x+t,clientY:s.y+i}),setTimeout((function(){i&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,i),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)}))}window.addEventListener("mousedown",v,!1),window.addEventListener("touchstart",v,!1),window.addEventListener("mouseup",b,!1),window.addEventListener("touchend",b,!1),window.addEventListener("pointerup",b,!1),window.addEventListener("mousemove",k,!1),window.addEventListener("touchmove",k,!1),window.addEventListener("mouseleave",_,!1),window.addEventListener("scroll",g,!0)}function nae(e,t,n){return n?e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right:function(e,t){var n=Goe(t);return e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right}(e,t)}var iae=n("HrJb"),rae=function(){var e=function e(){Object(m.a)(this,e),this.currentDrag=new w.b};return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e.ngInjectableDef=L({factory:function(){return new e},token:e,providedIn:"root"}),e}(),oae=function(){var e=function e(t){Object(m.a)(this,e),this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}};return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),e}();function aae(e,t,n){n&&n.split(" ").forEach((function(n){return e.addClass(t.nativeElement,n)}))}function sae(e,t,n){n&&n.split(" ").forEach((function(n){return e.removeClass(t.nativeElement,n)}))}var cae=function(){var e=function(){function e(t,n,i,r,o,a,s){Object(m.a)(this,e),this.element=t,this.renderer=n,this.draggableHelper=i,this.zone=r,this.vcr=o,this.scrollContainer=a,this.document=s,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new Yc,this.dragStart=new Yc,this.ghostElementCreated=new Yc,this.dragging=new Yc,this.dragEnd=new Yc,this.pointerDown$=new w.b,this.pointerMove$=new w.b,this.pointerUp$=new w.b,this.eventListenerSubscriptions={},this.destroy$=new w.b,this.timeLongPress={timerBegin:0,timerEnd:0}}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var t=this.pointerDown$.pipe(Object($m.a)((function(){return e.canDrag()})),Object(PU.b)((function(t){t.event.stopPropagation&&!e.scrollContainer&&t.event.stopPropagation();var n=e.renderer.createElement("style");e.renderer.setAttribute(n,"type","text/css"),e.renderer.appendChild(n,e.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame((function(){e.document.head.appendChild(n)}));var i=e.getScrollPosition(),r=new k.a((function(t){return e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",(function(e){return t.next(e)}))})).pipe(Object(Jm.a)(i),Object(mf.a)((function(){return e.getScrollPosition()}))),o=new w.b,a=new Roe.a;e.zone.run((function(){e.dragPointerDown.next({x:0,y:0})}));var s=Object(C.a)(e.pointerUp$,e.pointerDown$,a,e.destroy$).pipe(Object(S.a)()),c=Object(wU.b)([e.pointerMove$,r]).pipe(Object(mf.a)((function(e){var n=l(e,2),i=n[0],r=n[1];return{currentDrag$:o,transformX:i.clientX-t.clientX,transformY:i.clientY-t.clientY,clientX:i.clientX,clientY:i.clientY,scrollLeft:r.left,scrollTop:r.top}})),Object(mf.a)((function(t){return e.dragSnapGrid.x&&(t.transformX=Math.round(t.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(t.transformY=Math.round(t.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),t})),Object(mf.a)((function(t){return e.dragAxis.x||(t.transformX=0),e.dragAxis.y||(t.transformY=0),t})),Object(mf.a)((function(e){return Object.assign({},e,{x:e.transformX+(e.scrollLeft-i.left),y:e.transformY+(e.scrollTop-i.top)})})),Object($m.a)((function(t){return!e.validateDrag||e.validateDrag({x:t.x,y:t.y,transform:{x:t.transformX,y:t.transformY}})})),Object(Gm.a)(s),Object(S.a)()),u=c.pipe(Object(Wm.a)(1),Object(S.a)()),h=c.pipe(Object(AU.a)(1),Object(S.a)());return u.subscribe((function(t){var n=t.clientX,i=t.clientY,r=t.x,s=t.y;if(e.zone.run((function(){e.dragStart.next({cancelDrag$:a})})),e.scroller=new tae([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign({},e.autoScroll,{autoScroll:function(){return!0}})),aae(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var c=e.element.nativeElement.getBoundingClientRect(),l=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(l):e.element.nativeElement.parentNode.insertBefore(l,e.element.nativeElement.nextSibling),e.ghostElement=l,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(l,{position:"fixed",top:"".concat(c.top,"px"),left:"".concat(c.left,"px"),width:"".concat(c.width,"px"),height:"".concat(c.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var u=e.vcr.createEmbeddedView(e.ghostElementTemplate);l.innerHTML="",u.rootNodes.filter((function(e){return e instanceof Node})).forEach((function(e){l.appendChild(e)})),h.subscribe((function(){e.vcr.remove(e.vcr.indexOf(u))}))}e.zone.run((function(){e.ghostElementCreated.emit({clientX:n-r,clientY:i-s,element:l})})),h.subscribe((function(){l.parentElement.removeChild(l),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")}))}e.draggableHelper.currentDrag.next(o)})),h.pipe(Object(PU.b)((function(e){var t=a.pipe(Object(iae.a)(),Object(Wm.a)(1),Object(mf.a)((function(t){return Object.assign({},e,{dragCancelled:t>0})})));return a.complete(),t}))).subscribe((function(t){var n=t.x,i=t.y,r=t.dragCancelled;e.scroller.destroy(),e.zone.run((function(){e.dragEnd.next({x:n,y:i,dragCancelled:r})})),sae(e.renderer,e.element,e.dragActiveClass),o.complete()})),Object(C.a)(s,h).pipe(Object(Wm.a)(1)).subscribe((function(){requestAnimationFrame((function(){e.document.head.removeChild(n)}))})),c})),Object(S.a)());Object(C.a)(t.pipe(Object(Wm.a)(1),Object(mf.a)((function(e){return[,e]}))),t.pipe(Object(eg.a)())).pipe(Object($m.a)((function(e){var t=l(e,2),n=t[0],i=t[1];return!n||n.x!==i.x||n.y!==i.y})),Object(mf.a)((function(e){return l(e,2)[1]})),Object(Qm.a)(0,Xm.b)).subscribe((function(t){var n=t.x,i=t.y,r=t.currentDrag$,o=t.clientX,a=t.clientY,s=t.transformX,c=t.transformY;if(e.zone.run((function(){e.dragging.next({x:n,y:i})})),e.ghostElement){var l="translate3d(".concat(s,"px, ").concat(c,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:l,"-webkit-transform":l,"-ms-transform":l,"-moz-transform":l,"-o-transform":l})}r.next({clientX:o,clientY:a,dropData:e.dropData})}))}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,t=this.canDrag(),n=Object.keys(this.eventListenerSubscriptions).length>0;t&&!n?this.zone.runOutsideAngular((function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",(function(t){e.onMouseDown(t)})),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",(function(t){e.onMouseUp(t)})),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",(function(t){e.onTouchStart(t)})),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",(function(t){e.onTouchEnd(t)})),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",(function(t){e.onTouchEnd(t)})),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",(function(){e.onMouseEnter()})),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",(function(){e.onMouseLeave()}))})):!t&&n&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",(function(e){t.pointerMove$.next({event:e,clientX:e.clientX,clientY:e.clientY})}))),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var t,n,i,r=this;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),n=!1,i=this.hasScrollbar(),t=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var o=Object(Km.a)(this.document,"contextmenu").subscribe((function(e){e.preventDefault()})),a=Object(Km.a)(this.document,"touchmove",{passive:!1}).subscribe((function(o){(r.scrollContainer&&r.scrollContainer.activeLongPressDrag||r.touchStartLongPress)&&!n&&i&&(n=r.shouldBeginDrag(e,o,t)),(r.scrollContainer&&r.scrollContainer.activeLongPressDrag||r.touchStartLongPress)&&i&&!n||(o.preventDefault(),r.pointerMove$.next({event:o,clientX:o.targetTouches[0].clientX,clientY:o.targetTouches[0].clientY}))}));this.eventListenerSubscriptions.touchmove=function(){o.unsubscribe(),a.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}},{key:"onTouchEnd",value:function(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListenerSubscriptions).forEach((function(t){e.eventListenerSubscriptions[t](),delete e.eventListenerSubscriptions[t]}))}},{key:"setElementStyles",value:function(e,t){var n=this;Object.keys(t).forEach((function(i){n.renderer.setStyle(e,i,t[i])}))}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(e,t,n){var i=this.getScrollPosition(),r=Math.abs(i.top-n.top),o=Math.abs(i.left-n.left),a=Math.abs(t.targetTouches[0].clientX-e.touches[0].clientX)-o,s=Math.abs(t.targetTouches[0].clientY-e.touches[0].clientY)-r,c=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(a+s>c.delta||r>0||o>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=c.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var e=this.getScrollElement();return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Qs),_a(rae),_a(Nl),_a(yc),_a(oae,8),_a(bu))},e.\u0275dir=Ke({type:e,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[ct]}),e}();function lae(e,t,n){return e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}var uae=function(){var e=function(){function e(t,n,i,r,o){Object(m.a)(this,e),this.element=t,this.draggableHelper=n,this.zone=i,this.renderer=r,this.scrollContainer=o,this.dragEnter=new Yc,this.dragLeave=new Yc,this.dragOver=new Yc,this.drop=new Yc}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe((function(t){aae(e.renderer,e.element,e.dragActiveClass);var n,i,r={updateCache:!0},o=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",(function(){r.updateCache=!0})),a=t.pipe(Object(mf.a)((function(t){var i=t.clientX,o=t.clientY;n=t.dropData,r.updateCache&&(r.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(r.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),r.updateCache=!1);var a=lae(i,o,r.rect);return r.scrollContainerRect?a&&lae(i,o,r.scrollContainerRect):a}))),s=a.pipe(Object(Zm.a)());s.pipe(Object($m.a)((function(e){return e}))).subscribe((function(){i=!0,aae(e.renderer,e.element,e.dragOverClass),e.zone.run((function(){e.dragEnter.next({dropData:n})}))})),a.pipe(Object($m.a)((function(e){return e}))).subscribe((function(){e.zone.run((function(){e.dragOver.next({dropData:n})}))})),s.pipe(Object(eg.a)(),Object($m.a)((function(e){var t=l(e,2);return t[0]&&!t[1]}))).subscribe((function(){i=!1,sae(e.renderer,e.element,e.dragOverClass),e.zone.run((function(){e.dragLeave.next({dropData:n})}))})),t.subscribe({complete:function(){o(),sae(e.renderer,e.element,e.dragActiveClass),i&&(sae(e.renderer,e.element,e.dragOverClass),e.zone.run((function(){e.drop.next({dropData:n})})))}})}))}},{key:"ngOnDestroy",value:function(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(rae),_a(Nl),_a(Qs),_a(oae,8))},e.\u0275dir=Ke({type:e,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),e}(),hae=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}();function dae(e,t){if(1&e&&(Sa(0,"mat-option",11),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function fae(e,t){if(1&e){var n=Pa();Sa(0,"span",14),Sa(1,"div",15),Ia("dragStart",(function(e){return Dt(n),Ba(3).dragStart(e)}))("dragEnd",(function(e){Dt(n);var t=Ba(2).index,i=Ba();return i.dragEnd(e,i.filteredTemplates[t+1])})),Oa(2,"img",16),xa(),Sa(3,"div",17),_s(4),xa(),xa()}if(2&e){var i=Ba(2).index,r=Ba();ar(2),ka("src",r.getImageSourceForTemplate(r.filteredTemplates[i+1]),Hi),ar(2),ws(r.filteredTemplates[i+1].name)}}function pae(e,t){if(1&e){var n=Pa();Sa(0,"span",14),Sa(1,"div",15),Ia("dragStart",(function(e){return Dt(n),Ba(3).dragStart(e)}))("dragEnd",(function(e){Dt(n);var t=Ba(2).index,i=Ba();return i.dragEnd(e,i.filteredTemplates[t+2])})),Oa(2,"img",16),xa(),Sa(3,"div",17),_s(4),xa(),xa()}if(2&e){var i=Ba(2).index,r=Ba();ar(2),ka("src",r.getImageSourceForTemplate(r.filteredTemplates[i+2]),Hi),ar(2),ws(r.filteredTemplates[i+2].name)}}function mae(e,t){if(1&e){var n=Pa();Sa(0,"span",14),Sa(1,"div",15),Ia("dragStart",(function(e){return Dt(n),Ba(3).dragStart(e)}))("dragEnd",(function(e){Dt(n);var t=Ba(2).index,i=Ba();return i.dragEnd(e,i.filteredTemplates[t+3])})),Oa(2,"img",16),xa(),Sa(3,"div",17),_s(4),xa(),xa()}if(2&e){var i=Ba(2).index,r=Ba();ar(2),ka("src",r.getImageSourceForTemplate(r.filteredTemplates[i+3]),Hi),ar(2),ws(r.filteredTemplates[i+3].name)}}function gae(e,t){if(1&e){var n=Pa();Sa(0,"span",13),Sa(1,"span",14),Sa(2,"div",15),Ia("dragStart",(function(e){return Dt(n),Ba(2).dragStart(e)}))("dragEnd",(function(e){Dt(n);var t=Ba().index,i=Ba();return i.dragEnd(e,i.filteredTemplates[t])})),Oa(3,"img",16),xa(),Sa(4,"div",17),_s(5),xa(),xa(),ba(6,fae,5,2,"span",18),ba(7,pae,5,2,"span",18),ba(8,mae,5,2,"span",18),xa()}if(2&e){var i=Ba().index,r=Ba();ar(3),ka("src",r.getImageSourceForTemplate(r.filteredTemplates[i]),Hi),ar(2),ws(r.filteredTemplates[i].name),ar(1),ka("ngIf",r.filteredTemplates[i+1]),ar(1),ka("ngIf",r.filteredTemplates[i+2]),ar(1),ka("ngIf",r.filteredTemplates[i+3])}}function vae(e,t){if(1&e&&(Sa(0,"mat-list-item"),ba(1,gae,9,5,"span",12),xa()),2&e){var n=t.index;ar(1),ka("ngIf",n%4==0)}}var bae=function(){return{standalone:!0}},yae=function(){function e(e,t,n,i){this.dialog=e,this.templateService=t,this.scaleService=n,this.symbolService=i,this.onNodeCreation=new Yc,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"]}return e.prototype.ngOnInit=function(){var e=this;this.subscription=this.templateService.newTemplateCreated.subscribe((function(t){e.templates.push(t)})),this.templateService.list(this.server).subscribe((function(t){e.filteredTemplates=t,e.sortTemplates(),e.templates=t})),this.symbolService.list(this.server)},e.prototype.sortTemplates=function(){this.filteredTemplates=this.filteredTemplates.sort((function(e,t){return e.name<t.name?-1:1}))},e.prototype.filterTemplates=function(e){var t=this,n=this.templates.filter((function(e){return e.name.toLowerCase().includes(t.searchText.toLowerCase())}));this.filteredTemplates="all"!==this.selectedType&&this.selectedType?n.filter((function(e){return e.template_type===t.selectedType})):n,this.sortTemplates()},e.prototype.dragStart=function(e){var t=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=t.top-event.clientY,this.movementX=t.left-event.clientX},e.prototype.dragEnd=function(e,t){var n=this;this.symbolService.raw(this.server,t.symbol.substring(1)).subscribe((function(i){var r=+i.split('width="')[1].split('"')[0]?+i.split('width="')[1].split('"')[0]:0,o=n.scaleService.getScale(),a={template:t,server:"local",numberOfNodes:1,x:(n.startX+e.x-n.project.scene_width/2-r/2)*o+window.scrollX,y:(n.startY+e.y-n.project.scene_height/2)*o+window.scrollY};n.onNodeCreation.emit(a)}))},e.prototype.openDialog=function(){var e=this;this.dialog.open(Doe,{width:"600px",data:{server:this.server,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(t){null!==t&&e.onNodeCreation.emit(t)}))},e.prototype.getImageSourceForTemplate=function(e){return"http://"+this.server.host+":"+this.server.port+"/v2/symbols/"+e.symbol+"/raw"},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(nQ),_a(rne),_a(R9),_a(z4))},e.\u0275cmp=ze({type:e,selectors:[["app-template"]],inputs:{server:"server",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:18,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"addNode",3,"matMenuTriggerFor"],["mainMenu","matMenu"],["mat-menu-item","",3,"click"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","keyup","ngModelChange"],[1,"form-field",3,"click"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"menu"],[1,"templateList"],[4,"ngFor","ngForOf"],[3,"value"],["class","templateRow",4,"ngIf"],[1,"templateRow"],[1,"templateIcon"],["mwlDraggable","",3,"dragStart","dragEnd"],[1,"image",3,"src"],[1,"templateText"],["class","templateIcon",4,"ngIf"]],template:function(e,t){1&e&&(Sa(0,"button",0),Sa(1,"mat-icon"),_s(2,"add_to_queue"),xa(),xa(),Sa(3,"mat-menu",null,1),Sa(5,"button",2),Ia("click",(function(){return t.openDialog()})),Sa(6,"mat-icon"),_s(7,"add"),xa(),Sa(8,"span"),_s(9,"Open dialog to configure"),xa(),xa(),Sa(10,"mat-form-field",3),Ia("click",(function(e){return e.stopPropagation()})),Sa(11,"input",4),Ia("keyup",(function(e){return t.filterTemplates(e)}))("ngModelChange",(function(e){return t.searchText=e})),xa(),xa(),Sa(12,"mat-form-field",5),Ia("click",(function(e){return e.stopPropagation()})),Sa(13,"mat-select",6),Ia("selectionChange",(function(e){return t.filterTemplates(e)}))("ngModelChange",(function(e){return t.selectedType=e})),ba(14,dae,2,2,"mat-option",7),xa(),xa(),Sa(15,"div",8),Sa(16,"div",9),ba(17,vae,2,1,"mat-list-item",10),xa(),xa(),xa()),2&e&&(ka("matMenuTriggerFor",ya(4)),ar(11),ka("ngModel",t.searchText)("ngModelOptions",Nc(7,bae)),ar(2),ka("ngModelOptions",Nc(8,bae))("ngModel",t.selectedType),ar(1),ka("ngForOf",t.templateTypes),ar(3),ka("ngForOf",t.filteredTemplates))},directives:[h$,J1,LZ,P$,AZ,OZ,a0,y0,wf,Mf,Rp,H0,Nh,DY,o4,Hh,cae],styles:[".mat-menu-panel{max-width:400px;max-height:500px}.menu[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.form-field[_ngcontent-%COMP%]{width:90%;margin-left:5%;margin-right:5%}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter:invert(0)!important}.templateList[_ngcontent-%COMP%]{width:100%}.templateRow[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.templateText[_ngcontent-%COMP%]{word-wrap:break-word}.templateIcon[_ngcontent-%COMP%]{width:80px!important;padding:10px}"]}),e}(),_ae=function(){return function(){}}(),wae=function(){function e(e){this.httpServer=e}return e.prototype.create=function(e,t,n){return this.httpServer.post(e,"/projects/"+t+"/snapshots",n)},e.prototype.delete=function(e,t,n){return this.httpServer.delete(e,"/projects/"+t+"/snapshots/"+n)},e.prototype.list=function(e,t){return this.httpServer.get(e,"/projects/"+t+"/snapshots")},e.prototype.restore=function(e,t,n){return this.httpServer.post(e,"/projects/"+t+"/snapshots/"+n+"/restore",{})},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),kae=function(){function e(e,t,n,i,r,o){var a=this;this.dialogRef=e,this.formBuilder=t,this.toasterService=n,this.snapshotService=i,this.nodesDataSource=r,this.data=o,this.snapshot=new _ae,this.snapshots=[],this.server=o.server,this.project=o.project,this.inputForm=this.formBuilder.group({snapshotName:new Cp("",Df.required)}),this.snapshotService.list(this.server,this.project.project_id).subscribe((function(e){e.forEach((function(e){a.snapshots.push(e.name)}))})),this.nodesDataSource.getItems().forEach((function(e){"stopped"===e.status||a.isAlwaysRunningNode(e.node_type)||(a.isInRunningState=!0)}))}return e.prototype.isAlwaysRunningNode=function(e){return!["qemu","docker","dynamips","vpcs","vmware","virtualbox","iou","traceng"].includes(e)},e.prototype.onAddClick=function(){this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.snapshots.includes(this.inputForm.get("snapshotName").value)?this.toasterService.error("Snapshot with this name already exists"):this.isInRunningState?this.toasterService.error("Project must be stopped in order to export it"):(this.snapshot.name=this.inputForm.get("snapshotName").value,this.dialogRef.close(this.snapshot))},e.prototype.onNoClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(um),_a(iJ),_a(wae),_a(c6),_a(QZ))},e.\u0275cmp=ze({type:e,selectors:[["app-create-snapshot-dialog"]],decls:14,vars:3,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content",""],[3,"formGroup"],[1,"name-input"],["matInput","","tabindex","1","formControlName","snapshotName","placeholder","Name"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"h1",1),_s(2,"Create snapshot"),xa(),Sa(3,"button",2),Ia("click",(function(){return t.onNoClick()})),_s(4,"Go to snapshots"),xa(),xa(),Sa(5,"div",3),Sa(6,"form",4),Sa(7,"mat-form-field",5),Oa(8,"input",6),xa(),xa(),xa(),Sa(9,"div",7),Sa(10,"button",8),Ia("click",(function(){return t.onNoClick()})),_s(11,"No Thanks"),xa(),Sa(12,"button",9),Ia("click",(function(){return t.onAddClick()})),_s(13,"Add"),xa(),xa()),2&e&&(ar(3),Ga("routerLink","/server/",t.server.id,"/project/",t.project.project_id,"/snapshots"),ar(3),ka("formGroup",t.inputForm))},directives:[oQ,h$,rK,aQ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,sQ],styles:[".title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}.name-input[_ngcontent-%COMP%]{width:100%}.top-button[_ngcontent-%COMP%]{outline:none;background:transparent!important}.top-button[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{box-shadow:none!important}button[_ngcontent-%COMP%]:focus{outline:0!important;border:0!important}"]}),e}(),Cae=["primaryValueBar"],Sae=eY((function e(t){Object(m.a)(this,e),this._elementRef=t}),"primary"),xae=new he("mat-progress-bar-location",{providedIn:"root",factory:function(){var e=ke(bu),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),Oae=0,Mae=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;Object(m.a)(this,n),(a=t.call(this,e))._elementRef=e,a._ngZone=i,a._animationMode=r,a._isNoopAnimation=!1,a._value=0,a._bufferValue=0,a.animationEnd=new Yc,a._animationEndSubscription=_.a.EMPTY,a.mode="determinate",a.progressbarId="mat-progress-bar-".concat(Oae++);var s=o?o.getPathname().split("#")[0]:"";return a._rectangleFillValue="url('".concat(s,"#").concat(a.progressbarId,"')"),a._isNoopAnimation="NoopAnimations"===r,a}return Object(g.a)(n,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._primaryValueBar.nativeElement;e._animationEndSubscription=Object(Km.a)(t,"transitionend").pipe(Object($m.a)((function(e){return e.target===t}))).subscribe((function(){"determinate"!==e.mode&&"buffer"!==e.mode||e._ngZone.run((function(){return e.animationEnd.next({value:e.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(e){this._value=Tae(bm(e)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(e){this._bufferValue=Tae(e||0)}}]),n}(Sae);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Nl),_a(__,8),_a(xae,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-progress-bar"]],viewQuery:function(e,t){var n;1&e&&cl(Cae,!0),2&e&&al(n=fl())&&(t._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,t){2&e&&(fa("aria-valuenow","indeterminate"===t.mode||"query"===t.mode?null:t.value)("mode",t.mode),os("_mat-animation-noopable",t._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Es],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,t){1&e&&(cn(),Sa(0,"svg",0),Sa(1,"defs"),Sa(2,"pattern",1),Oa(3,"circle",2),xa(),xa(),Oa(4,"rect",3),xa(),ln(),Oa(5,"div",4),Oa(6,"div",5,6),Oa(8,"div",7)),2&e&&(ar(2),ka("id",t.progressbarId),ar(2),fa("fill",t._rectangleFillValue),ar(1),ka("ngStyle",t._bufferTransform()),ar(1),ka("ngStyle",t._primaryTransform()))},directives:[Yh],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),e}();function Tae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(t,Math.min(n,e))}var Eae=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d,$X],$X]}),e}(),Pae=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.onCancelClick=function(){this.dialogRef.close(e.CANCELLED)},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(QZ))},e.\u0275cmp=ze({type:e,selectors:[["app-progress-dialog"]],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["color","primary","mode","determinate",3,"value"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Operation in progress"),xa(),Sa(2,"div",1),Oa(3,"mat-progress-bar",2),xa(),Sa(4,"div",3),Sa(5,"button",4),Ia("click",(function(){return t.onCancelClick()})),_s(6,"Cancel"),xa(),xa()),2&e&&(ar(3),ka("value",t.value))},directives:[oQ,aQ,Mae,sQ,h$],styles:[""]}),e}(),jae=function(){function e(e){this.dialog=e}return e.prototype.open=function(){return this.dialog.open(Pae,{width:"250px",autoFocus:!1,disableClose:!0})},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(nQ))}}),e}(),Aae=function(){function e(e,t,n,i){this.dialog=e,this.snapshotService=t,this.progressDialogService=n,this.toaster=i}return e.prototype.ngOnInit=function(){},e.prototype.createSnapshotModal=function(){var e=this;this.dialog.open(kae,{width:"450px",data:{server:this.server,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(t){if(t){var n=e.snapshotService.create(e.server,e.project.project_id,t),i=e.progressDialogService.open(),r=n.subscribe((function(n){e.toaster.success("Snapshot '"+t.name+"' has been created."),i.close()}));i.afterClosed().subscribe((function(e){e===Pae.CANCELLED&&r.unsubscribe()}))}}))},e.\u0275fac=function(t){return new(t||e)(_a(nQ),_a(wae),_a(jae),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-snapshot-menu-item"]],inputs:{project:"project",server:"server"},decls:3,vars:0,consts:[["matTooltip","Manage snapshots","matTooltipClass","custom-tooltip","mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.createSnapshotModal()})),Sa(1,"mat-icon"),_s(2,"snooze"),xa(),xa())},directives:[h$,J1,P$],styles:[""]}),e}(),Iae=function(){function e(e,t,n,i,r,o){this.nodeService=e,this.nodesDataSource=t,this.toasterService=n,this.serverService=i,this.settingsService=r,this.electronService=o}return e.prototype.startConsoleForAllNodes=function(){return LK(this,void 0,void 0,(function(){var e,t,n,i,r,o;return FK(this,(function(a){switch(a.label){case 0:if(!this.electronService.isElectronApp)return[3,5];e=this.settingsService.get("console_command")?this.settingsService.get("console_command"):this.nodeService.getDefaultCommand(),t=this.nodesDataSource.getItems(),n=0,i=t,a.label=1;case 1:return n<i.length?(o={command:e,type:(r=i[n]).console_type,host:r.console_host,port:r.console,name:r.name,project_id:r.project_id,node_id:r.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.electronService.remote.require("./console-executor.js").openConsole(o)]):[3,4];case 2:a.sent(),a.label=3;case 3:return n++,[3,1];case 4:return[3,6];case 5:this.toasterService.error("Option to start all nodes not available in web browser."),a.label=6;case 6:return[2]}}))}))},e.prototype.startNodes=function(){var e=this;this.nodeService.startAll(this.server,this.project).subscribe((function(){e.toasterService.success("All nodes successfully started")}))},e.prototype.stopNodes=function(){var e=this;this.nodeService.stopAll(this.server,this.project).subscribe((function(){e.toasterService.success("All nodes successfully stopped")}))},e.prototype.suspendNodes=function(){var e=this;this.nodeService.suspendAll(this.server,this.project).subscribe((function(){e.toasterService.success("All nodes successfully suspended")}))},e.prototype.reloadNodes=function(){var e=this;this.nodeService.reloadAll(this.server,this.project).subscribe((function(){e.toasterService.success("All nodes successfully reloaded")}))},e.\u0275fac=function(t){return new(t||e)(_a(D$),_a(c6),_a(iJ),_a(qK),_a(UK),_a(hU))},e.\u0275cmp=ze({type:e,selectors:[["app-nodes-menu"]],inputs:{project:"project",server:"server"},decls:15,vars:0,consts:[["matTooltip","Console connect to all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Start/Resume all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Suspend all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Stop all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reload all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.startConsoleForAllNodes()})),Sa(1,"mat-icon"),_s(2,"web_asset"),xa(),xa(),Sa(3,"button",1),Ia("click",(function(){return t.startNodes()})),Sa(4,"mat-icon"),_s(5,"play_arrow"),xa(),xa(),Sa(6,"button",2),Ia("click",(function(){return t.suspendNodes()})),Sa(7,"mat-icon"),_s(8,"pause"),xa(),xa(),Sa(9,"button",3),Ia("click",(function(){return t.stopNodes()})),Sa(10,"mat-icon"),_s(11,"stop"),xa(),xa(),Sa(12,"button",4),Ia("click",(function(){return t.reloadNodes()})),Sa(13,"mat-icon"),_s(14,"replay"),xa(),xa())},directives:[h$,J1,P$],styles:[".menu-button[_ngcontent-%COMP%]{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),e}(),Dae=function(){function e(e,t,n,i,r,o){this.hotkeysService=e,this.toaster=t,this.nodesService=n,this.projectService=i,this.mapNodeToNode=r,this.selectionManager=o}return e.prototype.ngOnInit=function(){var e=this;this.deleteHotkey=new Gq("del",(function(t){return e.onDeleteHandler(t)})),this.hotkeysService.add(this.deleteHotkey)},e.prototype.onDeleteHandler=function(e){var t=this;return this.projectService.isReadOnly(this.project)||this.selectionManager.getSelected().filter((function(e){return e instanceof r7})).forEach((function(e){var n=t.mapNodeToNode.convert(e);t.nodesService.delete(t.server,n).subscribe((function(e){t.toaster.success("Node has been deleted")}))})),!1},e.prototype.ngOnDestroy=function(){this.hotkeysService.remove(this.deleteHotkey)},e.\u0275fac=function(t){return new(t||e)(_a(Kq),_a(iJ),_a(D$),_a(GK),_a(f9),_a(j7))},e.\u0275cmp=ze({type:e,selectors:[["app-project-map-shortcuts"]],inputs:{project:"project",server:"server"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e}();function Rae(e,t){1&e&&(cn(),Sa(0,"svg",9),Oa(1,"rect",10),xa())}function Lae(e,t){1&e&&(cn(),Sa(0,"svg",9),Oa(1,"rect",11),xa())}function Fae(e,t){if(1&e){var n=Pa();Sa(0,"button",6),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(2).chooseInterface(e)})),ba(1,Rae,2,0,"svg",7),ba(2,Lae,2,0,"svg",7),Sa(3,"span",8),_s(4),xa(),xa()}if(2&e){var i=t.$implicit;ka("disabled",!i.available),ar(1),ka("ngIf",i.available),ar(1),ka("ngIf",!i.available),ar(2),ws(i.name)}}function Nae(e,t){if(1&e&&(Sa(0,"div",1),Oa(1,"span",2),Sa(2,"mat-menu",3,4),ba(4,Fae,5,4,"button",5),xa(),xa()),2&e){var n=ya(3),i=Ba();rs("left",i.leftPosition)("top",i.topPosition),ar(1),ka("matMenuTriggerFor",n),ar(1),rs("min-height",0),ar(2),ka("ngForOf",i.ports)}}var Bae=function(){function e(e,t){this.sanitizer=e,this.changeDetector=t,this.onChooseInterface=new Yc}return e.prototype.ngOnInit=function(){this.setPosition(0,0)},e.prototype.setPosition=function(e,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},e.prototype.open=function(e,t,n){this.node=e,this.filterNodePorts(),this.setPosition(t,n),this.contextMenu.openMenu()},e.prototype.filterNodePorts=function(){var e=this,t=[];this.links.forEach((function(n){n.nodes.forEach((function(n){n.node_id===e.node.node_id&&t.push(n)}))})),this.ports=[],this.node.ports.forEach((function(n){var i=t.filter((function(e){return e.adapter_number===n.adapter_number}));n.available=0===i.length||0===i.filter((function(e){return e.port_number===n.port_number})).length,e.ports.push(n)}))},e.prototype.chooseInterface=function(e){this.onChooseInterface.emit({node:this.node,port:e})},e.\u0275fac=function(t){return new(t||e)(_a(Jd),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["app-node-select-interface"]],viewQuery:function(e,t){var n;1&e&&cl(LZ,!0),2&e&&al(n=fl())&&(t.contextMenu=n.first)},inputs:{links:"links"},outputs:{onChooseInterface:"onChooseInterface"},decls:1,vars:1,consts:[["class","context-menu",3,"left","top",4,"ngIf"],[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["selectInterfaceMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"],["width","10","height","10",4,"ngIf"],[1,"port"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status"],["x","0","y","0","width","10","height","10","fill","red",1,"status"]],template:function(e,t){1&e&&ba(0,Nae,5,8,"div",0),2&e&&ka("ngIf",t.node)},directives:[Hh,LZ,AZ,Nh,OZ],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute}.context-menu-items[_ngcontent-%COMP%]{min-height:0!important}.status[_ngcontent-%COMP%]{margin-right:10px}.port[_ngcontent-%COMP%]{margin-left:10px}"]}),e}(),Hae=function(){return function(e,t,n,i){this.sourceNode=e,this.sourcePort=t,this.targetNode=n,this.targetPort=i}}(),zae=function(){function e(e,t,n,i,r,o){this.drawingLineTool=e,this.nodesEventSource=t,this.linksEventSource=n,this.mapNodeToNode=i,this.nodeToMapNode=r,this.portToMapPort=o}return e.prototype.ngOnInit=function(){var e=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe((function(t){var n=e.mapNodeToNode.convert(t.datum);e.nodeSelectInterfaceMenu.open(n,t.y,t.x)}))},e.prototype.ngOnDestroy=function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()},e.prototype.onChooseInterface=function(e){var t=this.nodeToMapNode.convert(e.node),n=this.portToMapPort.convert(e.port);if(this.drawingLineTool.isDrawing()){var i=this.drawingLineTool.stop();this.linksEventSource.created.emit(new Hae(i.node,i.port,t,n))}else this.drawingLineTool.start(t.x+t.width/2,t.y+t.height/2,{node:t,port:n})},e.\u0275fac=function(t){return new(t||e)(_a(g9),_a(Y7),_a(K9),_a(f9),_a(h7),_a(u7))},e.\u0275cmp=ze({type:e,selectors:[["app-draw-link-tool"]],viewQuery:function(e,t){var n;1&e&&cl(Bae,!0),2&e&&al(n=fl())&&(t.nodeSelectInterfaceMenu=n.first)},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(e,t){1&e&&(Sa(0,"app-node-select-interface",0),Ia("onChooseInterface",(function(e){return t.onChooseInterface(e)})),xa()),2&e&&ka("links",t.links)},directives:[Bae],styles:[""]}),e}();function Vae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=Math.abs(e-t);return i<n}function qae(e,t,n,i){var r={top:e.top,bottom:e.bottom,left:e.left,right:e.right};return t.top&&(r.top+=i),t.bottom&&(r.bottom+=i),t.left&&(r.left+=n),t.right&&(r.right+=n),r.height=r.bottom-r.top,r.width=r.right-r.left,r}function Uae(e){var t=e.clientY,n=e.rect;return t>=n.top&&t<=n.bottom}function Gae(e){var t=e.clientX,n=e.rect;return t>=n.left&&t<=n.right}function Wae(e){var t=e.clientX,n=e.clientY,i=e.allowedEdges,r=e.cursorPrecision,o=e.elm.nativeElement.getBoundingClientRect(),a={};return i.left&&Vae(t,o.left,r)&&Uae({clientY:n,rect:o})&&(a.left=!0),i.right&&Vae(t,o.right,r)&&Uae({clientY:n,rect:o})&&(a.right=!0),i.top&&Vae(n,o.top,r)&&Gae({clientX:t,rect:o})&&(a.top=!0),i.bottom&&Vae(n,o.bottom,r)&&Gae({clientX:t,rect:o})&&(a.bottom=!0),a}var Kae=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function Xae(e,t){return e.left&&e.top?t.topLeft:e.right&&e.top?t.topRight:e.left&&e.bottom?t.bottomLeft:e.right&&e.bottom?t.bottomRight:e.left||e.right?t.leftOrRight:e.top||e.bottom?t.topOrBottom:""}function Yae(e){var t=e.initialRectangle,n=e.newRectangle,i={};return Object.keys(e.edges).forEach((function(e){i[e]=(n[e]||0)-(t[e]||0)})),i}var Zae="resize-active",Qae=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this.platformId=t,this.renderer=n,this.elm=i,this.zone=r,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Kae,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new Yc,this.resizing=new Yc,this.resizeEnd=new Yc,this.mouseup=new w.b,this.mousedown=new w.b,this.mousemove=new w.b,this.destroy$=new w.b,this.resizeEdges$=new w.b,this.pointerEventListeners=$ae.getInstance(n,r)}return Object(g.a)(e,[{key:"ngOnInit",value:function(){var e,t=this,n=Object(C.a)(this.pointerEventListeners.pointerDown,this.mousedown),i=Object(C.a)(this.pointerEventListeners.pointerMove,this.mousemove).pipe(Object(jU.a)((function(t){e&&t.event.preventDefault()})),Object(S.a)()),r=Object(C.a)(this.pointerEventListeners.pointerUp,this.mouseup),o=function(){e&&e.clonedNode&&(t.elm.nativeElement.parentElement.removeChild(e.clonedNode),t.renderer.setStyle(t.elm.nativeElement,"visibility","inherit"))},a=function(){return Object.assign({},Kae,t.resizeCursors)};this.resizeEdges$.pipe(Object(Jm.a)(this.resizeEdges),Object(mf.a)((function(){return t.resizeEdges&&Object.keys(t.resizeEdges).some((function(e){return!!t.resizeEdges[e]}))})),Object(tg.a)((function(e){return e?i:SU.a})),Object(Qm.a)(this.mouseMoveThrottleMS),Object(Gm.a)(this.destroy$)).subscribe((function(n){var i=Wae({clientX:n.clientX,clientY:n.clientY,elm:t.elm,allowedEdges:t.resizeEdges,cursorPrecision:t.resizeCursorPrecision}),r=a();if(!e){var o=Xae(i,r);t.renderer.setStyle(t.elm.nativeElement,"cursor",o)}t.setElementClass(t.elm,"resize-left-hover",!0===i.left),t.setElementClass(t.elm,"resize-right-hover",!0===i.right),t.setElementClass(t.elm,"resize-top-hover",!0===i.top),t.setElementClass(t.elm,"resize-bottom-hover",!0===i.bottom)})),n.pipe(Object(PU.b)((function(o){function a(e){return{clientX:e.clientX-o.clientX,clientY:e.clientY-o.clientY}}var s=function(){var n={x:1,y:1};return e&&(t.resizeSnapGrid.left&&e.edges.left?n.x=+t.resizeSnapGrid.left:t.resizeSnapGrid.right&&e.edges.right&&(n.x=+t.resizeSnapGrid.right),t.resizeSnapGrid.top&&e.edges.top?n.y=+t.resizeSnapGrid.top:t.resizeSnapGrid.bottom&&e.edges.bottom&&(n.y=+t.resizeSnapGrid.bottom)),n};function c(e,t){return{x:Math.ceil(e.clientX/t.x),y:Math.ceil(e.clientY/t.y)}}return Object(C.a)(i.pipe(Object(Wm.a)(1)).pipe(Object(mf.a)((function(e){return[,e]}))),i.pipe(Object(eg.a)())).pipe(Object(mf.a)((function(e){var t=l(e,2),n=t[0],i=t[1];return[n?a(n):n,a(i)]}))).pipe(Object($m.a)((function(e){var t=l(e,2),n=t[0],i=t[1];if(!n)return!0;var r=s(),o=c(n,r),a=c(i,r);return o.x!==a.x||o.y!==a.y}))).pipe(Object(mf.a)((function(e){var t=l(e,2)[1],n=s();return{clientX:Math.round(t.clientX/n.x)*n.x,clientY:Math.round(t.clientY/n.y)*n.y}}))).pipe(Object(Gm.a)(Object(C.a)(r,n)))}))).pipe(Object($m.a)((function(){return!!e}))).pipe(Object(mf.a)((function(t){return qae(e.startingRect,e.edges,t.clientX,t.clientY)}))).pipe(Object($m.a)((function(e){return t.allowNegativeResizes||!!(e.height&&e.width&&e.height>0&&e.width>0)}))).pipe(Object($m.a)((function(n){return!t.validateResize||t.validateResize({rectangle:n,edges:Yae({edges:e.edges,initialRectangle:e.startingRect,newRectangle:n})})})),Object(Gm.a)(this.destroy$)).subscribe((function(n){e&&e.clonedNode&&(t.renderer.setStyle(e.clonedNode,"height","".concat(n.height,"px")),t.renderer.setStyle(e.clonedNode,"width","".concat(n.width,"px")),t.renderer.setStyle(e.clonedNode,"top","".concat(n.top,"px")),t.renderer.setStyle(e.clonedNode,"left","".concat(n.left,"px"))),t.zone.run((function(){t.resizing.emit({edges:Yae({edges:e.edges,initialRectangle:e.startingRect,newRectangle:n}),rectangle:n})})),e.currentRect=n})),n.pipe(Object(mf.a)((function(e){return e.edges||Wae({clientX:e.clientX,clientY:e.clientY,elm:t.elm,allowedEdges:t.resizeEdges,cursorPrecision:t.resizeCursorPrecision})}))).pipe(Object($m.a)((function(e){return Object.keys(e).length>0})),Object(Gm.a)(this.destroy$)).subscribe((function(n){e&&o();var i=function(e,t){var n=0,i=0,r=e.nativeElement.style,o=["transform","-ms-transform","-moz-transform","-o-transform"].map((function(e){return r[e]})).find((function(e){return!!e}));if(o&&o.includes("translate")&&(n=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),i=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===t)return{height:e.nativeElement.offsetHeight,width:e.nativeElement.offsetWidth,top:e.nativeElement.offsetTop-i,bottom:e.nativeElement.offsetHeight+e.nativeElement.offsetTop-i,left:e.nativeElement.offsetLeft-n,right:e.nativeElement.offsetWidth+e.nativeElement.offsetLeft-n};var a=e.nativeElement.getBoundingClientRect();return{height:a.height,width:a.width,top:a.top-i,bottom:a.bottom-i,left:a.left-n,right:a.right-n,scrollTop:e.nativeElement.scrollTop,scrollLeft:e.nativeElement.scrollLeft}}(t.elm,t.ghostElementPositioning);e={edges:n,startingRect:i,currentRect:i};var r=a(),s=Xae(e.edges,r);t.renderer.setStyle(document.body,"cursor",s),t.setElementClass(t.elm,Zae,!0),t.enableGhostResize&&(e.clonedNode=t.elm.nativeElement.cloneNode(!0),t.elm.nativeElement.parentElement.appendChild(e.clonedNode),t.renderer.setStyle(t.elm.nativeElement,"visibility","hidden"),t.renderer.setStyle(e.clonedNode,"position",t.ghostElementPositioning),t.renderer.setStyle(e.clonedNode,"left","".concat(e.startingRect.left,"px")),t.renderer.setStyle(e.clonedNode,"top","".concat(e.startingRect.top,"px")),t.renderer.setStyle(e.clonedNode,"height","".concat(e.startingRect.height,"px")),t.renderer.setStyle(e.clonedNode,"width","".concat(e.startingRect.width,"px")),t.renderer.setStyle(e.clonedNode,"cursor",Xae(e.edges,r)),t.renderer.addClass(e.clonedNode,"resize-ghost-element"),e.clonedNode.scrollTop=e.startingRect.scrollTop,e.clonedNode.scrollLeft=e.startingRect.scrollLeft),t.zone.run((function(){t.resizeStart.emit({edges:Yae({edges:n,initialRectangle:i,newRectangle:i}),rectangle:qae(i,{},0,0)})}))})),r.pipe(Object(Gm.a)(this.destroy$)).subscribe((function(){e&&(t.renderer.removeClass(t.elm.nativeElement,Zae),t.renderer.setStyle(document.body,"cursor",""),t.renderer.setStyle(t.elm.nativeElement,"cursor",""),t.zone.run((function(){t.resizeEnd.emit({edges:Yae({edges:e.edges,initialRectangle:e.startingRect,newRectangle:e.currentRect}),rectangle:e.currentRect})})),o(),e=null)}))}},{key:"ngOnChanges",value:function(e){e.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){wd(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(e,t,n){n?this.renderer.addClass(e.nativeElement,t):this.renderer.removeClass(e.nativeElement,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Cl),_a(Qs),_a(Ks),_a(Nl))},e.\u0275dir=Ke({type:e,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},features:[ct]}),e}(),$ae=function(){function e(t,n){Object(m.a)(this,e),this.pointerDown=new k.a((function(e){var i,r;return n.runOutsideAngular((function(){i=t.listen("document","mousedown",(function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})})),r=t.listen("document","touchstart",(function(t){e.next({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY,event:t})}))})),function(){i(),r()}})).pipe(Object(S.a)()),this.pointerMove=new k.a((function(e){var i,r;return n.runOutsideAngular((function(){i=t.listen("document","mousemove",(function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})})),r=t.listen("document","touchmove",(function(t){e.next({clientX:t.targetTouches[0].clientX,clientY:t.targetTouches[0].clientY,event:t})}))})),function(){i(),r()}})).pipe(Object(S.a)()),this.pointerUp=new k.a((function(e){var i,r,o;return n.runOutsideAngular((function(){i=t.listen("document","mouseup",(function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})})),r=t.listen("document","touchend",(function(t){e.next({clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,event:t})})),o=t.listen("document","touchcancel",(function(t){e.next({clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,event:t})}))})),function(){i(),r(),o()}})).pipe(Object(S.a)())}return Object(g.a)(e,null,[{key:"getInstance",value:function(t,n){return e.instance||(e.instance=new e(t,n)),e.instance}}]),e}(),Jae=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this.renderer=t,this.element=n,this.zone=i,this.resizable=r,this.resizeEdges={},this.eventListeners={}}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners()}},{key:"onMousedown",value:function(e,t,n){var i=this;e.preventDefault(),this.zone.runOutsideAngular((function(){i.eventListeners.touchmove||(i.eventListeners.touchmove=i.renderer.listen(i.element.nativeElement,"touchmove",(function(e){i.onMousemove(e,e.targetTouches[0].clientX,e.targetTouches[0].clientY)}))),i.eventListeners.mousemove||(i.eventListeners.mousemove=i.renderer.listen(i.element.nativeElement,"mousemove",(function(e){i.onMousemove(e,e.clientX,e.clientY)}))),i.resizable.mousedown.next({clientX:t,clientY:n,edges:i.resizeEdges})}))}},{key:"onMouseup",value:function(e,t){var n=this;this.zone.runOutsideAngular((function(){n.unsubscribeEventListeners(),n.resizable.mouseup.next({clientX:e,clientY:t,edges:n.resizeEdges})}))}},{key:"onMousemove",value:function(e,t,n){this.resizable.mousemove.next({clientX:t,clientY:n,edges:this.resizeEdges,event:e})}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListeners).forEach((function(t){e.eventListeners[t](),delete e.eventListeners[t]}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Qs),_a(Ks),_a(Nl),_a(Qae))},e.\u0275dir=Ke({type:e,selectors:[["","mwlResizeHandle",""]],hostBindings:function(e,t){1&e&&Ia("touchstart",(function(e){return t.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}))("mousedown",(function(e){return t.onMousedown(e,e.clientX,e.clientY)}))("touchend",(function(e){return t.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))("touchcancel",(function(e){return t.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))("mouseup",(function(e){return t.onMouseup(e.clientX,e.clientY)}))},inputs:{resizeEdges:"resizeEdges"}}),e}(),ese=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),tse=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.prototype.getItemKey=function(e){return e},t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return nse(e||t)}}),t}(s6),nse=Qn(tse),ise=n("kiQV").version,rse=["console"];function ose(e,t){if(1&e&&(Sa(0,"span",12),_s(1),Oa(2,"br"),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.message," ")}}var ase=function(e){return{lightTheme:e}},sse=function(){function e(e,t,n,i,r,o,a,s,c){this.projectWebServiceHandler=e,this.nodeService=t,this.nodesDataSource=n,this.logEventsDataSource=i,this.httpService=r,this.themeService=o,this.cd=a,this.nodeConsoleService=s,this.changeDetectorRef=c,this.version=ise,this.command="",this.filters=["all","errors","warnings","info","map updates","server requests"],this.selectedFilter="all",this.filteredEvents=[],this.regexStart=/^start (.*?)$/,this.regexStop=/^stop (.*?)$/,this.regexSuspend=/^suspend (.*?)$/,this.regexReload=/^reload (.*?)$/,this.regexShow=/^show (.*?)$/,this.regexConsole=/^console (.*?)$/,this.style={},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.selected=new Cp(0)}return e.prototype.ngOnInit=function(){var e=this;this.nodeConsoleService.consoleResized.subscribe((function(t){e.style={bottom:"20px",left:"20px",width:t.width+"px",height:t.height-70+"px"},e.changeDetectorRef.detectChanges()})),this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe((function(t){var n,i=t.event;n=i.label?"Event received: "+t.action+" - "+e.printNode(i)+".":"Event received: "+t.action+" - "+i.name+".",e.showMessage({type:"map update",message:n})})),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe((function(t){var n="Event received: "+t.action+" - "+e.printLink(t.event)+".";e.showMessage({type:"map update",message:n})})),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe((function(t){var n="Event received: "+t.action+" - "+e.printDrawing(t.event)+".";e.showMessage({type:"map update",message:n})})),this.serverRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe((function(t){e.showMessage({type:"server request",message:t})})),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe((function(t){e.showMessage({type:"error",message:t})})),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe((function(t){e.showMessage({type:"warning",message:t})})),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe((function(t){e.showMessage({type:"info",message:t})}))},e.prototype.ngAfterViewInit=function(){this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight},e.prototype.ngOnDestroy=function(){this.nodeSubscription.unsubscribe(),this.linkSubscription.unsubscribe(),this.drawingSubscription.unsubscribe(),this.serverRequestsSubscription.unsubscribe(),this.errorSubscription.unsubscribe(),this.warningSubscription.unsubscribe(),this.infoSubscription.unsubscribe()},e.prototype.applyFilter=function(e){this.selectedFilter=e,this.filteredEvents=this.getFilteredEvents(),this.cd.detectChanges()},e.prototype.onKeyDown=function(e){"Enter"===e.key&&this.handleCommand()},e.prototype.handleCommand=function(){var e=this;if("help"===this.command||""===this.command)this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.");else if("version"===this.command)this.showCommand("Current version: "+this.version);else if("start all"===this.command)this.showCommand("Starting all nodes..."),this.nodeService.startAll(this.server,this.project).subscribe((function(){e.showCommand("All nodes started.")}));else if("stop all"===this.command)this.showCommand("Stopping all nodes..."),this.nodeService.stopAll(this.server,this.project).subscribe((function(){e.showCommand("All nodes stopped.")}));else if("suspend all"===this.command)this.showCommand("Suspending all nodes..."),this.nodeService.suspendAll(this.server,this.project).subscribe((function(){e.showCommand("All nodes suspended.")}));else if("reload all"===this.command)this.showCommand("Reloading all nodes..."),this.nodeService.reloadAll(this.server,this.project).subscribe((function(){e.showCommand("All nodes reloaded.")}));else if(this.regexStart.test(this.command)||this.regexStop.test(this.command)||this.regexSuspend.test(this.command)||this.regexReload.test(this.command)||this.regexShow.test(this.command)||this.regexConsole.test(this.command)){var t=this.command.split(/[ ,]+/),n=this.nodesDataSource.getItems().find((function(e){return e.name.valueOf()===t[1].valueOf()}));n?this.regexStart.test(this.command)?(this.showCommand("Starting node "+t[1]+"..."),this.nodeService.start(this.server,n).subscribe((function(){return e.showCommand("Node "+n.name+" started.")}))):this.regexStop.test(this.command)?(this.showCommand("Stopping node "+t[1]+"..."),this.nodeService.stop(this.server,n).subscribe((function(){return e.showCommand("Node "+n.name+" stopped.")}))):this.regexSuspend.test(this.command)?(this.showCommand("Suspending node "+t[1]+"..."),this.nodeService.suspend(this.server,n).subscribe((function(){return e.showCommand("Node "+n.name+" suspended.")}))):this.regexReload.test(this.command)?(this.showCommand("Reloading node "+t[1]+"..."),this.nodeService.reload(this.server,n).subscribe((function(){return e.showCommand("Node "+n.name+" reloaded.")}))):this.regexConsole.test(this.command)?"started"===n.status?(this.showCommand("Launching console for node "+t[1]+"..."),"telnet"===n.console_type?location.assign("gns3+telnet://"+n.console_host+":"+n.console+"?name="+n.name+"&project_id="+n.project_id+"&node_id="+n.node_id):"vnc"===n.console_type?location.assign("gns3+vnc://"+n.console_host+":"+n.console+"?name="+n.name+"&project_id="+n.project_id+"&node_id="+n.node_id):"spice"===n.console_type?location.assign("gns3+spice://"+n.console_host+":"+n.console+"?name="+n.name+"&project_id="+n.project_id+"&node_id="+n.node_id):this.showCommand("Supported console types: telnet, vnc, spice.")):this.showCommand("This node must be started before a console can be opened."):this.regexShow.test(this.command)&&(this.showCommand("Information about node "+n.name+":"),this.showCommand(this.printNode(n))):this.showCommand("Node with "+t[1]+" name was not found.")}else this.showCommand("Unknown syntax: "+this.command);this.command="",this.cd.detectChanges()},e.prototype.clearConsole=function(){this.filteredEvents=[],this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight},e.prototype.showCommand=function(e){this.showMessage({type:"command",message:e})},e.prototype.showMessage=function(e){var t=this;this.logEventsDataSource.add(e),this.filteredEvents=this.getFilteredEvents(),this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight,setTimeout((function(){t.console.nativeElement.scrollTop=t.console.nativeElement.scrollHeight}),100),this.cd.detectChanges()},e.prototype.getFilteredEvents=function(){return"server requests"===this.selectedFilter?this.logEventsDataSource.getItems().filter((function(e){return"server request"===e.type})):"errors"===this.selectedFilter?this.logEventsDataSource.getItems().filter((function(e){return"error"===e.type})):"warnings"===this.selectedFilter?this.logEventsDataSource.getItems().filter((function(e){return"warning"===e.type})):"info"===this.selectedFilter?this.logEventsDataSource.getItems().filter((function(e){return"info"===e.type})):"map updates"===this.selectedFilter?this.logEventsDataSource.getItems().filter((function(e){return"map update"===e.type||"command"===e.type})):this.logEventsDataSource.getItems()},e.prototype.printNode=function(e){return"command_line: "+e.command_line+", \n compute_id: "+e.compute_id+", \n console: "+e.console+", \n console_host: "+e.console_host+", \n console_type: "+e.console_type+", \n first_port_name: "+e.first_port_name+", \n height: "+e.height+", \n label: "+e.label.text+", \n name: "+e.name+", \n node_directory: "+e.node_directory+", \n node_id: "+e.node_id+", \n node_type: "+e.node_type+", \n port_name_format: "+e.port_name_format+", \n port_segment_size: "+e.port_segment_size+", "+this.printPorts(e.ports)+"project_id: "+e.project_id+", \n status: "+e.status+", \n symbol: "+e.symbol+", \n symbol_url: "+e.symbol_url+", \n width: "+e.width+", \n x: "+e.x+", \n y: "+e.y+", \n z: "+e.z},e.prototype.printPorts=function(e){var t="ports: ";return e.forEach((function(e){t=t+"adapter_number: "+e.adapter_number+", \n link_type: "+e.link_type+", \n name: "+e.name+", \n port_number: "+e.port_number+", \n short_name: "+e.short_name+", "})),t},e.prototype.printLink=function(e){return"capture_file_name: "+e.capture_file_name+", \n capture_file_path: "+e.capture_file_path+", \n capturing: "+e.capturing+", \n link_id: "+e.link_id+", \n link_type: "+e.link_type+", \n project_id: "+e.project_id+", \n suspend: "+e.suspend+", "},e.prototype.printDrawing=function(e){return"drawing_id: "+e.drawing_id+", \n project_id: "+e.project_id+", \n rotation: "+e.rotation+", \n x: "+e.x+", \n y: "+e.y+", \n z: "+e.z},e.\u0275fac=function(t){return new(t||e)(_a(J8),_a(D$),_a(c6),_a(tse),_a(VK),_a(Aee),_a(No),_a(A4),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["app-log-console"]],viewQuery:function(e,t){var n;1&e&&cl(rse,!0),2&e&&al(n=fl())&&(t.console=n.first)},inputs:{server:"server",project:"project"},decls:25,vars:16,consts:[[1,"consoleHeader"],[1,"consoleFiltering"],[1,"filterButton",3,"ngClass","matMenuTriggerFor"],["xPosition","after"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"console",3,"ngClass","ngStyle"],["console",""],["class","console-item",4,"ngFor","ngForOf"],[1,"consoleInput",3,"ngClass"],[1,"inputIcon"],["autofocus","","type","text",1,"commandLine",3,"ngClass","ngModel","keydown","ngModelChange"],[1,"console-item"]],template:function(e,t){if(1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"button",2),_s(3," Apply filter "),xa(),Sa(4,"mat-menu",3,4),Sa(6,"button",5),Ia("click",(function(){return t.applyFilter("all")})),_s(7,"all"),xa(),Sa(8,"button",5),Ia("click",(function(){return t.applyFilter("errors")})),_s(9,"errors"),xa(),Sa(10,"button",5),Ia("click",(function(){return t.applyFilter("warnings")})),_s(11,"warnings"),xa(),Sa(12,"button",5),Ia("click",(function(){return t.applyFilter("info")})),_s(13,"info"),xa(),Sa(14,"button",5),Ia("click",(function(){return t.applyFilter("map updates")})),_s(15,"map updates"),xa(),Sa(16,"button",5),Ia("click",(function(){return t.applyFilter("server requests")})),_s(17,"server requests"),xa(),xa(),xa(),xa(),Sa(18,"div",6,7),ba(20,ose,3,1,"span",8),xa(),Sa(21,"div",9),Sa(22,"mat-icon",10),_s(23,"keyboard_arrow_right"),xa(),Sa(24,"input",11),Ia("keydown",(function(e){return t.onKeyDown(e)}))("ngModelChange",(function(e){return t.command=e})),xa(),xa()),2&e){var n=ya(5);ar(2),ka("ngClass",Bc(8,ase,t.isLightThemeEnabled))("matMenuTriggerFor",n),ar(16),ka("ngClass",Bc(10,ase,t.isLightThemeEnabled))("ngStyle",t.style),ar(2),ka("ngForOf",t.filteredEvents),ar(1),ka("ngClass",Bc(12,ase,t.isLightThemeEnabled)),ar(3),ka("ngClass",Bc(14,ase,t.isLightThemeEnabled))("ngModel",t.command)}},directives:[Rh,LZ,AZ,OZ,Yh,Nh,P$,wf,Mf,Rp],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:#fff!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;height:40px;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0}),e}(),cse=n("/POA"),lse=n("Fzww"),use=n("R9As"),hse=["terminal"],dse=function(){function e(e){this.consoleService=e,this.term=new cse.Terminal,this.fitAddon=new use.FitAddon,this.copiedText=""}return e.prototype.ngOnInit=function(){var e=this;this.consoleService.consoleResized.subscribe((function(t){var n=Math.floor(t.width/9),i=Math.floor(t.height/17);e.consoleService.setNumberOfColumns(n),e.consoleService.setNumberOfRows(i),e.term.resize(n,i)})),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())},e.prototype.ngAfterViewInit=function(){var e=this;this.term.open(this.terminal.nativeElement);var t=new WebSocket(this.getUrl());t.onerror=function(t){e.term.write("Connection lost")},t.onclose=function(t){e.consoleService.closeConsoleForNode(e.node)};var n=new lse.AttachAddon(t);this.term.loadAddon(n),this.term.setOption("cursorBlink",!0),this.term.loadAddon(this.fitAddon),this.fitAddon.activate(this.term),this.term.focus(),this.term.attachCustomKeyEventHandler((function(e){return"KeyC"!==e.code&&"KeyV"!==e.code||!e.ctrlKey}))},e.prototype.getUrl=function(){return"ws://"+this.server.host+":"+this.server.port+"/v2/projects/"+this.node.project_id+"/nodes/"+this.node.node_id+"/console/ws"},e.\u0275fac=function(t){return new(t||e)(_a(A4))},e.\u0275cmp=ze({type:e,selectors:[["app-web-console"]],viewQuery:function(e,t){var n;1&e&&cl(hse,!0),2&e&&al(n=fl())&&(t.terminal=n.first)},inputs:{server:"server",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal"],["terminal",""]],template:function(e,t){1&e&&Oa(0,"div",0,1)},styles:['.xterm{font-feature-settings:"liga" 0;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}'],encapsulation:2}),e}();function fse(e,t){if(1&e){var n=Pa();Sa(0,"div",10),Ia("mousemove",(function(e){return Dt(n),Ba().dragWidget(e)}),!1,Pn)("mouseup",(function(){return Dt(n),Ba().toggleDragging(!1)}),!1,Pn),xa()}}function pse(e,t){1&e&&(Sa(0,"div",11),_s(1,"GNS3 console"),xa())}function mse(e,t){if(1&e){var n=Pa();Sa(0,"div",11),_s(1),xa(),Sa(2,"button",7),Ia("click",(function(){Dt(n);var e=Ba().index;return Ba().removeTab(e)})),Sa(3,"mat-icon"),_s(4,"close"),xa(),xa()}if(2&e){var i=Ba().$implicit;ar(1),ws(i.name)}}function gse(e,t){1&e&&(Sa(0,"mat-tab",12),ba(1,mse,5,1,"ng-template",4),xa()),2&e&&ka("label",Ba().tab)}function vse(e,t){if(1&e){var n=Pa();Sa(0,"button",7),Ia("click",(function(){return Dt(n),Ba().minimize(!0)})),Sa(1,"mat-icon"),_s(2,"remove"),xa(),xa()}}function bse(e,t){if(1&e){var n=Pa();Sa(0,"button",7),Ia("click",(function(){return Dt(n),Ba().minimize(!1)})),Sa(1,"mat-icon"),_s(2,"web_asset"),xa(),xa()}}function yse(e,t){if(1&e){var n=Pa();Sa(0,"div",13),Ia("mouseover",(function(e){return Dt(n),Ba().disableScroll(e)}))("mouseout",(function(e){return Dt(n),Ba().enableScroll(e)})),Oa(1,"app-web-console",14),xa()}if(2&e){var i=t.index,r=Ba();ka("hidden",r.isMinimized),ar(1),ka("hidden",!(r.selected.value===i+1))("server",r.server)("node",r.nodes[i])}}var _se=function(e){return{lightTheme:e}},wse=function(){return{right:!0,left:!0,bottom:!0,top:!0}},kse=function(){function e(e,t,n){this.consoleService=e,this.themeService=t,this.mapSettingsService=n,this.closeConsole=new Yc,this.filters=["all","errors","warnings","info","map updates","server requests"],this.selectedFilter="all",this.style={},this.styleInside={height:"120px"},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.isMinimized=!1,this.resizedWidth=720,this.resizedHeight=480,this.nodes=[],this.selected=new Cp(0)}return e.prototype.ngOnInit=function(){var e=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"20px",width:"720px",height:"460px"},this.consoleService.nodeConsoleTrigger.subscribe((function(t){e.addTab(t,!0)})),this.consoleService.closeNodeConsoleTrigger.subscribe((function(t){var n=e.nodes.findIndex((function(e){return e.node_id===t.node_id}));e.removeTab(n)}))},e.prototype.minimize=function(e){this.isMinimized=e,this.style=e?{bottom:"20px",left:"20px",width:this.resizedWidth+"px",height:"56px"}:{bottom:"20px",left:"20px",width:this.resizedWidth+"px",height:this.resizedHeight+"px"}},e.prototype.addTab=function(e,t){this.minimize(!1),this.nodes.push(e),t&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++},e.prototype.removeTab=function(e){this.nodes.splice(e,1),this.consoleService.openConsoles--},e.prototype.toggleDragging=function(e){this.isDraggingEnabled=e},e.prototype.dragWidget=function(e){var t=Number(e.movementX),n=Number(e.movementY),i=Number(this.style.width.split("px")[0]),r=Number(this.style.height.split("px")[0]),o=Number(this.style.left.split("px")[0])+t;if(this.style.top){var a=Number(this.style.top.split("px")[0])+n;this.style={position:"fixed",left:o+"px",top:a+"px",width:i+"px",height:r+"px"}}else{var s=Number(this.style.bottom.split("px")[0])-n;this.style={position:"fixed",left:o+"px",bottom:s+"px",width:i+"px",height:r+"px"}}},e.prototype.validate=function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<500||e.rectangle.height<100))},e.prototype.onResizeEnd=function(e){this.style={position:"fixed",left:e.rectangle.left+"px",top:e.rectangle.top+"px",width:e.rectangle.width+"px",height:e.rectangle.height+"px"},this.styleInside={height:e.rectangle.height-60+"px",width:e.rectangle.width+"px"},this.consoleService.consoleResized.next({width:e.rectangle.width,height:e.rectangle.height-53}),this.resizedWidth=e.rectangle.width,this.resizedHeight=e.rectangle.height},e.prototype.close=function(){this.closeConsole.emit(!1)},e.prototype.enableScroll=function(e){this.mapSettingsService.isScrollDisabled.next(!1)},e.prototype.disableScroll=function(e){this.mapSettingsService.isScrollDisabled.next(!0)},e.\u0275fac=function(t){return new(t||e)(_a(A4),_a(Aee),_a(I4))},e.\u0275cmp=ze({type:e,selectors:[["app-console-wrapper"]],inputs:{server:"server",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:17,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color:white","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"click"],[3,"hidden","server","project"],["class","xterm-console",3,"hidden","mouseover","mouseout",4,"ngFor","ngForOf"],[3,"mousemove","mouseup"],[1,"col",2,"margin-left","20px"],[3,"label"],[1,"xterm-console",3,"hidden","mouseover","mouseout"],[3,"hidden","server","node"]],template:function(e,t){1&e&&(ba(0,fse,1,0,"div",0),Sa(1,"div",1),Ia("mousedown",(function(){return t.toggleDragging(!0)}))("resizeStart",(function(){return t.toggleDragging(!1)}))("resizeEnd",(function(e){return t.onResizeEnd(e)})),Sa(2,"div",2),Sa(3,"mat-tab-group",3),Ia("selectedIndexChange",(function(e){return t.selected.setValue(e)})),Sa(4,"mat-tab"),ba(5,pse,2,0,"ng-template",4),xa(),ba(6,gse,2,1,"mat-tab",5),xa(),ba(7,vse,3,0,"button",6),ba(8,bse,3,0,"button",6),Sa(9,"button",7),Ia("click",(function(){return t.close()})),Sa(10,"mat-icon"),_s(11,"close"),xa(),xa(),xa(),Oa(12,"app-log-console",8),ba(13,yse,2,4,"div",9),xa()),2&e&&(ka("ngIf",t.isDraggingEnabled),ar(1),ka("ngClass",Bc(14,_se,t.isLightThemeEnabled))("ngStyle",t.style)("validateResize",t.validate)("resizeEdges",Nc(16,wse))("enableGhostResize",!0),ar(2),ka("selectedIndex",t.selected.value),ar(3),ka("ngForOf",t.nodes),ar(1),ka("ngIf",!t.isMinimized),ar(1),ka("ngIf",t.isMinimized),ar(4),ka("hidden",!(0===t.selected.value)||t.isMinimized)("server",t.server)("project",t.project),ar(1),ka("ngForOf",t.nodes))},directives:[Hh,Qae,Rh,Yh,KQ,FQ,IQ,Nh,h$,P$,sse,dse],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#000!important;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:#fff!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between;background:#263238!important}[_nghost-%COMP%] .mat-tab-label{height:3rem!important;min-width:8rem!important}[_nghost-%COMP%] .mat-tab-label.mat-tab-label-active{border-bottom:2px solid #0097a7;box-sizing:border-box;font-weight:1200}[_nghost-%COMP%] .mat-ink-bar{display:none!important}.tabs[_ngcontent-%COMP%]{width:80%}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.xterm-console[_ngcontent-%COMP%]{background:#000}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"]}),e}();function Cse(e,t){if(1&e){var n=Pa();Sa(0,"div",2),Ia("mousemove",(function(e){return Dt(n),Ba().dragWidget(e)}),!1,Pn)("mouseup",(function(){return Dt(n),Ba().toggleDragging(!1)}),!1,Pn),xa()}}function Sse(e,t){1&e&&(cn(),Sa(0,"svg",28),Oa(1,"rect",29),xa())}function xse(e,t){1&e&&(cn(),Sa(0,"svg",28),Oa(1,"rect",30),xa())}function Ose(e,t){1&e&&(cn(),Sa(0,"svg",28),Oa(1,"rect",31),xa())}function Mse(e,t){if(1&e&&(Sa(0,"div"),_s(1),xa()),2&e){var n=Ba().$implicit;ar(1),Ss(" ",n.console_type," ",n.console_host,":",n.console," ")}}function Tse(e,t){1&e&&(Sa(0,"div"),_s(1," none "),xa())}function Ese(e,t){if(1&e&&(Sa(0,"div",25),Sa(1,"div"),ba(2,Sse,2,0,"svg",26),ba(3,xse,2,0,"svg",26),ba(4,Ose,2,0,"svg",26),_s(5),xa(),ba(6,Mse,2,3,"div",27),ba(7,Tse,2,0,"div",27),xa()),2&e){var n=t.$implicit;ar(2),ka("ngIf","started"===n.status),ar(1),ka("ngIf","suspended"===n.status),ar(1),ka("ngIf","stopped"===n.status),ar(1),ks(" ",n.name," "),ar(1),ka("ngIf",null!=n.console&&null!=n.console&&"none"!=n.console_type),ar(1),ka("ngIf",null==n.console||"none"===n.console_type)}}function Pse(e,t){if(1&e&&(Sa(0,"div",25),Sa(1,"div"),_s(2),xa(),Sa(3,"div"),_s(4),xa(),Sa(5,"div"),_s(6),xa(),xa()),2&e){var n=t.$implicit,i=Ba(2);ar(2),ks(" ",n.name," "),ar(2),ks(" ",n.host," "),ar(2),ks(" ",i.server.location," ")}}var jse=function(e){return{lightTheme:e}},Ase=function(){return{right:!0,left:!0,bottom:!0,top:!0}},Ise=function(e){return{marked:e}},Dse=function(e){return{notvisible:e}};function Rse(e,t){if(1&e){var n=Pa();Sa(0,"div",3),Ia("mousedown",(function(){return Dt(n),Ba().toggleDragging(!0)}))("resizeStart",(function(){return Dt(n),Ba().toggleDragging(!1)}))("resizeEnd",(function(e){return Dt(n),Ba().onResizeEnd(e)})),Sa(1,"div",4),Sa(2,"button",5),Ia("click",(function(){return Dt(n),Ba().toogleTopologyVisibility(!0)})),_s(3,"Map topology"),xa(),Sa(4,"button",5),Ia("click",(function(){return Dt(n),Ba().toogleTopologyVisibility(!1)})),_s(5,"Servers"),xa(),Sa(6,"mat-icon",6),Ia("click",(function(){return Dt(n),Ba().close()})),_s(7,"close"),xa(),xa(),Sa(8,"div",7),Oa(9,"mat-divider",8),Sa(10,"div",9),Sa(11,"mat-select",10),Sa(12,"mat-optgroup",11),Sa(13,"mat-option",12),Ia("onSelectionChange",(function(){return Dt(n),Ba().applyStatusFilter("started")})),_s(14,"started"),xa(),Sa(15,"mat-option",13),Ia("onSelectionChange",(function(){return Dt(n),Ba().applyStatusFilter("suspended")})),_s(16,"suspended"),xa(),Sa(17,"mat-option",14),Ia("onSelectionChange",(function(){return Dt(n),Ba().applyStatusFilter("stopped")})),_s(18,"stopped"),xa(),xa(),Sa(19,"mat-optgroup",15),Sa(20,"mat-option",16),Ia("onSelectionChange",(function(){return Dt(n),Ba().applyCaptureFilter("capture")})),_s(21,"active capture(s)"),xa(),Sa(22,"mat-option",17),Ia("onSelectionChange",(function(){return Dt(n),Ba().applyCaptureFilter("packet")})),_s(23,"active packet captures"),xa(),xa(),xa(),xa(),Sa(24,"div",18),Sa(25,"mat-select",19),Ia("selectionChange",(function(){return Dt(n),Ba().setSortingOrder()}))("valueChange",(function(e){return Dt(n),Ba().sortingOrder=e})),Sa(26,"mat-option",20),_s(27,"sort by name ascending"),xa(),Sa(28,"mat-option",21),_s(29,"sort by name descending"),xa(),xa(),xa(),Oa(30,"mat-divider",8),Sa(31,"div",22),ba(32,Ese,8,6,"div",23),xa(),xa(),Sa(33,"div",7),Oa(34,"mat-divider",8),Sa(35,"div",24),ba(36,Pse,7,3,"div",23),xa(),xa(),xa()}if(2&e){var i=Ba();ka("ngStyle",i.style)("ngClass",Bc(13,jse,i.isLightThemeEnabled))("validateResize",i.validate)("resizeEdges",Nc(15,Ase))("enableGhostResize",!0),ar(2),ka("ngClass",Bc(16,Ise,i.isTopologyVisible)),ar(2),ka("ngClass",Bc(18,Ise,!i.isTopologyVisible)),ar(4),ka("ngClass",Bc(20,Dse,!i.isTopologyVisible)),ar(17),ka("value",i.sortingOrder),ar(6),ka("ngStyle",i.styleInside),ar(1),ka("ngForOf",i.filteredNodes),ar(1),ka("ngClass",Bc(22,Dse,i.isTopologyVisible)),ar(3),ka("ngForOf",i.computes)}}var Lse=function(){function e(e,t,n,i,r){this.nodesDataSource=e,this.projectService=t,this.computeService=n,this.linksDataSource=i,this.themeService=r,this.closeTopologySummary=new Yc,this.style={},this.styleInside={height:"280px"},this.subscriptions=[],this.nodes=[],this.filteredNodes=[],this.sortingOrder="asc",this.startedStatusFilterEnabled=!1,this.suspendedStatusFilterEnabled=!1,this.stoppedStatusFilterEnabled=!1,this.captureFilterEnabled=!1,this.packetFilterEnabled=!1,this.computes=[],this.isTopologyVisible=!0,this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1}return e.prototype.ngOnInit=function(){var e=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.subscriptions.push(this.nodesDataSource.changes.subscribe((function(t){e.nodes=t,e.nodes.forEach((function(t){"0.0.0.0"!==t.console_host&&"0:0:0:0:0:0:0:0"!==t.console_host&&"::"!==t.console_host||(t.console_host=e.server.host)})),e.filteredNodes=t.sort("asc"===e.sortingOrder?e.compareAsc:e.compareDesc)}))),this.projectService.getStatistics(this.server,this.project.project_id).subscribe((function(t){e.projectsStatistics=t})),this.computeService.getComputes(this.server).subscribe((function(t){e.computes=t})),this.style={top:"20px",right:"20px",width:"300px",height:"400px"}},e.prototype.toggleDragging=function(e){this.isDraggingEnabled=e},e.prototype.dragWidget=function(e){var t=Number(e.movementX),n=Number(e.movementY),i=Number(this.style.width.split("px")[0]),r=Number(this.style.height.split("px")[0]),o=Number(this.style.top.split("px")[0])+n;if(this.style.left){var a=Number(this.style.left.split("px")[0])+t;this.style={position:"fixed",left:a+"px",top:o+"px",width:i+"px",height:r+"px"}}else{var s=Number(this.style.right.split("px")[0])-t;this.style={position:"fixed",right:s+"px",top:o+"px",width:i+"px",height:r+"px"}}},e.prototype.validate=function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<290||e.rectangle.height<260))},e.prototype.onResizeEnd=function(e){this.style={position:"fixed",left:e.rectangle.left+"px",top:e.rectangle.top+"px",width:e.rectangle.width+"px",height:e.rectangle.height+"px"},this.styleInside={height:e.rectangle.height-120+"px"}},e.prototype.toogleTopologyVisibility=function(e){this.isTopologyVisible=e},e.prototype.compareAsc=function(e,t){return e.name<t.name?-1:1},e.prototype.compareDesc=function(e,t){return e.name<t.name?1:-1},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.setSortingOrder=function(){this.filteredNodes=this.filteredNodes.sort("asc"===this.sortingOrder?this.compareAsc:this.compareDesc)},e.prototype.applyStatusFilter=function(e){"started"===e?this.startedStatusFilterEnabled=!this.startedStatusFilterEnabled:"stopped"===e?this.stoppedStatusFilterEnabled=!this.stoppedStatusFilterEnabled:"suspended"===e&&(this.suspendedStatusFilterEnabled=!this.suspendedStatusFilterEnabled),this.applyFilters()},e.prototype.applyCaptureFilter=function(e){"capture"===e?this.captureFilterEnabled=!this.captureFilterEnabled:"packet"===e&&(this.packetFilterEnabled=!this.packetFilterEnabled),this.applyFilters()},e.prototype.applyFilters=function(){var e=[];this.startedStatusFilterEnabled&&(e=e.concat(this.nodes.filter((function(e){return"started"===e.status})))),this.stoppedStatusFilterEnabled&&(e=e.concat(this.nodes.filter((function(e){return"stopped"===e.status})))),this.suspendedStatusFilterEnabled&&(e=e.concat(this.nodes.filter((function(e){return"suspended"===e.status})))),this.startedStatusFilterEnabled||this.stoppedStatusFilterEnabled||this.suspendedStatusFilterEnabled||(e=e.concat(this.nodes)),this.captureFilterEnabled&&(e=this.checkCapturing(e)),this.packetFilterEnabled&&(e=this.checkPacketFilters(e)),this.filteredNodes=e.sort("asc"===this.sortingOrder?this.compareAsc:this.compareDesc)},e.prototype.checkCapturing=function(e){var t=this.linksDataSource.getItems(),n=[];t.forEach((function(e){e.capturing&&e.nodes.forEach((function(e){n.push(e.node_id)}))}));var i=[];return e.forEach((function(e){n.includes(e.node_id)&&i.push(e)})),i},e.prototype.checkPacketFilters=function(e){var t=this.linksDataSource.getItems(),n=[];t.forEach((function(e){(e.filters.bpf||e.filters.corrupt||e.filters.corrupt||e.filters.packet_loss||e.filters.frequency_drop)&&e.nodes.forEach((function(e){n.push(e.node_id)}))}));var i=[];return e.forEach((function(e){n.includes(e.node_id)&&i.push(e)})),i},e.prototype.close=function(){this.closeTopologySummary.emit(!1)},e.\u0275fac=function(t){return new(t||e)(_a(c6),_a(GK),_a(one),_a(O6),_a(Aee))},e.\u0275cmp=ze({type:e,selectors:[["app-topology-summary"]],inputs:{server:"server",project:"project"},outputs:{closeTopologySummary:"closeTopologySummary"},decls:2,vars:2,consts:[[3,"mousemove","mouseup",4,"ngIf"],["class","summaryWrapper","mwlResizable","",3,"ngStyle","ngClass","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd",4,"ngIf"],[3,"mousemove","mouseup"],["mwlResizable","",1,"summaryWrapper",3,"ngStyle","ngClass","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"summaryHeader"],["mat-button","",1,"titleButton",3,"ngClass","click"],[1,"closeButton",3,"click"],[3,"ngClass"],[1,"divider"],[1,"summaryFilters"],["placeholder","Filter nodes","multiple",""],["label","Status filter"],["value","started",3,"onSelectionChange"],["value","suspended",3,"onSelectionChange"],["value","stopped",3,"onSelectionChange"],["label","Capture filter"],["value","capture",3,"onSelectionChange"],["value","packet",3,"onSelectionChange"],[1,"summarySorting"],["placeholder","Sorting",3,"value","selectionChange","valueChange"],["value","asc"],["value","desc"],[1,"summaryContent",3,"ngStyle"],["class","nodeRow",4,"ngFor","ngForOf"],[1,"summaryContentServers"],[1,"nodeRow"],["width","10","height","10",4,"ngIf"],[4,"ngIf"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status_started"],["x","0","y","0","width","10","height","10","fill","yellow",1,"status_suspended"],["x","0","y","0","width","10","height","10","fill","red",1,"status_stopped"]],template:function(e,t){1&e&&(ba(0,Cse,1,0,"div",0),ba(1,Rse,37,24,"div",1)),2&e&&(ka("ngIf",t.isDraggingEnabled),ar(1),ka("ngIf",t.projectsStatistics))},directives:[Hh,Qae,Yh,Rh,h$,P$,B5,H0,TY,DY,Nh],styles:[".summaryWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);position:fixed;top:20px;right:20px;height:400px;width:300px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:#fff!important;color:#000}.summaryHeaderMenu[_ngcontent-%COMP%]{height:24px}.summaryHeader[_ngcontent-%COMP%]{width:100%;height:34px;display:flex;justify-content:space-between;margin-right:5px}.summaryFilters[_ngcontent-%COMP%], .summarySorting[_ngcontent-%COMP%]{height:25px;margin-left:5px;margin-right:5px}.summaryContent[_ngcontent-%COMP%], .summaryContentServers[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px;overflow:auto;scrollbar-color:#a9a9a9 #263238;scrollbar-width:thin}.summaryContentServers[_ngcontent-%COMP%]{max-height:350px}.titleButton[_ngcontent-%COMP%]{margin-left:5px;margin-top:4px;outline:none}.marked[_ngcontent-%COMP%]{color:#0097a7}.divider[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px;width:100%;height:2px}.nodeRow[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;padding-right:5px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.radio-group-wrapper[_ngcontent-%COMP%]{margin-top:5px}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.closeButton[_ngcontent-%COMP%]{cursor:pointer;font-size:24px;margin-top:8px;margin-right:5px}.filterBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.notvisible[_ngcontent-%COMP%]{display:none}"]}),e}();function Fse(e,t){if(1&e){var n=Pa();Sa(0,"app-d3-map",20),Ia("nodeDragged",(function(e){return Dt(n),Ba(2).onNodeDragged(e)}))("drawingDragged",(function(e){return Dt(n),Ba(2).onDrawingDragged(e)}))("onLinkCreated",(function(e){return Dt(n),Ba(2).onLinkCreated(e)}))("onDrawingResized",(function(e){return Dt(n),Ba(2).onDrawingResized(e)})),xa()}if(2&e){var i=Ba(2);ka("server",i.server)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function Nse(e,t){if(1&e&&Oa(0,"app-experimental-map",21),2&e){var n=Ba(2);ka("symbols",n.symbols)("nodes",n.nodes)("links",n.links)("drawings",n.drawings)("width",n.project.scene_width)("height",n.project.scene_height)("show-interface-labels",n.isInterfaceLabelVisible)("selection-tool",n.tools.selection)("moving-tool",n.tools.moving)("draw-link-tool",n.tools.draw_link)("readonly",n.inReadOnlyMode)}}function Bse(e,t){if(1&e&&(Sa(0,"mat-toolbar-row"),Sa(1,"button",35),Oa(2,"mat-icon",36),xa(),xa()),2&e){Ba();var n=ya(5);ar(1),ka("matMenuTriggerFor",n)}}function Hse(e,t){if(1&e&&(Sa(0,"mat-toolbar-row"),Sa(1,"button",35),Oa(2,"mat-icon",37),xa(),xa()),2&e){Ba();var n=ya(5);ar(1),ka("matMenuTriggerFor",n)}}function zse(e,t){if(1&e){var n=Pa();Sa(0,"mat-toolbar-row"),Sa(1,"app-template",38),Ia("onNodeCreation",(function(e){return Dt(n),Ba(3).onNodeCreation(e)})),xa(),xa()}if(2&e){var i=Ba(3);ar(1),ka("server",i.server)("project",i.project)}}function Vse(e,t){if(1&e){var n=Pa();Sa(0,"mat-toolbar-row"),Sa(1,"button",39),Ia("click",(function(){return Dt(n),Ba(3).toggleDrawLineMode()})),Sa(2,"mat-icon"),_s(3,"timeline"),xa(),xa(),xa()}if(2&e){var i=Ba(3);ar(1),ka("color",i.tools.draw_link?"primary":"basic")}}function qse(e,t){if(1&e&&(Sa(0,"mat-toolbar-row"),Oa(1,"app-snapshot-menu-item",7),xa()),2&e){var n=Ba(3);ar(1),ka("server",n.server)("project",n.project)}}function Use(e,t){if(1&e){var n=Pa();Sa(0,"mat-toolbar-row"),Sa(1,"button",40),Ia("click",(function(){return Dt(n),Ba(3).fitInView()})),Sa(2,"mat-icon"),_s(3,"fullscreen"),xa(),xa(),xa()}}function Gse(e,t){if(1&e){var n=Pa();Sa(0,"mat-toolbar-row"),Sa(1,"button",41),Ia("click",(function(){return Dt(n),Ba(3).centerView()})),Sa(2,"mat-icon"),_s(3,"center_focus_strong"),xa(),xa(),xa()}}var Wse=function(e){return{lightTheme:e}},Kse=function(e){return["/server",e,"projects"]},Xse=function(){return["/servers"]};function Yse(e,t){if(1&e){var n=Pa();Sa(0,"div",22),Sa(1,"mat-toolbar",23),ba(2,Bse,3,1,"mat-toolbar-row",24),ba(3,Hse,3,1,"mat-toolbar-row",24),Sa(4,"mat-menu",25,26),Sa(6,"button",27),Sa(7,"mat-icon"),_s(8,"work"),xa(),Sa(9,"span"),_s(10,"Go to projects"),xa(),xa(),Sa(11,"button",27),Sa(12,"mat-icon"),_s(13,"developer_board"),xa(),Sa(14,"span"),_s(15,"Go to servers"),xa(),xa(),Sa(16,"button",27),Sa(17,"mat-icon"),_s(18,"settings_applications"),xa(),Sa(19,"span"),_s(20,"Go to preferences"),xa(),xa(),Sa(21,"button",27),Sa(22,"mat-icon"),_s(23,"info"),xa(),Sa(24,"span"),_s(25,"Go to system status"),xa(),xa(),Sa(26,"button",28),Ia("click",(function(){return Dt(n),Ba(2).addNewTemplate()})),Sa(27,"mat-icon"),_s(28,"control_point"),xa(),Sa(29,"span"),_s(30,"New template"),xa(),xa(),Oa(31,"app-import-appliance",7),Sa(32,"button",29),Sa(33,"mat-icon"),_s(34,"settings"),xa(),Sa(35,"span"),_s(36,"Project settings"),xa(),xa(),Sa(37,"button",29),Sa(38,"mat-icon"),_s(39,"view_module"),xa(),Sa(40,"span"),_s(41,"Map settings"),xa(),xa(),xa(),Sa(42,"mat-menu",25,30),Sa(44,"div"),Sa(45,"button",28),Ia("click",(function(){return Dt(n),Ba(2).addNewProject()})),Sa(46,"mat-icon"),_s(47,"add"),xa(),Sa(48,"span"),_s(49,"Add new blank project"),xa(),xa(),Sa(50,"button",28),Ia("click",(function(){return Dt(n),Ba(2).saveProject()})),Sa(51,"mat-icon"),_s(52,"save"),xa(),Sa(53,"span"),_s(54,"Save project as"),xa(),xa(),Sa(55,"button",28),Ia("click",(function(){return Dt(n),Ba(2).editProject()})),Sa(56,"mat-icon"),_s(57,"edit"),xa(),Sa(58,"span"),_s(59,"Edit project"),xa(),xa(),Sa(60,"button",28),Ia("click",(function(){return Dt(n),Ba(2).exportProject()})),Sa(61,"mat-icon"),_s(62,"call_made"),xa(),Sa(63,"span"),_s(64,"Export portable project"),xa(),xa(),Sa(65,"button",28),Ia("click",(function(){return Dt(n),Ba(2).importProject()})),Sa(66,"mat-icon"),_s(67,"call_received"),xa(),Sa(68,"span"),_s(69,"Import portable project"),xa(),xa(),Sa(70,"button",28),Ia("click",(function(){return Dt(n),Ba(2).closeProject()})),Sa(71,"mat-icon"),_s(72,"close"),xa(),Sa(73,"span"),_s(74,"Close project"),xa(),xa(),Sa(75,"button",28),Ia("click",(function(){return Dt(n),Ba(2).deleteProject()})),Sa(76,"mat-icon"),_s(77,"delete"),xa(),Sa(78,"span"),_s(79,"Delete project"),xa(),xa(),xa(),xa(),Sa(80,"mat-menu",25,31),Sa(82,"div",32),Sa(83,"mat-checkbox",33),Ia("change",(function(e){return Dt(n),Ba(2).toggleShowInterfaceLabels(e.checked)})),_s(84," Show interface labels "),xa(),Oa(85,"br"),Sa(86,"mat-checkbox",33),Ia("change",(function(e){return Dt(n),Ba(2).toggleShowConsole(e.checked)})),_s(87," Show console "),xa(),Oa(88,"br"),Sa(89,"mat-checkbox",33),Ia("change",(function(e){return Dt(n),Ba(2).toggleShowTopologySummary(e.checked)})),_s(90," Show topology/servers summary "),xa(),Oa(91,"br"),Sa(92,"mat-checkbox",33),Ia("change",(function(e){return Dt(n),Ba(2).toggleNotifications(e.checked)})),_s(93," Show notifications "),xa(),Oa(94,"br"),Sa(95,"mat-checkbox",33),Ia("change",(function(e){return Dt(n),Ba(2).toggleLayers(e.checked)})),_s(96," Show layers "),xa(),Oa(97,"br"),Sa(98,"mat-checkbox",33),Ia("change",(function(e){return Dt(n),Ba(2).toggleGrid(e.checked)})),_s(99," Show grid "),xa(),Oa(100,"br"),Sa(101,"mat-checkbox",33),Ia("change",(function(e){return Dt(n),Ba(2).toggleSnapToGrid(e.checked)})),_s(102," Snap to grid "),xa(),Oa(103,"br"),xa(),xa(),ba(104,zse,2,2,"mat-toolbar-row",24),ba(105,Vse,4,1,"mat-toolbar-row",24),Sa(106,"mat-toolbar-row"),Sa(107,"button",34),Ia("click",(function(){return Dt(n),Ba(2).toggleMovingMode()})),Sa(108,"mat-icon"),_s(109,"zoom_out_map"),xa(),xa(),xa(),ba(110,qse,2,2,"mat-toolbar-row",24),ba(111,Use,4,0,"mat-toolbar-row",24),ba(112,Gse,4,0,"mat-toolbar-row",24),xa(),xa()}if(2&e){var i=ya(43),r=ya(81),o=Ba(2);ar(1),ka("ngClass",Bc(27,Wse,o.isLightThemeEnabled)),ar(1),ka("ngIf",!o.isLightThemeEnabled),ar(1),ka("ngIf",o.isLightThemeEnabled),ar(1),ka("overlapTrigger",!1),ar(2),ka("routerLink",Bc(29,Kse,o.server.id)),ar(5),ka("routerLink",Nc(31,Xse)),ar(5),Ua("routerLink","/server/",o.server.id,"/preferences"),ar(5),Ua("routerLink","/server/",o.server.id,"/systemstatus"),ar(10),ka("server",o.server)("project",o.project),ar(1),ka("matMenuTriggerFor",i),ar(5),ka("matMenuTriggerFor",r),ar(5),ka("overlapTrigger",!1),ar(38),ka("overlapTrigger",!1),ar(3),ka("ngModel",o.isInterfaceLabelVisible),ar(3),ka("ngModel",o.isConsoleVisible),ar(3),ka("ngModel",o.isTopologySummaryVisible),ar(3),ka("ngModel",o.notificationsVisibility),ar(3),ka("ngModel",o.layersVisibility),ar(3),ka("ngModel",o.gridVisibility),ar(3),ka("ngModel",o.project.snap_to_grid),ar(3),ka("ngIf",!o.readonly),ar(1),ka("ngIf",!o.readonly),ar(2),ka("color",o.tools.moving?"primary":"basic"),ar(3),ka("ngIf",!o.readonly),ar(1),ka("ngIf",!o.readonly),ar(1),ka("ngIf",!o.readonly)}}var Zse=function(e,t){return{lightTheme:e,shadowed:t}};function Qse(e,t){if(1&e){var n=Pa();Sa(0,"div",42),Sa(1,"button",43),Ia("click",(function(){return Dt(n),Ba(2).showMenu()})),Sa(2,"mat-icon",44),_s(3,"keyboard_arrow_right"),xa(),xa(),xa()}if(2&e){var i=Ba(2);ka("ngClass",Hc(2,Zse,i.isLightThemeEnabled,!i.isProjectMapMenuVisible)),ar(1),ka("ngClass",Bc(5,Wse,i.isLightThemeEnabled))}}var $se=function(e,t){return{lightTheme:e,extended:t}};function Jse(e,t){if(1&e){var n=Pa();Sa(0,"div",45),Oa(1,"app-nodes-menu",7),Oa(2,"mat-divider",46),Oa(3,"app-project-map-menu",7),Sa(4,"button",43),Ia("click",(function(){return Dt(n),Ba(2).hideMenu()})),Sa(5,"mat-icon",44),_s(6,"keyboard_arrow_left"),xa(),xa(),xa()}if(2&e){var i=Ba(2);ka("ngClass",Hc(7,$se,i.isLightThemeEnabled,i.isProjectMapMenuVisible)),ar(1),ka("server",i.server)("project",i.project),ar(1),ka("vertical",!0),ar(1),ka("server",i.server)("project",i.project),ar(1),ka("ngClass",Bc(10,Wse,i.isLightThemeEnabled))}}function ece(e,t){if(1&e&&(Sa(0,"div",13),ba(1,Fse,1,10,"app-d3-map",14),ba(2,Nse,1,11,"app-experimental-map",15),ba(3,Yse,113,32,"div",16),ba(4,Qse,4,7,"div",17),ba(5,Jse,7,12,"div",18),Oa(6,"app-context-menu",19),Oa(7,"app-context-console-menu",19),xa()),2&e){var n=Ba();ar(1),ka("ngIf",!n.settings.angular_map),ar(1),ka("ngIf",n.settings.angular_map),ar(1),ka("ngIf",n.toolbarVisibility),ar(1),ka("ngIf",n.toolbarVisibility),ar(1),ka("ngIf",n.toolbarVisibility),ar(1),ka("project",n.project)("server",n.server),ar(1),ka("project",n.project)("server",n.server)}}function tce(e,t){if(1&e&&Oa(0,"app-project-map-shortcuts",19),2&e){var n=Ba();ka("project",n.project)("server",n.server)}}function nce(e,t){1&e&&Oa(0,"app-draw-link-tool",47),2&e&&ka("links",Ba().links)}function ice(e,t){if(1&e){var n=Pa();Sa(0,"app-console-wrapper",48),Ia("closeConsole",(function(e){return Dt(n),Ba().toggleShowConsole(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("project",i.project)}}function rce(e,t){if(1&e){var n=Pa();Sa(0,"app-topology-summary",49),Ia("closeTopologySummary",(function(e){return Dt(n),Ba().toggleShowTopologySummary(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("project",i.project)}}var oce=function(e){return{visible:e}},ace=function(){function e(e,t,n,i,r,o,a,s,c,l,u,h,d,f,p,m,g,v,b,y,w,k,C,S,x,O,M,T,E,P,j,A,I,D,R,L,F,N,B,H,z,V,q,U){this.route=e,this.serverService=t,this.projectService=n,this.nodeService=i,this.drawingService=r,this.progressService=o,this.projectWebServiceHandler=a,this.mapChangeDetectorRef=s,this.nodeWidget=c,this.drawingsWidget=l,this.linkWidget=u,this.labelWidget=h,this.interfaceLabelWidget=d,this.mapNodeToNode=f,this.mapDrawingToDrawing=p,this.mapLabelToLabel=m,this.mapLinkToLink=g,this.mapLinkNodeToLinkNode=v,this.nodesDataSource=b,this.linksDataSource=y,this.drawingsDataSource=w,this.settingsService=k,this.toolsService=C,this.selectionManager=S,this.selectionTool=x,this.recentlyOpenedProjectService=O,this.movingEventSource=M,this.mapScaleService=T,this.nodeCreatedLabelStylesFixer=E,this.toasterService=P,this.dialog=j,this.router=A,this.mapNodesDataSource=I,this.mapLinksDataSource=D,this.mapDrawingsDataSource=R,this.mapSymbolsDataSource=L,this.mapSettingsService=F,this.ethernetLinkWidget=N,this.serialLinkWidget=B,this.bottomSheet=H,this.notificationService=z,this.themeService=V,this.title=q,this.nodeConsoleService=U,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.isProjectMapMenuVisible=!1,this.isConsoleVisible=!0,this.isTopologySummaryVisible=!0,this.isInterfaceLabelVisible=!1,this.notificationsVisibility=!1,this.layersVisibility=!1,this.gridVisibility=!1,this.toolbarVisibility=!0,this.tools={selection:!0,moving:!1,draw_link:!1,text_editing:!0},this.inReadOnlyMode=!1,this.scrollX=0,this.scrollY=0,this.scrollEnabled=!1,this.isLightThemeEnabled=!1,this.projectMapSubscription=new _.a}return e.prototype.ngOnInit=function(){var e=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.settings=this.settingsService.getAll(),this.isTopologySummaryVisible=this.mapSettingsService.isTopologySummaryVisible,this.isConsoleVisible=this.mapSettingsService.isLogConsoleVisible,this.mapSettingsService.logConsoleSubject.subscribe((function(t){return e.isConsoleVisible=t})),this.progressService.activate(),this.serverService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.serverService.serviceInitialized.subscribe((function(t){t&&e.getData()}))),this.projectMapSubscription.add(this.mapSettingsService.mapRenderedEmitter.subscribe((function(t){e.scrollEnabled&&e.centerCanvas()}))),this.projectMapSubscription.add(this.drawingsDataSource.changes.subscribe((function(t){e.drawings=t,e.mapChangeDetectorRef.detectChanges()}))),this.projectMapSubscription.add(this.nodesDataSource.changes.subscribe((function(t){e.server&&(t.forEach((function(t){t.symbol_url="http://"+e.server.host+":"+e.server.port+"/v2/symbols/"+t.symbol+"/raw"})),e.nodes=t,e.mapChangeDetectorRef.detectChanges())}))),this.projectMapSubscription.add(this.linksDataSource.changes.subscribe((function(t){e.links=t,e.mapChangeDetectorRef.detectChanges()}))),this.projectMapSubscription.add(this.projectWebServiceHandler.errorNotificationEmitter.subscribe((function(t){e.showMessage({type:"error",message:t})}))),this.projectMapSubscription.add(this.projectWebServiceHandler.warningNotificationEmitter.subscribe((function(t){e.showMessage({type:"warning",message:t})}))),this.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility"),this.addKeyboardListeners()},e.prototype.getData=function(){var e=this,t=this.route.paramMap.subscribe((function(t){var n=parseInt(t.get("server_id"),10);Object(pf.a)(e.serverService.get(n)).pipe(Object(PU.b)((function(n){return n||e.router.navigate(["/servers"]),e.server=n,e.projectService.get(n,t.get("project_id")).pipe(Object(mf.a)((function(e){return e})))})),Object(PU.b)((function(t){return e.project=t,t||e.router.navigate(["/servers"]),e.projectService.open(e.server,e.project.project_id),e.title.setTitle(e.project.name),e.isInterfaceLabelVisible=e.mapSettingsService.showInterfaceLabels,e.recentlyOpenedProjectService.setServerId(e.server.id.toString()),e.recentlyOpenedProjectService.setProjectId(e.project.project_id),"opened"===e.project.status?new k.a((function(t){t.next(e.project)})):e.projectService.open(e.server,e.project.project_id)}))).subscribe((function(t){e.onProjectLoad(t)}),(function(t){e.progressService.setError(t)}),(function(){e.progressService.deactivate()}))}));this.projectMapSubscription.add(t)},e.prototype.addKeyboardListeners=function(){var e=this;Mousetrap.bind("ctrl++",(function(t){t.preventDefault(),e.zoomIn()})),Mousetrap.bind("ctrl+-",(function(t){t.preventDefault(),e.zoomOut()})),Mousetrap.bind("ctrl+0",(function(t){t.preventDefault(),e.resetZoom()})),Mousetrap.bind("ctrl+a",(function(t){t.preventDefault();var n=e.mapNodesDataSource.getItems(),i=e.mapDrawingsDataSource.getItems(),r=e.mapLinksDataSource.getItems(),o=e.mapSymbolsDataSource.getItems();e.selectionManager.setSelected(n.concat(i).concat(r).concat(o))})),Mousetrap.bind("ctrl+h",(function(t){t.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility})),Mousetrap.bind("ctrl+shift+a",(function(t){t.preventDefault(),e.selectionManager.setSelected([])})),Mousetrap.bind("ctrl+shift+s",(function(t){t.preventDefault(),e.router.navigate(["/server",e.server.id,"preferences"])}))},e.prototype.onProjectLoad=function(e){var t=this;this.readonly=this.projectService.isReadOnly(e);var n=this.projectService.nodes(this.server,e.project_id).pipe(Object(PU.b)((function(n){return t.nodesDataSource.set(n),t.projectService.links(t.server,e.project_id)})),Object(PU.b)((function(n){return t.linksDataSource.set(n),t.projectService.drawings(t.server,e.project_id)}))).subscribe((function(n){t.drawingsDataSource.set(n),t.setUpMapCallbacks(),t.setUpProjectWS(e),t.progressService.deactivate()}));this.projectMapSubscription.add(n)},e.prototype.setUpProjectWS=function(e){var t=this;this.projectws=new WebSocket(this.projectService.notificationsPath(this.server,e.project_id)),this.projectws.onmessage=function(e){t.projectWebServiceHandler.handleMessage(JSON.parse(e.data))},this.projectws.onerror=function(e){t.toasterService.error("Connection to host lost. Error: "+e.data)}},e.prototype.setUpWS=function(){this.ws=new WebSocket(this.notificationService.notificationsPath(this.server))},e.prototype.setUpMapCallbacks=function(){var e=this;this.readonly||this.toolsService.selectionToolActivation(!0);var t=this.linkWidget.onContextMenu.subscribe((function(t){var n=e.mapLinkToLink.convert(t.link);e.contextMenu.openMenuForListOfElements([],[],[],[n],t.event.pageY,t.event.pageX)})),n=this.ethernetLinkWidget.onContextMenu.subscribe((function(t){var n=e.mapLinkToLink.convert(t.link);e.contextMenu.openMenuForListOfElements([],[],[],[n],t.event.pageY,t.event.pageX)})),i=this.serialLinkWidget.onContextMenu.subscribe((function(t){var n=e.mapLinkToLink.convert(t.link);e.contextMenu.openMenuForListOfElements([],[],[],[n],t.event.pageY,t.event.pageX)})),r=this.nodeWidget.onContextMenu.subscribe((function(t){var n=e.mapNodeToNode.convert(t.node);e.contextMenu.openMenuForNode(n,t.event.pageY,t.event.pageX)})),o=this.drawingsWidget.onContextMenu.subscribe((function(t){var n=e.mapDrawingToDrawing.convert(t.drawing);e.contextMenu.openMenuForDrawing(n,t.event.pageY,t.event.pageX)})),a=this.labelWidget.onContextMenu.subscribe((function(t){var n=e.mapLabelToLabel.convert(t.label),i=e.nodes.find((function(e){return e.node_id===t.label.nodeId}));e.contextMenu.openMenuForLabel(n,i,t.event.pageY,t.event.pageX)})),s=this.interfaceLabelWidget.onContextMenu.subscribe((function(t){var n=e.mapLinkNodeToLinkNode.convert(t.interfaceLabel),i=e.links.find((function(e){return e.link_id===t.interfaceLabel.linkId}));e.contextMenu.openMenuForInterfaceLabel(n,i,t.event.pageY,t.event.pageX)})),c=this.selectionTool.contextMenuOpened.subscribe((function(t){var n=e.selectionManager.getSelected();if(!(n.length<2)&&t instanceof MouseEvent){var i=[],r=[],o=[],a=[];n.forEach((function(t){t instanceof p6?i.push(e.mapDrawingToDrawing.convert(t)):t instanceof r7?r.push(e.mapNodeToNode.convert(t)):t instanceof o7?o.push(e.mapLabelToLabel.convert(t)):t instanceof p7&&a.push(e.mapLinkToLink.convert(t))})),e.contextMenu.openMenuForListOfElements(i,r,o,a,t.pageY,t.pageX)}})),l=this.nodeWidget.onContextConsoleMenu.subscribe((function(t){var n=e.mapNodeToNode.convert(t.node);e.consoleContextMenu.openMenu(n,t.event.pageY,t.event.pageX)}));this.projectMapSubscription.add(t),this.projectMapSubscription.add(n),this.projectMapSubscription.add(i),this.projectMapSubscription.add(r),this.projectMapSubscription.add(o),this.projectMapSubscription.add(c),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.projectMapSubscription.add(l),this.mapChangeDetectorRef.detectChanges()},e.prototype.onNodeCreation=function(e){var t=this;e&&(this.progressService.activate(),this.nodeService.createFromTemplate(this.server,this.project,e.template,e.x,e.y,e.server).subscribe((function(n){t.projectService.nodes(t.server,t.project.project_id).subscribe((function(n){n.filter((function(e){return null===e.label.style})).forEach((function(e){var n=t.nodeCreatedLabelStylesFixer.fix(e);t.nodeService.updateLabel(t.server,e,n.label).subscribe()})),t.nodesDataSource.set(n),e.numberOfNodes--,e.numberOfNodes>0?(e.x=e.x+50<t.project.scene_width/2?e.x+50:e.x,e.y=e.y+50<t.project.scene_height/2?e.y+50:e.y,t.onNodeCreation(e)):t.progressService.deactivate()}))}),(function(e){t.toasterService.error(e.error.message),t.progressService.deactivate()})))},e.prototype.fitInView=function(){if(this.drawings.forEach((function(e){var t=e.svg.split('"'),n=parseInt(t[1],10),i=parseInt(t[3],10);e.element={width:i,height:n}})),0!==this.nodes.length||0!==this.drawings.length){var e,t,n,i,r=[];this.nodes.forEach((function(e){var t=new sce;t.node=e,t.top=e.y,t.left=e.x,t.bottom=e.y+e.height,t.right=e.x+e.width,e.y+e.label.y<t.top&&(t.top=e.y+e.label.y),e.x+e.label.x<t.left&&(t.left=e.x+e.label.x),e.y+e.label.y>t.bottom&&(t.bottom=e.y+e.label.y),e.x+e.label.x>t.right&&(t.right=e.x+e.label.x),r.push(t)}));var o=r.sort((function(e,t){return e.left-t.left}))[0],a=r.sort((function(e,t){return e.right-t.right}))[r.length-1],s=r.sort((function(e,t){return e.top-t.top}))[0],c=r.sort((function(e,t){return e.bottom-t.bottom}))[r.length-1],l=[];this.drawings.forEach((function(e){var t=new cce;t.drawing=e,t.top=e.y,t.left=e.x,t.bottom=e.y+e.element.height,t.right=e.x+e.element.width,l.push(t)}));var u=l.sort((function(e,t){return e.left-t.left}))[0],h=l.sort((function(e,t){return e.right-t.right}))[l.length-1],d=l.sort((function(e,t){return e.top-t.top}))[0],f=l.sort((function(e,t){return e.bottom-t.bottom}))[l.length-1];u&&o?(e=o.left<u.left?o.left:u.left,t=a.right>h.right?a.right:h.right,n=s.top<d.top?s.top:d.top,i=c.bottom>f.bottom?c.bottom:f.bottom):o&&!u?(e=o.left,t=a.right,n=s.top,i=c.bottom):u&&!o?(e=u.left,t=h.right,n=d.top,i=f.bottom):(e=0,t=0,n=0,i=0),e-=20,t+=20,n-=20,i+=20;var p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,g=t-e,v=i-n,b=v/m,y=1/Math.max(g/p,b);y!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(y),this.project.scene_width=this.project.scene_width*y,this.project.scene_height=this.project.scene_height*y,b<g?(this.scrollX=e*y-(p-g*y)/2+this.project.scene_width/2,this.scrollY=n*y+this.project.scene_height/2):(this.scrollX=e*y+this.project.scene_width/2,this.scrollY=n*y-(m-v*y)/2+this.project.scene_height/2)):(this.scrollX=e*y+this.project.scene_width/2,this.scrollY=n*y+this.project.scene_height/2),this.scrollEnabled=!0}},e.prototype.centerCanvas=function(){window.scrollTo(this.scrollX,this.scrollY),this.scrollEnabled=!1},e.prototype.centerView=function(){if(this.project){var e=this.project.scene_width-document.documentElement.clientWidth>0?(this.project.scene_width-document.documentElement.clientWidth)/2:0,t=this.project.scene_height-document.documentElement.clientHeight>0?(this.project.scene_height-document.documentElement.clientHeight)/2:0;window.scrollTo(e,t)}else this.toasterService.error("Please wait until all components are loaded.")},e.prototype.onDrawingSaved=function(){this.projectMapMenuComponent.resetDrawToolChoice()},Object.defineProperty(e.prototype,"readonly",{get:function(){return this.inReadOnlyMode},set:function(e){this.inReadOnlyMode=e,e?(this.tools.selection=!1,this.toolsService.selectionToolActivation(!1)):(this.tools.selection=!0,this.toolsService.selectionToolActivation(!0))},enumerable:!1,configurable:!0}),e.prototype.toggleMovingMode=function(){this.tools.moving=!this.tools.moving,this.movingEventSource.movingModeState.emit(this.tools.moving),this.readonly||(this.tools.selection=!this.tools.moving,this.toolsService.selectionToolActivation(this.tools.selection))},e.prototype.toggleDrawLineMode=function(){this.tools.draw_link=!this.tools.draw_link,this.toolsService.drawLinkToolActivation(this.tools.draw_link)},e.prototype.toggleShowInterfaceLabels=function(e){this.isInterfaceLabelVisible=e,this.mapSettingsService.toggleShowInterfaceLabels(this.isInterfaceLabelVisible),this.mapSettingsService.mapRenderedEmitter.emit(!0)},e.prototype.toggleShowConsole=function(e){this.isConsoleVisible=e,this.mapSettingsService.toggleLogConsole(this.isConsoleVisible)},e.prototype.toggleShowTopologySummary=function(e){this.isTopologySummaryVisible=e,this.mapSettingsService.toggleTopologySummary(this.isTopologySummaryVisible)},e.prototype.toggleNotifications=function(e){this.notificationsVisibility=e,this.notificationsVisibility?localStorage.setItem("notificationsVisibility","true"):localStorage.removeItem("notificationsVisibility")},e.prototype.toggleLayers=function(e){this.layersVisibility=e,this.mapSettingsService.toggleLayers(e),this.layersVisibility?localStorage.setItem("layersVisibility","true"):localStorage.removeItem("layersVisibility"),this.mapChild.applyMapSettingsChanges()},e.prototype.toggleGrid=function(e){this.gridVisibility=e,this.gridVisibility?localStorage.setItem("gridVisibility","true"):localStorage.removeItem("gridVisibility"),this.mapChild.gridVisibility=this.gridVisibility?1:0},e.prototype.toggleSnapToGrid=function(e){this.project.snap_to_grid=e},e.prototype.showMessage=function(e){this.notificationsVisibility&&("error"===e.type&&this.toasterService.error(e.message),"warning"===e.type&&this.toasterService.warning(e.message))},e.prototype.hideMenu=function(){this.projectMapMenuComponent.resetDrawToolChoice(),this.isProjectMapMenuVisible=!1},e.prototype.showMenu=function(){this.isProjectMapMenuVisible=!0},e.prototype.zoomIn=function(){this.mapScaleService.setScale(this.mapScaleService.getScale()+.1)},e.prototype.zoomOut=function(){var e=this.mapScaleService.getScale();e-.1>0&&this.mapScaleService.setScale(e-.1)},e.prototype.resetZoom=function(){this.mapScaleService.resetToDefault()},e.prototype.addNewProject=function(){this.dialog.open(ate,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},e.prototype.saveProject=function(){var e=this.dialog.open(ute,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project},e.prototype.editProject=function(){var e=this.dialog.open(_te,{width:"600px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project},e.prototype.importProject=function(){var e=this,t="",n=this.dialog.open(tte,{width:"400px",autoFocus:!1,disableClose:!0});n.componentInstance.server=this.server;var i=n.componentInstance.onImportProject.subscribe((function(e){t=e}));n.afterClosed().subscribe((function(){if(i.unsubscribe(),t){e.bottomSheet.open(jte);var n=e.bottomSheet._openedBottomSheetRef;n.instance.projectMessage="imported project",n.afterDismissed().subscribe((function(n){n&&e.projectService.open(e.server,t).subscribe((function(){e.router.navigate(["/server",e.server.id,"project",t])}))}))}}))},e.prototype.exportProject=function(){this.nodes.filter((function(e){return"virtualbox"===e.node_type})).length>0?this.toasterService.error("Map with VirtualBox machines cannot be exported."):this.nodes.filter((function(e){return"started"===e.status&&"vpcs"===e.node_type||"started"===e.status&&"virtualbox"===e.node_type||"started"===e.status&&"vmware"===e.node_type})).length>0?this.toasterService.error("Project with running nodes cannot be exported."):location.assign(this.projectService.getExportPath(this.server,this.project))},e.prototype.uploadImageFile=function(e){this.readImageFile(e.target)},e.prototype.readImageFile=function(e){var t=this,n=e.files[0],i=new FileReader,r=new Image;i.onloadend=function(){t.drawingService.add(t.server,t.project.project_id,-r.width/2,-r.height/2,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n height="'+r.height+'" width="'+r.width+'">\n<image height="'+r.height+'" width="'+r.width+'" \n xlink:href="'+i.result+'"/>\n</svg>').subscribe((function(){}))},r.onload=function(){i.readAsDataURL(n)},r.src=window.URL.createObjectURL(n)},e.prototype.closeProject=function(){var e=this;this.bottomSheet.open(Ite);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to close the project?",t.afterDismissed().subscribe((function(t){t&&e.projectService.close(e.server,e.project.project_id).subscribe((function(){e.router.navigate(["/server",e.server.id,"projects"])}))}))},e.prototype.deleteProject=function(){var e=this;this.bottomSheet.open(Ite);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete the project?",t.afterDismissed().subscribe((function(t){t&&e.projectService.delete(e.server,e.project.project_id).subscribe((function(){e.router.navigate(["/server",e.server.id,"projects"])}))}))},e.prototype.addNewTemplate=function(){var e=this.dialog.open($ie,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project},e.prototype.ngOnDestroy=function(){this.nodeConsoleService.openConsoles=0,this.title.setTitle("GNS3 Web UI"),this.drawingsDataSource.clear(),this.nodesDataSource.clear(),this.linksDataSource.clear(),this.projectws&&this.projectws.OPEN&&this.projectws.close(),this.ws&&this.ws.OPEN&&this.ws.close(),this.projectMapSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(GK),_a(D$),_a(a6),_a(t7),_a(J8),_a(n7),_a(Z7),_a(l9),_a(T9),_a(X7),_a(x9),_a(f9),_a($9),_a(u9),_a(tee),_a(eee),_a(c6),_a(O6),_a(u6),_a(UK),_a(I9),_a(j7),_a(y9),_a(J9),_a(N9),_a(R9),_a(nee),_a(iJ),_a(nQ),_a(nK),_a(w7),_a(C7),_a(x7),_a(M7),_a(I4),_a(S9),_a(k9),_a(Ete),_a(Dte),_a(Aee),_a(sf),_a(A4))},e.\u0275cmp=ze({type:e,selectors:[["app-project-map"]],viewQuery:function(e,t){var n;1&e&&(cl(Z8,!0),cl($8,!0),cl(Q9,!0),cl(Uee,!0)),2&e&&(al(n=fl())&&(t.contextMenu=n.first),al(n=fl())&&(t.consoleContextMenu=n.first),al(n=fl())&&(t.mapChild=n.first),al(n=fl())&&(t.projectMapMenuComponent=n.first))},decls:26,vars:35,consts:[["class","project-map",4,"ngIf"],[1,"zoom-buttons",3,"ngClass"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip",1,"zoom-button",3,"ngClass","click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip",1,"zoom-button",3,"ngClass","click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip",1,"zoom-button",3,"ngClass","click"],[3,"project","server",4,"ngIf"],[3,"links",4,"ngIf"],[3,"server","project"],[3,"server"],[3,"server","project","drawingSaved"],[3,"ngClass"],[3,"server","project","closeConsole",4,"ngIf"],[3,"server","project","closeTopologySummary",4,"ngIf"],[1,"project-map"],[3,"server","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized",4,"ngIf"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly",4,"ngIf"],["class","project-toolbar",4,"ngIf"],["id","show-menu-wrapper",3,"ngClass",4,"ngIf"],["id","menu-wrapper",3,"ngClass",4,"ngIf"],[3,"project","server"],[3,"server","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly"],[1,"project-toolbar"],["color","primary",1,"project-toolbar",3,"ngClass"],[4,"ngIf"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["matTooltip","Enable/disable moving mode","matTooltipClass","custom-tooltip","mat-icon-button","",3,"color","click"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",3,"matMenuTriggerFor"],["svgIcon","gns3"],["svgIcon","gns3black"],[3,"server","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",3,"color","click"],["matTooltip","Fit in view","matTooltipClass","custom-tooltip","mat-icon-button","",3,"click"],["matTooltip","Center view","matTooltipClass","custom-tooltip","mat-icon-button","",3,"click"],["id","show-menu-wrapper",3,"ngClass"],["mat-icon-button","",1,"arrow-button",3,"ngClass","click"],[1,"unmarked"],["id","menu-wrapper",3,"ngClass"],[1,"divider",3,"vertical"],[3,"links"],[3,"server","project","closeConsole"],[3,"server","project","closeTopologySummary"]],template:function(e,t){1&e&&(ba(0,ece,8,9,"div",0),Sa(1,"div",1),Sa(2,"button",2),Ia("click",(function(){return t.zoomIn()})),Sa(3,"mat-icon"),_s(4,"zoom_in"),xa(),xa(),Sa(5,"button",3),Ia("click",(function(){return t.resetZoom()})),Sa(6,"mat-icon"),_s(7,"adjust"),xa(),xa(),Sa(8,"button",4),Ia("click",(function(){return t.zoomOut()})),Sa(9,"mat-icon"),_s(10,"zoom_out"),xa(),xa(),xa(),Oa(11,"app-progress"),ba(12,tce,1,2,"app-project-map-shortcuts",5),ba(13,nce,1,1,"app-draw-link-tool",6),Oa(14,"app-drawing-dragged",7),Oa(15,"app-drawing-resized",8),Oa(16,"app-interface-label-dragged",8),Oa(17,"app-link-created",7),Oa(18,"app-node-dragged",7),Oa(19,"app-node-label-dragged",8),Sa(20,"app-text-added",9),Ia("drawingSaved",(function(){return t.onDrawingSaved()})),xa(),Oa(21,"app-text-edited",8),Sa(22,"div",10),ba(23,ice,1,2,"app-console-wrapper",11),xa(),Sa(24,"div",10),ba(25,rce,1,2,"app-topology-summary",12),xa()),2&e&&(ka("ngIf",t.project),ar(1),ka("ngClass",Bc(23,Wse,t.isLightThemeEnabled)),ar(1),ka("ngClass",Bc(25,Wse,t.isLightThemeEnabled)),ar(3),ka("ngClass",Bc(27,Wse,t.isLightThemeEnabled)),ar(3),ka("ngClass",Bc(29,Wse,t.isLightThemeEnabled)),ar(4),ka("ngIf",t.project),ar(1),ka("ngIf",t.tools.draw_link),ar(1),ka("server",t.server)("project",t.project),ar(1),ka("server",t.server),ar(1),ka("server",t.server),ar(1),ka("server",t.server)("project",t.project),ar(1),ka("server",t.server)("project",t.project),ar(1),ka("server",t.server),ar(1),ka("server",t.server)("project",t.project),ar(1),ka("server",t.server),ar(1),ka("ngClass",Bc(31,oce,!t.isConsoleVisible)),ar(1),ka("ngIf",t.project),ar(1),ka("ngClass",Bc(33,oce,!t.isTopologySummaryVisible)),ar(1),ka("ngIf",t.project))},directives:[Hh,Rh,J1,P$,fre,pre,mre,gre,vre,bre,yre,_re,wre,Z8,$8,Q9,_oe,xoe,AZ,OZ,rK,Moe,LZ,Q0,Mf,Rp,Soe,h$,yae,Aae,Iae,B5,Uee,Dae,zae,kse,Lse],styles:[".wrapper{height:600px}.project-map,app-map,app-project-map,app-root{width:auto}svg.map{background-color:#f0f0f0}g.node:hover{background-color:#0097a7}.project-toolbar{width:70px;position:fixed;top:20px;left:20px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}img{filter:invert(1)}.lightTheme{background:#fff!important;color:#000!important}#show-menu-wrapper{position:fixed;background:transparent;top:20px;left:92px;background:#263238;height:72px;padding-top:16px}#show-menu-wrapper .arrow-button{outline:0!important}.shadowed{box-shadow:0 4px 8px -4px rgba(0,0,0,.2),0 6px 20px -20px rgba(0,0,0,.19)}.non-visible{display:none}#menu-wrapper{position:fixed;background:transparent;top:20px;left:92px;background:#263238;height:72px;padding-top:16px;padding-bottom:16px;transition:35s;width:0;overflow:hidden;transition:.15s;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);display:flex}#menu-wrapper .menu-button{width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}#menu-wrapper .arrow-button,#menu-wrapper .menu-button{outline:0!important;transition:.5s;margin-bottom:16px}.extended{width:830px!important;height:100%;overflow:hidden}mat-divider.divider{height:40px;margin-left:1px;margin-right:7px;width:10px;color:grey}.zoom-buttons{position:fixed;background:#263238;bottom:20px;right:20px;display:grid;color:#fff}.zoom-buttons .zoom-button{outline:none;height:40px;width:40px;background:transparent;border:none;color:#fff;font-size:1.25rem;font-weight:700}.zoom-buttons .zoom-button mat-icon{margin-left:-6px}@-moz-document url-prefix(){.mat-drawer-content{display:inline!important}}.shadow{box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.mat-drawer-backdrop.mat-drawer-shown{background-color:transparent}.project-toolbar .mat-toolbar-multiple-rows{width:auto!important}.loading-spinner{position:absolute;top:50%;width:100px;margin-left:-50px;margin-top:-50px;left:50%}line.selected{stroke:#0097a7!important}g.selected,svg.map image.chosen,svg.map image:hover{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray;filter:url(#grayscale)}path.selected{stroke:#8b0000}.selected>.interface_label_border{stroke:#000;fill:none}.selection-line-tool .selection{fill:#7ccbe1;stroke:#66aec2;fill-opacity:.3;stroke-opacity:.7;stroke-width:1;stroke-dasharray:5,5}.noselect,g.node text{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.project-toolbar button{outline:0;border:none;-moz-outline-style:none}.options-item{padding-left:15px;padding-right:15px}.context-menu-items .mat-menu-item{line-height:24px!important;height:24px!important;font-size:13px!important;padding:0 6px;outline:none!important}.context-menu-items .mat-menu-item .mat-icon{margin-right:3px}.context-menu-items .mat-menu-item:focus{background:none}.visible{display:none}mat-menu-panel{min-height:0}"],encapsulation:2}),e}(),sce=function(){return function(){}}(),cce=function(){return function(){}}(),lce=function(){function e(){this.dataChange=new Um.a([])}return Object.defineProperty(e.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),e.prototype.addServer=function(e){var t=this.data.slice();t.push(e),this.dataChange.next(t)},e.prototype.addServers=function(e){this.dataChange.next(e)},e.prototype.remove=function(e){var t=this.data.indexOf(e);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},e.prototype.find=function(e){return this.data.find((function(t){return t.name===e}))},e.prototype.findIndex=function(e){return this.data.findIndex((function(t){return t.name===e}))},e.prototype.update=function(e){var t=this.findIndex(e.name);t>=0&&(this.data[t]=e,this.dataChange.next(this.data.slice()))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function uce(e,t){1&e&&(Sa(0,"mat-error"),_s(1,"You must enter a value"),xa())}function hce(e,t){if(1&e&&(Sa(0,"mat-option",12),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.key),ar(1),ks(" ",n.name," ")}}function dce(e,t){1&e&&(Sa(0,"mat-form-field"),Oa(1,"input",13),xa())}function fce(e,t){1&e&&(Sa(0,"mat-form-field"),Oa(1,"input",14),xa())}function pce(e,t){if(1&e&&(Sa(0,"mat-option",12),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.key),ar(1),ks(" ",n.name," ")}}function mce(e,t){if(1&e&&(Sa(0,"mat-form-field"),Sa(1,"mat-select",15),ba(2,pce,2,2,"mat-option",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngForOf",n.authorizations)}}function gce(e,t){1&e&&(Sa(0,"mat-form-field"),Oa(1,"input",16),xa())}function vce(e,t){1&e&&(Sa(0,"mat-form-field"),Oa(1,"input",17),xa())}var bce=function(){function e(e,t,n,i,r){this.dialogRef=e,this.electronService=t,this.serverService=n,this.toasterService=i,this.data=r,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.locations=[],this.serverForm=new Sp({name:new Cp("",[Df.required]),location:new Cp(""),path:new Cp(""),ubridge_path:new Cp(""),host:new Cp("",[Df.required]),port:new Cp("",[Df.required,Df.min(1)]),authorization:new Cp("none"),login:new Cp(""),password:new Cp("")})}return e.prototype.getLocations=function(){return LK(this,void 0,void 0,(function(){var e,t;return FK(this,(function(n){switch(n.label){case 0:return[4,this.numberOfLocalServers()];case 1:return e=n.sent(),t=[],this.electronService.isElectronApp&&0===e&&t.push({key:"local",name:"Local"}),t.push({key:"remote",name:"Remote"}),[2,t]}}))}))},e.prototype.getDefaultLocation=function(){return LK(this,void 0,void 0,(function(){var e;return FK(this,(function(t){switch(t.label){case 0:return[4,this.numberOfLocalServers()];case 1:return e=t.sent(),this.electronService.isElectronApp&&0===e?[2,"local"]:[2,"remote"]}}))}))},e.prototype.numberOfLocalServers=function(){return LK(this,void 0,void 0,(function(){return FK(this,(function(e){switch(e.label){case 0:return[4,this.serverService.findAll()];case 1:return[2,e.sent().filter((function(e){return"local"===e.location})).length]}}))}))},e.prototype.getDefaultHost=function(){return"127.0.0.1"},e.prototype.getDefaultPort=function(){return 3080},e.prototype.getDefaultLocalServerPath=function(){return LK(this,void 0,void 0,(function(){return FK(this,(function(e){switch(e.label){case 0:return this.electronService.isElectronApp?[4,this.electronService.remote.require("./local-server.js").getLocalServerPath()]:[3,2];case 1:return[2,e.sent()];case 2:return[2]}}))}))},e.prototype.getDefaultUbridgePath=function(){return LK(this,void 0,void 0,(function(){return FK(this,(function(e){switch(e.label){case 0:return this.electronService.isElectronApp?[4,this.electronService.remote.require("./local-server.js").getUbridgePath()]:[3,2];case 1:return[2,e.sent()];case 2:return[2]}}))}))},e.prototype.ngOnInit=function(){return LK(this,void 0,void 0,(function(){var e,t,n,i,r=this;return FK(this,(function(o){switch(o.label){case 0:return e=this,[4,this.getLocations()];case 1:return e.locations=o.sent(),[4,this.getDefaultLocalServerPath()];case 2:return t=o.sent(),[4,this.getDefaultUbridgePath()];case 3:return n=o.sent(),this.serverForm.get("location").valueChanges.subscribe((function(e){var i=r.serverForm.get("path"),o=r.serverForm.get("ubridge_path");"local"===e?(i.setValue(t),i.setValidators([Df.required]),o.setValue(n),o.setValidators([Df.required])):(i.setValue(""),i.clearValidators(),o.setValue(""),o.clearValidators()),[i,o].forEach((function(e){e.updateValueAndValidity({onlySelf:!0})}))})),this.serverForm.get("authorization").valueChanges.subscribe((function(e){var t=r.serverForm.get("login"),n=r.serverForm.get("password");"none"===e?(t.clearValidators(),n.clearValidators()):(t.setValidators([Df.required]),n.setValidators([Df.required])),[t,n].forEach((function(e){e.updateValueAndValidity({onlySelf:!0})}))})),[4,this.getDefaultLocation()];case 4:return i=o.sent(),this.serverForm.get("location").setValue(i),this.serverForm.get("host").setValue(this.getDefaultHost()),this.serverForm.get("port").setValue(this.getDefaultPort()),this.serverForm.get("authorization").setValue("none"),[2]}}))}))},e.prototype.onAddClick=function(){var e=this;if(this.serverForm.valid){var t=Object.assign({},this.serverForm.value);this.serverService.checkServerVersion(t).subscribe((function(n){n.version.split(".")[1]>=2&&n.version.split(".")[0]>=2?(e.dialogRef.close(t),e.toasterService.success("Server "+t.name+" added.")):(e.dialogRef.close(),e.toasterService.error("Server version is not supported."))}),(function(t){e.toasterService.error("Cannot connect to the server: "+t)}))}},e.prototype.onNoClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(hU),_a(qK),_a(iJ),_a(QZ))},e.\u0275cmp=ze({type:e,selectors:[["app-add-server-dialog"]],decls:24,vars:8,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content",""],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["matInput","","tabindex","1","formControlName","host","placeholder","Host"],["matInput","","tabindex","1","formControlName","port","placeholder","Port"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","tabindex","1","formControlName","path","placeholder","Local server path"],["matInput","","tabindex","1","formControlName","ubridge_path","placeholder","Ubridge path"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","tabindex","1","formControlName","password","placeholder","Password"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Add server"),xa(),Sa(2,"form",1),Sa(3,"div",2),Sa(4,"mat-form-field"),Oa(5,"input",3),ba(6,uce,2,0,"mat-error",4),xa(),Sa(7,"mat-form-field"),Sa(8,"mat-select",5),ba(9,hce,2,2,"mat-option",6),xa(),xa(),ba(10,dce,2,0,"mat-form-field",4),ba(11,fce,2,0,"mat-form-field",4),Sa(12,"mat-form-field"),Oa(13,"input",7),xa(),Sa(14,"mat-form-field"),Oa(15,"input",8),xa(),ba(16,mce,3,1,"mat-form-field",4),ba(17,gce,2,0,"mat-form-field",4),ba(18,vce,2,0,"mat-form-field",4),xa(),Sa(19,"div",9),Sa(20,"button",10),Ia("click",(function(){return t.onNoClick()})),_s(21,"No Thanks"),xa(),Sa(22,"button",11),Ia("click",(function(){return t.onAddClick()})),_s(23,"Add"),xa(),xa(),xa()),2&e&&(ar(2),ka("formGroup",t.serverForm),ar(4),ka("ngIf",t.serverForm.get("name").hasError("required")),ar(3),ka("ngForOf",t.locations),ar(1),ka("ngIf","local"===t.serverForm.get("location").value),ar(1),ka("ngIf","local"===t.serverForm.get("location").value),ar(5),ka("ngIf","remote"===t.serverForm.get("location").value),ar(1),ka("ngIf","basic"===t.serverForm.get("authorization").value),ar(1),ka("ngIf","basic"===t.serverForm.get("authorization").value))},directives:[oQ,Lp,Tf,zp,aQ,a0,y0,wf,Mf,Xp,Hh,H0,Nh,sQ,h$,UJ,DY],encapsulation:2}),e}(),yce=function(){function e(e){var t=this;this.electronService=e,this.serverStatusChanged=new w.b,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,(function(e,n){t.serverStatusChanged.next(n)}))}return Object.defineProperty(e.prototype,"statusChannel",{get:function(){return"local-server-status-events"},enumerable:!1,configurable:!0}),e.prototype.start=function(e){return LK(this,void 0,void 0,(function(){return FK(this,(function(t){switch(t.label){case 0:return this.serverStatusChanged.next({serverName:e.name,status:"starting",message:""}),[4,this.electronService.remote.require("./local-server.js").startLocalServer(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.stop=function(e){return LK(this,void 0,void 0,(function(){return FK(this,(function(t){switch(t.label){case 0:return[4,this.electronService.remote.require("./local-server.js").stopLocalServer(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.stopAll=function(){return LK(this,void 0,void 0,(function(){return FK(this,(function(e){switch(e.label){case 0:return[4,this.electronService.remote.require("./local-server.js").stopAllLocalServers()];case 1:return[2,e.sent()]}}))}))},e.prototype.getRunningServers=function(){return this.electronService.isElectronApp?this.electronService.remote.require("./local-server.js").getRunningServers():[]},e.prototype.ngOnDestroy=function(){this.electronService.isElectronApp&&this.electronService.ipcRenderer.removeAllListeners(this.statusChannel)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(hU))}}),e}(),_ce=function(){function e(){}return Object.defineProperty(e.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),e}(),wce=function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kce=function(e){function t(){return e.call(this)||this}return wce(t,e),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=R({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(_ce),Cce=function(){function e(){}return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[{provide:_ce,useClass:kce}]}),e}(),Sce=n("M6kn"),xce=function(){function e(e){this.httpServer=e}return e.prototype.get=function(e){return this.httpServer.get(e,"/version")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function Oce(e,t){if(1&e){var n=Pa();Sa(0,"mat-card",2),Sa(1,"mat-card-content",3),_s(2," We've discovered GNS3 server on "),Sa(3,"b"),_s(4),xa(),_s(5,", would you like to add to the list? "),xa(),Sa(6,"mat-card-actions",4),Sa(7,"button",5),Ia("click",(function(){Dt(n);var e=Ba();return e.ignore(e.discoveredServer)})),_s(8,"NO"),xa(),Sa(9,"button",6),Ia("click",(function(){Dt(n);var e=Ba();return e.accept(e.discoveredServer)})),_s(10,"YES"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(4),Cs("",i.discoveredServer.host,":",i.discoveredServer.port,"")}}function Mce(e,t){1&e&&Oa(0,"mat-divider")}var Tce=function(){function e(e,t,n){this.versionService=e,this.serverService=t,this.serverDatabase=n,this.defaultServers=[{host:"127.0.0.1",port:3080}]}return e.prototype.ngOnInit=function(){var e=this;this.serverService.isServiceInitialized&&this.discoverFirstAvailableServer(),this.serverService.serviceInitialized.subscribe((function(t){return LK(e,void 0,void 0,(function(){return FK(this,(function(e){return t&&this.discoverFirstAvailableServer(),[2]}))}))}))},e.prototype.discoverFirstAvailableServer=function(){var e=this;Object(ff.a)([Object(pf.a)(this.serverService.findAll()).pipe(Object(mf.a)((function(e){return e}))),this.discovery()]).subscribe((function(t){var n=t[1];t[0].forEach((function(e){n=n.filter((function(t){return!(t.host==e.host&&t.port==e.port)}))})),n.length>0&&(e.discoveredServer=n.shift())}))},e.prototype.discovery=function(){var e=this,t=[];return this.defaultServers.forEach((function(n){t.push(e.isServerAvailable(n.host,n.port).catch((function(e){return Sce.Observable.of(null)})))})),new Sce.Observable((function(e){Object(ff.a)(t).subscribe((function(t){e.next(t.filter((function(e){return null!=e}))),e.complete()}))}))},e.prototype.isServerAvailable=function(e,t){var n=new AK;return n.host=e,n.port=t,this.versionService.get(n).flatMap((function(e){return Sce.Observable.of(n)}))},e.prototype.ignore=function(e){this.discoveredServer=null},e.prototype.accept=function(e){var t=this;null==e.name&&(e.name=e.host),e.location="remote",this.serverService.create(e).then((function(e){t.serverDatabase.addServer(e),t.discoveredServer=null}))},e.\u0275fac=function(t){return new(t||e)(_a(xce),_a(qK),_a(lce))},e.\u0275cmp=ze({type:e,selectors:[["app-server-discovery"]],decls:2,vars:2,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"info"],["align","center"],["align","right"],["mat-button","","color","accent",3,"click"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(ba(0,Oce,11,2,"mat-card",0),ba(1,Mce,1,0,"mat-divider",1)),2&e&&(ka("ngIf",t.discoveredServer),ar(1),ka("ngIf",t.discoveredServer))},directives:[Hh,wJ,uJ,fJ,h$,B5],styles:[""]}),e}();function Ece(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," ID "),xa())}function Pce(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.id," ")}}function jce(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Name "),xa())}var Ace=function(e){return["/server",e,"projects"]};function Ice(e,t){if(1&e&&(Sa(0,"a",22),_s(1),xa()),2&e){var n=Ba().$implicit;ka("routerLink",Bc(2,Ace,n.id)),ar(1),ws(n.name)}}function Dce(e,t){if(1&e&&(Sa(0,"span"),_s(1),xa()),2&e){var n=Ba().$implicit;ar(1),ws(n.name)}}function Rce(e,t){if(1&e&&(Sa(0,"mat-cell"),ba(1,Ice,2,4,"a",20),ba(2,Dce,2,1,"span",21),xa()),2&e){var n=t.$implicit,i=Ba();ar(1),ka("ngIf","running"===i.getServerStatus(n)||"remote"===n.location||"bundled"===n.location),ar(1),ka("ngIf","running"!=i.getServerStatus(n)&&"remote"!==n.location&&"bundled"!==n.location)}}function Lce(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Location "),xa())}function Fce(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.location," ")}}function Nce(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Host "),xa())}function Bce(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.host," ")}}function Hce(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Port "),xa())}function zce(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.port," ")}}function Vce(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Actions "),xa())}function qce(e,t){if(1&e){var n=Pa();Sa(0,"button",26),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba().startServer(e)})),Sa(1,"mat-icon",28),_s(2,"play_arrow"),xa(),xa()}}function Uce(e,t){if(1&e){var n=Pa();Sa(0,"button",26),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba().stopServer(e)})),Sa(1,"mat-icon",29),_s(2,"stop"),xa(),xa()}}function Gce(e,t){1&e&&Oa(0,"mat-spinner",30),2&e&&ka("diameter",24)}function Wce(e,t){if(1&e){var n=Pa();Sa(0,"mat-cell",23),ba(1,qce,3,0,"button",24),ba(2,Uce,3,0,"button",24),ba(3,Gce,1,1,"mat-spinner",25),Sa(4,"button",26),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().deleteServer(e)})),Sa(5,"mat-icon",27),_s(6,"delete"),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=Ba();ar(1),ka("ngIf","local"===i.location&&"stopped"===r.getServerStatus(i)),ar(1),ka("ngIf","local"===i.location&&"running"===r.getServerStatus(i)),ar(1),ka("ngIf","local"===i.location&&"starting"===r.getServerStatus(i))}}function Kce(e,t){1&e&&Oa(0,"mat-header-row")}function Xce(e,t){1&e&&Oa(0,"mat-row")}function Yce(e,t){if(1&e){var n=Pa();Sa(0,"button",31),Ia("click",(function(){return Dt(n),Ba().startLocalServer()})),_s(1,"Start local server"),xa()}}var Zce=function(){function e(e,t,n,i,r,o,a,s){this.dialog=e,this.serverService=t,this.serverDatabase=n,this.serverManagement=i,this.changeDetector=r,this.electronService=o,this.childProcessService=a,this.bottomSheet=s,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return e.prototype.getServers=function(){var e=this,t=this.serverManagement.getRunningServers();this.serverService.findAll().then((function(n){n.forEach((function(e){t.findIndex((function(t){return e.name===t}))>=0&&(e.status="running")})),n.forEach((function(t){e.serverService.checkServerVersion(t).subscribe((function(n){n.version.split(".")[1]>=2&&n.version.split(".")[0]>=2&&(e.serverDatabase.find(t.name)||e.serverDatabase.addServer(t))}),(function(e){}))}))}))},e.prototype.ngOnInit=function(){var e=this;this.isElectronApp=this.electronService.isElectronApp,this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe((function(t){return LK(e,void 0,void 0,(function(){return FK(this,(function(e){return t&&this.getServers(),[2]}))}))})),this.dataSource=new Qce(this.serverDatabase),this.serverStatusSubscription=this.serverManagement.serverStatusChanged.subscribe((function(t){var n=e.serverDatabase.find(t.serverName);n&&("starting"===t.status&&(n.status="starting"),"stopped"===t.status&&(n.status="stopped"),"errored"===t.status&&(n.status="stopped"),"started"===t.status&&(n.status="running"),e.serverDatabase.update(n),e.changeDetector.detectChanges())}))},e.prototype.ngOnDestroy=function(){this.serverStatusSubscription.unsubscribe()},e.prototype.startLocalServer=function(){var e=this.serverDatabase.data.find((function(e){return"bundled"===e.location||"local"}));this.startServer(e)},e.prototype.createModal=function(){var e=this;this.dialog.open(bce,{width:"350px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(t){t&&e.serverService.create(t).then((function(t){e.serverDatabase.addServer(t)}))}))},e.prototype.getServerStatus=function(e){if("local"===e.location)return void 0===e.status?"stopped":e.status},e.prototype.deleteServer=function(e){var t=this;this.bottomSheet.open(Ite);var n=this.bottomSheet._openedBottomSheetRef;n.instance.message="Do you want to delete the server?",n.afterDismissed().subscribe((function(n){n&&t.serverService.delete(e).then((function(){t.serverDatabase.remove(e)}))}))},e.prototype.startServer=function(e){return LK(this,void 0,void 0,(function(){return FK(this,(function(t){switch(t.label){case 0:return[4,this.serverManagement.start(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.stopServer=function(e){return LK(this,void 0,void 0,(function(){return FK(this,(function(t){switch(t.label){case 0:return[4,this.serverManagement.stop(e)];case 1:return t.sent(),[2]}}))}))},e.\u0275fac=function(t){return new(t||e)(_a(nQ),_a(qK),_a(lce),_a(yce),_a(No),_a(hU),_a(_ce),_a(Ete))},e.\u0275cmp=ze({type:e,selectors:[["app-server-list"]],decls:33,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","location"],["matColumnDef","ip"],["matColumnDef","port"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"buttons-bar"],["mat-raised-button","","class","button",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","table-link",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","",3,"click"],["aria-label","Remove server"],["aria-label","Start server"],["aria-label","Stop server"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"h1"),_s(3,"Servers"),xa(),xa(),Sa(4,"div",2),Oa(5,"app-server-discovery"),Sa(6,"div",3),Sa(7,"mat-table",4,5),Ma(9,6),ba(10,Ece,2,0,"mat-header-cell",7),ba(11,Pce,2,1,"mat-cell",8),Ta(),Ma(12,9),ba(13,jce,2,0,"mat-header-cell",7),ba(14,Rce,3,2,"mat-cell",8),Ta(),Ma(15,10),ba(16,Lce,2,0,"mat-header-cell",7),ba(17,Fce,2,1,"mat-cell",8),Ta(),Ma(18,11),ba(19,Nce,2,0,"mat-header-cell",7),ba(20,Bce,2,1,"mat-cell",8),Ta(),Ma(21,12),ba(22,Hce,2,0,"mat-header-cell",7),ba(23,zce,2,1,"mat-cell",8),Ta(),Ma(24,13),ba(25,Vce,2,0,"mat-header-cell",7),ba(26,Wce,7,3,"mat-cell",14),Ta(),ba(27,Kce,1,0,"mat-header-row",15),ba(28,Xce,1,0,"mat-row",16),xa(),xa(),Sa(29,"div",17),ba(30,Yce,2,0,"button",18),Sa(31,"button",19),Ia("click",(function(){return t.createModal()})),_s(32,"Add server"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("dataSource",t.dataSource),ar(20),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns),ar(2),ka("ngIf",t.isElectronApp))},directives:[Tce,f1,w1,v1,m1,E1,I1,Hh,h$,C1,M1,oK,P$,cre,R1,B1],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}"]}),e}(),Qce=function(e){function t(t){var n=e.call(this)||this;return n.serverDatabase=t,n}return DK(t,e),t.prototype.connect=function(){var e=this;return Object(C.a)(this.serverDatabase.dataChange).pipe(Object(mf.a)((function(){return e.serverDatabase.data})))},t.prototype.disconnect=function(){},t}(xm),$ce=function(){function e(e,t){this.dialogRef=e,this.projectService=t}return e.prototype.ngOnInit=function(){this.name=this.project.name},e.prototype.onCloseClick=function(){this.dialogRef.close()},e.prototype.onSaveClick=function(){var e=this;this.projectService.duplicate(this.server,this.project.project_id,this.name).subscribe((function(){e.dialogRef.close()}))},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(GK))},e.\u0275cmp=ze({type:e,selectors:[["app-choose-name-dialog"]],inputs:{server:"server",project:"project"},decls:10,vars:1,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Project name","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"h1",0),_s(1,"Please choose name for exporting project"),xa(),Sa(2,"div",1),Sa(3,"mat-form-field",2),Sa(4,"input",3),Ia("ngModelChange",(function(e){return t.name=e})),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"button",5),Ia("click",(function(){return t.onCloseClick()})),_s(7,"Cancel"),xa(),Sa(8,"button",6),Ia("click",(function(){return t.onSaveClick()})),_s(9,"Apply"),xa(),xa()),2&e&&(ar(4),ka("ngModel",t.name))},directives:[oQ,a0,y0,wf,Mf,Rp,sQ,h$],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Jce=function(){function e(e){this.dialogRef=e,this.message="Do you want to configure GNS3 VM?"}return e.prototype.ngOnInit=function(){},e.prototype.onNoClick=function(){this.dialogRef.close(!1)},e.prototype.onYesClick=function(){this.dialogRef.close(!0)},e.\u0275fac=function(t){return new(t||e)(_a(YZ))},e.\u0275cmp=ze({type:e,selectors:[["app-configure-gns3-vm-dialog"]],decls:7,vars:1,consts:[[1,"message"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(e,t){1&e&&(Sa(0,"span",0),_s(1),xa(),Sa(2,"div",1),Sa(3,"button",2),Ia("click",(function(){return t.onNoClick()})),_s(4,"No"),xa(),Sa(5,"button",3),Ia("click",(function(){return t.onYesClick()})),_s(6," Yes "),xa(),xa()),2&e&&(ar(1),ws(t.message))},directives:[sQ,h$],styles:[""]}),e}();function ele(e,t){1&e&&(Sa(0,"mat-header-cell",21),_s(1," Name "),xa())}var tle=function(e,t){return["/server",e,"project",t]};function nle(e,t){if(1&e&&(Sa(0,"mat-cell"),Sa(1,"a",22),_s(2),xa(),xa()),2&e){var n=t.$implicit,i=Ba();ar(1),ka("routerLink",Hc(2,tle,i.server.id,n.project_id)),ar(1),ws(n.name)}}function ile(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Actions "),xa())}function rle(e,t){if(1&e){var n=Pa();Sa(0,"button",28),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba().open(e)})),Sa(1,"mat-icon",29),_s(2,"play_arrow"),xa(),xa()}}function ole(e,t){if(1&e){var n=Pa();Sa(0,"button",30),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba().close(e)})),Sa(1,"mat-icon",31),_s(2,"pause"),xa(),xa()}}function ale(e,t){if(1&e){var n=Pa();Sa(0,"button",32),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba().duplicate(e)})),Sa(1,"mat-icon",33),_s(2,"filter_2"),xa(),xa()}}function sle(e,t){if(1&e){var n=Pa();Sa(0,"button",34),Ia("click",(function(){Dt(n);var e=Ba().$implicit;return Ba().delete(e)})),Sa(1,"mat-icon",35),_s(2,"delete"),xa(),xa()}}function cle(e,t){if(1&e&&(Sa(0,"mat-cell",23),ba(1,rle,3,0,"button",24),ba(2,ole,3,0,"button",25),ba(3,ale,3,0,"button",26),ba(4,sle,3,0,"button",27),xa()),2&e){var n=t.$implicit;ar(1),ka("ngIf","closed"==n.status),ar(1),ka("ngIf","opened"==n.status),ar(1),ka("ngIf","closed"==n.status),ar(1),ka("ngIf","closed"==n.status)}}function lle(e,t){1&e&&Oa(0,"mat-header-row")}function ule(e,t){1&e&&Oa(0,"mat-row")}var hle=function(){return{standalone:!0}},dle=function(){function e(e,t,n,i,r,o,a,s,c){this.route=e,this.projectService=t,this.settingsService=n,this.progressService=i,this.dialog=r,this.router=o,this.bottomSheet=a,this.toasterService=s,this.electronService=c,this.projectDatabase=new fle,this.displayedColumns=["name","actions"],this.searchText=""}return e.prototype.ngOnInit=function(){var e=this;this.server=this.route.snapshot.data.server,this.server||this.router.navigate(["/servers"]),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new ple(this.projectDatabase,this.sort),this.settings=this.settingsService.getAll(),this.projectService.projectListSubject.subscribe((function(){return e.refresh()}));var t=localStorage.getItem("gns3vmConfig");this.electronService.isElectronApp&&"configured"!==t&&this.dialog.open(Jce,{width:"350px",height:"120px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(t){t&&(localStorage.setItem("gns3vmConfig","configured"),e.router.navigate(["/server",e.server.id,"preferences","gns3vm"]))}))},e.prototype.goToPreferences=function(){var e=this;this.router.navigate(["/server",this.server.id,"preferences"]).catch((function(t){return e.toasterService.error("Cannot navigate to the preferences")}))},e.prototype.refresh=function(){var e=this;this.projectService.list(this.server).subscribe((function(t){e.projectDatabase.addProjects(t)}),(function(t){e.progressService.setError(t)}))},e.prototype.delete=function(e){var t=this;this.bottomSheet.open(Ite);var n=this.bottomSheet._openedBottomSheetRef;n.instance.message="Do you want to delete the project?",n.afterDismissed().subscribe((function(n){n&&t.projectService.delete(t.server,e.project_id).subscribe((function(){t.refresh()}))}))},e.prototype.open=function(e){var t=this;this.progressService.activate(),this.projectService.open(this.server,e.project_id).subscribe((function(){t.refresh()}),(function(){t.refresh(),t.progressService.deactivate(),t.toasterService.error("Project was deleted.")}),(function(){t.progressService.deactivate()}))},e.prototype.close=function(e){var t=this;this.bottomSheet.open(Ite);var n=this.bottomSheet._openedBottomSheetRef;n.instance.message="Do you want to close the project?",n.afterDismissed().subscribe((function(n){n&&t.projectService.close(t.server,e.project_id).subscribe((function(){t.refresh(),t.progressService.deactivate()}))}))},e.prototype.duplicate=function(e){var t=this,n=this.dialog.open($ce,{width:"400px",autoFocus:!1,disableClose:!0}),i=n.componentInstance;i.server=this.server,i.project=e,n.afterClosed().subscribe((function(){t.refresh()}))},e.prototype.addBlankProject=function(){this.dialog.open(ate,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},e.prototype.importProject=function(){var e=this,t="",n=this.dialog.open(tte,{width:"400px",autoFocus:!1,disableClose:!0});n.componentInstance.server=this.server;var i=n.componentInstance.onImportProject.subscribe((function(e){t=e}));n.afterClosed().subscribe((function(){if(e.refresh(),i.unsubscribe(),t){e.bottomSheet.open(jte);var n=e.bottomSheet._openedBottomSheetRef;n.instance.projectMessage="imported project",n.afterDismissed().subscribe((function(n){n&&e.projectService.open(e.server,t).subscribe((function(){e.router.navigate(["/server",e.server.id,"project",t])}))}))}}))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(GK),_a(UK),_a(t7),_a(nQ),_a(nK),_a(Ete),_a(iJ),_a(hU))},e.\u0275cmp=ze({type:e,selectors:[["app-projects"]],viewQuery:function(e,t){var n;1&e&&sl(uie,!0),2&e&&al(n=fl())&&(t.sort=n.first)},decls:27,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"import-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Duplicate project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Open project"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Close project"],["mat-icon-button","","matTooltip","Duplicate project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Duplicate project"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete project"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Projects"),xa(),Sa(5,"button",4),Ia("click",(function(){return t.goToPreferences()})),_s(6," Go to preferences "),xa(),Sa(7,"button",5),Ia("click",(function(){return t.addBlankProject()})),_s(8," Add blank project "),xa(),Sa(9,"button",6),Ia("click",(function(){return t.importProject()})),_s(10," Import project "),xa(),xa(),xa(),Sa(11,"form"),Sa(12,"mat-form-field",7),Sa(13,"input",8),Ia("ngModelChange",(function(e){return t.searchText=e})),xa(),xa(),xa(),Sa(14,"div",9),Sa(15,"div",10),Sa(16,"mat-table",11,12),Uc(18,"projectsfilter"),Ma(19,13),ba(20,ele,2,0,"mat-header-cell",14),ba(21,nle,3,5,"mat-cell",15),Ta(),Ma(22,16),ba(23,ile,2,0,"mat-header-cell",17),ba(24,cle,5,4,"mat-cell",18),Ta(),ba(25,lle,1,0,"mat-header-row",19),ba(26,ule,1,0,"mat-row",20),xa(),xa(),xa(),xa()),2&e&&(ar(13),ka("ngModel",t.searchText)("ngModelOptions",Nc(8,hle)),ar(3),ka("dataSource",Wc(18,5,t.dataSource,t.searchText)),ar(9),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns))},styles:[".add-button[_ngcontent-%COMP%], .import-button[_ngcontent-%COMP%]{height:40px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}"]}),e}(),fle=function(){function e(){this.dataChange=new Um.a([])}return Object.defineProperty(e.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),e.prototype.addProjects=function(e){this.dataChange.next(e)},e.prototype.remove=function(e){var t=this.data.indexOf(e);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},e}(),ple=function(e){function t(t,n){var i=e.call(this)||this;return i.projectDatabase=t,i.sort=n,i}return DK(t,e),t.prototype.connect=function(){var e=this;return C.a.apply(void 0,[this.projectDatabase.dataChange,this.sort.sortChange]).pipe(Object(mf.a)((function(){return e.sort.active&&""!==e.sort.direction?e.projectDatabase.data.sort((function(t,n){var i=t[e.sort.active],r=n[e.sort.active];return((isNaN(+i)?i:+i)<(isNaN(+r)?r:+r)?-1:1)*("asc"===e.sort.direction?1:-1)})):e.projectDatabase.data})))},t.prototype.disconnect=function(){},t}(xm);function mle(e,t){if(1&e){var n=Pa();Sa(0,"button",13),Ia("click",(function(){return Dt(n),Ba().backToProject()})),_s(1,"Back to project"),xa()}}var gle=function(){function e(e,t,n,i,r,o){this.electronService=e,this.recentlyOpenedProjectService=t,this.serverManagement=n,this.toasterService=i,this.progressService=r,this.router=o,this.isInstalledSoftwareAvailable=!1,this.uiVersion=ise,this.shouldStopServersOnClosing=!0}return e.prototype.ngOnInit=function(){var e=this;this.recentlyOpenedServerId=this.recentlyOpenedProjectService.getServerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.isInstalledSoftwareAvailable=this.electronService.isElectronApp,this.serverStatusSubscription=this.serverManagement.serverStatusChanged.subscribe((function(t){"errored"===t.status&&(console.error(t.message),e.toasterService.error(t.message)),"stderr"===t.status&&(console.error(t.message),e.toasterService.error(t.message))})),this.shouldStopServersOnClosing=this.electronService.isElectronApp},e.prototype.backToProject=function(){var e=this;this.router.navigate(["/server",this.recentlyOpenedServerId,"project",this.recentlyOpenedProjectId]).catch((function(t){return e.toasterService.error("Cannot navigate to the last opened project")}))},e.prototype.onBeforeUnload=function(e){return LK(this,void 0,void 0,(function(){return FK(this,(function(t){switch(t.label){case 0:return this.shouldStopServersOnClosing?(e.preventDefault(),e.returnValue=!1,this.progressService.activate(),[4,this.serverManagement.stopAll()]):[2];case 1:return t.sent(),this.shouldStopServersOnClosing=!1,this.progressService.deactivate(),window.close(),[2,!1]}}))}))},e.prototype.ngOnDestroy=function(){this.serverStatusSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(hU),_a(J9),_a(yce),_a(iJ),_a(t7),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-default-layout"]],hostBindings:function(e,t){1&e&&Ia("beforeunload",(function(e){return t.onBeforeUnload(e)}),!1,En)},decls:33,vars:4,consts:[["color","primary"],["mat-icon-button",""],["svgIcon","gns3"],["mat-button","","routerLink","/servers"],["mat-button","",3,"click",4,"ngIf"],[1,"fill-space"],["mat-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","/settings"],["mat-menu-item","","routerLink","/installed-software",3,"disabled"],["mat-menu-item","","routerLink","/help"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["mat-button","",3,"click"]],template:function(e,t){if(1&e&&(Sa(0,"header"),Sa(1,"mat-toolbar",0),Sa(2,"button",1),Oa(3,"mat-icon",2),xa(),Sa(4,"button",3),_s(5,"Servers"),xa(),ba(6,mle,2,0,"button",4),Oa(7,"span",5),Sa(8,"button",6),Sa(9,"mat-icon"),_s(10,"more_vert"),xa(),xa(),Sa(11,"mat-menu",null,7),Sa(13,"button",8),Sa(14,"mat-icon"),_s(15,"settings"),xa(),Sa(16,"span"),_s(17,"Settings"),xa(),xa(),Sa(18,"button",9),Sa(19,"mat-icon"),_s(20,"cloud_download"),xa(),Sa(21,"span"),_s(22,"Installed software"),xa(),xa(),Sa(23,"button",10),Sa(24,"mat-icon"),_s(25,"help"),xa(),Sa(26,"span"),_s(27,"Help"),xa(),xa(),xa(),xa(),xa(),Sa(28,"main",11),Oa(29,"router-outlet"),xa(),Oa(30,"app-progress"),Sa(31,"footer",12),_s(32),xa()),2&e){var n=ya(12);ar(6),ka("ngIf",t.recentlyOpenedProjectId&&t.recentlyOpenedServerId),ar(2),ka("matMenuTriggerFor",n),ar(10),ka("disabled",!t.isInstalledSoftwareAvailable),ar(14),ks(" GNS3 Web UI \xa9 2020 - v",t.uiVersion,"\n")}},directives:[xoe,h$,P$,rK,Hh,LZ,AZ,OZ,cK,fre],styles:["app-default-layout,app-root,body,html{height:100%}app-default-layout{display:flex;flex-direction:column;height:100vh}.footer{padding:20px;margin:auto 0 0}.default-content{margin:0 auto;max-width:940px;padding-top:20px;padding-bottom:20px}header{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);z-index:10}.default-header h1{font-weight:300;margin:0;font-size:20px;padding:28px 8px}.default-header{margin:0 auto;max-width:940px}.buttons-bar{padding-top:10px;text-align:right}.fill-space{flex:1 1 auto}.container>*{width:100%}.container{padding:0}.mat-dialog-content>*{width:100%}"],encapsulation:2}),e}(),vle=function(){function e(e){this.electronService=e}return e.prototype.get=function(){if(this.electronService.isElectronApp)return this.electronService.isLinux?'xfce4-terminal --tab -T "%d" -e "telnet %h %p"':this.electronService.isWindows?'putty.exe -telnet %h %p -loghost "%d"':void 0},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(hU))}}),e}(),ble=function(){function e(e,t){this.defaultConsoleService=e,this.settingsService=t}return Object.defineProperty(e.prototype,"command",{get:function(){var e=this.settingsService.get("console_command");return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.set("console_command",e)},enumerable:!1,configurable:!0}),e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(vle),we(UK))}}),e}(),yle=0,_le=new he("CdkAccordion"),wle=function(){var e=function(){function e(){Object(m.a)(this,e),this._stateChanges=new w.b,this._openCloseAllActions=new w.b,this.id="cdk-accordion-".concat(yle++),this._multi=!1}return Object(g.a)(e,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(e){this.multi&&this._openCloseAllActions.next(e)}},{key:"multi",get:function(){return this._multi},set:function(e){this._multi=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Vs([{provide:_le,useExisting:e}]),ct]}),e}(),kle=0,Cle=function(){var e=function(){function e(t,n,i){var r=this;Object(m.a)(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=_.a.EMPTY,this.closed=new Yc,this.opened=new Yc,this.destroyed=new Yc,this.expandedChange=new Yc,this.id="cdk-accordion-child-".concat(kle++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen((function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe((function(t){e.disabled||(e.expanded=t)}))}},{key:"expanded",get:function(){return this._expanded},set:function(e){e=vm(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(_le,12),_a(No),_a(Pm))},e.\u0275dir=Ke({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Vs([{provide:_le,useValue:void 0}])]}),e}(),Sle=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),xle=["body"];function Ole(e,t){}var Mle=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Tle=["mat-expansion-panel-header","*","mat-action-row"];function Ele(e,t){1&e&&Oa(0,"span",2),2&e&&ka("@indicatorRotate",Ba()._getExpandedState())}var Ple=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],jle=["mat-panel-title","mat-panel-description","*"],Ale=new he("MAT_ACCORDION"),Ile="225ms cubic-bezier(0.4,0.0,0.2,1)",Dle={indicatorRotate:jv("indicatorRotate",[Lv("collapsed, void",Rv({transform:"rotate(0deg)"})),Lv("expanded",Rv({transform:"rotate(180deg)"})),Nv("expanded <=> collapsed, void => collapsed",Av(Ile))]),bodyExpansion:jv("bodyExpansion",[Lv("collapsed, void",Rv({height:"0px",visibility:"hidden"})),Lv("expanded",Rv({height:"*",visibility:"visible"})),Nv("expanded <=> collapsed, void => collapsed",Av(Ile))])},Rle=function(){var e=function e(t){Object(m.a)(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),Lle=0,Fle=new he("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Nle=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,s,c){var l;return Object(m.a)(this,n),(l=t.call(this,e,i,r))._viewContainerRef=o,l._animationMode=s,l._hideToggle=!1,l.afterExpand=new Yc,l.afterCollapse=new Yc,l._inputChanges=new w.b,l._headerId="mat-expansion-panel-header-".concat(Lle++),l._bodyAnimationDone=new w.b,l.accordion=e,l._document=a,l._bodyAnimationDone.pipe(Object(Zm.a)((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){"void"!==e.fromState&&("expanded"===e.toState?l.afterExpand.emit():"collapsed"===e.toState&&l.afterCollapse.emit())})),c&&(l.hideToggle=c.hideToggle),l}return Object(g.a)(n,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Object(Jm.a)(null),Object($m.a)((function(){return e.expanded&&!e._portal})),Object(Wm.a)(1)).subscribe((function(){e._portal=new DX(e._lazyContent._template,e._viewContainerRef)}))}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){Object(o.a)(Object(a.a)(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=vm(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}}]),n}(Cle);return e.\u0275fac=function(t){return new(t||e)(_a(Ale,12),_a(No),_a(Pm),_a(yc),_a(bu),_a(__,8),_a(Fle,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,Rle,!0),2&e&&al(i=fl())&&(t._lazyContent=i.first)},viewQuery:function(e,t){var n;1&e&&cl(xle,!0),2&e&&al(n=fl())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&os("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Vs([{provide:Ale,useValue:void 0}]),Es,ct],ngContentSelectors:Tle,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(za(Mle),Va(0),Sa(1,"div",0,1),Ia("@bodyExpansion.done",(function(e){return t._bodyAnimationDone.next(e)})),Sa(3,"div",2),Va(4,1),ba(5,Ole,0,0,"ng-template",3),xa(),Va(6,2),xa()),2&e&&(ar(1),ka("@bodyExpansion",t._getExpandedState())("id",t.id),fa("aria-labelledby",t._headerId),ar(4),ka("cdkPortalOutlet",t._portal))},directives:[BX],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Dle.bodyExpansion]},changeDetection:0}),e}(),Ble=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),e}(),Hle=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;Object(m.a)(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=_.a.EMPTY;var c=t.accordion?t.accordion._stateChanges.pipe(Object($m.a)((function(e){return!(!e.hideToggle&&!e.togglePosition)}))):SU.a;this._parentChangeSubscription=Object(C.a)(t.opened,t.closed,c,t._inputChanges.pipe(Object($m.a)((function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)})))).subscribe((function(){return s._changeDetectorRef.markForCheck()})),t.closed.pipe(Object($m.a)((function(){return t._containsFocus()}))).subscribe((function(){return i.focusVia(n,"program")})),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return Object(g.a)(e,[{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case XK:case WK:YK(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,e,t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe((function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)}))}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Nle,1),_a(Ks),_a(CX),_a(No),_a(Fle,8),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&Ia("click",(function(){return t._toggle()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(fa("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),rs("height",t._getHeaderHeight()),os("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:jle,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(za(Ple),Sa(0,"span",0),Va(1),Va(2,1),Va(3,2),xa(),ba(4,Ele,1,1,"span",1)),2&e&&(ar(4),ka("ngIf",t._showToggle()))},directives:[Hh],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[Dle.indicatorRotate]},changeDetection:0}),e}(),zle=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),Vle=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),qle=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments))._ownHeaders=new Qc,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Object(Jm.a)(this._headers)).subscribe((function(t){e._ownHeaders.reset(t.filter((function(t){return t.panel.accordion===e}))),e._ownHeaders.notifyOnChanges()})),this._keyManager=new hX(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=vm(e)}}]),n}(wle);return e.\u0275fac=function(t){return Ule(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,Hle,!0),2&e&&al(i=fl())&&(t._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&os("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Vs([{provide:Ale,useExisting:e}]),Es]}),e}(),Ule=Qn(qle),Gle=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d,Sle,VX]]}),e}(),Wle=function(){function e(e,t,n,i,r){this.settingsService=e,this.toaster=t,this.consoleService=n,this.themeService=i,this.mapSettingsService=r,this.settings=RK({},UK.DEFAULTS)}return e.prototype.ngOnInit=function(){this.settings=this.settingsService.getAll(),this.consoleCommand=this.consoleService.command,this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks},e.prototype.save=function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks)},e.prototype.setDarkMode=function(e){this.themeService.setDarkMode(e)},e.\u0275fac=function(t){return new(t||e)(_a(UK),_a(iJ),_a(ble),_a(Aee),_a(I4))},e.\u0275cmp=ze({type:e,selectors:[["app-settings"]],decls:45,vars:6,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"expanded"],[3,"ngModel","ngModelChange"],[1,"full-width-field"],["matInput","","placeholder","console","readonly","true",3,"value"],["mat-icon-button","","matSuffix","","routerLink","/settings/console"],[1,"theme-panel"],["mat-raised-button","",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"h1"),_s(3,"Settings"),xa(),xa(),Sa(4,"div",2),Sa(5,"div",3),Sa(6,"mat-accordion"),Sa(7,"mat-expansion-panel",4),Sa(8,"mat-expansion-panel-header"),Sa(9,"mat-panel-title"),_s(10," Local settings "),xa(),Sa(11,"mat-panel-description"),_s(12," Customize your local settings "),xa(),xa(),Sa(13,"div"),Sa(14,"mat-checkbox",5),Ia("ngModelChange",(function(e){return t.settings.crash_reports=e})),_s(15,"Send anonymous crash reports"),xa(),Oa(16,"br"),Sa(17,"mat-checkbox",5),Ia("ngModelChange",(function(e){return t.integrateLinksLabelsToLinks=e})),_s(18,"Integrate link labels to links"),xa(),xa(),xa(),Sa(19,"mat-expansion-panel",4),Sa(20,"mat-expansion-panel-header"),Sa(21,"mat-panel-title"),_s(22," Console settings "),xa(),Sa(23,"mat-panel-description"),_s(24," Customize console settings "),xa(),xa(),Sa(25,"div"),Sa(26,"mat-form-field",6),Oa(27,"input",7),Sa(28,"a",8),Sa(29,"mat-icon"),_s(30,"mode_edit"),xa(),xa(),xa(),xa(),xa(),Sa(31,"mat-expansion-panel",4),Sa(32,"mat-expansion-panel-header"),Sa(33,"mat-panel-title"),_s(34," Theme settings "),xa(),Sa(35,"mat-panel-description"),_s(36," Customize theme settings "),xa(),xa(),Sa(37,"div",9),Sa(38,"button",10),Ia("click",(function(){return t.setDarkMode(!1)})),_s(39,"Switch to light theme"),xa(),Sa(40,"button",10),Ia("click",(function(){return t.setDarkMode(!0)})),_s(41,"Switch to dark theme"),xa(),xa(),xa(),xa(),xa(),Sa(42,"div",11),Sa(43,"button",12),Ia("click",(function(){return t.save()})),_s(44,"Save settings"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("expanded",!0),ar(7),ka("ngModel",t.settings.crash_reports),ar(3),ka("ngModel",t.integrateLinksLabelsToLinks),ar(2),ka("expanded",!1),ar(8),ka("value",t.consoleCommand),ar(4),ka("expanded",!1))},directives:[qle,Nle,Hle,Vle,zle,Q0,Mf,Rp,a0,y0,d$,oK,t0,P$,h$],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}"]}),e}(),Kle=function(){function e(e,t,n,i){this.router=e,this.serverService=t,this.progressService=n,this.document=i}return e.prototype.ngOnInit=function(){var e=this;this.progressService.activate(),setTimeout((function(){var t=parseInt(e.document.location.port,10)?parseInt(e.document.location.port,10):80;e.serverService.getLocalServer(e.document.location.hostname,t).then((function(t){e.progressService.deactivate(),e.router.navigate(["/server",t.id,"projects"])}))}),100)},e.\u0275fac=function(t){return new(t||e)(_a(nK),_a(qK),_a(t7),_a(bu))},e.\u0275cmp=ze({type:e,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(e,t){1&e&&Oa(0,"app-progress")},directives:[fre],styles:[""]}),e}(),Xle=function(){function e(e){this.route=e,this.serverId=""}return e.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},e.\u0275fac=function(t){return new(t||e)(_a(FG))},e.\u0275cmp=ze({type:e,selectors:[["app-preferences"]],decls:26,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Preferences"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"div",5),Sa(7,"mat-nav-list"),Sa(8,"mat-list-item",6),_s(9," GNS3 VM "),xa(),Sa(10,"mat-list-item",6),_s(11," Built-in "),xa(),Sa(12,"mat-list-item",6),_s(13," Dynamips "),xa(),Sa(14,"mat-list-item",6),_s(15," IOS on Unix "),xa(),Sa(16,"mat-list-item",6),_s(17," VPCS "),xa(),Sa(18,"mat-list-item",6),_s(19," QEMU "),xa(),Sa(20,"mat-list-item",6),_s(21," VirtualBox "),xa(),Sa(22,"mat-list-item",6),_s(23," VMware "),xa(),Sa(24,"mat-list-item",6),_s(25," Docker "),xa(),xa(),xa(),xa(),xa()),2&e&&(ar(8),Ua("routerLink","/server/",t.serverId,"/preferences/gns3vm"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/builtin"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/dynamips/templates"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/iou/templates"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/vpcs/templates"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/qemu/templates"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/virtualbox/templates"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/vmware/templates"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/docker/templates"))},directives:[J5,o4,rK],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Yle=function(){function e(e,t){this.dialogRef=e,this.data=t,this.templateName="",this.templateName=t.templateName}return e.prototype.ngOnInit=function(){},e.prototype.onNoClick=function(){this.dialogRef.close(!1)},e.prototype.onYesClick=function(){this.dialogRef.close(!0)},e.\u0275fac=function(t){return new(t||e)(_a(YZ),_a(QZ))},e.\u0275cmp=ze({type:e,selectors:[["app-delete-confirmation-dialog"]],decls:11,vars:1,consts:[[1,"dialogcontainer"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"spacer"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"h1",1),_s(2,"Delete template"),xa(),Sa(3,"div",2),_s(4),xa(),Oa(5,"div",3),Sa(6,"div",4),Sa(7,"button",5),Ia("click",(function(){return t.onNoClick()})),_s(8," No "),xa(),Sa(9,"button",6),Ia("click",(function(){return t.onYesClick()})),_s(10," Yes "),xa(),xa(),xa()),2&e&&(ar(4),ks("Are you sure you want to delete template ",t.templateName,"?"))},directives:[oQ,aQ,sQ,h$],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]}),e}(),Zle=function(){function e(e,t,n){this.templateService=e,this.dialog=t,this.toasterService=n,this.deleteEvent=new Yc}return e.prototype.deleteItem=function(e,t){var n=this;this.dialog.open(Yle,{width:"300px",height:"250px",data:{templateName:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe((function(i){i&&n.templateService.deleteTemplate(n.server,t).subscribe((function(i){n.deleteEvent.emit(t),n.toasterService.success("Template "+e+" deleted.")}))}))},e.\u0275fac=function(t){return new(t||e)(_a(rne),_a(nQ),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-delete-template"]],inputs:{server:"server"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Qle=function(){function e(){this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["app-empty-templates-list"]],inputs:{textMessage:"textMessage"},decls:4,vars:1,consts:[[1,"default-content"],[1,"matCard"],[1,"header"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"mat-card",1),Sa(2,"h6",2),_s(3),xa(),xa(),xa()),2&e&&(ar(3),ks(" ",t.emptyTemplatesListMessage," "))},directives:[wJ],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]}),e}();function $le(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function Jle(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add QEMU VM template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/qemu/addtemplate")}function eue(e,t){1&e&&Oa(0,"app-empty-templates-list")}function tue(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),Sa(13,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).copyTemplate(e)})),Sa(14,"mat-icon"),_s(15,"content_copy"),xa(),Sa(16,"span"),_s(17,"Copy"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function nue(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,tue,18,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.qemuTemplates)}}function iue(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,nue,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var rue=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.qemuService=n,this.router=i,this.qemuTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.qemuService.getTemplates(this.server).subscribe((function(t){e.qemuTemplates=t.filter((function(e){return"qemu"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a($2),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"QEMU VM templates"),xa(),ba(5,$le,2,1,"button",4),ba(6,Jle,2,1,"button",5),xa(),xa(),ba(7,eue,1,0,"app-empty-templates-list",6),ba(8,iue,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.qemuTemplates.length),ar(1),ka("ngIf",t.qemuTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),oue=["customAdapters"],aue=function(){function e(){this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new Yc,this.saveConfigurationEmitter=new Yc,console.log(this.networkTypes)}return e.prototype.cancelConfigureCustomAdapters=function(){this.closeConfiguratorEmitter.emit(!1)},e.prototype.configureCustomAdapters=function(){var e=this;this.adapters=[],console.log(this.customAdapters),this.customAdapters.adapters.forEach((function(t){e.adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})})),this.saveConfigurationEmitter.emit(this.adapters)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["app-custom-adapters"]],viewQuery:function(e,t){var n;1&e&&cl(oue,!0),2&e&&al(n=fl())&&(t.customAdapters=n.first)},inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns"},outputs:{closeConfiguratorEmitter:"closeConfiguratorEmitter",saveConfigurationEmitter:"saveConfigurationEmitter"},decls:15,vars:3,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],[1,"buttons-bar"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Custom adapters configuration"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"div",5),Oa(7,"app-custom-adapters-table",6,7),xa(),Sa(9,"div",8),Sa(10,"button",9),Ia("click",(function(){return t.cancelConfigureCustomAdapters()})),_s(11,"Cancel"),xa(),Sa(12,"button",10),Ia("click",(function(){return t.configureCustomAdapters()})),_s(13,"Apply"),xa(),Oa(14,"br"),xa(),xa(),xa()),2&e&&(ar(7),ka("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns)("adapters",t.adapters))},directives:[G2,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),sue=function(){function e(){this.symbolChangedEmitter=new Yc,this.chosenSymbol=""}return e.prototype.symbolChanged=function(e){this.chosenSymbol=e},e.prototype.chooseSymbol=function(){this.symbolChangedEmitter.emit(this.chosenSymbol)},e.prototype.cancelChooseSymbol=function(){this.symbolChangedEmitter.emit(this.symbol)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["app-symbols-menu"]],inputs:{server:"server",symbol:"symbol"},outputs:{symbolChangedEmitter:"symbolChangedEmitter"},decls:11,vars:2,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"click"],[1,"default-content"],[3,"server","symbol","symbolChanged"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Symbol selection"),xa(),Sa(5,"button",4),Ia("click",(function(){return t.cancelChooseSymbol()})),_s(6,"Cancel"),xa(),Sa(7,"button",5),Ia("click",(function(){return t.chooseSymbol()})),_s(8,"Choose symbol"),xa(),xa(),xa(),Sa(9,"div",6),Sa(10,"app-symbols",7),Ia("symbolChanged",(function(e){return t.symbolChanged(e)})),xa(),xa(),xa()),2&e&&(ar(10),ka("server",t.server)("symbol",t.symbol))},directives:[h$,K4],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),cue=["customAdaptersConfigurator"];function lue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function uue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.path),ar(1),ks(" ",n.path," ")}}function hue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function due(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function fue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function pue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function mue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function gue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function vue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function bue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[0]),ar(1),Cs(" ",n[1]," (",n[0],") ")}}function yue(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",10),Sa(1,"input",55),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).qemuTemplate.cpu_throttling=e})),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.qemuTemplate.cpu_throttling)}}function _ue(e,t){if(1&e&&(Sa(0,"mat-option",54),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function wue(e,t){if(1&e){var n=Pa();Sa(0,"div",8),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General settings "),xa(),xa(),Sa(6,"form",9),Sa(7,"mat-form-field",10),Sa(8,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.name=e})),xa(),xa(),Sa(9,"mat-form-field",10),Sa(10,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.default_name_format=e})),xa(),xa(),Sa(11,"mat-form-field",10),Sa(12,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.symbol=e})),xa(),xa(),xa(),Sa(13,"button",14),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(14,"Choose symbol"),xa(),Oa(15,"br"),Oa(16,"br"),Sa(17,"mat-form-field",10),Sa(18,"mat-select",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.category=e})),ba(19,lue,2,2,"mat-option",16),xa(),xa(),Sa(20,"mat-form-field",10),Sa(21,"input",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.ram=e})),xa(),Sa(22,"span",18),_s(23,"MB"),xa(),xa(),Sa(24,"mat-form-field",10),Sa(25,"input",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.cpus=e})),xa(),xa(),Sa(26,"mat-form-field",10),Sa(27,"mat-select",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.qemu_path=e})),ba(28,uue,2,2,"mat-option",16),xa(),xa(),Sa(29,"mat-form-field",10),Sa(30,"mat-select",21),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.boot_priority=e})),ba(31,hue,2,2,"mat-option",16),xa(),xa(),Sa(32,"mat-form-field",10),Sa(33,"mat-select",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.on_close=e})),ba(34,due,2,2,"mat-option",16),xa(),xa(),Sa(35,"mat-form-field",23),Sa(36,"mat-select",24),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.console_type=e})),ba(37,fue,2,2,"mat-option",16),xa(),xa(),Sa(38,"mat-checkbox",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.console_auto_start=e})),_s(39," Auto start console "),xa(),xa(),Sa(40,"mat-expansion-panel"),Sa(41,"mat-expansion-panel-header"),Sa(42,"mat-panel-title"),_s(43," HDD "),xa(),xa(),Sa(44,"mat-card"),Oa(45,"mat-card-title"),Sa(46,"mat-card-subtitle"),_s(47," HDA (Primary Master) "),xa(),Sa(48,"mat-card-content"),Sa(49,"mat-form-field",10),Sa(50,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hda_disk_image=e})),xa(),xa(),Sa(51,"mat-form-field",10),Sa(52,"mat-select",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hda_disk_interface=e})),ba(53,pue,2,2,"mat-option",16),xa(),xa(),xa(),xa(),Sa(54,"mat-card"),Oa(55,"mat-card-title"),Sa(56,"mat-card-subtitle"),_s(57," HDB (Primary Slave) "),xa(),Sa(58,"mat-card-content"),Sa(59,"mat-form-field",10),Sa(60,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hdb_disk_image=e})),xa(),xa(),Sa(61,"mat-form-field",10),Sa(62,"mat-select",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hdb_disk_interface=e})),ba(63,mue,2,2,"mat-option",16),xa(),xa(),xa(),xa(),Sa(64,"mat-card"),Oa(65,"mat-card-title"),Sa(66,"mat-card-subtitle"),_s(67," HDC (Secondary Master) "),xa(),Sa(68,"mat-card-content"),Sa(69,"mat-form-field",10),Sa(70,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hdc_disk_image=e})),xa(),xa(),Sa(71,"mat-form-field",10),Sa(72,"mat-select",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hdc_disk_interface=e})),ba(73,gue,2,2,"mat-option",16),xa(),xa(),xa(),xa(),Sa(74,"mat-card"),Oa(75,"mat-card-title"),Sa(76,"mat-card-subtitle"),_s(77," HDD (Secondary Slave) "),xa(),Sa(78,"mat-card-content"),Sa(79,"mat-form-field",10),Sa(80,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hdd_disk_image=e})),xa(),xa(),Sa(81,"mat-form-field",10),Sa(82,"mat-select",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.hdd_disk_interface=e})),ba(83,vue,2,2,"mat-option",16),xa(),xa(),xa(),xa(),xa(),Sa(84,"mat-expansion-panel"),Sa(85,"mat-expansion-panel-header"),Sa(86,"mat-panel-title"),_s(87," CD/DVD "),xa(),xa(),Sa(88,"div"),Sa(89,"button",28),Ia("click",(function(){return Dt(n),ya(92).click()})),_s(90,"Browse"),xa(),Sa(91,"input",29,30),Ia("change",(function(e){return Dt(n),Ba().uploadCdromImageFile(e)})),xa(),Sa(93,"mat-form-field",31),Sa(94,"input",32),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.cdrom_image=e})),xa(),xa(),xa(),xa(),Sa(95,"mat-expansion-panel"),Sa(96,"mat-expansion-panel-header"),Sa(97,"mat-panel-title"),_s(98," Network "),xa(),xa(),Sa(99,"mat-form-field",10),Sa(100,"input",33),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.adapters=e})),xa(),xa(),Sa(101,"mat-form-field",10),Sa(102,"input",34),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.first_port_name=e})),xa(),xa(),Sa(103,"mat-form-field",10),Sa(104,"input",35),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.port_name_format=e})),xa(),xa(),Sa(105,"mat-form-field",10),Sa(106,"input",36),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.port_segment_size=e})),xa(),xa(),Sa(107,"mat-form-field",10),Sa(108,"input",37),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.mac_address=e})),xa(),xa(),Sa(109,"mat-form-field",10),Sa(110,"mat-select",38),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.adapter_type=e})),ba(111,bue,2,3,"mat-option",16),xa(),xa(),Sa(112,"button",39),Ia("click",(function(){return Dt(n),Ba().setCustomAdaptersConfiguratorState(!0)})),_s(113,"Configure custom adapters"),xa(),Oa(114,"br"),Sa(115,"mat-checkbox",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.legacy_networking=e})),_s(116," Use the legacy networking mode "),xa(),xa(),Sa(117,"mat-expansion-panel"),Sa(118,"mat-expansion-panel-header"),Sa(119,"mat-panel-title"),_s(120," Advanced "),xa(),xa(),Sa(121,"mat-card"),Oa(122,"mat-card-title"),Sa(123,"mat-card-subtitle"),_s(124," Linux boot specific settings "),xa(),Sa(125,"mat-card-content"),Sa(126,"div"),Sa(127,"button",28),Ia("click",(function(){return Dt(n),ya(130).click()})),_s(128,"Browse"),xa(),Sa(129,"input",29,40),Ia("change",(function(e){return Dt(n),Ba().uploadInitrdFile(e)})),xa(),Sa(131,"mat-form-field",31),Sa(132,"input",41),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.initrd=e})),xa(),xa(),xa(),Sa(133,"div"),Sa(134,"button",28),Ia("click",(function(){return Dt(n),Ba().filekerenelimage.click()})),_s(135,"Browse"),xa(),Sa(136,"input",29,42),Ia("change",(function(e){return Dt(n),Ba().uploadKernelImageFile(e)})),xa(),Sa(138,"mat-form-field",31),Sa(139,"input",43),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.kernel_image=e})),xa(),xa(),xa(),Sa(140,"mat-form-field",10),Sa(141,"input",44),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.kernel_command_line=e})),xa(),xa(),xa(),xa(),Sa(142,"mat-card"),Oa(143,"mat-card-title"),Sa(144,"mat-card-subtitle"),_s(145," Bios "),xa(),Sa(146,"mat-card-content"),Sa(147,"div"),Sa(148,"button",28),Ia("click",(function(){return Dt(n),ya(151).click()})),_s(149,"Browse"),xa(),Sa(150,"input",29,45),Ia("change",(function(e){return Dt(n),Ba().uploadBiosFile(e)})),xa(),Sa(152,"mat-form-field",31),Sa(153,"input",46),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.bios_image=e})),xa(),xa(),xa(),xa(),xa(),Sa(154,"mat-card"),Oa(155,"mat-card-title"),Sa(156,"mat-card-subtitle"),_s(157," Optimization "),xa(),Sa(158,"mat-card-content"),Sa(159,"mat-checkbox",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().activateCpuThrottling=e})),_s(160," Activate CPU throttling "),xa(),ba(161,yue,2,1,"mat-form-field",47),Sa(162,"mat-form-field",10),Sa(163,"mat-select",48),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.process_priority=e})),ba(164,_ue,2,2,"mat-option",16),xa(),xa(),xa(),xa(),Sa(165,"mat-card"),Oa(166,"mat-card-title"),Sa(167,"mat-card-subtitle"),_s(168," Additional settings "),xa(),Sa(169,"mat-card-content"),Sa(170,"mat-form-field",10),Sa(171,"input",49),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.options=e})),xa(),xa(),Sa(172,"mat-checkbox",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.linked_clone=e})),_s(173," Use as a linked base VM "),xa(),xa(),xa(),xa(),Sa(174,"mat-expansion-panel"),Sa(175,"mat-expansion-panel-header"),Sa(176,"mat-panel-title"),_s(177," Usage "),xa(),xa(),Sa(178,"mat-form-field",10),Sa(179,"textarea",50),Ia("ngModelChange",(function(e){return Dt(n),Ba().qemuTemplate.usage=e})),xa(),xa(),xa(),xa(),Sa(180,"div",51),Sa(181,"button",52),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(182,"Cancel"),xa(),Sa(183,"button",53),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(184,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(6),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.qemuTemplate.name),ar(2),ka("ngModel",i.qemuTemplate.default_name_format),ar(2),ka("ngModel",i.qemuTemplate.symbol),ar(6),ka("ngModel",i.qemuTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModel",i.qemuTemplate.ram),ar(4),ka("ngModel",i.qemuTemplate.cpus),ar(2),ka("ngModel",i.qemuTemplate.qemu_path),ar(1),ka("ngForOf",i.binaries),ar(2),ka("ngModel",i.qemuTemplate.boot_priority),ar(1),ka("ngForOf",i.bootPriorities),ar(2),ka("ngModel",i.qemuTemplate.on_close),ar(1),ka("ngForOf",i.onCloseOptions),ar(2),ka("ngModel",i.qemuTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModel",i.qemuTemplate.console_auto_start),ar(12),ka("ngModel",i.qemuTemplate.hda_disk_image),ar(2),ka("ngModel",i.qemuTemplate.hda_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(7),ka("ngModel",i.qemuTemplate.hdb_disk_image),ar(2),ka("ngModel",i.qemuTemplate.hdb_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(7),ka("ngModel",i.qemuTemplate.hdc_disk_image),ar(2),ka("ngModel",i.qemuTemplate.hdc_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(7),ka("ngModel",i.qemuTemplate.hdd_disk_image),ar(2),ka("ngModel",i.qemuTemplate.hdd_disk_interface),ar(1),ka("ngForOf",i.diskInterfaces),ar(11),ka("ngModel",i.qemuTemplate.cdrom_image),ar(6),ka("ngModel",i.qemuTemplate.adapters),ar(2),ka("ngModel",i.qemuTemplate.first_port_name),ar(2),ka("ngModel",i.qemuTemplate.port_name_format),ar(2),ka("ngModel",i.qemuTemplate.port_segment_size),ar(2),ka("ngModel",i.qemuTemplate.mac_address),ar(2),ka("ngModel",i.qemuTemplate.adapter_type),ar(1),ka("ngForOf",i.networkTypes),ar(4),ka("ngModel",i.qemuTemplate.legacy_networking),ar(17),ka("ngModel",i.qemuTemplate.initrd),ar(7),ka("ngModel",i.qemuTemplate.kernel_image),ar(2),ka("ngModel",i.qemuTemplate.kernel_command_line),ar(12),ka("ngModel",i.qemuTemplate.bios_image),ar(6),ka("ngModel",i.activateCpuThrottling),ar(2),ka("ngIf",i.activateCpuThrottling),ar(2),ka("ngModel",i.qemuTemplate.process_priority),ar(1),ka("ngForOf",i.priorities),ar(7),ka("ngModel",i.qemuTemplate.options),ar(1),ka("ngModel",i.qemuTemplate.linked_clone),ar(7),ka("ngModel",i.qemuTemplate.usage)}}function kue(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",56),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.qemuTemplate.symbol)}}var Cue=function(e){return{shadowed:e}},Sue=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.configurationService=r,this.formBuilder=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.binaries=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.generalSettingsForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.qemuService.getTemplate(e.server,n).subscribe((function(n){e.qemuTemplate=n,e.fillCustomAdapters(),e.qemuService.getBinaries(t).subscribe((function(t){e.binaries=t}))}))}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.diskInterfaces=this.configurationService.getDiskInterfaces(),this.networkTypes=this.configurationService.getNetworkTypes(),this.bootPriorities=this.configurationService.getBootPriorities(),this.onCloseOptions=this.configurationService.getOnCloseOptions(),this.categories=this.configurationService.getCategories(),this.priorities=this.configurationService.getPriorities()},e.prototype.uploadCdromImageFile=function(e){this.qemuTemplate.cdrom_image=e.target.files[0].name},e.prototype.uploadInitrdFile=function(e){this.qemuTemplate.initrd=e.target.files[0].name},e.prototype.uploadKernelImageFile=function(e){this.qemuTemplate.kernel_image=e.target.files[0].name},e.prototype.uploadBiosFile=function(e){this.qemuTemplate.bios_image=e.target.files[0].name},e.prototype.setCustomAdaptersConfiguratorState=function(e){var t=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.qemuTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.qemuTemplate.custom_adapters.forEach((function(e){t.customAdaptersConfigurator.adapters.push({adapter_number:e.adapter_number,adapter_type:e.adapter_type})})))},e.prototype.saveCustomAdapters=function(e){this.setCustomAdaptersConfiguratorState(!1),this.qemuTemplate.custom_adapters=e},e.prototype.fillCustomAdapters=function(){var e=this.qemuTemplate.custom_adapters?this.qemuTemplate.custom_adapters:[];this.qemuTemplate.custom_adapters=[];for(var t=0;t<this.qemuTemplate.adapters;t++)this.qemuTemplate.custom_adapters.push(e[t]?e[t]:{adapter_number:t,adapter_type:"e1000"})},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},e.prototype.onSave=function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.activateCpuThrottling||(this.qemuTemplate.cpu_throttling=0),this.fillCustomAdapters(),this.qemuService.saveTemplate(this.server,this.qemuTemplate).subscribe((function(t){e.toasterService.success("Changes saved")})))},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.qemuTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a($2),_a(iJ),_a(J2),_a(um),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(e,t){var n;1&e&&cl(cue,!0),2&e&&al(n=fl())&&(t.customAdaptersConfigurator=n.first)},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Qemu binary",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"QEMU VM configuration"),xa(),xa(),xa(),ba(5,wue,185,49,"div",4),xa(),Sa(6,"app-custom-adapters",5,6),Ia("closeConfiguratorEmitter",(function(e){return t.setCustomAdaptersConfiguratorState(e)}))("saveConfigurationEmitter",(function(e){return t.saveCustomAdapters(e)})),xa(),ba(8,kue,1,2,"app-symbols-menu",7)),2&e&&(ka("ngClass",Bc(6,Cue,t.isConfiguratorOpened||t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.qemuTemplate),ar(1),ka("hidden",!(t.isConfiguratorOpened&&t.qemuTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),ar(2),ka("ngIf",t.isSymbolSelectionOpened&&t.qemuTemplate))},directives:[Rh,Hh,aue,qle,Nle,Hle,Vle,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,H0,Rp,Nh,zf,t0,Q0,wJ,hJ,dJ,uJ,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),xue=function(){function e(){}return e.prototype.getTracengTemplate=function(){return{builtin:!1,category:"guest",compute_id:"local",console_type:"none",default_name_format:"TraceNG{0}",ip_address:"",name:"",symbol:":/symbols/classic/traceng.svg",template_id:"",template_type:"traceng"}},e.prototype.getQemuTemplate=function(){return Object(Sm.a)({adapter_type:"e1000",adapters:4,bios_image:"",boot_priority:"c",builtin:!1,category:"guest",cdrom_image:"",compute_id:"local",console_auto_start:!1,console_type:"telnet",cpu_throttling:0,cpus:1,custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",hda_disk_image:"",hda_disk_interface:"ide",hdb_disk_image:"",hdb_disk_interface:"ide",hdc_disk_image:"",hdc_disk_interface:"ide",hdd_disk_image:"",hdd_disk_interface:"ide",initrd:"",kernel_command_line:"",kernel_image:"",legacy_networking:!1,linked_clone:!0,mac_address:"",name:"",on_close:"power_off",options:"-nographic",platform:"",port_name_format:"Ethernet{0}",port_segment_size:0,process_priority:"normal",qemu_path:"",ram:256,symbol:":/symbols/qemu_guest.svg",template_id:"",template_type:"qemu",usage:""})},e.prototype.getVpcsTemplate=function(){return Object(Sm.a)({base_script_file:"vpcs_base_config.txt",builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"PC{0}",name:"",symbol:":/symbols/vpcs_guest.svg",template_id:"",template_type:"vpcs"})},e.prototype.getVirtualBoxTemplate=function(){return Object(Sm.a)({adapter_type:"Intel PRO/1000 MT Desktop (82540EM)",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,ram:0,symbol:":/symbols/vbox_guest.svg",template_id:"",template_type:"virtualbox",usage:"",use_any_adapter:!1,vmname:""})},e.prototype.getCloudNodeTemplate=function(){return Object(Sm.a)({builtin:!1,category:"guest",compute_id:"local",default_name_format:"Cloud{0}",name:"",ports_mapping:[],remote_console_type:"none",symbol:":/symbols/cloud.svg",template_id:"",template_type:"cloud"})},e.prototype.getEthernetHubTemplate=function(){return Object(Sm.a)({builtin:!1,category:"switch",compute_id:"local",default_name_format:"Hub{0}",name:"",ports_mapping:[],symbol:":/symbols/hub.svg",template_id:"",template_type:"ethernet_hub"})},e.prototype.getEthernetSwitchTemplate=function(){return Object(Sm.a)({builtin:!1,category:"switch",compute_id:"local",console_type:"telnet",default_name_format:"Switch{0}",name:"",ports_mapping:[],symbol:":/symbols/ethernet_switch.svg",template_id:"",template_type:"ethernet_switch"})},e.prototype.getIosTemplate=function(){return Object(Sm.a)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"R{0}",disk0:0,disk1:0,exec_area:64,idlemax:500,idlepc:"",idlesleep:30,image:"",mac_addr:"",mmap:!0,name:"",nvram:128,platform:"",private_config:"",ram:128,sparsemem:!0,startup_config:"",symbol:":/symbols/router.svg",system_id:"FTX0945W0MY",template_id:"",template_type:"dynamips",usage:""})},e.prototype.getVmwareTemplate=function(){return Object(Sm.a)({adapter_type:"e1000",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,symbol:":/symbols/vmware_guest.svg",template_id:"",template_type:"vmware",usage:"",use_any_adapter:!1,vmx_path:""})},e.prototype.getDockerTemplate=function(){return Object(Sm.a)({adapters:1,builtin:!1,category:"guest",compute_id:"vm",console_auto_start:!1,console_http_path:"/",console_http_port:80,console_resolution:"1024x768",console_type:"telnet",custom_adapters:[],default_name_format:"{name}-{0}",environment:"",extra_hosts:"",image:"",name:"",start_command:"",symbol:":/symbols/docker_guest.svg",template_id:"",template_type:"docker",usage:""})},e.prototype.getIouTemplate=function(){return Object(Sm.a)({builtin:!1,category:"switch",compute_id:"vm",console_auto_start:!1,console_type:"telnet",default_name_format:"IOU{0}",ethernet_adapters:1,l1_keepalives:!1,name:"",nvram:128,path:"",private_config:"",ram:256,serial_adapters:0,startup_config:"iou_l2_base_startup-config.txt",symbol:":/symbols/multilayer_switch.svg",template_id:"",template_type:"iou",usage:"",use_default_iou_values:!0})},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function Oue(e,t){if(1&e&&(Sa(0,"mat-option",29),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n.path," ")}}function Mue(e,t){if(1&e&&(Sa(0,"mat-option",29),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Tue(e,t){if(1&e&&(Sa(0,"mat-option",29),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n.filename," ")}}var Eue=function(){return{standalone:!0}};function Pue(e,t){if(1&e){var n=Pa();Sa(0,"mat-select",30),Ia("ngModelChange",(function(e){return Dt(n),Ba().selectedImage=e})),ba(1,Tue,2,2,"mat-option",17),xa()}if(2&e){var i=Ba();ka("ngModelOptions",Nc(3,Eue))("ngModel",i.selectedImage),ar(1),ka("ngForOf",i.qemuImages)}}function jue(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"input",31,32),Ia("change",(function(e){return Dt(n),Ba().uploadImageFile(e)})),xa(),Sa(3,"button",33),Ia("click",(function(){return Dt(n),ya(2).click()})),_s(4,"Browse"),xa(),Sa(5,"mat-form-field",34),Sa(6,"input",35),Ia("ngModelChange",(function(e){return Dt(n),Ba().chosenImage=e})),xa(),xa(),xa()}if(2&e){var i=Ba();ar(1),ka("uploader",i.uploader),ar(5),ka("ngModel",i.chosenImage)}}var Aue=function(){function e(e,t,n,i,r,o,a,s,c){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateMocksService=a,this.configurationService=s,this.computeService=c,this.qemuBinaries=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.qemuTemplate=new Qte,this.nameForm=this.formBuilder.group({templateName:new Cp(null,Df.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new Cp("256",Df.required)}),this.diskForm=this.formBuilder.group({fileName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new vU({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,i,r){e.qemuService.getImages(e.server).subscribe((function(t){e.qemuImages=t})),e.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.templateMocksService.getQemuTemplate().subscribe((function(t){e.qemuTemplate=t})),e.qemuService.getBinaries(t).subscribe((function(t){e.qemuBinaries=t,e.qemuBinaries[0]&&(e.selectedBinary=e.qemuBinaries[0])})),e.qemuService.getImages(t).subscribe((function(t){e.qemuImages=t})),e.consoleTypes=e.configurationService.getConsoleTypes(),e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)}))}))},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.setDiskImage=function(e){this.newImageSelected="newImage"===e},e.prototype.uploadImageFile=function(e){var t=e.target.files[0].name;this.diskForm.controls.fileName.setValue(t);var n=this.qemuService.getImagePath(this.server,t);this.uploader.queue.forEach((function(e){return e.url=n}));var i=this.uploader.queue[0];i.options&&(i.options.disableMultipart=!0),this.uploader.uploadItem(i)},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},e.prototype.addTemplate=function(){var e=this;this.nameForm.invalid||this.memoryForm.invalid||!this.selectedImage&&!this.chosenImage?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.ram=+this.memoryForm.get("ramMemory").value,this.qemuTemplate.qemu_path=this.selectedBinary.path,this.qemuTemplate.hda_disk_image=this.newImageSelected?this.diskForm.get("fileName").value:this.selectedImage.path,this.qemuTemplate.template_id=Object(Gee.v4)(),this.qemuTemplate.name=this.nameForm.get("templateName").value,this.qemuTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.qemuService.addTemplate(this.server,this.qemuTemplate).subscribe((function(t){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a($2),_a(iJ),_a(nK),_a(um),_a(xue),_a(J2),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-add-qemu-virtual-machine-template"]],decls:49,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","QEMU VM Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Please choose a descriptive name for your new QEMU virtual machine","ngDefaultContro",""],["label","QEMU binary and memory",3,"completed"],["placeholder","Qemu binary",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Disk image"],["value","2",1,"radio-button",3,"click"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange"],["type","file","accept",".qcow2","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","fileName","placeholder","Please enter name",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New QEMU VM template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"div",5),Sa(7,"mat-vertical-stepper",6),Sa(8,"mat-step",7),Sa(9,"mat-radio-group",8),Sa(10,"mat-radio-button",9),Ia("click",(function(){return t.setServerType("local")})),_s(11,"Run this QEMU VM locally"),xa(),Sa(12,"mat-radio-button",10),Ia("click",(function(){return t.setServerType("gns3 vm")})),_s(13,"Run this QEMU VM on the GNS3 VM"),xa(),xa(),xa(),Sa(14,"mat-step",11),Sa(15,"form",12),Sa(16,"mat-form-field",13),Oa(17,"input",14),xa(),Oa(18,"br"),xa(),xa(),Sa(19,"mat-step",15),Sa(20,"form",12),Sa(21,"mat-form-field",13),Sa(22,"mat-select",16),Ia("ngModelChange",(function(e){return t.selectedBinary=e})),ba(23,Oue,2,2,"mat-option",17),xa(),xa(),Oa(24,"br"),Sa(25,"mat-form-field",13),Oa(26,"input",18),Sa(27,"span",19),_s(28,"MB"),xa(),xa(),xa(),xa(),Sa(29,"mat-step",20),Sa(30,"mat-form-field",13),Sa(31,"mat-select",21),Ia("ngModelChange",(function(e){return t.qemuTemplate.console_type=e})),ba(32,Mue,2,2,"mat-option",17),xa(),xa(),xa(),Sa(33,"mat-step",22),Sa(34,"form",12),Sa(35,"mat-radio-group",8),Sa(36,"mat-radio-button",9),Ia("click",(function(){return t.setDiskImage("existingImage")})),_s(37,"Existing image"),xa(),Sa(38,"mat-radio-button",23),Ia("click",(function(){return t.setDiskImage("newImage")})),_s(39,"New image"),xa(),xa(),Oa(40,"br"),Oa(41,"br"),ba(42,Pue,2,4,"mat-select",24),ba(43,jue,7,2,"div",25),xa(),xa(),xa(),xa(),Sa(44,"div",26),Sa(45,"button",27),Ia("click",(function(){return t.goBack()})),_s(46,"Cancel"),xa(),Sa(47,"button",28),Ia("click",(function(){return t.addTemplate()})),_s(48,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("linear",!0),ar(1),ka("completed",t.isGns3VmChosen||t.isLocalComputerChosen),ar(4),ka("disabled",!t.isGns3VmAvailable),ar(2),ka("completed",t.nameForm.get("templateName").value),ar(1),ka("formGroup",t.nameForm),ar(4),ka("completed",t.memoryForm.get("ramMemory").value&&t.selectedBinary),ar(1),ka("formGroup",t.memoryForm),ar(2),ka("ngModel",t.selectedBinary)("ngModelOptions",Nc(17,Eue)),ar(1),ka("ngForOf",t.qemuBinaries),ar(6),ka("completed",t.qemuTemplate.console_type),ar(2),ka("ngModel",t.qemuTemplate.console_type)("ngModelOptions",Nc(18,Eue)),ar(1),ka("ngForOf",t.consoleTypes),ar(2),ka("formGroup",t.diskForm),ar(8),ka("ngIf",!t.newImageSelected),ar(1),ka("ngIf",t.newImageSelected))},directives:[eie,Yne,l3,f3,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,zf,t0,Hh,h$,DY,bU],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Iue=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function Due(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function Rue(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add VPCS template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/vpcs/addtemplate")}function Lue(e,t){1&e&&Oa(0,"app-empty-templates-list")}function Fue(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function Nue(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,Fue,13,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.vpcsTemplates)}}function Bue(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,Nue,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var Hue=function(){function e(e,t,n){this.route=e,this.serverService=t,this.vpcsService=n,this.vpcsTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.vpcsService.getTemplates(this.server).subscribe((function(t){e.vpcsTemplates=t.filter((function(e){return"vpcs"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Iue))},e.\u0275cmp=ze({type:e,selectors:[["app-vpcs-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VPCS node templates"),xa(),ba(5,Due,2,1,"button",4),ba(6,Rue,2,1,"button",5),xa(),xa(),ba(7,Lue,1,0,"app-empty-templates-list",6),ba(8,Bue,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.vpcsTemplates.length),ar(1),ka("ngIf",t.vpcsTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),zue=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.vpcsService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new Cp(null,[Df.required])})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)}))}))},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vpcs","templates"])},e.prototype.addTemplate=function(){var e,t=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.templateName=this.templateNameForm.get("templateName").value,this.templateMocksService.getVpcsTemplate().subscribe((function(t){e=t})),e.template_id=Object(Gee.v4)(),e.name=this.templateName,e.compute_id=this.isGns3VmChosen?"vm":"local",this.vpcsService.addTemplate(this.server,e).subscribe((function(){t.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Iue),_a(nK),_a(iJ),_a(xue),_a(um),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-add-vpcs-template"]],decls:20,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New VPCS node template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"mat-radio-group",6),Sa(8,"mat-radio-button",7),Ia("click",(function(){return t.setServerType("local")})),_s(9,"Run the VPCS node locally"),xa(),Sa(10,"mat-radio-button",8),Ia("click",(function(){return t.setServerType("gns3 vm")})),_s(11,"Run the VPCS node on the GNS3 VM"),xa(),xa(),Sa(12,"form",9),Sa(13,"mat-form-field",10),Oa(14,"input",11),xa(),xa(),xa(),Sa(15,"div",12),Sa(16,"button",13),Ia("click",(function(){return t.goBack()})),_s(17,"Cancel"),xa(),Sa(18,"button",14),Ia("click",(function(){return t.addTemplate()})),_s(19,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(10),ka("disabled",!t.isGns3VmAvailable),ar(2),ka("formGroup",t.templateNameForm))},directives:[wJ,l3,f3,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Vue(e,t){if(1&e&&(Sa(0,"mat-option",23),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function que(e,t){if(1&e&&(Sa(0,"mat-option",23),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var Uue=function(){return{standalone:!0}};function Gue(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-card",7),Sa(2,"form",8),Sa(3,"mat-form-field",9),Sa(4,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().vpcsTemplate.name=e})),xa(),xa(),Sa(5,"mat-form-field",9),Sa(6,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().vpcsTemplate.default_name_format=e})),xa(),xa(),Sa(7,"mat-form-field",9),Sa(8,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().vpcsTemplate.base_script_file=e})),xa(),xa(),Sa(9,"mat-form-field",9),Sa(10,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().vpcsTemplate.symbol=e})),xa(),xa(),Sa(11,"button",14),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(12,"Choose symbol"),xa(),Oa(13,"br"),Oa(14,"br"),Sa(15,"mat-form-field",9),Sa(16,"mat-select",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().vpcsTemplate.category=e})),ba(17,Vue,2,2,"mat-option",16),xa(),xa(),Sa(18,"mat-form-field",17),Sa(19,"mat-select",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().vpcsTemplate.console_type=e})),ba(20,que,2,2,"mat-option",16),xa(),xa(),Sa(21,"mat-checkbox",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().vpcsTemplate.console_auto_start=e})),_s(22," Auto start console "),xa(),xa(),xa(),Sa(23,"div",20),Sa(24,"button",21),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(25,"Cancel"),xa(),Sa(26,"button",22),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(27,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("formGroup",i.inputForm),ar(2),ka("ngModel",i.vpcsTemplate.name),ar(2),ka("ngModel",i.vpcsTemplate.default_name_format),ar(2),ka("ngModel",i.vpcsTemplate.base_script_file),ar(2),ka("ngModel",i.vpcsTemplate.symbol),ar(6),ka("ngModelOptions",Nc(13,Uue))("ngModel",i.vpcsTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModelOptions",Nc(14,Uue))("ngModel",i.vpcsTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModelOptions",Nc(15,Uue))("ngModel",i.vpcsTemplate.console_auto_start)}}function Wue(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",24),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.vpcsTemplate.symbol)}}var Kue=function(e){return{shadowed:e}},Xue=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.vpcsService=n,this.toasterService=i,this.formBuilder=r,this.vpcsConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),scriptFile:new Cp("",Df.required),symbol:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.vpcsService.getTemplate(e.server,n).subscribe((function(t){e.vpcsTemplate=t}))}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vpcs","templates"])},e.prototype.onSave=function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.vpcsService.saveTemplate(this.server,this.vpcsTemplate).subscribe((function(t){e.toasterService.success("Changes saved")}))},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.vpcsTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Iue),_a(iJ),_a(um),_a(I$),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-vpcs-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","scriptFile","placeholder","Base script file",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VPCS device configuration"),xa(),xa(),xa(),ba(5,Gue,28,16,"div",4),xa(),ba(6,Wue,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,Kue,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.vpcsTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.vpcsTemplate))},directives:[Rh,Hh,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,H0,Rp,Nh,Q0,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Yue=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.prototype.getVirtualMachines=function(e){return this.httpServer.get(e,"/compute/virtualbox/vms")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function Zue(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function Que(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add Virtual Box VM template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/virtualbox/addtemplate")}function $ue(e,t){1&e&&Oa(0,"app-empty-templates-list")}function Jue(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function ehe(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,Jue,13,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.virtualBoxTemplates)}}function the(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,ehe,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var nhe=function(){function e(e,t,n){this.route=e,this.serverService=t,this.virtualBoxService=n,this.virtualBoxTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.virtualBoxService.getTemplates(this.server).subscribe((function(t){e.virtualBoxTemplates=t.filter((function(e){return"virtualbox"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Yue))},e.\u0275cmp=ze({type:e,selectors:[["app-virtual-box-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VirtualBox VM templates"),xa(),ba(5,Zue,2,1,"button",4),ba(6,Que,2,1,"button",5),xa(),xa(),ba(7,$ue,1,0,"app-empty-templates-list",6),ba(8,the,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.virtualBoxTemplates.length),ar(1),ka("ngIf",t.virtualBoxTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),ihe=["customAdaptersConfigurator"];function rhe(e,t){if(1&e&&(Sa(0,"mat-option",34),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function ohe(e,t){if(1&e&&(Sa(0,"mat-option",34),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function ahe(e,t){if(1&e&&(Sa(0,"mat-option",34),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function she(e,t){if(1&e&&(Sa(0,"mat-option",34),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var che=function(){return{standalone:!0}};function lhe(e,t){if(1&e){var n=Pa();Sa(0,"div",8),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General settings "),xa(),xa(),Sa(6,"form",9),Sa(7,"mat-form-field",10),Sa(8,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.name=e})),xa(),xa(),Sa(9,"mat-form-field",10),Sa(10,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.default_name_format=e})),xa(),xa(),Sa(11,"mat-form-field",10),Sa(12,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.symbol=e})),xa(),xa(),Sa(13,"button",14),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(14,"Choose symbol"),xa(),Oa(15,"br"),Oa(16,"br"),Sa(17,"mat-form-field",10),Sa(18,"mat-select",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.category=e})),ba(19,rhe,2,2,"mat-option",16),xa(),xa(),Sa(20,"mat-form-field",17),Sa(21,"mat-select",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.console_type=e})),ba(22,ohe,2,2,"mat-option",16),xa(),xa(),Sa(23,"mat-checkbox",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.console_auto_start=e})),_s(24," Auto start console "),xa(),Sa(25,"mat-form-field",10),Sa(26,"input",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.ram=e})),xa(),Sa(27,"span",21),_s(28,"MB"),xa(),xa(),Sa(29,"mat-form-field",10),Sa(30,"mat-select",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.on_close=e})),ba(31,ahe,2,2,"mat-option",16),xa(),xa(),xa(),Sa(32,"mat-checkbox",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.headless=e})),_s(33," Start VM in headless mode "),xa(),Oa(34,"br"),Sa(35,"mat-checkbox",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.linked_clone=e})),_s(36," Use as a linked base VM (experimental) "),xa(),xa(),Sa(37,"mat-expansion-panel"),Sa(38,"mat-expansion-panel-header"),Sa(39,"mat-panel-title"),_s(40," Network "),xa(),xa(),Sa(41,"form",9),Sa(42,"mat-form-field",10),Sa(43,"input",24),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.adapters=e})),xa(),xa(),Sa(44,"mat-form-field",10),Sa(45,"input",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.first_port_name=e})),xa(),xa(),Sa(46,"mat-form-field",10),Sa(47,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.port_name_format=e})),xa(),xa(),Sa(48,"mat-form-field",10),Sa(49,"input",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.port_segment_size=e})),xa(),xa(),Sa(50,"mat-form-field",10),Sa(51,"mat-select",28),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.adapter_type=e})),ba(52,she,2,2,"mat-option",16),xa(),xa(),xa(),Sa(53,"button",29),Ia("click",(function(){return Dt(n),Ba().setCustomAdaptersConfiguratorState(!0)})),_s(54,"Configure custom adapters"),xa(),Oa(55,"br"),Sa(56,"mat-checkbox",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.use_any_adapter=e})),_s(57," Allow GNS3 to use any configured VirtualBox adapter "),xa(),xa(),Sa(58,"mat-expansion-panel"),Sa(59,"mat-expansion-panel-header"),Sa(60,"mat-panel-title"),_s(61," Usage "),xa(),xa(),Sa(62,"mat-form-field",10),Sa(63,"textarea",30),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.usage=e})),xa(),xa(),xa(),xa(),Sa(64,"div",31),Sa(65,"button",32),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(66,"Cancel"),xa(),Sa(67,"button",33),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(68,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(6),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.virtualBoxTemplate.name),ar(2),ka("ngModel",i.virtualBoxTemplate.default_name_format),ar(2),ka("ngModel",i.virtualBoxTemplate.symbol),ar(6),ka("ngModelOptions",Nc(29,che))("ngModel",i.virtualBoxTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModelOptions",Nc(30,che))("ngModel",i.virtualBoxTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModelOptions",Nc(31,che))("ngModel",i.virtualBoxTemplate.console_auto_start),ar(3),ka("ngModel",i.virtualBoxTemplate.ram),ar(4),ka("ngModelOptions",Nc(32,che))("ngModel",i.virtualBoxTemplate.on_close),ar(1),ka("ngForOf",i.onCloseOptions),ar(1),ka("ngModel",i.virtualBoxTemplate.headless),ar(3),ka("ngModel",i.virtualBoxTemplate.linked_clone),ar(6),ka("formGroup",i.networkForm),ar(2),ka("ngModel",i.virtualBoxTemplate.adapters),ar(2),ka("ngModelOptions",Nc(33,che))("ngModel",i.virtualBoxTemplate.first_port_name),ar(2),ka("ngModel",i.virtualBoxTemplate.port_name_format),ar(2),ka("ngModel",i.virtualBoxTemplate.port_segment_size),ar(2),ka("ngModelOptions",Nc(34,che))("ngModel",i.virtualBoxTemplate.adapter_type),ar(1),ka("ngForOf",i.networkTypes),ar(4),ka("ngModel",i.virtualBoxTemplate.use_any_adapter),ar(7),ka("ngModel",i.virtualBoxTemplate.usage)}}function uhe(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",35),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.virtualBoxTemplate.symbol)}}var hhe=function(e){return{shadowed:e}},dhe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.virtualBoxService=n,this.toasterService=i,this.formBuilder=r,this.virtualBoxConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required),ram:new Cp("",Df.required)}),this.networkForm=this.formBuilder.group({adapters:new Cp("",Df.required),nameFormat:new Cp("",Df.required),size:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.virtualBoxService.getTemplate(e.server,n).subscribe((function(t){e.virtualBoxTemplate=t,e.fillCustomAdapters()}))}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.categories=this.virtualBoxConfigurationService.getCategories(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()},e.prototype.setCustomAdaptersConfiguratorState=function(e){var t=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.virtualBoxTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.virtualBoxTemplate.custom_adapters.forEach((function(e){t.customAdaptersConfigurator.adapters.push({adapter_number:e.adapter_number,adapter_type:e.adapter_type})})))},e.prototype.saveCustomAdapters=function(e){this.setCustomAdaptersConfiguratorState(!1),this.virtualBoxTemplate.custom_adapters=e},e.prototype.fillCustomAdapters=function(){var e=this.virtualBoxTemplate.custom_adapters?this.virtualBoxTemplate.custom_adapters:[];this.virtualBoxTemplate.custom_adapters=[];for(var t=0;t<this.virtualBoxTemplate.adapters;t++)this.virtualBoxTemplate.custom_adapters.push(e[t]?e[t]:{adapter_number:t,adapter_type:"e1000"})},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","virtualbox","templates"])},e.prototype.onSave=function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.virtualBoxService.saveTemplate(this.server,this.virtualBoxTemplate).subscribe((function(t){e.toasterService.success("Changes saved")})))},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.virtualBoxTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Yue),_a(iJ),_a(um),_a(I2),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-virtual-box-template-details"]],viewQuery:function(e,t){var n;1&e&&cl(ihe,!0),2&e&&al(n=fl())&&(t.customAdaptersConfigurator=n.first)},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["formControlName","adapters","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","nameFormat","matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["formControlName","size","matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VirtualBox VM configuration"),xa(),xa(),xa(),ba(5,lhe,69,35,"div",4),xa(),Sa(6,"app-custom-adapters",5,6),Ia("closeConfiguratorEmitter",(function(e){return t.setCustomAdaptersConfiguratorState(e)}))("saveConfigurationEmitter",(function(e){return t.saveCustomAdapters(e)})),xa(),ba(8,uhe,1,2,"app-symbols-menu",7)),2&e&&(ka("ngClass",Bc(6,hhe,t.isConfiguratorOpened||t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.virtualBoxTemplate),ar(1),ka("hidden",!(t.isConfiguratorOpened&&t.virtualBoxTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),ar(2),ka("ngIf",t.isSymbolSelectionOpened&&t.virtualBoxTemplate))},directives:[Rh,Hh,aue,qle,Nle,Hle,Vle,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,H0,Rp,Nh,Q0,zf,t0,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function fhe(e,t){if(1&e&&(Sa(0,"mat-option",15),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n.vmname," ")}}function phe(e,t){if(1&e){var n=Pa();Sa(0,"div",5),Sa(1,"mat-card",6),Sa(2,"form",7),Sa(3,"mat-form-field",8),Sa(4,"mat-select",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().selectedVM=e})),ba(5,fhe,2,2,"mat-option",10),xa(),xa(),xa(),Sa(6,"mat-checkbox",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().virtualBoxTemplate.linked_clone=e})),_s(7," Use as a linked base VM (experimental) "),xa(),xa(),Sa(8,"div",12),Sa(9,"button",13),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(10,"Cancel"),xa(),Sa(11,"button",14),Ia("click",(function(){return Dt(n),Ba().addTemplate()})),_s(12,"Add template"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("formGroup",i.vmForm),ar(2),ka("ngModel",i.selectedVM),ar(1),ka("ngForOf",i.virtualMachines),ar(1),ka("ngModel",i.virtualBoxTemplate.linked_clone)}}var mhe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.virtualBoxService=n,this.toasterService=i,this.templateMocksService=r,this.router=o,this.formBuilder=a,this.vmForm=this.formBuilder.group({vm:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.virtualBoxService.getVirtualMachines(e.server).subscribe((function(t){e.virtualMachines=t,e.templateMocksService.getVirtualBoxTemplate().subscribe((function(t){e.virtualBoxTemplate=t}))}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","virtualbox","templates"])},e.prototype.addTemplate=function(){var e=this;this.vmForm.invalid?this.toasterService.error("Fill all required fields"):(this.virtualBoxTemplate.name=this.selectedVM.vmname,this.virtualBoxTemplate.vmname=this.selectedVM.vmname,this.virtualBoxTemplate.ram=this.selectedVM.ram,this.virtualBoxTemplate.template_id=Object(Gee.v4)(),this.virtualBoxService.addTemplate(this.server,this.virtualBoxTemplate).subscribe((function(){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Yue),_a(iJ),_a(xue),_a(nK),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-add-virtual-box-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","vm",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New VirtualBox VM template"),xa(),xa(),xa(),ba(5,phe,13,4,"div",4),xa()),2&e&&(ar(5),ka("ngIf",t.virtualBoxTemplate))},directives:[Hh,wJ,Lp,Tf,zp,a0,H0,Mf,Xp,Nh,Q0,Rp,h$,DY],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),ghe=function(){function e(e){this.route=e,this.serverId=""}return e.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},e.\u0275fac=function(t){return new(t||e)(_a(FG))},e.\u0275cmp=ze({type:e,selectors:[["app-built-in-preferences"]],decls:16,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Built-in preferences"),xa(),Sa(5,"button",4),_s(6,"Back"),xa(),xa(),xa(),Sa(7,"div",5),Sa(8,"div",6),Sa(9,"mat-nav-list"),Sa(10,"mat-list-item",7),_s(11," Ethernet hubs "),xa(),Sa(12,"mat-list-item",7),_s(13," Ethernet switches "),xa(),Sa(14,"mat-list-item",7),_s(15," Cloud nodes "),xa(),xa(),xa(),xa(),xa()),2&e&&(ar(5),Ua("routerLink","/server/",t.serverId,"/preferences"),ar(5),Ua("routerLink","/server/",t.serverId,"/preferences/builtin/ethernet-hubs"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/builtin/ethernet-switches"),ar(2),Ua("routerLink","/server/",t.serverId,"/preferences/builtin/cloud-nodes"))},directives:[h$,rK,J5,o4],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),vhe=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function bhe(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/builtin")}function yhe(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add Ethernet hub template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/builtin/ethernet-hubs/addtemplate")}function _he(e,t){1&e&&Oa(0,"app-empty-templates-list")}function whe(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function khe(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,whe,13,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.ethernetHubsTemplates)}}function Che(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,khe,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var She=function(){function e(e,t,n){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.ethernetHubsTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.builtInTemplatesService.getTemplates(this.server).subscribe((function(t){e.ethernetHubsTemplates=t.filter((function(e){return"ethernet_hub"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe))},e.\u0275cmp=ze({type:e,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Ethernet hubs templates"),xa(),ba(5,bhe,2,1,"button",4),ba(6,yhe,2,1,"button",5),xa(),xa(),ba(7,_he,1,0,"app-empty-templates-list",6),ba(8,Che,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.ethernetHubsTemplates.length),ar(1),ka("ngIf",t.ethernetHubsTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),xhe=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new Cp("",Df.required),numberOfPorts:new Cp(8,Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)}))}))},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-hubs"])},e.prototype.addTemplate=function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var t;this.templateMocksService.getEthernetHubTemplate().subscribe((function(e){t=e})),t.template_id=Object(Gee.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local";for(var n=0;n<this.formGroup.get("numberOfPorts").value;n++)t.ports_mapping.push({name:"Ethernet"+n,port_number:n});this.builtInTemplatesService.addTemplate(this.server,t).subscribe((function(){e.goBack()}))}},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe),_a(nK),_a(iJ),_a(xue),_a(um),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-ethernet-hubs-add-template"]],decls:22,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New Ethernet hub template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"mat-radio-group",6),Sa(8,"mat-radio-button",7),Ia("click",(function(){return t.setServerType("local")})),_s(9,"Run the Ethernet Hub locally"),xa(),Sa(10,"mat-radio-button",8),Ia("click",(function(){return t.setServerType("gns3 vm")})),_s(11,"Run the Ethernet Hub on the GNS3 VM"),xa(),xa(),Sa(12,"form",9),Sa(13,"mat-form-field",10),Oa(14,"input",11),xa(),Sa(15,"mat-form-field",10),Oa(16,"input",12),xa(),xa(),xa(),Sa(17,"div",13),Sa(18,"button",14),Ia("click",(function(){return t.goBack()})),_s(19,"Cancel"),xa(),Sa(20,"button",15),Ia("click",(function(){return t.addTemplate()})),_s(21,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(10),ka("disabled",!t.isGns3VmAvailable),ar(2),ka("formGroup",t.formGroup))},directives:[wJ,l3,f3,Lp,Tf,zp,a0,wf,y0,Mf,Xp,zf,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Ohe(e,t){if(1&e&&(Sa(0,"mat-option",19),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}var Mhe=function(){return{standalone:!0}};function The(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-card"),Sa(2,"form",7),Sa(3,"mat-form-field",8),Sa(4,"input",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetHubTemplate.name=e})),xa(),xa(),Sa(5,"mat-form-field",8),Sa(6,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetHubTemplate.default_name_format=e})),xa(),xa(),Sa(7,"mat-form-field",8),Sa(8,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetHubTemplate.symbol=e})),xa(),xa(),Sa(9,"button",12),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(10,"Choose symbol"),xa(),Oa(11,"br"),Oa(12,"br"),Sa(13,"mat-form-field",8),Sa(14,"mat-select",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetHubTemplate.category=e})),ba(15,Ohe,2,2,"mat-option",14),xa(),xa(),Sa(16,"mat-form-field",8),Sa(17,"input",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().numberOfPorts=e})),xa(),xa(),xa(),xa(),Sa(18,"div",16),Sa(19,"button",17),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(20,"Cancel"),xa(),Sa(21,"button",18),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(22,"Save"),xa(),Oa(23,"br"),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("formGroup",i.inputForm),ar(2),ka("ngModel",i.ethernetHubTemplate.name),ar(2),ka("ngModel",i.ethernetHubTemplate.default_name_format),ar(2),ka("ngModel",i.ethernetHubTemplate.symbol),ar(6),ka("ngModelOptions",Nc(9,Mhe))("ngModel",i.ethernetHubTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModel",i.numberOfPorts)("ngModelOptions",Nc(10,Mhe))}}function Ehe(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",20),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.ethernetHubTemplate.symbol)}}var Phe=function(e){return{shadowed:e}},jhe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=i,this.formBuilder=r,this.builtInTemplatesConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.categories=e.builtInTemplatesConfigurationService.getCategoriesForEthernetHubs(),e.builtInTemplatesService.getTemplate(e.server,n).subscribe((function(t){e.ethernetHubTemplate=t,e.numberOfPorts=e.ethernetHubTemplate.ports_mapping.length}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-hubs"])},e.prototype.onSave=function(){var e=this;if(this.inputForm.invalid||!this.numberOfPorts)this.toasterService.error("Fill all required fields");else{this.ethernetHubTemplate.ports_mapping=[];for(var t=0;t<this.numberOfPorts;t++)this.ethernetHubTemplate.ports_mapping.push({name:"Ethernet"+t,port_number:t});this.builtInTemplatesService.saveTemplate(this.server,this.ethernetHubTemplate).subscribe((function(t){e.toasterService.success("Changes saved")}))}},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetHubTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe),_a(iJ),_a(um),_a(c1),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-ethernet-hubs-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Ethernet hub settings"),xa(),xa(),xa(),ba(5,The,24,11,"div",4),xa(),ba(6,Ehe,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,Phe,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.ethernetHubTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.ethernetHubTemplate))},directives:[Rh,Hh,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,H0,Rp,Nh,zf,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Ahe(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/builtin")}function Ihe(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add cloud node template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/builtin/cloud-nodes/addtemplate")}function Dhe(e,t){1&e&&Oa(0,"app-empty-templates-list")}function Rhe(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function Lhe(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,Rhe,13,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.cloudNodesTemplates)}}function Fhe(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,Lhe,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var Nhe=function(){function e(e,t,n){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.cloudNodesTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.builtInTemplatesService.getTemplates(this.server).subscribe((function(t){e.cloudNodesTemplates=t.filter((function(e){return"cloud"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe))},e.\u0275cmp=ze({type:e,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Cloud nodes templates"),xa(),ba(5,Ahe,2,1,"button",4),ba(6,Ihe,2,1,"button",5),xa(),xa(),ba(7,Dhe,1,0,"app-empty-templates-list",6),ba(8,Fhe,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.cloudNodesTemplates.length),ar(1),ka("ngIf",t.cloudNodesTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Bhe=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)}))}))},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","cloud-nodes"])},e.prototype.addTemplate=function(){var e,t=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.templateMocksService.getCloudNodeTemplate().subscribe((function(t){e=t})),e.template_id=Object(Gee.v4)(),e.name=this.formGroup.get("templateName").value,e.compute_id=this.isGns3VmChosen?"vm":"local",this.builtInTemplatesService.addTemplate(this.server,e).subscribe((function(e){t.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe),_a(nK),_a(iJ),_a(xue),_a(um),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-cloud-nodes-add-template"]],decls:20,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New cloud node template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"mat-radio-group",6),Sa(8,"mat-radio-button",7),Ia("click",(function(){return t.setServerType("local")})),_s(9,"Run the cloud node locally"),xa(),Sa(10,"mat-radio-button",8),Ia("click",(function(){return t.setServerType("gns3 vm")})),_s(11,"Run the cloud node on the GNS3 VM"),xa(),xa(),Sa(12,"form",9),Sa(13,"mat-form-field",10),Oa(14,"input",11),xa(),xa(),xa(),Sa(15,"div",12),Sa(16,"button",13),Ia("click",(function(){return t.goBack()})),_s(17,"Cancel"),xa(),Sa(18,"button",14),Ia("click",(function(){return t.addTemplate()})),_s(19,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(10),ka("disabled",!t.isGns3VmAvailable),ar(2),ka("formGroup",t.formGroup))},directives:[wJ,l3,f3,Lp,Tf,zp,a0,wf,y0,Mf,Xp,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Hhe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function zhe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Vhe(e,t){if(1&e&&(Sa(0,"div",7),Sa(1,"div",7),_s(2),xa(),Oa(3,"br"),Oa(4,"br"),xa()),2&e){var n=t.$implicit;ar(2),ws(n.name)}}function qhe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Uhe(e,t){if(1&e&&(Sa(0,"div",7),Sa(1,"div",7),_s(2),xa(),Oa(3,"br"),Oa(4,"br"),xa()),2&e){var n=t.$implicit;ar(2),ws(n.name)}}function Ghe(e,t){1&e&&(Sa(0,"th",42),_s(1," Name "),xa())}function Whe(e,t){if(1&e&&(Sa(0,"td",43),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.name," ")}}function Khe(e,t){1&e&&(Sa(0,"th",42),_s(1," Local port "),xa())}function Xhe(e,t){if(1&e&&(Sa(0,"td",43),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.rport," ")}}function Yhe(e,t){1&e&&(Sa(0,"th",42),_s(1," Type "),xa())}function Zhe(e,t){if(1&e&&(Sa(0,"td",43),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.rhost," ")}}function Qhe(e,t){1&e&&(Sa(0,"th",42),_s(1," Remote port "),xa())}function $he(e,t){if(1&e&&(Sa(0,"td",43),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.lport," ")}}function Jhe(e,t){1&e&&Oa(0,"tr",44)}function ede(e,t){1&e&&Oa(0,"tr",45)}function tde(e,t){if(1&e&&(Sa(0,"table",33),Ma(1,34),ba(2,Ghe,2,0,"th",35),ba(3,Whe,2,1,"td",36),Ta(),Ma(4,37),ba(5,Khe,2,0,"th",35),ba(6,Xhe,2,1,"td",36),Ta(),Ma(7,38),ba(8,Yhe,2,0,"th",35),ba(9,Zhe,2,1,"td",36),Ta(),Ma(10,39),ba(11,Qhe,2,0,"th",35),ba(12,$he,2,1,"td",36),Ta(),ba(13,Jhe,1,0,"tr",40),ba(14,ede,1,0,"tr",41),xa()),2&e){var n=Ba(2);ka("dataSource",n.dataSourceUdp),ar(13),ka("matHeaderRowDef",n.displayedColumns),ar(1),ka("matRowDefColumns",n.displayedColumns)}}function nde(e,t){1&e&&Oa(0,"br")}var ide=function(){return{standalone:!0}};function rde(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General "),xa(),xa(),Sa(6,"mat-form-field",7),Sa(7,"input",8),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.name=e})),xa(),xa(),Sa(8,"mat-form-field",7),Sa(9,"input",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.default_name_format=e})),xa(),xa(),Sa(10,"mat-form-field",7),Sa(11,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.symbol=e})),xa(),xa(),Sa(12,"button",11),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(13,"Choose symbol"),xa(),Oa(14,"br"),Oa(15,"br"),Sa(16,"mat-form-field",7),Sa(17,"mat-select",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.category=e})),ba(18,Hhe,2,2,"mat-option",13),xa(),xa(),Sa(19,"mat-form-field",14),Sa(20,"mat-select",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.console_type=e})),ba(21,zhe,2,2,"mat-option",13),xa(),xa(),Sa(22,"mat-form-field",7),Sa(23,"input",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.remote_console_host=e})),xa(),xa(),Sa(24,"mat-form-field",7),Sa(25,"input",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.remote_console_port=e})),xa(),xa(),Sa(26,"mat-form-field",7),Sa(27,"input",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().cloudNodeTemplate.remote_console_http_path=e})),xa(),xa(),xa(),Sa(28,"mat-expansion-panel"),Sa(29,"mat-expansion-panel-header"),Sa(30,"mat-panel-title"),_s(31," Ethernet interfaces "),xa(),xa(),ba(32,Vhe,5,1,"div",19),Sa(33,"mat-form-field",14),Sa(34,"mat-select",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetInterface=e})),ba(35,qhe,2,2,"mat-option",13),xa(),xa(),Sa(36,"button",21),Ia("click",(function(){return Dt(n),Ba().onAddEthernetInterface()})),_s(37,"Add"),xa(),xa(),Sa(38,"mat-expansion-panel"),Sa(39,"mat-expansion-panel-header"),Sa(40,"mat-panel-title"),_s(41," TAP interfaces "),xa(),xa(),ba(42,Uhe,5,1,"div",19),Sa(43,"mat-form-field",7),Sa(44,"input",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().tapInterface=e})),xa(),xa(),Sa(45,"button",21),Ia("click",(function(){return Dt(n),Ba().onAddTapInterface()})),_s(46,"Add"),xa(),xa(),Sa(47,"mat-expansion-panel"),Sa(48,"mat-expansion-panel-header"),Sa(49,"mat-panel-title"),_s(50," UDP tunnels "),xa(),xa(),ba(51,tde,15,3,"table",23),ba(52,nde,1,0,"br",24),Sa(53,"mat-form-field",7),Sa(54,"input",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().newPort.name=e})),xa(),xa(),Sa(55,"mat-form-field",7),Sa(56,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().newPort.lport=e})),xa(),xa(),Sa(57,"mat-form-field",7),Sa(58,"input",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().newPort.rhost=e})),xa(),xa(),Sa(59,"mat-form-field",7),Sa(60,"input",28),Ia("ngModelChange",(function(e){return Dt(n),Ba().newPort.rport=e})),xa(),xa(),Sa(61,"button",21),Ia("click",(function(){return Dt(n),Ba().onAddUdpInterface()})),_s(62,"Add"),xa(),xa(),xa(),Sa(63,"div",29),Sa(64,"button",30),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(65,"Cancel"),xa(),Sa(66,"button",31),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(67,"Save"),xa(),Oa(68,"br"),xa(),xa()}if(2&e){var i=Ba();ar(7),ka("ngModel",i.cloudNodeTemplate.name),ar(2),ka("ngModel",i.cloudNodeTemplate.default_name_format),ar(2),ka("ngModel",i.cloudNodeTemplate.symbol),ar(6),ka("ngModel",i.cloudNodeTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModel",i.cloudNodeTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(2),ka("ngModel",i.cloudNodeTemplate.remote_console_host),ar(2),ka("ngModel",i.cloudNodeTemplate.remote_console_port),ar(2),ka("ngModel",i.cloudNodeTemplate.remote_console_http_path),ar(5),ka("ngForOf",i.portsMappingEthernet),ar(2),ka("ngModelOptions",Nc(22,ide))("ngModel",i.ethernetInterface),ar(1),ka("ngForOf",i.ethernetInterfaces),ar(7),ka("ngForOf",i.portsMappingTap),ar(2),ka("ngModel",i.tapInterface),ar(7),ka("ngIf",i.dataSourceUdp.length),ar(1),ka("ngIf",i.dataSourceUdp.length),ar(2),ka("ngModel",i.newPort.name),ar(2),ka("ngModel",i.newPort.lport),ar(2),ka("ngModel",i.newPort.rhost),ar(2),ka("ngModel",i.newPort.rport)}}function ode(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",46),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.cloudNodeTemplate.symbol)}}var ade=function(e){return{shadowed:e}},sde=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=i,this.builtInTemplatesConfigurationService=r,this.router=o,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.server,n).subscribe((function(t){e.cloudNodeTemplate=t,e.portsMappingEthernet=e.cloudNodeTemplate.ports_mapping.filter((function(e){return"ethernet"===e.type})),e.portsMappingTap=e.cloudNodeTemplate.ports_mapping.filter((function(e){return"tap"===e.type})),e.portsMappingUdp=e.cloudNodeTemplate.ports_mapping.filter((function(e){return"udp"===e.type})),e.dataSourceUdp=e.portsMappingUdp}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","cloud-nodes"])},e.prototype.getConfiguration=function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()},e.prototype.onAddEthernetInterface=function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})},e.prototype.onAddTapInterface=function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})},e.prototype.onAddUdpInterface=function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=NK(this.portsMappingUdp),this.newPort={name:"",port_number:0}},e.prototype.onSave=function(){var e=this;this.cloudNodeTemplate.ports_mapping=NK(this.portsMappingEthernet,this.portsMappingTap),this.builtInTemplatesService.saveTemplate(this.server,this.cloudNodeTemplate).subscribe((function(t){e.toasterService.success("Changes saved")}))},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.cloudNodeTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe),_a(iJ),_a(c1),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-cloud-nodes-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["class","form-field",4,"ngFor","ngForOf"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Cloud configuration"),xa(),xa(),xa(),ba(5,rde,69,23,"div",4),xa(),ba(6,ode,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,ade,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.cloudNodeTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.cloudNodeTemplate))},directives:[Rh,Hh,qle,Nle,Hle,Vle,a0,y0,wf,Mf,Rp,h$,H0,Nh,zf,DY,f1,w1,v1,m1,E1,I1,C1,M1,R1,B1,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function cde(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/builtin")}function lde(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add Ethernet switch template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/builtin/ethernet-switches/addtemplate")}function ude(e,t){1&e&&Oa(0,"app-empty-templates-list")}function hde(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function dde(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,hde,13,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.ethernetSwitchesTemplates)}}function fde(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,dde,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var pde=function(){function e(e,t,n){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.ethernetSwitchesTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.builtInTemplatesService.getTemplates(this.server).subscribe((function(t){e.ethernetSwitchesTemplates=t.filter((function(e){return"ethernet_switch"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe))},e.\u0275cmp=ze({type:e,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Ethernet switches templates"),xa(),ba(5,cde,2,1,"button",4),ba(6,lde,2,1,"button",5),xa(),xa(),ba(7,ude,1,0,"app-empty-templates-list",6),ba(8,fde,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.ethernetSwitchesTemplates.length),ar(1),ka("ngIf",t.ethernetSwitchesTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),mde=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new Cp("",Df.required),numberOfPorts:new Cp(8,Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-switches"])},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.addTemplate=function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var t;this.templateMocksService.getEthernetSwitchTemplate().subscribe((function(e){t=e})),t.template_id=Object(Gee.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local";for(var n=0;n<this.formGroup.get("numberOfPorts").value;n++)t.ports_mapping.push({ethertype:"",name:"Ethernet"+n,port_number:n,type:"access",vlan:1});this.builtInTemplatesService.addTemplate(this.server,t).subscribe((function(t){e.goBack()}))}},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe),_a(nK),_a(iJ),_a(xue),_a(um),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-ethernet-switches-add-template"]],decls:22,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New Ethernet switch template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"mat-radio-group",6),Sa(8,"mat-radio-button",7),Ia("click",(function(){return t.setServerType("local")})),_s(9,"Run the Ethernet switch locally"),xa(),Sa(10,"mat-radio-button",8),Ia("click",(function(){return t.setServerType("gns3 vm")})),_s(11,"Run the Ethernet switch on the GNS3 VM"),xa(),xa(),Sa(12,"form",9),Sa(13,"mat-form-field",10),Oa(14,"input",11),xa(),Sa(15,"mat-form-field",10),Oa(16,"input",12),xa(),xa(),xa(),Sa(17,"div",13),Sa(18,"button",14),Ia("click",(function(){return t.goBack()})),_s(19,"Cancel"),xa(),Sa(20,"button",15),Ia("click",(function(){return t.addTemplate()})),_s(21,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(10),ka("disabled",!t.isGns3VmAvailable),ar(2),ka("formGroup",t.formGroup))},directives:[wJ,l3,f3,Lp,Tf,zp,a0,wf,y0,Mf,Xp,zf,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function gde(e,t){if(1&e&&(Sa(0,"mat-option",22),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function vde(e,t){if(1&e&&(Sa(0,"mat-option",22),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var bde=function(){return{standalone:!0}};function yde(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General settings "),xa(),xa(),Sa(6,"form",7),Sa(7,"mat-form-field",8),Sa(8,"input",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetSwitchTemplate.name=e})),xa(),xa(),Sa(9,"mat-form-field",8),Sa(10,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetSwitchTemplate.default_name_format=e})),xa(),xa(),Sa(11,"mat-form-field",8),Sa(12,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetSwitchTemplate.symbol=e})),xa(),xa(),Sa(13,"button",12),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(14,"Choose symbol"),xa(),Oa(15,"br"),Oa(16,"br"),Sa(17,"mat-form-field",8),Sa(18,"mat-select",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetSwitchTemplate.category=e})),ba(19,gde,2,2,"mat-option",14),xa(),xa(),Sa(20,"mat-form-field",15),Sa(21,"mat-select",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().ethernetSwitchTemplate.console_type=e})),ba(22,vde,2,2,"mat-option",14),xa(),xa(),xa(),xa(),Sa(23,"mat-expansion-panel"),Sa(24,"mat-expansion-panel-header"),Sa(25,"mat-panel-title"),_s(26," Port settings "),xa(),xa(),Oa(27,"app-ports",17,18),xa(),xa(),Sa(29,"div",19),Sa(30,"button",20),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(31,"Cancel"),xa(),Sa(32,"button",21),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(33,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(6),ka("formGroup",i.inputForm),ar(2),ka("ngModel",i.ethernetSwitchTemplate.name),ar(2),ka("ngModel",i.ethernetSwitchTemplate.default_name_format),ar(2),ka("ngModel",i.ethernetSwitchTemplate.symbol),ar(6),ka("ngModelOptions",Nc(11,bde))("ngModel",i.ethernetSwitchTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModelOptions",Nc(12,bde))("ngModel",i.ethernetSwitchTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(5),ka("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function _de(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",23),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.ethernetSwitchTemplate.symbol)}}var wde=function(e){return{shadowed:e}},kde=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=i,this.formBuilder=r,this.builtInTemplatesConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.server,n).subscribe((function(t){e.ethernetSwitchTemplate=t}))}))},e.prototype.getConfiguration=function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForEthernetSwitches(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForEthernetSwitches()},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-switches"])},e.prototype.onSave=function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):(this.ethernetSwitchTemplate.ports_mapping=this.portsComponent.ethernetPorts,this.builtInTemplatesService.saveTemplate(this.server,this.ethernetSwitchTemplate).subscribe((function(t){e.toasterService.success("Changes saved")})))},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetSwitchTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(vhe),_a(iJ),_a(um),_a(c1),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(e,t){var n;1&e&&cl(v2,!0),2&e&&al(n=fl())&&(t.portsComponent=n.first)},decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ethernetPorts"],["ports",""],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Ethernet switch configuration"),xa(),xa(),xa(),ba(5,yde,34,13,"div",4),xa(),ba(6,_de,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,wde,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.ethernetSwitchTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.ethernetSwitchTemplate))},directives:[Rh,Hh,qle,Nle,Hle,Vle,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,H0,Rp,Nh,v2,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Cde(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function Sde(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add IOS router template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/dynamips/templates/addtemplate")}function xde(e,t){1&e&&Oa(0,"app-empty-templates-list")}function Ode(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),Sa(13,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).copyTemplate(e)})),Sa(14,"mat-icon"),_s(15,"content_copy"),xa(),Sa(16,"span"),_s(17,"Copy"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function Mde(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,Ode,18,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.iosTemplates)}}function Tde(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,Mde,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var Ede=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.iosService=n,this.router=i,this.iosTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.iosService.getTemplates(this.server).subscribe((function(t){e.iosTemplates=t.filter((function(e){return"dynamips"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(tne),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-ios-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"IOS router templates"),xa(),ba(5,Cde,2,1,"button",4),ba(6,Sde,2,1,"button",5),xa(),xa(),ba(7,xde,1,0,"app-empty-templates-list",6),ba(8,Tde,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.iosTemplates.length),ar(1),ka("ngIf",t.iosTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Pde=function(){function e(e){this.electronService=e}return e.prototype.isWindows=function(){return"win32"===this.electronService.process.platform},e.prototype.isLinux=function(){return"linux"===this.electronService.process.platform},e.prototype.isDarwin=function(){return"darwin"===this.electronService.process.platform},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(hU))}}),e}(),jde=function(){function e(e){this.platformService=e}return e.prototype.get=function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()},e.prototype.getForWindows=function(){return[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}]},e.prototype.getForLinux=function(){return[]},e.prototype.getForDarwin=function(){return[]},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(Pde))}}),e}(),Ade=function(){function e(e,t){this.electronService=e,this.externalSoftwareDefinition=t}return e.prototype.list=function(){var e=this.externalSoftwareDefinition.get(),t=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(e);return e.map((function(e){return e.installed=t[e.name].length>0,e}))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(hU),we(jde))}}),e}(),Ide=["ad"],Dde=function(){function e(e){this.httpClient=e,this.onLoad=new Yc,this.staticCode='<a href="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR">\n Access Our Favorite Network Free Tools!\n </a><br/>\n Access 20+ network performance management, monitoring, and troubleshooting tools for FREE ($200 Value).<br/>\n <button>\n <a target="_blank" href="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR">\n Check it out!\n </a>\n </button>'}return e.prototype.ngOnInit=function(){var e=this;this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe((function(t){t&&t.placements&&t.placements.placement_1&&t.placements.placement_1.body?(e.onLoad.emit(!0),e.htmlCode=t.placements.placement_1.body,e.ad.nativeElement.insertAdjacentHTML("beforeend",e.htmlCode)):(e.onLoad.emit(!0),e.htmlCode=e.staticCode)}),(function(e){}))},e.\u0275fac=function(t){return new(t||e)(_a(dv))},e.\u0275cmp=ze({type:e,selectors:[["app-adbutler"]],viewQuery:function(e,t){var n;1&e&&cl(Ide,!0),2&e&&al(n=fl())&&(t.ad=n.first)},decls:2,vars:0,consts:[[1,"ad"],["ad",""]],template:function(e,t){1&e&&Oa(0,"div",0,1)},styles:[".ad{background-color:transparent;width:400px;padding-top:10px;padding-bottom:10px;font-size:12px}button{background-color:#0097a7;margin-top:2px;border:none;outline:none;color:#fff;font-weight:700;padding:5px 15px;border-radius:4px}a{color:#0097a7}button a{color:#fff}"],encapsulation:2}),e}();function Rde(e,t){if(1&e&&(Ma(0),_s(1),Ta()),2&e){var n=Ba();ar(1),ws(n.buttonText)}}var Lde=function(){function e(e){this.electronService=e,this.installedChanged=new Yc,this.disabled=!1,this.readyToInstall=!0}return e.prototype.ngOnInit=function(){var e=this;this.electronService.ipcRenderer.on(this.responseChannel,(function(t,n){e.updateButton(),e.installedChanged.emit(n)}))},e.prototype.ngOnDestroy=function(){this.electronService.ipcRenderer.removeAllListeners(this.responseChannel)},e.prototype.ngOnChanges=function(){this.updateButton()},e.prototype.install=function(){this.disabled=!0,this.buttonText="Installing",this.electronService.ipcRenderer.send("installed-software-install",this.software)},Object.defineProperty(e.prototype,"responseChannel",{get:function(){return"installed-software-installed-"+this.software.name},enumerable:!1,configurable:!0}),e.prototype.updateButton=function(){this.disabled=this.software.installed,this.buttonText=this.software.installed?"Installed":"Install"},e.\u0275fac=function(t){return new(t||e)(_a(hU))},e.\u0275cmp=ze({type:e,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[ct],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(e,t){1&e&&(Sa(0,"button",0),Ia("click",(function(){return t.install()})),ba(1,Rde,2,1,"ng-container",1),xa()),2&e&&(ka("disabled",t.disabled),ar(1),ka("ngIf",t.readyToInstall))},directives:[h$,Hh],styles:[""]}),e}();function Fde(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Name "),xa())}function Nde(e,t){if(1&e&&(Ma(0),_s(1),Ta()),2&e){var n=Ba().$implicit;ar(1),ks(" ",n.name," ")}}function Bde(e,t){1&e&&(Ma(0),Oa(1,"app-adbutler",14),Ta())}function Hde(e,t){if(1&e&&(Sa(0,"mat-cell"),ba(1,Nde,2,1,"ng-container",13),ba(2,Bde,2,0,"ng-container",13),xa()),2&e){var n=t.$implicit;ar(1),ka("ngIf","adbutler"!==n.type),ar(1),ka("ngIf","adbutler"===n.type)}}function zde(e,t){1&e&&Oa(0,"mat-header-cell")}function Vde(e,t){if(1&e){var n=Pa();Sa(0,"app-install-software",17),Ia("installedChanged",(function(e){return Dt(n),Ba(2).onInstalled(e)})),xa()}2&e&&ka("software",Ba().$implicit)}function qde(e,t){if(1&e&&(Sa(0,"mat-cell",15),ba(1,Vde,1,1,"app-install-software",16),xa()),2&e){var n=t.$implicit;ar(1),ka("ngIf","adbutler"!==n.type)}}function Ude(e,t){1&e&&Oa(0,"mat-header-row")}function Gde(e,t){1&e&&Oa(0,"mat-row")}var Wde=function(){function e(e,t){this.installedSoftwareService=e,this.changeDetectorRef=t,this.displayedColumns=["name","actions"]}return e.prototype.ngOnInit=function(){this.dataSource=new Kde(this.installedSoftwareService)},e.prototype.onInstalled=function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()},e.\u0275fac=function(t){return new(t||e)(_a(Ade),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["app-installed-software"]],decls:16,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["theme","dark"],[2,"text-align","right"],[3,"software","installedChanged",4,"ngIf"],[3,"software","installedChanged"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"h1"),_s(3,"Installed software"),xa(),xa(),Sa(4,"div",2),Sa(5,"div",3),Sa(6,"mat-table",4,5),Ma(8,6),ba(9,Fde,2,0,"mat-header-cell",7),ba(10,Hde,3,2,"mat-cell",8),Ta(),Ma(11,9),ba(12,zde,1,0,"mat-header-cell",7),ba(13,qde,2,1,"mat-cell",10),Ta(),ba(14,Ude,1,0,"mat-header-row",11),ba(15,Gde,1,0,"mat-row",12),xa(),xa(),xa(),xa()),2&e&&(ar(6),ka("dataSource",t.dataSource),ar(8),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns))},directives:[f1,w1,v1,m1,E1,I1,C1,M1,Hh,Dde,Lde,R1,B1],styles:[""]}),e}(),Kde=function(e){function t(t){var n=e.call(this)||this;return n.installedSoftwareService=t,n.installed=new Um.a([]),n}return DK(t,e),t.prototype.connect=function(){return this.refresh(),this.installed},t.prototype.disconnect=function(){},t.prototype.refresh=function(){var e=this.installedSoftwareService.list();e.push({type:"adbutler"}),this.installed.next(e)},t}(xm);function Xde(e,t){if(1&e&&(Sa(0,"mat-option",38),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function Yde(e,t){if(1&e&&(Sa(0,"mat-option",38),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Zde(e,t){if(1&e&&(Sa(0,"mat-option",38),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var Qde=function(){return{standalone:!0}};function $de(e,t){if(1&e){var n=Pa();Sa(0,"mat-select",41),Ia("ngModelChange",(function(e){Dt(n);var t=Ba().$implicit;return Ba(3).networkAdaptersForTemplate[t]=e})),ba(1,Zde,2,2,"mat-option",14),xa()}if(2&e){var i=Ba().$implicit,r=Ba(3);Ua("placeholder","Slot ",i,""),ka("ngModel",r.networkAdaptersForTemplate[i])("ngModelOptions",Nc(4,Qde)),ar(1),ka("ngForOf",r.networkAdapters[r.iosTemplate.chassis][i])}}function Jde(e,t){if(1&e&&(Sa(0,"div"),ba(1,$de,2,5,"mat-select",40),xa()),2&e){var n=t.$implicit,i=Ba(3);ar(1),ka("ngIf",i.networkAdapters[i.iosTemplate.chassis][n])}}var efe=function(){return[0,1,2,3,4,5,6,7]};function tfe(e,t){1&e&&(Sa(0,"div"),ba(1,Jde,2,1,"div",39),xa()),2&e&&(ar(1),ka("ngForOf",Nc(1,efe)))}function nfe(e,t){if(1&e&&(Sa(0,"mat-option",38),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function ife(e,t){if(1&e){var n=Pa();Sa(0,"mat-select",41),Ia("ngModelChange",(function(e){Dt(n);var t=Ba().$implicit;return Ba(3).networkAdaptersForTemplate[t]=e})),ba(1,nfe,2,2,"mat-option",14),xa()}if(2&e){var i=Ba().$implicit,r=Ba(3);Ua("placeholder","Slot ",i,""),ka("ngModel",r.networkAdaptersForTemplate[i])("ngModelOptions",Nc(4,Qde)),ar(1),ka("ngForOf",r.networkAdaptersForPlatform[r.iosTemplate.platform][i])}}function rfe(e,t){if(1&e&&(Sa(0,"div"),ba(1,ife,2,5,"mat-select",40),xa()),2&e){var n=t.$implicit,i=Ba(3);ar(1),ka("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][n])}}function ofe(e,t){1&e&&(Sa(0,"div"),ba(1,rfe,2,1,"div",39),xa()),2&e&&(ar(1),ka("ngForOf",Nc(1,efe)))}function afe(e,t){if(1&e&&(Sa(0,"mat-option",38),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function sfe(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"mat-select",42),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).iosTemplate.wic0=e})),ba(2,afe,2,2,"mat-option",14),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.iosTemplate.wic0)("ngModelOptions",Nc(3,Qde)),ar(1),ka("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function cfe(e,t){if(1&e&&(Sa(0,"mat-option",38),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function lfe(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"mat-select",43),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).iosTemplate.wic1=e})),ba(2,cfe,2,2,"mat-option",14),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.iosTemplate.wic1)("ngModelOptions",Nc(3,Qde)),ar(1),ka("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function ufe(e,t){if(1&e&&(Sa(0,"mat-option",38),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function hfe(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"mat-select",44),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).iosTemplate.wic2=e})),ba(2,ufe,2,2,"mat-option",14),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.iosTemplate.wic2)("ngModelOptions",Nc(3,Qde)),ar(1),ka("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function dfe(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General settings "),xa(),xa(),Sa(6,"form",7),Sa(7,"mat-form-field",8),Sa(8,"input",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.name=e})),xa(),xa(),Sa(9,"mat-form-field",8),Sa(10,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.default_name_format=e})),xa(),xa(),Sa(11,"mat-label"),_s(12),xa(),Oa(13,"br"),Oa(14,"br"),Sa(15,"mat-label"),_s(16),xa(),Oa(17,"br"),Oa(18,"br"),Sa(19,"mat-form-field",8),Sa(20,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.symbol=e})),xa(),xa(),Sa(21,"button",12),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(22,"Choose symbol"),xa(),Oa(23,"br"),Oa(24,"br"),Sa(25,"mat-form-field",8),Sa(26,"mat-select",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.category=e})),ba(27,Xde,2,2,"mat-option",14),xa(),xa(),Sa(28,"mat-form-field",8),Sa(29,"input",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.image=e})),xa(),xa(),Sa(30,"mat-form-field",8),Sa(31,"input",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.startup_config=e})),xa(),xa(),Sa(32,"mat-form-field",8),Sa(33,"input",17),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.private_config=e})),xa(),xa(),xa(),Sa(34,"mat-form-field",18),Sa(35,"mat-select",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.console_type=e})),ba(36,Yde,2,2,"mat-option",14),xa(),xa(),Sa(37,"mat-checkbox",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.console_auto_start=e})),_s(38," Auto start console "),xa(),xa(),Sa(39,"mat-expansion-panel"),Sa(40,"mat-expansion-panel-header"),Sa(41,"mat-panel-title"),_s(42," Memories and disks "),xa(),xa(),Sa(43,"form",7),Sa(44,"mat-form-field",8),Sa(45,"input",21),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.ram=e})),xa(),Sa(46,"span",22),_s(47,"MB"),xa(),xa(),Sa(48,"mat-form-field",8),Sa(49,"input",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.nvram=e})),xa(),Sa(50,"span",22),_s(51,"MB"),xa(),xa(),Sa(52,"mat-form-field",8),Sa(53,"input",24),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.iomem=e})),xa(),xa(),Sa(54,"mat-form-field",8),Sa(55,"input",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.disk0=e})),xa(),xa(),Sa(56,"mat-form-field",8),Sa(57,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.disk1=e})),xa(),xa(),xa(),Sa(58,"mat-checkbox",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.auto_delete_disks=e})),_s(59," Automatically delete NVRAM and disk files "),xa(),xa(),Sa(60,"mat-expansion-panel"),Sa(61,"mat-expansion-panel-header"),Sa(62,"mat-panel-title"),_s(63," Slots "),xa(),xa(),Sa(64,"h6"),_s(65,"Adapters"),xa(),ba(66,tfe,2,2,"div",27),ba(67,ofe,2,2,"div",27),Oa(68,"br"),Oa(69,"br"),Sa(70,"h6"),_s(71,"WICs"),xa(),ba(72,sfe,3,4,"div",27),ba(73,lfe,3,4,"div",27),ba(74,hfe,3,4,"div",27),xa(),Sa(75,"mat-expansion-panel"),Sa(76,"mat-expansion-panel-header"),Sa(77,"mat-panel-title"),_s(78," Advanced "),xa(),xa(),Sa(79,"form",7),Sa(80,"mat-form-field",8),Sa(81,"input",28),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.system_id=e})),xa(),xa(),Sa(82,"mat-form-field",8),Sa(83,"input",29),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.mac_addr=e})),xa(),xa(),Sa(84,"mat-form-field",8),Sa(85,"input",30),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.idlepc=e})),xa(),xa(),Sa(86,"mat-form-field",8),Sa(87,"input",31),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.idlemax=e})),xa(),xa(),Sa(88,"mat-form-field",8),Sa(89,"input",32),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.idlesleep=e})),xa(),xa(),Sa(90,"mat-form-field",8),Sa(91,"input",33),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.exec_area=e})),xa(),xa(),xa(),Sa(92,"mat-checkbox",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.mmap=e})),_s(93," Enable mmap support "),xa(),Oa(94,"br"),Oa(95,"br"),Sa(96,"mat-checkbox",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.sparsemem=e})),_s(97," Enable sparse memory supoport "),xa(),xa(),Sa(98,"mat-expansion-panel"),Sa(99,"mat-expansion-panel-header"),Sa(100,"mat-panel-title"),_s(101," Usage "),xa(),xa(),Sa(102,"mat-form-field",8),Sa(103,"textarea",34),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.usage=e})),xa(),xa(),xa(),xa(),Sa(104,"div",35),Sa(105,"button",36),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(106,"Cancel"),xa(),Sa(107,"button",37),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(108,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(6),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.iosTemplate.name),ar(2),ka("ngModel",i.iosTemplate.default_name_format),ar(2),ks("Platform - ",i.iosTemplate.platform,""),ar(4),ks("Chassis - ",i.iosTemplate.chassis,""),ar(4),ka("ngModel",i.iosTemplate.symbol),ar(6),ka("ngModelOptions",Nc(40,Qde))("ngModel",i.iosTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModel",i.iosTemplate.image),ar(2),ka("ngModel",i.iosTemplate.startup_config),ar(2),ka("ngModelOptions",Nc(41,Qde))("ngModel",i.iosTemplate.private_config),ar(2),ka("ngModel",i.iosTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModel",i.iosTemplate.console_auto_start),ar(6),ka("formGroup",i.memoryForm),ar(2),ka("ngModel",i.iosTemplate.ram),ar(4),ka("ngModel",i.iosTemplate.nvram),ar(4),ka("ngModel",i.iosTemplate.iomem),ar(2),ka("ngModel",i.iosTemplate.disk0),ar(2),ka("ngModel",i.iosTemplate.disk1),ar(1),ka("ngModel",i.iosTemplate.auto_delete_disks),ar(8),ka("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),ar(1),ka("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),ar(5),ka("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),ar(1),ka("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),ar(1),ka("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),ar(5),ka("formGroup",i.advancedForm),ar(2),ka("ngModel",i.iosTemplate.system_id),ar(2),ka("ngModelOptions",Nc(42,Qde))("ngModel",i.iosTemplate.mac_addr),ar(2),ka("ngModelOptions",Nc(43,Qde))("ngModel",i.iosTemplate.idlepc),ar(2),ka("ngModel",i.iosTemplate.idlemax),ar(2),ka("ngModel",i.iosTemplate.idlesleep),ar(2),ka("ngModel",i.iosTemplate.exec_area),ar(1),ka("ngModel",i.iosTemplate.mmap),ar(4),ka("ngModel",i.iosTemplate.sparsemem),ar(7),ka("ngModel",i.iosTemplate.usage)}}function ffe(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",45),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.iosTemplate.symbol)}}var pfe=function(e){return{shadowed:e}},mfe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=i,this.formBuilder=r,this.iosConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required),path:new Cp("",Df.required),initialConfig:new Cp("",Df.required)}),this.memoryForm=this.formBuilder.group({ram:new Cp("",Df.required),nvram:new Cp("",Df.required),iomemory:new Cp("",Df.required),disk0:new Cp("",Df.required),disk1:new Cp("",Df.required)}),this.advancedForm=this.formBuilder.group({systemId:new Cp("",Df.required),idlemax:new Cp("",Df.required),idlesleep:new Cp("",Df.required),execarea:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.iosService.getTemplate(e.server,n).subscribe((function(t){e.iosTemplate=t,e.fillAdaptersData()}))}))},e.prototype.getConfiguration=function(){this.networkModules=this.iosConfigurationService.getNetworkModules(),this.networkAdaptersForPlatform=this.iosConfigurationService.getNetworkAdaptersForPlatform(),this.networkAdapters=this.iosConfigurationService.getNetworkAdapters(),this.platforms=this.iosConfigurationService.getAvailablePlatforms(),this.platformsWithEtherSwitchRouterOption=this.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),this.platformsWithChassis=this.iosConfigurationService.getPlatformsWithChassis(),this.chassis=this.iosConfigurationService.getChassis(),this.defaultRam=this.iosConfigurationService.getDefaultRamSettings(),this.consoleTypes=this.iosConfigurationService.getConsoleTypes()},e.prototype.fillAdaptersData=function(){this.iosTemplate.slot0&&(this.networkAdaptersForTemplate[0]=this.iosTemplate.slot0),this.iosTemplate.slot1&&(this.networkAdaptersForTemplate[1]=this.iosTemplate.slot1),this.iosTemplate.slot2&&(this.networkAdaptersForTemplate[2]=this.iosTemplate.slot2),this.iosTemplate.slot3&&(this.networkAdaptersForTemplate[3]=this.iosTemplate.slot3),this.iosTemplate.slot4&&(this.networkAdaptersForTemplate[4]=this.iosTemplate.slot4),this.iosTemplate.slot5&&(this.networkAdaptersForTemplate[5]=this.iosTemplate.slot5),this.iosTemplate.slot6&&(this.networkAdaptersForTemplate[6]=this.iosTemplate.slot6),this.iosTemplate.slot7&&(this.networkAdaptersForTemplate[7]=this.iosTemplate.slot7)},e.prototype.completeAdaptersData=function(){this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])},e.prototype.onSave=function(){var e=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.completeAdaptersData(),this.iosService.saveTemplate(this.server,this.iosTemplate).subscribe((function(t){e.toasterService.success("Changes saved")})))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iosTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(tne),_a(iJ),_a(um),_a(A5),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-ios-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text","formControlName","path","placeholder","IOS image path",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","initialConfig","placeholder","Initial startup-config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Initial private-config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","iomemory","placeholder","I/O memory",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk0","placeholder","PCMCIA disk0",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk1","placeholder","PCMCIA disk1",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","formControlName","systemId","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","idlemax","type","number","placeholder","Idlemax",3,"ngModel","ngModelChange"],["matInput","","formControlName","idlesleep","type","number","placeholder","Idlesleep",3,"ngModel","ngModelChange"],["matInput","","formControlName","execarea","type","number","placeholder","Exec area",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 0",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 1",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 2",3,"ngModel","ngModelOptions","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Dynamips IOS Router configuration"),xa(),xa(),xa(),ba(5,dfe,109,44,"div",4),xa(),ba(6,ffe,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,pfe,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.iosTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.iosTemplate))},directives:[Rh,Hh,qle,Nle,Hle,Vle,Lp,Tf,zp,a0,y0,wf,Mf,Xp,ZJ,h$,H0,Rp,Nh,Q0,zf,t0,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function gfe(e,t){if(1&e&&(Sa(0,"mat-option",36),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.filename),ar(1),ks(" ",n.filename," ")}}function vfe(e,t){if(1&e&&(Sa(0,"mat-option",36),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function bfe(e,t){if(1&e&&(Sa(0,"mat-option",36),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function yfe(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",17),Sa(1,"mat-select",37),Ia("selectionChange",(function(e){return Dt(n),Ba(2).onChassisChosen(e)})),ba(2,bfe,2,2,"mat-option",19),xa(),xa()}if(2&e){var i=Ba(2);ar(2),ka("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function _fe(e,t){if(1&e){var n=Pa();Sa(0,"mat-checkbox",38),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).isEtherSwitchRouter=e})),_s(1," This is an EtherSwitch router "),xa()}2&e&&ka("ngModel",Ba(2).isEtherSwitchRouter)}function wfe(e,t){if(1&e&&(Sa(0,"mat-option",36),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var kfe=function(){return{standalone:!0}};function Cfe(e,t){if(1&e){var n=Pa();Sa(0,"mat-select",41),Ia("ngModelChange",(function(e){Dt(n);var t=Ba().$implicit;return Ba(3).networkAdaptersForTemplate[t]=e})),ba(1,wfe,2,2,"mat-option",19),xa()}if(2&e){var i=Ba().$implicit,r=Ba(3);Ua("placeholder","Slot ",i,""),ka("ngModel",r.networkAdaptersForTemplate[i])("ngModelOptions",Nc(4,kfe)),ar(1),ka("ngForOf",r.networkAdaptersForPlatform[r.iosNameForm.get("platform").value][i])}}function Sfe(e,t){if(1&e&&(Sa(0,"div"),ba(1,Cfe,2,5,"mat-select",40),xa()),2&e){var n=t.$implicit,i=Ba(3);ar(1),ka("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][n])}}var xfe=function(){return[0,1,2,3,4,5,6,7]};function Ofe(e,t){1&e&&(Sa(0,"div"),ba(1,Sfe,2,1,"div",39),xa()),2&e&&(ar(1),ka("ngForOf",Nc(1,xfe)))}function Mfe(e,t){if(1&e&&(Sa(0,"mat-option",36),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Tfe(e,t){if(1&e){var n=Pa();Sa(0,"mat-select",41),Ia("ngModelChange",(function(e){Dt(n);var t=Ba().$implicit;return Ba(3).networkModulesForTemplate[t]=e})),ba(1,Mfe,2,2,"mat-option",19),xa()}if(2&e){var i=Ba().$implicit,r=Ba(3);Ua("placeholder","WIC ",i,""),ka("ngModel",r.networkModulesForTemplate[i])("ngModelOptions",Nc(4,kfe)),ar(1),ka("ngForOf",r.networkModules[r.iosNameForm.get("platform").value][i])}}function Efe(e,t){if(1&e&&(Sa(0,"div"),ba(1,Tfe,2,5,"mat-select",40),xa()),2&e){var n=t.$implicit,i=Ba(3);ar(1),ka("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][n])}}var Pfe=function(){return[0,1,2,3]};function jfe(e,t){1&e&&(Sa(0,"div"),ba(1,Efe,2,1,"div",39),xa()),2&e&&(ar(1),ka("ngForOf",Nc(1,Pfe)))}function Afe(e,t){if(1&e){var n=Pa();Sa(0,"div",5),Sa(1,"div",6),Sa(2,"mat-vertical-stepper",7),Sa(3,"mat-step",8),Sa(4,"mat-radio-group",9),Sa(5,"mat-radio-button",10),Ia("click",(function(){return Dt(n),Ba().setServerType("local")})),_s(6,"Run this IOS router locally"),xa(),Sa(7,"mat-radio-button",11),Ia("click",(function(){return Dt(n),Ba().setServerType("gns3 vm")})),_s(8,"Run this IOS router on the GNS3 VM"),xa(),xa(),xa(),Sa(9,"mat-step",12),Sa(10,"input",13,14),Ia("change",(function(e){return Dt(n),Ba().addImage(e)})),xa(),Sa(12,"button",15),Ia("click",(function(){return Dt(n),ya(11).click()})),_s(13,"Click to add image"),xa(),_s(14," or create from existing one "),Sa(15,"form",16),Sa(16,"mat-form-field",17),Sa(17,"mat-select",18),Ia("selectionChange",(function(e){return Dt(n),Ba().onImageChosen(e)})),ba(18,gfe,2,2,"mat-option",19),xa(),xa(),xa(),xa(),Sa(19,"mat-step",20),Sa(20,"form",16),Sa(21,"mat-form-field",17),Oa(22,"input",21),xa(),Sa(23,"mat-form-field",17),Sa(24,"mat-select",22),Ia("selectionChange",(function(e){return Dt(n),Ba().onPlatformChosen(e)})),ba(25,vfe,2,2,"mat-option",19),xa(),xa(),ba(26,yfe,3,1,"mat-form-field",23),xa(),ba(27,_fe,2,1,"mat-checkbox",24),xa(),Sa(28,"mat-step",25),Sa(29,"form",16),Sa(30,"mat-form-field",17),Oa(31,"input",26),Sa(32,"span",27),_s(33,"MB"),xa(),xa(),Sa(34,"mat-label"),Sa(35,"a",28),_s(36,"Check for minimum and maximum RAM requirement"),xa(),xa(),xa(),xa(),Sa(37,"mat-step",29),ba(38,Ofe,2,2,"div",30),xa(),Sa(39,"mat-step",31),ba(40,jfe,2,2,"div",30),xa(),Sa(41,"mat-step",32),Sa(42,"mat-form-field",17),Sa(43,"input",33),Ia("ngModelChange",(function(e){return Dt(n),Ba().iosTemplate.idlepc=e})),xa(),xa(),xa(),xa(),xa(),Sa(44,"div",34),Sa(45,"button",35),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(46,"Cancel"),xa(),Sa(47,"button",15),Ia("click",(function(){return Dt(n),Ba().addTemplate()})),_s(48,"Add template"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("linear",!0),ar(1),ka("completed",i.isGns3VmChosen||i.isLocalComputerChosen),ar(4),ka("disabled",!i.isGns3VmAvailable),ar(2),ka("completed",i.iosImageForm.get("imageName").value),ar(1),ka("uploader",i.uploader),ar(5),ka("formGroup",i.iosImageForm),ar(3),ka("ngForOf",i.iosImages),ar(1),ka("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),ar(1),ka("formGroup",i.iosNameForm),ar(5),ka("ngForOf",i.platforms),ar(1),ka("ngIf",i.chassis[i.iosNameForm.get("platform").value]),ar(1),ka("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),ar(1),ka("completed",i.iosMemoryForm.get("memory").value),ar(1),ka("formGroup",i.iosMemoryForm),ar(6),qa("href",i.ciscoUrl,Hi),ar(3),ka("ngIf",i.selectedPlatform),ar(2),ka("ngIf",i.iosNameForm.get("platform").value),ar(3),ka("ngModel",i.iosTemplate.idlepc)}}var Ife=function(){function e(e,t,n,i,r,o,a,s,c){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=i,this.formBuilder=r,this.router=o,this.templateMocksService=a,this.iosConfigurationService=s,this.computeService=c,this.isEtherSwitchRouter=!1,this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[],this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.iosTemplate=new ene,this.iosImageForm=this.formBuilder.group({imageName:new Cp(null,[Df.required])}),this.iosNameForm=this.formBuilder.group({templateName:new Cp(null,[Df.required]),platform:new Cp(null,[Df.required]),chassis:new Cp(null,[Df.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new Cp(null,[Df.required])})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new vU({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,i,r){e.getImages(),e.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getImages(),e.templateMocksService.getIosTemplate().subscribe((function(t){e.iosTemplate=t,e.networkModules=e.iosConfigurationService.getNetworkModules(),e.networkAdaptersForPlatform=e.iosConfigurationService.getNetworkAdaptersForPlatform(),e.networkAdapters=e.iosConfigurationService.getNetworkAdapters(),e.platforms=e.iosConfigurationService.getAvailablePlatforms(),e.platformsWithEtherSwitchRouterOption=e.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),e.platformsWithChassis=e.iosConfigurationService.getPlatformsWithChassis(),e.chassis=e.iosConfigurationService.getChassis(),e.defaultRam=e.iosConfigurationService.getDefaultRamSettings()})),e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)}))}))},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.getImages=function(){var e=this;this.iosService.getImages(this.server).subscribe((function(t){e.iosImages=t}))},e.prototype.addImage=function(e){var t=e.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(t);var n=this.iosService.getImagePath(this.server,e.target.files[0].name);this.uploader.queue.forEach((function(e){return e.url=n}));var i=this.uploader.queue[0];i.options.disableMultipart=!0,this.uploader.uploadItem(i)},e.prototype.addTemplate=function(){var e=this;!this.iosImageForm.invalid&&!this.iosMemoryForm.invalid&&this.iosNameForm.get("templateName").value&&this.iosNameForm.get("platform").value?(this.iosTemplate.template_id=Object(Gee.v4)(),this.iosTemplate.image=this.iosImageForm.get("imageName").value,this.iosTemplate.name=this.iosNameForm.get("templateName").value,this.iosTemplate.platform=this.iosNameForm.get("platform").value,this.chassis[this.iosNameForm.get("platform").value]&&(this.iosTemplate.chassis=this.iosNameForm.get("chassis").value),this.iosTemplate.ram=this.iosMemoryForm.get("memory").value,this.isEtherSwitchRouter&&(this.iosTemplate.symbol=":/symbols/multilayer_switch.svg",this.iosTemplate.category="switch"),this.networkAdaptersForTemplate.length>0&&this.completeAdaptersData(),this.networkModulesForTemplate.length>0&&this.completeModulesData(),this.iosTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.iosService.addTemplate(this.server,this.iosTemplate).subscribe((function(t){e.goBack()}))):this.toasterService.error("Fill all required fields")},e.prototype.completeAdaptersData=function(){if(this.chassis[this.iosTemplate.platform]){if(Object.keys(this.networkAdapters[this.iosTemplate.chassis]))for(var e=0;e<Object.keys(this.networkAdapters[this.iosTemplate.chassis]).length;e++)this.networkAdaptersForTemplate[e]||(this.networkAdaptersForTemplate[e]="")}else if(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value])for(e=0;e<Object.keys(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value]).length;e++)this.networkAdaptersForTemplate[e]||(this.networkAdaptersForTemplate[e]="");this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])},e.prototype.completeModulesData=function(){if(Object.keys(this.networkModules[this.iosTemplate.platform]))for(var e=0;e<Object.keys(this.networkModules[this.iosTemplate.platform]).length;e++)this.networkModulesForTemplate[e]||(this.networkModulesForTemplate[e]="");this.networkModulesForTemplate[0]&&(this.iosTemplate.wic0=this.networkModulesForTemplate[0]),this.networkModulesForTemplate[1]&&(this.iosTemplate.wic1=this.networkModulesForTemplate[1]),this.networkModulesForTemplate[2]&&(this.iosTemplate.wic2=this.networkModulesForTemplate[2])},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},e.prototype.onImageChosen=function(){var e=this.iosImageForm.get("imageName").value.split("-")[0];this.iosNameForm.controls.templateName.setValue(e),"c3620"===e||"c3640"===e||"c3660"===e?(this.iosNameForm.controls.platform.setValue("c3600"),this.selectedPlatform="c3600"):(this.iosNameForm.controls.platform.setValue(e),this.selectedPlatform=e),this.iosNameForm.controls.chassis.setValue("c1700"===e?"1720":"c2600"===e?"2610":""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[e])},e.prototype.onPlatformChosen=function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[]},e.prototype.onChassisChosen=function(){this.networkAdaptersForTemplate=[]},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(tne),_a(iJ),_a(um),_a(nK),_a(xue),_a(A5),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-add-ios-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","IOS image",3,"completed"],["type","file","accept",".bin, .image","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"form-field"],["placeholder","Image","formControlName","imageName",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Name and platform",3,"completed"],["matInput","","type","text","formControlName","templateName","placeholder","Name"],["placeholder","Platform","formControlName","platform",3,"selectionChange"],["class","form-field",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["label","Memory",3,"completed"],["matInput","","type","number","formControlName","memory","value","defaultRam[iosNameForm.get('platform').value]","placeholder","Default RAM"],["matSuffix",""],[3,"href"],["label","Network adapters"],[4,"ngIf"],["label","WIC modules"],["label","Idle-PC"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],[3,"value"],["placeholder","Chassis","formControlName","chassis",3,"selectionChange"],[3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New IOS router template"),xa(),xa(),xa(),ba(5,Afe,49,18,"div",4),xa()),2&e&&(ar(5),ka("ngIf",t.iosTemplate))},directives:[Hh,eie,Yne,l3,f3,bU,h$,Lp,Tf,zp,a0,H0,Mf,Xp,Nh,y0,wf,zf,t0,ZJ,Rp,DY,Q0],styles:[".non-visible[_ngcontent-%COMP%]{display:none}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Dfe=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.prototype.getVirtualMachines=function(e){return this.httpServer.get(e,"/compute/vmware/vms")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function Rfe(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function Lfe(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add VMware template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/vmware/addtemplate")}function Ffe(e,t){1&e&&Oa(0,"app-empty-templates-list")}function Nfe(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function Bfe(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,Nfe,13,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.vmwareTemplates)}}function Hfe(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,Bfe,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var zfe=function(){function e(e,t,n){this.route=e,this.serverService=t,this.vmwareService=n,this.vmwareTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.vmwareService.getTemplates(this.server).subscribe((function(t){e.vmwareTemplates=t.filter((function(e){return"vmware"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Dfe))},e.\u0275cmp=ze({type:e,selectors:[["app-vmware-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VMware VM templates"),xa(),ba(5,Rfe,2,1,"button",4),ba(6,Lfe,2,1,"button",5),xa(),xa(),ba(7,Ffe,1,0,"app-empty-templates-list",6),ba(8,Hfe,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.vmwareTemplates.length),ar(1),ka("ngIf",t.vmwareTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Vfe=["customAdaptersConfigurator"];function qfe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function Ufe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Gfe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function Wfe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var Kfe=function(){return{standalone:!0}};function Xfe(e,t){if(1&e){var n=Pa();Sa(0,"div",8),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General settings "),xa(),xa(),Sa(6,"form",9),Sa(7,"mat-form-field",10),Sa(8,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.name=e})),xa(),xa(),Sa(9,"mat-form-field",10),Sa(10,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.default_name_format=e})),xa(),xa(),Sa(11,"mat-form-field",10),Sa(12,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.symbol=e})),xa(),xa(),Sa(13,"button",14),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(14,"Choose symbol"),xa(),Oa(15,"br"),Oa(16,"br"),Sa(17,"mat-form-field",10),Sa(18,"mat-select",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.category=e})),ba(19,qfe,2,2,"mat-option",16),xa(),xa(),Sa(20,"mat-form-field",17),Sa(21,"mat-select",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.console_type=e})),ba(22,Ufe,2,2,"mat-option",16),xa(),xa(),Sa(23,"mat-checkbox",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.console_auto_start=e})),_s(24," Auto start console "),xa(),Sa(25,"mat-form-field",10),Sa(26,"mat-select",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.on_close=e})),ba(27,Gfe,2,2,"mat-option",16),xa(),xa(),Sa(28,"mat-checkbox",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.headless=e})),_s(29," Start VM in headless mode "),xa(),Oa(30,"br"),Oa(31,"br"),Sa(32,"mat-checkbox",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.linked_clone=e})),_s(33," Use as a linked base VM (experimental) "),xa(),xa(),xa(),Sa(34,"mat-expansion-panel"),Sa(35,"mat-expansion-panel-header"),Sa(36,"mat-panel-title"),_s(37," Network "),xa(),xa(),Sa(38,"mat-form-field",10),Sa(39,"input",21),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.adapters=e})),xa(),xa(),Sa(40,"mat-form-field",10),Sa(41,"input",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.first_port_name=e})),xa(),xa(),Sa(42,"mat-form-field",10),Sa(43,"input",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.port_name_format=e})),xa(),xa(),Sa(44,"mat-form-field",10),Sa(45,"input",24),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.port_segment_size=e})),xa(),xa(),Sa(46,"mat-form-field",10),Sa(47,"mat-select",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.adapter_type=e})),ba(48,Wfe,2,2,"mat-option",16),xa(),xa(),Sa(49,"button",26),Ia("click",(function(){return Dt(n),Ba().setCustomAdaptersConfiguratorState(!0)})),_s(50,"Configure custom adapters"),xa(),Oa(51,"br"),Sa(52,"mat-checkbox",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.use_any_adapter=e})),_s(53," Allow GNS3 to override non custom VMware adapter "),xa(),xa(),Sa(54,"mat-expansion-panel"),Sa(55,"mat-expansion-panel-header"),Sa(56,"mat-panel-title"),_s(57," Usage "),xa(),xa(),Sa(58,"mat-form-field",10),Sa(59,"textarea",28),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.usage=e})),xa(),xa(),xa(),xa(),Sa(60,"div",29),Sa(61,"button",30),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(62,"Cancel"),xa(),Sa(63,"button",31),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(64,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(6),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.vmwareTemplate.name),ar(2),ka("ngModel",i.vmwareTemplate.default_name_format),ar(2),ka("ngModel",i.vmwareTemplate.symbol),ar(6),ka("ngModelOptions",Nc(27,Kfe))("ngModel",i.vmwareTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModelOptions",Nc(28,Kfe))("ngModel",i.vmwareTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModelOptions",Nc(29,Kfe))("ngModel",i.vmwareTemplate.console_auto_start),ar(3),ka("ngModelOptions",Nc(30,Kfe))("ngModel",i.vmwareTemplate.on_close),ar(1),ka("ngForOf",i.onCloseOptions),ar(1),ka("ngModelOptions",Nc(31,Kfe))("ngModel",i.vmwareTemplate.headless),ar(4),ka("ngModelOptions",Nc(32,Kfe))("ngModel",i.vmwareTemplate.linked_clone),ar(7),ka("ngModel",i.vmwareTemplate.adapters),ar(2),ka("ngModel",i.vmwareTemplate.first_port_name),ar(2),ka("ngModel",i.vmwareTemplate.port_name_format),ar(2),ka("ngModel",i.vmwareTemplate.port_segment_size),ar(2),ka("ngModel",i.vmwareTemplate.adapter_type),ar(1),ka("ngForOf",i.networkTypes),ar(4),ka("ngModel",i.vmwareTemplate.use_any_adapter),ar(7),ka("ngModel",i.vmwareTemplate.usage)}}function Yfe(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",33),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.vmwareTemplate.symbol)}}var Zfe=function(e){return{shadowed:e}},Qfe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.vmwareService=n,this.toasterService=i,this.formBuilder=r,this.vmwareConfigurationService=o,this.router=a,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.vmwareService.getTemplate(e.server,n).subscribe((function(t){e.vmwareTemplate=t,e.fillCustomAdapters()}))}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.categories=this.vmwareConfigurationService.getCategories(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vmware","templates"])},e.prototype.onSave=function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.vmwareService.saveTemplate(this.server,this.vmwareTemplate).subscribe((function(t){e.toasterService.success("Changes saved")})))},e.prototype.setCustomAdaptersConfiguratorState=function(e){var t=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.vmwareTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.vmwareTemplate.custom_adapters.forEach((function(e){t.customAdaptersConfigurator.adapters.push({adapter_number:e.adapter_number,adapter_type:e.adapter_type})})))},e.prototype.saveCustomAdapters=function(e){this.setCustomAdaptersConfiguratorState(!1),this.vmwareTemplate.custom_adapters=e},e.prototype.fillCustomAdapters=function(){var e=this.vmwareTemplate.custom_adapters?this.vmwareTemplate.custom_adapters:[];this.vmwareTemplate.custom_adapters=[];for(var t=0;t<this.vmwareTemplate.adapters;t++)this.vmwareTemplate.custom_adapters.push(e[t]?e[t]:{adapter_number:t,adapter_type:"e1000"})},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.vmwareTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Dfe),_a(iJ),_a(um),_a(w5),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-vmware-template-details"]],viewQuery:function(e,t){var n;1&e&&cl(Vfe,!0),2&e&&al(n=fl())&&(t.customAdaptersConfigurator=n.first)},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],[3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VMware VM configuration"),xa(),xa(),xa(),ba(5,Xfe,65,33,"div",4),xa(),Sa(6,"app-custom-adapters",5,6),Ia("closeConfiguratorEmitter",(function(e){return t.setCustomAdaptersConfiguratorState(e)}))("saveConfigurationEmitter",(function(e){return t.saveCustomAdapters(e)})),xa(),ba(8,Yfe,1,2,"app-symbols-menu",7)),2&e&&(ka("ngClass",Bc(6,Zfe,t.isSymbolSelectionOpened||t.isConfiguratorOpened)),ar(5),ka("ngIf",t.vmwareTemplate),ar(1),ka("hidden",!(t.isConfiguratorOpened&&t.vmwareTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),ar(2),ka("ngIf",t.isSymbolSelectionOpened&&t.vmwareTemplate))},directives:[Rh,Hh,aue,qle,Nle,Hle,Vle,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,H0,Rp,Nh,Q0,zf,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function $fe(e,t){if(1&e&&(Sa(0,"mat-option",15),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n.vmname," ")}}var Jfe=function(){return{standalone:!0}};function epe(e,t){if(1&e){var n=Pa();Sa(0,"div",5),Sa(1,"mat-card",6),Sa(2,"form",7),Sa(3,"mat-form-field",8),Sa(4,"mat-select",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().selectedVM=e})),ba(5,$fe,2,2,"mat-option",10),xa(),xa(),Oa(6,"br"),Sa(7,"mat-checkbox",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().vmwareTemplate.linked_clone=e})),_s(8," Use as a linked base VM (experimental) "),xa(),xa(),xa(),Sa(9,"div",12),Sa(10,"button",13),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(11,"Cancel"),xa(),Sa(12,"button",14),Ia("click",(function(){return Dt(n),Ba().addTemplate()})),_s(13,"Add template"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("formGroup",i.templateNameForm),ar(2),ka("ngModel",i.selectedVM),ar(1),ka("ngForOf",i.virtualMachines),ar(2),ka("ngModelOptions",Nc(5,Jfe))("ngModel",i.vmwareTemplate.linked_clone)}}var tpe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.vmwareService=n,this.toasterService=i,this.templateMocksService=r,this.router=o,this.formBuilder=a,this.templateNameForm=this.formBuilder.group({templateName:new Cp(null,[Df.required])})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.vmwareService.getVirtualMachines(e.server).subscribe((function(t){e.virtualMachines=t,e.templateMocksService.getVmwareTemplate().subscribe((function(t){e.vmwareTemplate=t}))}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vmware","templates"])},e.prototype.addTemplate=function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.vmwareTemplate.name=this.selectedVM.vmname,this.vmwareTemplate.vmx_path=this.selectedVM.vmx_path,this.vmwareTemplate.template_id=Object(Gee.v4)(),this.vmwareService.addTemplate(this.server,this.vmwareTemplate).subscribe((function(){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Dfe),_a(iJ),_a(xue),_a(nK),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-add-vmware-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","templateName",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New VMware VM template"),xa(),xa(),xa(),ba(5,epe,14,6,"div",4),xa()),2&e&&(ar(5),ka("ngIf",t.vmwareTemplate))},directives:[Hh,wJ,Lp,Tf,zp,a0,H0,Mf,Xp,Nh,Q0,Rp,h$,DY],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function npe(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function ipe(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add Docker container template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/docker/addtemplate")}function rpe(e,t){1&e&&Oa(0,"app-empty-templates-list")}function ope(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),Sa(13,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).copyTemplate(e)})),Sa(14,"mat-icon"),_s(15,"content_copy"),xa(),Sa(16,"span"),_s(17,"Copy"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function ape(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,ope,18,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.dockerTemplates)}}function spe(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,ape,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var cpe=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.dockerService=n,this.router=i,this.dockerTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.dockerService.getTemplates(this.server).subscribe((function(t){e.dockerTemplates=t.filter((function(e){return"docker"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","docker","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Jte),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-docker-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Docker container templates"),xa(),ba(5,npe,2,1,"button",4),ba(6,ipe,2,1,"button",5),xa(),xa(),ba(7,rpe,1,0,"app-empty-templates-list",6),ba(8,spe,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.dockerTemplates.length),ar(1),ka("ngIf",t.dockerTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function lpe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n.image," ")}}var upe=function(){return{standalone:!0}};function hpe(e,t){if(1&e){var n=Pa();Sa(0,"mat-select",31),Ia("ngModelChange",(function(e){return Dt(n),Ba().selectedImage=e})),ba(1,lpe,2,2,"mat-option",25),xa()}if(2&e){var i=Ba();ka("ngModelOptions",Nc(3,upe))("ngModel",i.selectedImage),ar(1),ka("ngForOf",i.dockerImages)}}function dpe(e,t){1&e&&(Sa(0,"div"),Sa(1,"mat-form-field",17),Oa(2,"input",33),xa(),xa())}function fpe(e,t){if(1&e&&(Sa(0,"mat-option",32),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var ppe=function(){function e(e,t,n,i,r,o,a,s,c){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateMocksService=a,this.configurationService=s,this.computeService=c,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new $te,this.virtualMachineForm=this.formBuilder.group({filename:new Cp(null,Df.required)}),this.containerNameForm=this.formBuilder.group({templateName:new Cp(null,Df.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new Cp("1",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.consoleTypes=e.configurationService.getConsoleTypes(),e.templateMocksService.getDockerTemplate().subscribe((function(t){e.dockerTemplate=t})),e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)})),e.dockerService.getImages(t).subscribe((function(t){e.dockerImages=t}))}))},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.setDiskImage=function(e){this.newImageSelected="newImage"===e},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},e.prototype.addTemplate=function(){var e=this;this.virtualMachineForm.invalid&&(this.newImageSelected||!this.selectedImage)||this.containerNameForm.invalid||this.networkAdaptersForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=Object(Gee.v4)(),this.dockerTemplate.image=this.newImageSelected?this.virtualMachineForm.get("filename").value:this.selectedImage.image,this.dockerTemplate.name=this.containerNameForm.get("templateName").value,this.dockerTemplate.adapters=+this.networkAdaptersForm.get("adapters").value,this.dockerTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.dockerService.addTemplate(this.server,this.dockerTemplate).subscribe((function(t){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Jte),_a(iJ),_a(nK),_a(um),_a(xue),_a(L5),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-add-docker-template"]],decls:45,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","Docker Virtual Machine",3,"completed"],[3,"formGroup"],["value","2",1,"radio-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],["label","Container name",3,"completed"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Container name",1,"templatename"],["label","Network adapters",3,"completed"],["matInput","","type","number","formControlName","adapters","placeholder","Adapters",1,"networkadapter"],["label","Start command",3,"completed"],["matInput","","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["label","Environment"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","type","text","formControlName","filename","placeholder","Image name",1,"filename"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New Docker container template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"div",5),Sa(7,"mat-vertical-stepper",6),Sa(8,"mat-step",7),Sa(9,"mat-radio-group",8),Sa(10,"mat-radio-button",9),Ia("click",(function(){return t.setServerType("local")})),_s(11,"Run this Docker container locally"),xa(),Sa(12,"mat-radio-button",10),Ia("click",(function(){return t.setServerType("gns3 vm")})),_s(13,"Run this Docker container on the GNS3 VM"),xa(),xa(),xa(),Sa(14,"mat-step",11),Sa(15,"form",12),Sa(16,"mat-radio-group",8),Sa(17,"mat-radio-button",9),Ia("click",(function(){return t.setDiskImage("existingImage")})),_s(18,"Existing image"),xa(),Sa(19,"mat-radio-button",13),Ia("click",(function(){return t.setDiskImage("newImage")})),_s(20,"New image"),xa(),xa(),ba(21,hpe,2,4,"mat-select",14),ba(22,dpe,3,0,"div",15),xa(),xa(),Sa(23,"mat-step",16),Sa(24,"form",12),Sa(25,"mat-form-field",17),Oa(26,"input",18),xa(),xa(),xa(),Sa(27,"mat-step",19),Sa(28,"form",12),Sa(29,"mat-form-field",17),Oa(30,"input",20),xa(),xa(),xa(),Sa(31,"mat-step",21),Sa(32,"mat-form-field",17),Sa(33,"input",22),Ia("ngModelChange",(function(e){return t.dockerTemplate.start_command=e})),xa(),xa(),xa(),Sa(34,"mat-step",23),Sa(35,"mat-select",24),Ia("ngModelChange",(function(e){return t.dockerTemplate.console_type=e})),ba(36,fpe,2,2,"mat-option",25),xa(),xa(),Sa(37,"mat-step",26),Sa(38,"mat-form-field",17),Sa(39,"textarea",27),Ia("ngModelChange",(function(e){return t.dockerTemplate.environment=e})),xa(),xa(),xa(),xa(),xa(),Sa(40,"div",28),Sa(41,"button",29),Ia("click",(function(){return t.goBack()})),_s(42,"Cancel"),xa(),Sa(43,"button",30),Ia("click",(function(){return t.addTemplate()})),_s(44,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("linear",!0),ar(1),ka("completed",t.isGns3VmChosen||t.isLocalComputerChosen),ar(4),ka("disabled",!t.isGns3VmAvailable),ar(2),ka("completed",t.selectedImage||t.virtualMachineForm.get("filename").value),ar(1),ka("formGroup",t.virtualMachineForm),ar(6),ka("ngIf",!t.newImageSelected),ar(1),ka("ngIf",t.newImageSelected),ar(1),ka("completed",t.containerNameForm.get("templateName").value),ar(1),ka("formGroup",t.containerNameForm),ar(3),ka("completed",t.networkAdaptersForm.get("adapters").value),ar(1),ka("formGroup",t.networkAdaptersForm),ar(3),ka("completed",t.dockerTemplate.start_command),ar(2),ka("ngModel",t.dockerTemplate.start_command),ar(1),ka("completed",t.dockerTemplate.console_type),ar(1),ka("ngModelOptions",Nc(18,upe))("ngModel",t.dockerTemplate.console_type),ar(1),ka("ngForOf",t.consoleTypes),ar(3),ka("ngModel",t.dockerTemplate.environment))},directives:[eie,Yne,l3,f3,Lp,Tf,zp,Hh,a0,y0,wf,Mf,Xp,zf,Rp,H0,Nh,h$,DY],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function mpe(e,t){if(1&e&&(Sa(0,"mat-option",27),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function gpe(e,t){if(1&e&&(Sa(0,"mat-option",27),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function vpe(e,t){if(1&e&&(Sa(0,"mat-option",27),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}var bpe=function(){return{standalone:!0}};function ype(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General settings "),xa(),xa(),Sa(6,"form",7),Sa(7,"mat-form-field",8),Sa(8,"input",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.name=e})),xa(),xa(),Sa(9,"mat-form-field",8),Sa(10,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.default_name_format=e})),xa(),xa(),Sa(11,"mat-form-field",8),Sa(12,"mat-select",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.category=e})),ba(13,mpe,2,2,"mat-option",12),xa(),xa(),Sa(14,"mat-form-field",8),Sa(15,"input",13),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.symbol=e})),xa(),xa(),Sa(16,"button",14),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(17,"Choose symbol"),xa(),Oa(18,"br"),Oa(19,"br"),Sa(20,"mat-form-field",8),Sa(21,"input",15),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.start_command=e})),xa(),xa(),Sa(22,"mat-form-field",8),Sa(23,"input",16),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.adapters=e})),xa(),xa(),Sa(24,"mat-form-field",17),Sa(25,"mat-select",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.console_type=e})),ba(26,gpe,2,2,"mat-option",12),xa(),xa(),Sa(27,"mat-checkbox",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.console_auto_start=e})),_s(28," Auto start console "),xa(),Sa(29,"mat-form-field",17),Sa(30,"mat-select",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.console_resolution=e})),ba(31,vpe,2,2,"mat-option",12),xa(),xa(),Sa(32,"mat-form-field",8),Sa(33,"input",21),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.console_http_port=e})),xa(),xa(),Sa(34,"mat-form-field",8),Sa(35,"input",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.console_http_path=e})),xa(),xa(),xa(),Sa(36,"h6"),_s(37,"Environment"),xa(),Sa(38,"mat-form-field",8),Sa(39,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.environment=e})),xa(),xa(),xa(),Sa(40,"mat-expansion-panel"),Sa(41,"mat-expansion-panel-header"),Sa(42,"mat-panel-title"),_s(43," Advanced "),xa(),xa(),Sa(44,"h6"),_s(45,"Extra hosts"),xa(),Sa(46,"mat-form-field",8),Sa(47,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.extra_hosts=e})),xa(),xa(),xa(),Sa(48,"mat-expansion-panel"),Sa(49,"mat-expansion-panel-header"),Sa(50,"mat-panel-title"),_s(51," Usage "),xa(),xa(),Sa(52,"mat-form-field",8),Sa(53,"textarea",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().dockerTemplate.usage=e})),xa(),xa(),xa(),xa(),Sa(54,"div",24),Sa(55,"button",25),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(56,"Cancel"),xa(),Sa(57,"button",26),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(58,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(6),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.dockerTemplate.name),ar(2),ka("ngModel",i.dockerTemplate.default_name_format),ar(2),ka("ngModelOptions",Nc(25,bpe))("ngModel",i.dockerTemplate.category),ar(1),ka("ngForOf",i.categories),ar(2),ka("ngModel",i.dockerTemplate.symbol),ar(6),ka("ngModelOptions",Nc(26,bpe))("ngModel",i.dockerTemplate.start_command),ar(2),ka("ngModel",i.dockerTemplate.adapters),ar(2),ka("ngModelOptions",Nc(27,bpe))("ngModel",i.dockerTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModelOptions",Nc(28,bpe))("ngModel",i.dockerTemplate.console_auto_start),ar(3),ka("ngModelOptions",Nc(29,bpe))("ngModel",i.dockerTemplate.console_resolution),ar(1),ka("ngForOf",i.consoleResolutions),ar(2),ka("ngModelOptions",Nc(30,bpe))("ngModel",i.dockerTemplate.console_http_port),ar(2),ka("ngModelOptions",Nc(31,bpe))("ngModel",i.dockerTemplate.console_http_path),ar(4),ka("ngModel",i.dockerTemplate.environment),ar(8),ka("ngModel",i.dockerTemplate.extra_hosts),ar(6),ka("ngModel",i.dockerTemplate.usage)}}function _pe(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",28),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.dockerTemplate.symbol)}}var wpe=function(e){return{shadowed:e}},kpe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=i,this.configurationService=r,this.formBuilder=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),adapter:new Cp("",Df.required),symbol:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.dockerService.getTemplate(e.server,n).subscribe((function(t){e.dockerTemplate=t}))}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories(),this.consoleResolutions=this.configurationService.getConsoleResolutions()},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},e.prototype.onSave=function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):this.dockerService.saveTemplate(this.server,this.dockerTemplate).subscribe((function(t){e.toasterService.success("Changes saved")}))},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.dockerTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Jte),_a(iJ),_a(L5),_a(um),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-docker-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["formControlName","defaultName","matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","symbol","matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["matInput","","type","text","placeholder","Start command",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","HTTP port in the container",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","HTTP path",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Docker image configuration"),xa(),xa(),xa(),ba(5,ype,59,32,"div",4),xa(),ba(6,_pe,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,wpe,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.dockerTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.dockerTemplate))},directives:[Rh,Hh,qle,Nle,Hle,Vle,Lp,Tf,zp,a0,wf,y0,Mf,Xp,H0,Rp,Nh,h$,zf,Q0,DY,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Cpe(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function Spe(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add IOU device template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/iou/addtemplate")}function xpe(e,t){1&e&&Oa(0,"app-empty-templates-list")}function Ope(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),Sa(13,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).copyTemplate(e)})),Sa(14,"mat-icon"),_s(15,"content_copy"),xa(),Sa(16,"span"),_s(17,"Copy"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function Mpe(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,Ope,18,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.iouTemplates)}}function Tpe(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,Mpe,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var Epe=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.iouService=n,this.router=i,this.iouTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.iouService.getTemplates(this.server).subscribe((function(t){e.iouTemplates=t.filter((function(e){return"iou"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","iou","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(nne),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-iou-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"IOU device templates"),xa(),ba(5,Cpe,2,1,"button",4),ba(6,Spe,2,1,"button",5),xa(),xa(),ba(7,xpe,1,0,"app-empty-templates-list",6),ba(8,Tpe,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.iouTemplates.length),ar(1),ka("ngIf",t.iouTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Ppe(e,t){if(1&e&&(Sa(0,"mat-option",24),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function jpe(e,t){if(1&e&&(Sa(0,"mat-option",24),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.path),ar(1),ks(" ",n.path," ")}}var Ape=function(){return{standalone:!0}};function Ipe(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",13),Sa(1,"mat-select",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.path=e})),ba(2,jpe,2,2,"mat-option",18),xa(),xa()}if(2&e){var i=Ba();ar(1),ka("ngModel",i.iouTemplate.path)("ngModelOptions",Nc(3,Ape)),ar(1),ka("ngForOf",i.iouImages)}}function Dpe(e,t){if(1&e){var n=Pa();Sa(0,"div"),Sa(1,"input",26,27),Ia("change",(function(e){return Dt(n),Ba().uploadImageFile(e)})),xa(),Sa(3,"button",28),Ia("click",(function(){return Dt(n),ya(2).click()})),_s(4,"Browse"),xa(),Sa(5,"mat-form-field",29),Oa(6,"input",30),xa(),xa()}if(2&e){var i=Ba();ar(1),ka("uploader",i.uploader)}}var Rpe=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.iouService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateMocksService=a,this.computeService=s,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.iouTemplate=new ine,this.templateNameForm=this.formBuilder.group({templateName:new Cp(null,Df.required)}),this.imageForm=this.formBuilder.group({imageName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new vU({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,i,r){e.getImages(),e.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getImages(),e.templateMocksService.getIouTemplate().subscribe((function(t){e.iouTemplate=t})),e.computeService.getComputes(t).subscribe((function(t){t.filter((function(e){return"vm"===e.compute_id})).length>0&&(e.isGns3VmAvailable=!0)}))}))},e.prototype.getImages=function(){var e=this;this.iouService.getImages(this.server).subscribe((function(t){e.iouImages=t}))},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.setDiskImage=function(e){this.newImageSelected="newImage"===e},e.prototype.uploadImageFile=function(e){var t=e.target.files[0].name;this.imageForm.controls.imageName.setValue(t);var n=this.iouService.getImagePath(this.server,t);this.uploader.queue.forEach((function(e){return e.url=n}));var i=this.uploader.queue[0];i.options.disableMultipart=!0,this.uploader.uploadItem(i)},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},e.prototype.addTemplate=function(){var e=this;!this.templateNameForm.invalid&&(this.newImageSelected&&!this.imageForm.invalid||!this.newImageSelected&&this.iouTemplate.path)?(this.iouTemplate.template_id=Object(Gee.v4)(),this.iouTemplate.name=this.templateNameForm.get("templateName").value,this.newImageSelected&&(this.iouTemplate.path=this.imageForm.get("imageName").value),this.iouTemplate.compute_id=this.isGns3VmChosen?"vm":"local","L2 image"===this.selectedType?(this.iouTemplate.ethernet_adapters=4,this.iouTemplate.serial_adapters=0):"L3 image"===this.selectedType&&(this.iouTemplate.ethernet_adapters=2,this.iouTemplate.serial_adapters=2),this.iouService.addTemplate(this.server,this.iouTemplate).subscribe((function(t){e.goBack()}))):this.toasterService.error("Fill all required fields")},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(nne),_a(iJ),_a(nK),_a(um),_a(xue),_a(one))},e.\u0275cmp=ze({type:e,selectors:[["app-add-iou-template"]],decls:35,vars:12,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Name","type","text","formControlName","templateName"],["label","Image"],["value","2",1,"radio-button",3,"click"],["placeholder","Type",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","form-field",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","IOU image",3,"ngModel","ngModelOptions","ngModelChange"],["type","file","accept",".bin","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","imageName","placeholder","IOU image"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New IOU device template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"div",5),Sa(7,"mat-vertical-stepper",6),Sa(8,"mat-step",7),Sa(9,"mat-radio-group",8),Sa(10,"mat-radio-button",9),Ia("click",(function(){return t.setServerType("local")})),_s(11,"Run this IOU device locally"),xa(),Sa(12,"mat-radio-button",10),Ia("click",(function(){return t.setServerType("gns3 vm")})),_s(13,"Run this IOU device on the GNS3 VM"),xa(),xa(),xa(),Sa(14,"mat-step",11),Sa(15,"form",12),Sa(16,"mat-form-field",13),Oa(17,"input",14),xa(),xa(),xa(),Sa(18,"mat-step",15),Sa(19,"form",12),Sa(20,"mat-radio-group",8),Sa(21,"mat-radio-button",9),Ia("click",(function(){return t.setDiskImage("existingImage")})),_s(22,"Existing image"),xa(),Sa(23,"mat-radio-button",16),Ia("click",(function(){return t.setDiskImage("newImage")})),_s(24,"New image"),xa(),xa(),Sa(25,"mat-form-field",13),Sa(26,"mat-select",17),Ia("ngModelChange",(function(e){return t.selectedType=e})),ba(27,Ppe,2,2,"mat-option",18),xa(),xa(),ba(28,Ipe,3,4,"mat-form-field",19),ba(29,Dpe,7,1,"div",20),xa(),xa(),xa(),xa(),Sa(30,"div",21),Sa(31,"button",22),Ia("click",(function(){return t.goBack()})),_s(32,"Cancel"),xa(),Sa(33,"button",23),Ia("click",(function(){return t.addTemplate()})),_s(34,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("linear",!0),ar(1),ka("completed",t.isGns3VmChosen||t.isLocalComputerChosen),ar(4),ka("disabled",!t.isGns3VmAvailable),ar(2),ka("completed",t.templateNameForm.get("templateName").value),ar(1),ka("formGroup",t.templateNameForm),ar(4),ka("formGroup",t.imageForm),ar(7),ka("ngModel",t.selectedType)("ngModelOptions",Nc(11,Ape)),ar(1),ka("ngForOf",t.types),ar(1),ka("ngIf",!t.newImageSelected),ar(1),ka("ngIf",t.newImageSelected))},directives:[eie,Yne,l3,f3,Lp,Tf,zp,a0,y0,wf,Mf,Xp,H0,Rp,Nh,Hh,h$,DY,bU],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function Lpe(e,t){if(1&e&&(Sa(0,"mat-option",31),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n[1]),ar(1),ks(" ",n[0]," ")}}function Fpe(e,t){if(1&e&&(Sa(0,"mat-option",31),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n),ar(1),ks(" ",n," ")}}function Npe(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",2),Sa(1,"input",32),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).iouTemplate.ram=e})),xa(),Sa(2,"span",33),_s(3,"MB"),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.iouTemplate.ram)}}function Bpe(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",2),Sa(1,"input",34),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).iouTemplate.nvram=e})),xa(),Sa(2,"span",33),_s(3,"MB"),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.iouTemplate.nvram)}}var Hpe=function(){return{standalone:!0}};function zpe(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-accordion"),Sa(2,"mat-expansion-panel"),Sa(3,"mat-expansion-panel-header"),Sa(4,"mat-panel-title"),_s(5," General settings "),xa(),xa(),Sa(6,"form",7),Sa(7,"mat-form-field",2),Sa(8,"input",8),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.name=e})),xa(),xa(),Sa(9,"mat-form-field",2),Sa(10,"input",9),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.default_name_format=e})),xa(),xa(),Sa(11,"mat-form-field",2),Sa(12,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.symbol=e})),xa(),xa(),Sa(13,"button",11),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(14,"Choose symbol"),xa(),Oa(15,"br"),Oa(16,"br"),Sa(17,"mat-form-field",2),Sa(18,"mat-select",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.category=e})),ba(19,Lpe,2,2,"mat-option",13),xa(),xa(),Sa(20,"input",14,15),Ia("change",(function(e){return Dt(n),Ba().uploadImageFile(e)})),xa(),Sa(22,"button",16),Ia("click",(function(){return Dt(n),ya(21).click()})),_s(23,"Browse"),xa(),Sa(24,"mat-form-field",17),Sa(25,"input",18),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.path=e})),xa(),xa(),Sa(26,"mat-form-field",2),Sa(27,"input",19),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.startup_config=e})),xa(),xa(),Sa(28,"mat-form-field",2),Sa(29,"input",20),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.private_config=e})),xa(),xa(),xa(),Sa(30,"mat-form-field",21),Sa(31,"mat-select",22),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.console_type=e})),ba(32,Fpe,2,2,"mat-option",13),xa(),xa(),Sa(33,"mat-checkbox",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.console_auto_start=e})),_s(34," Auto start console "),xa(),Oa(35,"br"),Sa(36,"mat-checkbox",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.l1_keepalives=e})),_s(37," Enable layer 1 keepalive messages (non-functional) "),xa(),Oa(38,"br"),Sa(39,"mat-checkbox",23),Ia("ngModelChange",(function(e){return Dt(n),Ba().defaultSettings=e})),_s(40," Use default IOU values for memories "),xa(),ba(41,Npe,4,1,"mat-form-field",24),ba(42,Bpe,4,1,"mat-form-field",24),xa(),Sa(43,"mat-expansion-panel"),Sa(44,"mat-expansion-panel-header"),Sa(45,"mat-panel-title"),_s(46," Network "),xa(),xa(),Sa(47,"form",7),Sa(48,"mat-form-field",2),Sa(49,"input",25),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.ethernet_adapters=e})),xa(),xa(),Sa(50,"mat-form-field",2),Sa(51,"input",26),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.serial_adapters=e})),xa(),xa(),xa(),xa(),Sa(52,"mat-expansion-panel"),Sa(53,"mat-expansion-panel-header"),Sa(54,"mat-panel-title"),_s(55," Usage "),xa(),xa(),Sa(56,"mat-form-field",2),Sa(57,"textarea",27),Ia("ngModelChange",(function(e){return Dt(n),Ba().iouTemplate.usage=e})),xa(),xa(),xa(),xa(),Sa(58,"div",28),Sa(59,"button",29),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(60,"Cancel"),xa(),Sa(61,"button",30),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(62,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(6),ka("formGroup",i.generalSettingsForm),ar(2),ka("ngModel",i.iouTemplate.name),ar(2),ka("ngModel",i.iouTemplate.default_name_format),ar(2),ka("ngModel",i.iouTemplate.symbol),ar(6),ka("ngModelOptions",Nc(22,Hpe))("ngModel",i.iouTemplate.category),ar(1),ka("ngForOf",i.categories),ar(6),ka("ngModel",i.iouTemplate.path),ar(2),ka("ngModel",i.iouTemplate.startup_config),ar(2),ka("ngModelOptions",Nc(23,Hpe))("ngModel",i.iouTemplate.private_config),ar(2),ka("ngModel",i.iouTemplate.console_type),ar(1),ka("ngForOf",i.consoleTypes),ar(1),ka("ngModel",i.iouTemplate.console_auto_start),ar(3),ka("ngModel",i.iouTemplate.l1_keepalives),ar(3),ka("ngModel",i.defaultSettings),ar(2),ka("ngIf",!i.defaultSettings),ar(1),ka("ngIf",!i.defaultSettings),ar(5),ka("formGroup",i.networkForm),ar(2),ka("ngModel",i.iouTemplate.ethernet_adapters),ar(2),ka("ngModel",i.iouTemplate.serial_adapters),ar(6),ka("ngModel",i.iouTemplate.usage)}}function Vpe(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",35),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.iouTemplate.symbol)}}var qpe=function(e){return{shadowed:e}},Upe=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.iouService=n,this.toasterService=i,this.configurationService=r,this.router=o,this.formBuilder=a,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required),path:new Cp("",Df.required),initialConfig:new Cp("",Df.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new Cp("",Df.required),serialAdapters:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getConfiguration(),e.iouService.getTemplate(e.server,n).subscribe((function(t){e.iouTemplate=t}))}))},e.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories()},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},e.prototype.onSave=function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):this.iouService.saveTemplate(this.server,this.iouTemplate).subscribe((function(){e.toasterService.success("Changes saved")}))},e.prototype.uploadImageFile=function(e){this.iouTemplate.path=e.target.files[0].name},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iouTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(nne),_a(iJ),_a(T5),_a(nK),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-iou-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"form-field"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","file","accept",".bin","ngDefaultControl","",1,"nonvisible",3,"change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","formControlName","path","type","text","placeholder","IOU image path",3,"ngModel","ngModelChange"],["matInput","","formControlName","initialConfig","type","text","placeholder","Startup config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Private config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"IOU device configuration"),xa(),xa(),xa(),ba(5,zpe,63,24,"div",4),xa(),ba(6,Vpe,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,qpe,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.iouTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.iouTemplate))},directives:[Rh,Hh,qle,Nle,Hle,Vle,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,H0,Rp,Nh,Q0,zf,DY,t0,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Gpe=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.qemuBinaries=[],this.templateName="",this.nameForm=this.formBuilder.group({templateName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.qemuService.getTemplate(e.server,n).subscribe((function(t){e.qemuTemplate=t,e.templateName="Copy of "+e.qemuTemplate.name}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},e.prototype.addTemplate=function(){var e=this;this.nameForm.invalid?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.template_id=Object(Gee.v4)(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.server,this.qemuTemplate).subscribe((function(t){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a($2),_a(iJ),_a(nK),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-copy-qemu-virtual-machine-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Copy QEMU VM template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"form",6),Sa(8,"mat-form-field",7),Sa(9,"input",8),Ia("ngModelChange",(function(e){return t.templateName=e})),xa(),xa(),xa(),xa(),Sa(10,"div",9),Sa(11,"button",10),Ia("click",(function(){return t.goBack()})),_s(12,"Cancel"),xa(),Sa(13,"button",11),Ia("click",(function(){return t.addTemplate()})),_s(14,"Copy template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("formGroup",t.nameForm),ar(2),ka("ngModel",t.templateName))},directives:[wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Wpe=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.iosService.getTemplate(e.server,n).subscribe((function(t){e.iosTemplate=t,e.templateName="Copy of "+e.iosTemplate.name}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},e.prototype.addTemplate=function(){var e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=Object(Gee.v4)(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.server,this.iosTemplate).subscribe((function(t){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(tne),_a(iJ),_a(nK),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-copy-ios-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Copy IOS router template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"form",6),Sa(8,"mat-form-field",7),Sa(9,"input",8),Ia("ngModelChange",(function(e){return t.templateName=e})),xa(),xa(),xa(),xa(),Sa(10,"div",9),Sa(11,"button",10),Ia("click",(function(){return t.goBack()})),_s(12,"Cancel"),xa(),Sa(13,"button",11),Ia("click",(function(){return t.addTemplate()})),_s(14,"Copy template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("formGroup",t.formGroup),ar(2),ka("ngModel",t.templateName))},directives:[wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Kpe=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.dockerService.getTemplate(e.server,n).subscribe((function(t){e.dockerTemplate=t,e.templateName="Copy of "+e.dockerTemplate.name}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},e.prototype.addTemplate=function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=Object(Gee.v4)(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.server,this.dockerTemplate).subscribe((function(t){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Jte),_a(iJ),_a(nK),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-copy-docker-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Copy Docker container template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"div",5),Sa(7,"form",6),Sa(8,"mat-form-field",7),Sa(9,"input",8),Ia("ngModelChange",(function(e){return t.templateName=e})),xa(),xa(),xa(),xa(),Sa(10,"div",9),Sa(11,"button",10),Ia("click",(function(){return t.goBack()})),_s(12,"Cancel"),xa(),Sa(13,"button",11),Ia("click",(function(){return t.addTemplate()})),_s(14,"Copy template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("formGroup",t.templateNameForm),ar(2),ka("ngModel",t.templateName))},directives:[Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Xpe=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.qemuService.getTemplate(e.server,n).subscribe((function(t){e.iouTemplate=t,e.templateName="Copy of "+e.iouTemplate.name}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},e.prototype.addTemplate=function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.iouTemplate.template_id=Object(Gee.v4)(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.server,this.iouTemplate).subscribe((function(t){e.goBack()})))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(nne),_a(iJ),_a(nK),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-copy-iou-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Copy IOU device template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"form",6),Sa(8,"mat-form-field",7),Sa(9,"input",8),Ia("ngModelChange",(function(e){return t.templateName=e})),xa(),xa(),xa(),xa(),Sa(10,"div",9),Sa(11,"button",10),Ia("click",(function(){return t.goBack()})),_s(12,"Cancel"),xa(),Sa(13,"button",11),Ia("click",(function(){return t.addTemplate()})),_s(14,"Copy template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("formGroup",t.templateNameForm),ar(2),ka("ngModel",t.templateName))},directives:[wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Ype=function(){function e(){}return e.prototype.transform=function(e,t){return e?t?(t=t.toLowerCase(),e.filter((function(e){return e.name.toLowerCase().includes(t)}))):e:[]},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"namefilter",type:e,pure:!0}),e}(),Zpe=function(){function e(){}return e.prototype.transform=function(e){var t=new Date(1e3*+e),n=t.getHours(),i="0"+t.getMinutes(),r="0"+t.getSeconds(),o=t.getFullYear(),a=t.getMonth()+1,s=t.getDate();return n+":"+i.substr(-2)+":"+r.substr(-2)+" "+s+"/"+a+"/"+o},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"datefilter",type:e,pure:!0}),e}();function Qpe(e,t){1&e&&(Sa(0,"mat-header-cell",18),_s(1," Name "),xa())}function $pe(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.name," ")}}function Jpe(e,t){1&e&&(Sa(0,"mat-header-cell",18),_s(1," Date "),xa())}function eme(e,t){if(1&e&&(Sa(0,"mat-cell"),_s(1),Uc(2,"datefilter"),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",Gc(2,1,n.created_at)," ")}}function tme(e,t){1&e&&(Sa(0,"mat-header-cell"),_s(1," Actions "),xa())}function nme(e,t){if(1&e){var n=Pa();Sa(0,"mat-cell",19),Sa(1,"button",20),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().restoreSnapshot(e)})),Sa(2,"mat-icon",21),_s(3,"restore"),xa(),xa(),Sa(4,"button",22),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba().deleteSnapshot(e)})),Sa(5,"mat-icon",23),_s(6,"delete"),xa(),xa(),xa()}}function ime(e,t){1&e&&Oa(0,"mat-header-row")}function rme(e,t){1&e&&Oa(0,"mat-row")}var ome=function(){function e(e,t,n,i){this.route=e,this.snapshotService=t,this.progressDialogService=n,this.toaster=i,this.displayedColumns=["name","creationDate","actions"]}return e.prototype.ngOnInit=function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.server=this.route.snapshot.data.server,this.getSnapshots()},e.prototype.getSnapshots=function(){var e=this;this.snapshotService.list(this.server,this.projectId).subscribe((function(t){e.snapshots=t}))},e.prototype.restoreSnapshot=function(e){var t=this,n=this.snapshotService.restore(this.server,this.projectId,e.snapshot_id.toString()),i=this.progressDialogService.open(),r=n.subscribe((function(n){t.toaster.success("Snapshot "+e.name+" has been restored."),i.close()}));i.afterClosed().subscribe((function(e){e===Pae.CANCELLED&&r.unsubscribe()}))},e.prototype.deleteSnapshot=function(e){var t=this;this.snapshotService.delete(this.server,this.projectId,e.snapshot_id.toString()).subscribe((function(){t.getSnapshots(),t.toaster.success("Snapshot "+e.name+" has been deleted.")}))},e.prototype.sortData=function(e){if(e.active&&""!==e.direction){var t=this.snapshots.slice();this.snapshots=t.sort((function(t,n){var i="asc"===e.direction;return"name"===e.active?function(e,t,n){return((e=e.toLowerCase())<(t=t.toLowerCase())?-1:1)*(n?1:-1)}(t.name,n.name,i):"creationDate"===e.active?function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(+t.created_at,+n.created_at,!i):0}))}},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(wae),_a(jae),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-list-of-snapshots"]],decls:23,vars:7,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["matSort","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[2,"text-align","right"],["mat-icon-button","","matTooltip","Restore snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Restore snapshot"],["mat-icon-button","","matTooltip","Delete snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete snapshot"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Snapshots"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card"),Sa(7,"mat-form-field",5),Sa(8,"input",6),Ia("ngModelChange",(function(e){return t.searchText=e})),xa(),xa(),Sa(9,"mat-table",7,8),Ia("matSortChange",(function(e){return t.sortData(e)})),Uc(11,"namefilter"),Ma(12,9),ba(13,Qpe,2,0,"mat-header-cell",10),ba(14,$pe,2,1,"mat-cell",11),Ta(),Ma(15,12),ba(16,Jpe,2,0,"mat-header-cell",10),ba(17,eme,3,3,"mat-cell",11),Ta(),Ma(18,13),ba(19,tme,2,0,"mat-header-cell",14),ba(20,nme,7,0,"mat-cell",15),Ta(),ba(21,ime,1,0,"mat-header-row",16),ba(22,rme,1,0,"mat-row",17),xa(),xa(),xa(),xa()),2&e&&(ar(8),ka("ngModel",t.searchText),ar(1),ka("dataSource",Wc(11,4,t.snapshots,t.searchText)),ar(12),ka("matHeaderRowDef",t.displayedColumns),ar(1),ka("matRowDefColumns",t.displayedColumns))},directives:[wJ,a0,y0,wf,Mf,Rp,f1,uie,w1,v1,m1,E1,I1,C1,vie,M1,h$,J1,P$,R1,B1],pipes:[Ype,Zpe],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]}),e}(),ame=function(){function e(e,t,n){this.router=e,this.consoleService=t,this.toasterService=n,this.consoleForm=new Sp({command:new Cp("")})}return e.prototype.ngOnInit=function(){this.consoleForm.get("command").setValue(this.consoleService.command)},e.prototype.goBack=function(){this.router.navigate(["/settings"])},e.prototype.save=function(){this.consoleService.command=this.consoleForm.value.command,this.toasterService.success("Console command has been updated."),this.goBack()},e.\u0275fac=function(t){return new(t||e)(_a(nK),_a(ble),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-console"]],decls:30,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[3,"formGroup"],[1,"form-field","full-width-field"],["matInput","","formControlName","command","placeholder","Command"],[1,"help"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Console settings"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card"),Sa(7,"form",5),Sa(8,"mat-form-field",6),Oa(9,"textarea",7),xa(),Sa(10,"div",8),_s(11,"The following variables are replaced by GNS3:"),Oa(12,"br"),_s(13," %h: console IP or hostname"),Oa(14,"br"),_s(15," %p: console port"),Oa(16,"br"),_s(17," %s: path of the serial connection"),Oa(18,"br"),_s(19," %d: title of the console"),Oa(20,"br"),_s(21," %i: Project UUID"),Oa(22,"br"),_s(23," %c: server URL (http://user:password@server:port) "),xa(),xa(),xa(),Sa(24,"div",9),Sa(25,"button",10),Ia("click",(function(){return t.goBack()})),_s(26,"Cancel"),xa(),Sa(27,"button",11),Ia("click",(function(){return t.save()})),_s(28,"Save"),xa(),Oa(29,"br"),xa(),xa(),xa()),2&e&&(ar(7),ka("formGroup",t.consoleForm))},directives:[wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]}),e}(),sme=function(){function e(e){this.httpClient=e,this.thirdpartylicenses="",this.releasenotes=""}return e.prototype.ngOnInit=function(){var e=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe((function(t){e.thirdpartylicenses=t.replace(new RegExp("\n","g"),"<br />")}),(function(t){404===t.status&&(e.thirdpartylicenses="File not found")})),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe((function(t){e.releasenotes=t.replace(new RegExp("\n","g"),"<br />")}))},e.\u0275fac=function(t){return new(t||e)(_a(dv))},e.\u0275cmp=ze({type:e,selectors:[["app-help"]],decls:36,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"innerHTML"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"h1"),_s(3,"Help"),xa(),xa(),Sa(4,"div",2),Sa(5,"div",3),Sa(6,"mat-accordion"),Sa(7,"mat-expansion-panel"),Sa(8,"mat-expansion-panel-header"),Sa(9,"mat-panel-title"),_s(10," Useful shortcuts "),xa(),xa(),Sa(11,"mat-list"),Sa(12,"mat-list-item"),_s(13," ctrl + + to zoom in "),xa(),Sa(14,"mat-list-item"),_s(15," ctrl + - to zoom out "),xa(),Sa(16,"mat-list-item"),_s(17," ctrl + 0 to reset zoom "),xa(),Sa(18,"mat-list-item"),_s(19," ctrl + h to hide toolbar "),xa(),Sa(20,"mat-list-item"),_s(21," ctrl + a to select all items on map "),xa(),Sa(22,"mat-list-item"),_s(23," ctrl + shift + a to deselect all items on map "),xa(),Sa(24,"mat-list-item"),_s(25," ctrl + shift + s to go to preferences "),xa(),xa(),xa(),Sa(26,"mat-expansion-panel"),Sa(27,"mat-expansion-panel-header"),Sa(28,"mat-panel-title"),_s(29," Third party components "),xa(),xa(),Oa(30,"div",4),xa(),Sa(31,"mat-expansion-panel"),Sa(32,"mat-expansion-panel-header"),Sa(33,"mat-panel-title"),_s(34," Release notes "),xa(),xa(),Oa(35,"div",4),xa(),xa(),xa(),xa(),xa()),2&e&&(ar(30),ka("innerHTML",t.thirdpartylicenses,Ni),ar(5),ka("innerHTML",t.releasenotes,Ni))},directives:[qle,Nle,Hle,Vle,t4,o4],styles:[""]}),e}(),cme=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["app-page-not-found"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],["mat-button","","routerLink","/servers"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Oa(2,"br"),Sa(3,"h1"),_s(4,"404 Page not found"),xa(),Sa(5,"button",2),_s(6,"Navigate to homepage"),xa(),xa(),xa())},directives:[h$,rK],styles:["div[_ngcontent-%COMP%]{text-align:center}"]}),e}(),lme=function(){function e(e){this.httpServer=e}return e.prototype.getGns3vm=function(e){return this.httpServer.get(e,"/gns3vm")},e.prototype.updateGns3vm=function(e,t){return this.httpServer.put(e,"/gns3vm",t)},e.prototype.getGns3vmEngines=function(e){return this.httpServer.get(e,"/gns3vm/engines")},e.prototype.getVms=function(e,t){return this.httpServer.get(e,"/gns3vm/engines/"+t+"/vms")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function ume(e,t){if(1&e&&(Sa(0,"mat-option",18),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.engine_id),ar(1),ks(" ",n.name," ")}}function hme(e,t){if(1&e&&(Sa(0,"mat-option",18),_s(1),xa()),2&e){var n=t.$implicit;ka("value",n.vmname),ar(1),ks(" ",n.vmname," ")}}var dme=function(){return{standalone:!0}};function fme(e,t){if(1&e){var n=Pa();Sa(0,"mat-checkbox",10),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).gns3vm.headless=e})),_s(1," Run the VM in headless mode "),xa()}if(2&e){var i=Ba(2);ka("ngModelOptions",Nc(2,dme))("ngModel",i.gns3vm.headless)}}function pme(e,t){if(1&e){var n=Pa();Sa(0,"mat-form-field",21),Sa(1,"input",25),Ia("ngModelChange",(function(e){return Dt(n),Ba(3).port=e})),xa(),xa()}if(2&e){var i=Ba(3);ar(1),ka("ngModelOptions",Nc(2,dme))("ngModel",i.port)}}function mme(e,t){if(1&e&&(Sa(0,"form",19),ba(1,pme,2,3,"mat-form-field",20),Sa(2,"mat-form-field",21),Oa(3,"input",22),Sa(4,"span",23),_s(5,"MB"),xa(),xa(),Sa(6,"mat-form-field",21),Oa(7,"input",24),xa(),xa()),2&e){var n=Ba(2);ka("formGroup",n.vmForm),ar(1),ka("ngIf","virtualbox"===n.gns3vm.engine||"vmware"===n.gns3vm.engine)}}function gme(e,t){if(1&e){var n=Pa();Sa(0,"mat-radio-group",26),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).gns3vm.when_exit=e})),Sa(1,"mat-radio-button",27),Ia("click",(function(){return Dt(n),Ba(2).setCloseAction("keep")})),_s(2,"keep the GNS3 VM running"),xa(),Sa(3,"mat-radio-button",28),Ia("click",(function(){return Dt(n),Ba(2).setCloseAction("suspend")})),_s(4,"suspend the GNS3 VM"),xa(),Sa(5,"mat-radio-button",29),Ia("click",(function(){return Dt(n),Ba(2).setCloseAction("stop")})),_s(6,"stop the GNS3 VM"),xa(),xa()}2&e&&ka("ngModel",Ba(2).gns3vm.when_exit)}function vme(e,t){if(1&e){var n=Pa();Sa(0,"mat-card",9),Sa(1,"mat-checkbox",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().gns3vm.enable=e})),_s(2," Enable the GNS3 VM "),xa(),Sa(3,"mat-form-field",11),Sa(4,"mat-select",12),Ia("selectionChange",(function(e){return Dt(n),Ba().changeVmEngine(e)}))("ngModelChange",(function(e){return Dt(n),Ba().gns3vm.engine=e})),ba(5,ume,2,2,"mat-option",13),xa(),xa(),Sa(6,"mat-form-field",11),Sa(7,"mat-select",14),Ia("ngModelChange",(function(e){return Dt(n),Ba().gns3vm.vmname=e})),ba(8,hme,2,2,"mat-option",13),xa(),xa(),ba(9,fme,2,3,"mat-checkbox",15),ba(10,mme,8,2,"form",16),ba(11,gme,7,1,"mat-radio-group",17),xa()}if(2&e){var i=Ba();ar(1),ka("ngModelOptions",Nc(11,dme))("ngModel",i.gns3vm.enable),ar(3),ka("ngModelOptions",Nc(12,dme))("ngModel",i.gns3vm.engine),ar(1),ka("ngForOf",i.vmEngines),ar(2),ka("ngModelOptions",Nc(13,dme))("ngModel",i.gns3vm.vmname),ar(1),ka("ngForOf",i.vms),ar(1),ka("ngIf","virtualbox"===i.gns3vm.engine||"vmware"===i.gns3vm.engine),ar(1),ka("ngIf","remote"!==i.gns3vm.engine),ar(1),ka("ngIf","remote"!==i.gns3vm.engine)}}var bme=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.gns3vmService=n,this.router=i,this.formBuilder=r,this.toasterService=o,this.vms=[],this.vmForm=this.formBuilder.group({ram:new Cp(null,[Df.required]),vcpus:new Cp(null,[Df.required])})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.gns3vmService.getGns3vm(e.server).subscribe((function(t){e.gns3vm=t,e.vmForm.controls.ram.setValue(e.gns3vm.ram),e.vmForm.controls.vcpus.setValue(e.gns3vm.vcpus),e.gns3vm.port&&(e.port=e.gns3vm.port),e.gns3vmService.getGns3vmEngines(e.server).subscribe((function(t){e.vmEngines=t})),e.gns3vmService.getVms(e.server,e.gns3vm.engine).subscribe((function(t){e.vms=t}))}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences"])},e.prototype.setCloseAction=function(e){this.gns3vm.when_exit=e},e.prototype.changeVmEngine=function(e){var t=this;this.gns3vmService.getVms(this.server,e.value).subscribe((function(e){t.vms=e}),(function(e){}))},e.prototype.save=function(){var e=this;this.vmForm.valid&&this.gns3vm.vmname||"remote"===this.gns3vm.engine&&this.gns3vm.vmname?(this.gns3vm.ram=this.vmForm.get("ram").value,this.gns3vm.vcpus=this.vmForm.get("vcpus").value,this.port&&(this.gns3vm.port=this.port),this.gns3vmService.updateGns3vm(this.server,this.gns3vm).subscribe((function(){e.toasterService.success("GNS3 VM updated.")})),this.goBack()):this.toasterService.error("Fill all required fields with correct values.")},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(lme),_a(nK),_a(um),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-gns3vm"]],decls:12,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],["class","matCard",4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"matCard"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Virtualization engine",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","VM name",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[3,"formGroup",4,"ngIf"],["aria-label","Actions when closing GNS3","class","radio-selection",3,"ngModel","ngModelChange",4,"ngIf"],[3,"value"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","formControlName","ram","type","number","placeholder","RAM"],["matSuffix",""],["matInput","","formControlName","vcpus","type","number","placeholder","vCPUs"],["matInput","","type","number","placeholder","Port",3,"ngModelOptions","ngModel","ngModelChange"],["aria-label","Actions when closing GNS3",1,"radio-selection",3,"ngModel","ngModelChange"],["value","keep",3,"click"],["value","suspend",3,"click"],["value","stop",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"GNS3 VM preferences"),xa(),xa(),xa(),Sa(5,"div",4),ba(6,vme,12,14,"mat-card",5),Sa(7,"div",6),Sa(8,"button",7),Ia("click",(function(){return t.goBack()})),_s(9,"Cancel"),xa(),Sa(10,"button",8),Ia("click",(function(){return t.save()})),_s(11,"Save"),xa(),xa(),xa(),xa()),2&e&&(ar(6),ka("ngIf",t.gns3vm))},directives:[Hh,h$,wJ,Q0,Mf,Rp,a0,H0,Nh,DY,Lp,Tf,zp,y0,wf,zf,Xp,t0,l3,f3],styles:[".form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.radio-selection[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),e}(),yme=function(){function e(e,t,n,i,r){this.serverService=e,this.serverDatabase=t,this.route=n,this.router=i,this.toasterService=r}return e.prototype.ngOnInit=function(){return LK(this,void 0,void 0,(function(){var e=this;return FK(this,(function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe((function(t){return LK(e,void 0,void 0,(function(){return FK(this,(function(e){return t&&this.getServers(),[2]}))}))})),[2]}))}))},e.prototype.getServers=function(){return LK(this,void 0,void 0,(function(){var e,t,n,i,r,o,a=this;return FK(this,(function(s){switch(s.label){case 0:return e=this.route.snapshot.paramMap.get("server_ip"),t=+this.route.snapshot.paramMap.get("server_port"),n=this.route.snapshot.paramMap.get("project_id"),[4,this.serverService.findAll()];case 1:return i=s.sent(),(r=i.filter((function(n){return n.host===e&&n.port===t}))[0])?this.router.navigate(["/server",r.id,"project",n]):((o=new AK).host=e,o.port=t,o.location="bundled",o.name=e,this.serverService.create(o).then((function(e){a.router.navigate(["/server",e.id,"project",n])}))),[2]}}))}))},e.\u0275fac=function(t){return new(t||e)(_a(qK),_a(lce),_a(FG),_a(nK),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-direct-link"]],decls:0,vars:0,template:function(e,t){},styles:[""],encapsulation:2}),e}();function _me(e,t){if(1&e&&(cn(),Sa(0,"linearGradient"),Oa(1,"stop",5),Oa(2,"stop",6),xa()),2&e){var n=Ba(2);fa("id",n.svg.outerLinearGradient.id),ar(1),fa("stop-color",n.svg.outerLinearGradient.colorStop1)("stop-opacity",1),ar(1),fa("stop-color",n.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function wme(e,t){if(1&e&&(cn(),Sa(0,"radialGradient"),Oa(1,"stop",5),Oa(2,"stop",6),xa()),2&e){var n=Ba(2);fa("id",n.svg.radialGradient.id),ar(1),fa("stop-color",n.svg.radialGradient.colorStop1)("stop-opacity",1),ar(1),fa("stop-color",n.svg.radialGradient.colorStop2)("stop-opacity",1)}}function kme(e,t){if(1&e&&(cn(),Oa(0,"circle")),2&e){var n=Ba(3);fa("cx",n.svg.backgroundCircle.cx)("cy",n.svg.backgroundCircle.cy)("r",n.svg.backgroundCircle.r)("fill",n.svg.backgroundCircle.fill)("fill-opacity",n.svg.backgroundCircle.fillOpacity)("stroke",n.svg.backgroundCircle.stroke)("stroke-width",n.svg.backgroundCircle.strokeWidth)}}function Cme(e,t){if(1&e&&(cn(),Oa(0,"circle")),2&e){var n=Ba(3);ga("fill","url(#",n.svg.radialGradient.id,")"),fa("cx",n.svg.backgroundCircle.cx)("cy",n.svg.backgroundCircle.cy)("r",n.svg.backgroundCircle.r)("fill-opacity",n.svg.backgroundCircle.fillOpacity)("stroke",n.svg.backgroundCircle.stroke)("stroke-width",n.svg.backgroundCircle.strokeWidth)}}function Sme(e,t){if(1&e&&(cn(),Ma(0),ba(1,kme,1,7,"circle",2),ba(2,Cme,1,7,"circle",2),Ta()),2&e){var n=Ba(2);ar(1),ka("ngIf",!n.options.backgroundGradient),ar(1),ka("ngIf",n.options.backgroundGradient)}}function xme(e,t){if(1&e&&(cn(),Oa(0,"circle")),2&e){var n=Ba(2);fa("cx",n.svg.circle.cx)("cy",n.svg.circle.cy)("r",n.svg.circle.r)("fill",n.svg.circle.fill)("stroke",n.svg.circle.stroke)("stroke-width",n.svg.circle.strokeWidth)}}function Ome(e,t){if(1&e&&(cn(),Oa(0,"path")),2&e){var n=Ba(3);fa("d",n.svg.path.d)("stroke",n.svg.path.stroke)("stroke-width",n.svg.path.strokeWidth)("stroke-linecap",n.svg.path.strokeLinecap)("fill",n.svg.path.fill)}}function Mme(e,t){if(1&e&&(cn(),Oa(0,"path")),2&e){var n=Ba(3);ga("stroke","url(#",n.svg.outerLinearGradient.id,")"),fa("d",n.svg.path.d)("stroke-width",n.svg.path.strokeWidth)("stroke-linecap",n.svg.path.strokeLinecap)("fill",n.svg.path.fill)}}function Tme(e,t){if(1&e&&(cn(),Ma(0),ba(1,Ome,1,5,"path",2),ba(2,Mme,1,5,"path",2),Ta()),2&e){var n=Ba(2);ar(1),ka("ngIf",!n.options.outerStrokeGradient),ar(1),ka("ngIf",n.options.outerStrokeGradient)}}function Eme(e,t){if(1&e&&(cn(),Sa(0,"tspan"),_s(1),xa()),2&e){var n=t.$implicit,i=Ba(4);fa("x",i.svg.title.x)("y",i.svg.title.y)("dy",n.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),ar(1),ws(n.span)}}function Pme(e,t){if(1&e&&(cn(),Ma(0),ba(1,Eme,2,7,"tspan",8),Ta()),2&e){var n=Ba(3);ar(1),ka("ngForOf",n.svg.title.tspans)}}function jme(e,t){if(1&e&&(cn(),Sa(0,"tspan"),_s(1),xa()),2&e){var n=Ba(3);fa("font-size",n.svg.units.fontSize)("font-weight",n.svg.units.fontWeight)("fill",n.svg.units.color),ar(1),ws(n.svg.units.text)}}function Ame(e,t){if(1&e&&(cn(),Sa(0,"tspan"),_s(1),xa()),2&e){var n=t.$implicit,i=Ba(4);fa("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",n.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),ar(1),ws(n.span)}}function Ime(e,t){if(1&e&&(cn(),Ma(0),ba(1,Ame,2,7,"tspan",8),Ta()),2&e){var n=Ba(3);ar(1),ka("ngForOf",n.svg.subtitle.tspans)}}function Dme(e,t){if(1&e&&(cn(),Sa(0,"text",7),ba(1,Pme,2,1,"ng-container",2),ba(2,jme,2,4,"tspan",2),ba(3,Ime,2,1,"ng-container",2),xa()),2&e){var n=Ba(2);fa("x",n.svg.circle.cx)("y",n.svg.circle.cy)("text-anchor",n.svg.title.textAnchor),ar(1),ka("ngIf",n.options.showTitle),ar(1),ka("ngIf",n.options.showUnits),ar(1),ka("ngIf",n.options.showSubtitle)}}function Rme(e,t){if(1&e&&(cn(),Oa(0,"image",9)),2&e){var n=Ba(2);fa("height",n.svg.image.height)("width",n.svg.image.width)("href",n.svg.image.src,null,"xlink")("x",n.svg.image.x)("y",n.svg.image.y)}}function Lme(e,t){if(1&e){var n=Pa();cn(),Sa(0,"svg",1),Ia("click",(function(e){return Dt(n),Ba().emitClickEvent(e)})),Sa(1,"defs"),ba(2,_me,3,5,"linearGradient",2),ba(3,wme,3,5,"radialGradient",2),xa(),ba(4,Sme,3,2,"ng-container",2),ba(5,xme,1,6,"circle",2),ba(6,Tme,3,2,"ng-container",2),ba(7,Dme,4,6,"text",3),ba(8,Rme,1,5,"image",4),xa()}if(2&e){var i=Ba();fa("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),ar(2),ka("ngIf",i.options.outerStrokeGradient),ar(1),ka("ngIf",i.options.backgroundGradient),ar(1),ka("ngIf",i.options.showBackground),ar(1),ka("ngIf",i.options.showInnerStroke),ar(1),ka("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),ar(1),ka("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),ar(1),ka("ngIf",i.options.showImage)}}var Fme,Nme=function e(){Object(m.a)(this,e),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1},Bme=function(){var e=function(){function e(t,n,i){var r=this;Object(m.a)(this,e),this.elRef=n,this.document=i,this.onClick=new Yc,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new Yc,this._viewportChangedSubscriber=null,this.options=new Nme,this.defaultOptions=new Nme,this._lastPercent=0,this._gradientUUID=null,this.render=function(){r.applyOptions(),r.options.lazy?(null===r.svgElement&&r.draw(r._lastPercent),r.isInViewport&&(r.options.animation&&r.options.animationDuration>0?r.animate(r._lastPercent,r.options.percent):r.draw(r.options.percent),r._lastPercent=r.options.percent)):(r.options.animation&&r.options.animationDuration>0?r.animate(r._lastPercent,r.options.percent):r.draw(r.options.percent),r._lastPercent=r.options.percent)},this.polarToCartesian=function(e,t,n,i){var r=i*Math.PI/180;return{x:e+Math.sin(r)*n,y:t-Math.cos(r)*n}},this.draw=function(e){var t=(e=void 0===e?r.options.percent:Math.abs(e))>100?100:e,n=2*r.options.radius+2*r.options.outerStrokeWidth;r.options.showBackground&&(n+=2*r.options.backgroundStrokeWidth+r.max(0,2*r.options.backgroundPadding));var i,o,a={x:n/2,y:n/2},s={x:a.x,y:a.y-r.options.radius},c=r.polarToCartesian(a.x,a.y,r.options.radius,360*(r.options.clockwise?t:100-t)/100);if(100===t&&(c.x=c.x+(r.options.clockwise?-.01:.01)),t>50){var h=l(r.options.clockwise?[1,1]:[1,0],2);i=h[0],o=h[1]}else{var f=l(r.options.clockwise?[0,1]:[0,0],2);i=f[0],o=f[1]}var p=r.options.animateTitle?e:r.options.percent,m=p>r.options.maxPercent?"".concat(r.options.maxPercent.toFixed(r.options.toFixed),"+"):p.toFixed(r.options.toFixed),g=r.options.animateSubtitle?e:r.options.percent,v={x:a.x,y:a.y,textAnchor:"middle",color:r.options.titleColor,fontSize:r.options.titleFontSize,fontWeight:r.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==r.options.titleFormat&&"Function"===r.options.titleFormat.constructor.name){var b=r.options.titleFormat(p);b instanceof Array?v.texts=Object(u.a)(b):v.texts.push(b.toString())}else"auto"===r.options.title?v.texts.push(m):r.options.title instanceof Array?v.texts=Object(u.a)(r.options.title):v.texts.push(r.options.title.toString());var y={x:a.x,y:a.y,textAnchor:"middle",color:r.options.subtitleColor,fontSize:r.options.subtitleFontSize,fontWeight:r.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==r.options.subtitleFormat&&"Function"===r.options.subtitleFormat.constructor.name){var _=r.options.subtitleFormat(g);_ instanceof Array?y.texts=Object(u.a)(_):y.texts.push(_.toString())}else r.options.subtitle instanceof Array?y.texts=Object(u.a)(r.options.subtitle):y.texts.push(r.options.subtitle.toString());var w={text:"".concat(r.options.units),fontSize:r.options.unitsFontSize,fontWeight:r.options.unitsFontWeight,color:r.options.unitsColor},k=0,C=1;if(r.options.showTitle&&(k+=v.texts.length),r.options.showSubtitle&&(k+=y.texts.length),r.options.showTitle){var S,x=d(v.texts);try{for(x.s();!(S=x.n()).done;)v.tspans.push({span:S.value,dy:r.getRelativeY(C,k)}),C++}catch(T){x.e(T)}finally{x.f()}}if(r.options.showSubtitle){var O,M=d(y.texts);try{for(M.s();!(O=M.n()).done;)y.tspans.push({span:O.value,dy:r.getRelativeY(C,k)}),C++}catch(T){M.e(T)}finally{M.f()}}null===r._gradientUUID&&(r._gradientUUID=r.uuid()),r.svg={viewBox:"0 0 ".concat(n," ").concat(n),width:r.options.responsive?"100%":n,height:r.options.responsive?"100%":n,backgroundCircle:{cx:a.x,cy:a.y,r:r.options.radius+r.options.outerStrokeWidth/2+r.options.backgroundPadding,fill:r.options.backgroundColor,fillOpacity:r.options.backgroundOpacity,stroke:r.options.backgroundStroke,strokeWidth:r.options.backgroundStrokeWidth},path:{d:"M ".concat(s.x," ").concat(s.y,"\n A ").concat(r.options.radius," ").concat(r.options.radius," 0 ").concat(i," ").concat(o," ").concat(c.x," ").concat(c.y),stroke:r.options.outerStrokeColor,strokeWidth:r.options.outerStrokeWidth,strokeLinecap:r.options.outerStrokeLinecap,fill:"none"},circle:{cx:a.x,cy:a.y,r:r.options.radius-r.options.space-r.options.outerStrokeWidth/2-r.options.innerStrokeWidth/2,fill:"none",stroke:r.options.innerStrokeColor,strokeWidth:r.options.innerStrokeWidth},title:v,units:w,subtitle:y,image:{x:a.x-r.options.imageWidth/2,y:a.y-r.options.imageHeight/2,src:r.options.imageSrc,width:r.options.imageWidth,height:r.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+r._gradientUUID,colorStop1:r.options.outerStrokeColor,colorStop2:"transparent"===r.options.outerStrokeGradientStopColor?"#FFF":r.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+r._gradientUUID,colorStop1:r.options.backgroundColor,colorStop2:"transparent"===r.options.backgroundGradientStopColor?"#FFF":r.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(e,t){var n,i,o,a=r.options.startFromZero||e<0?0:e,s=t<0?0:r.min(t,r.options.maxPercent),c=Math.abs(Math.round(s-a));return c>=100?(n=100,i=r.options.animateTitle||r.options.animateSubtitle?Math.round(c/n):1):(n=c,i=1),(o=Math.round(r.options.animationDuration/n))<10&&(n=r.options.animationDuration/(o=10),i=!r.options.animateTitle&&!r.options.animateSubtitle&&c>100?Math.round(100/n):Math.round(c/n)),i<1&&(i=1),{times:n,step:i,interval:o}},this.animate=function(e,t){r._timerSubscription&&!r._timerSubscription.closed&&r._timerSubscription.unsubscribe();var n=r.options.startFromZero?0:e,i=t,o=r.getAnimationParameters(n,i),a=o.step,s=o.interval,c=n;r._timerSubscription=n<i?Object(uQ.a)(0,s).subscribe((function(){(c+=a)<=i?!r.options.animateTitle&&!r.options.animateSubtitle&&c>=100?(r.draw(i),r._timerSubscription.unsubscribe()):r.draw(c):(r.draw(i),r._timerSubscription.unsubscribe())})):Object(uQ.a)(0,s).subscribe((function(){(c-=a)>=i?!r.options.animateTitle&&!r.options.animateSubtitle&&i>=100?(r.draw(i),r._timerSubscription.unsubscribe()):r.draw(c):(r.draw(i),r._timerSubscription.unsubscribe())}))},this.emitClickEvent=function(e){r.options.renderOnClick&&r.animate(0,r.options.percent),r.onClick.emit(e)},this.applyOptions=function(){for(var e=0,t=Object.keys(r.options);e<t.length;e++){var n=t[e];r.hasOwnProperty(n)&&void 0!==r[n]?r.options[n]=r[n]:r.templateOptions&&void 0!==r.templateOptions[n]&&(r.options[n]=r.templateOptions[n])}r.options.radius=Math.abs(+r.options.radius),r.options.space=+r.options.space,r.options.percent=+r.options.percent>0?+r.options.percent:0,r.options.maxPercent=Math.abs(+r.options.maxPercent),r.options.animationDuration=Math.abs(r.options.animationDuration),r.options.outerStrokeWidth=Math.abs(+r.options.outerStrokeWidth),r.options.innerStrokeWidth=Math.abs(+r.options.innerStrokeWidth),r.options.backgroundPadding=+r.options.backgroundPadding},this.getRelativeY=function(e,t){return(1*(e-t/2)-.18).toFixed(2)+"em"},this.min=function(e,t){return e<t?e:t},this.max=function(e,t){return e>t?e:t},this.uuid=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))},this.findSvgElement=function(){if(null===this.svgElement){var e=this.elRef.nativeElement.getElementsByTagName("svg");e.length>0&&(this.svgElement=e[0])}},this.checkViewport=function(){r.findSvgElement();var e=r.isInViewport;r.isInViewport=r.isElementInViewport(r.svgElement),e!==r.isInViewport&&r.onViewportChanged.emit({oldValue:e,newValue:r.isInViewport})},this.onScroll=function(e){r.checkViewport()},this.loadEventsForLazyMode=function(){if(r.options.lazy){r.document.addEventListener("scroll",r.onScroll,!0),r.window.addEventListener("resize",r.onScroll,!0),null===r._viewportChangedSubscriber&&(r._viewportChangedSubscriber=r.onViewportChanged.subscribe((function(e){e.newValue&&r.render()})));var e=Object(uQ.a)(0,50).subscribe((function(){null===r.svgElement?r.checkViewport():e.unsubscribe()}))}},this.unloadEventsForLazyMode=function(){r.document.removeEventListener("scroll",r.onScroll,!0),r.window.removeEventListener("resize",r.onScroll,!0),null!==r._viewportChangedSubscriber&&(r._viewportChangedSubscriber.unsubscribe(),r._viewportChangedSubscriber=null)},this.document=i,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return Object(g.a)(e,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"isElementInViewport",value:function(e){if(null==e)return!1;var t,n=e.getBoundingClientRect(),i=e.parentNode;do{if(t=i.getBoundingClientRect(),n.top>=t.bottom)return!1;if(n.bottom<=t.top)return!1;if(n.left>=t.right)return!1;if(n.right<=t.left)return!1;i=i.parentNode}while(i!=this.document.body);return!(n.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||n.bottom<=0||n.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||n.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(e){this.render(),"lazy"in e&&(e.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Nme),_a(Ks),_a(bu))},e.\u0275cmp=ze({type:e,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[ct],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(e,t){1&e&&ba(0,Lme,9,11,"svg",0),2&e&&ka("ngIf",t.svg)},directives:[Hh,Nh],encapsulation:2}),e}(),Hme=function(){var e=Fme=function(){function e(){Object(m.a)(this,e)}return Object(g.a)(e,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:Fme,providers:[{provide:Nme,useValue:e}]}}}]),e}();return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d]]}),e}(),zme=["*"],Vme=new he("MatChipRemove"),qme=new he("MatChipAvatar"),Ume=new he("MatChipTrailingIcon"),Gme=nY(eY(tY((function e(t){Object(m.a)(this,e),this._elementRef=t})),"primary"),-1),Wme=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[Vs([{provide:qme,useExisting:e}])]}),e}(),Kme=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[Vs([{provide:Ume,useExisting:e}])]}),e}(),Xme=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,c,l,u){var h;return Object(m.a)(this,n),(h=t.call(this,e))._elementRef=e,h._ngZone=i,h._changeDetectorRef=c,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new w.b,h._onBlur=new w.b,h.selectionChange=new Yc,h.destroyed=new Yc,h.removed=new Yc,h._addHostClassName(),h._chipRippleTarget=(u||document).createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new mY(Object(s.a)(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(e),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===a,h.tabIndex=null!=l&&parseInt(l)||-1,h}return Object(g.a)(n,[{key:"_addHostClassName",value:function(){var e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case XK:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Object(Wm.a)(1)).subscribe((function(){e._ngZone.run((function(){e._hasFocus=!1,e._onBlur.next({chip:e})}))}))}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=vm(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=vm(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=vm(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=vm(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),n}(Gme);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Nl),_a(Fm),_a(bY,8),_a(__,8),_a(No),wa("tabindex"),_a(bu,8))},e.\u0275dir=Ke({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,qme,!0),ul(n,Ume,!0),ul(n,Vme,!0)),2&e&&(al(i=fl())&&(t.avatar=i.first),al(i=fl())&&(t.trailingIcon=i.first),al(i=fl())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&Ia("click",(function(e){return t._handleClick(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()})),2&e&&(fa("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),os("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Es]}),e}(),Yme=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._parentChip=t,n&&"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return Object(g.a)(e,[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Xme),_a(Ks))},e.\u0275dir=Ke({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&Ia("click",(function(e){return t._handleClick(e)}))},features:[Vs([{provide:Vme,useExisting:e}])]}),e}(),Zme=new he("mat-chips-default-options"),Qme=iY((function e(t,n,i,r){Object(m.a)(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),$me=0,Jme=function e(t,n){Object(m.a)(this,e),this.source=t,this.value=n},ege=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a,c,l){var u;return Object(m.a)(this,n),(u=t.call(this,c,o,a,l))._elementRef=e,u._changeDetectorRef=i,u._dir=r,u.ngControl=l,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new w.b,u._uid="mat-chip-list-".concat($me++),u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(e,t){return e===t},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new Yc,u.valueChange=new Yc,u.ngControl&&(u.ngControl.valueAccessor=Object(s.a)(u)),u}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new hX(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(t){return e._keyManager.withHorizontalOrientation(t)})),this._keyManager.tabOut.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.chips.changes.pipe(Object(Jm.a)(null),Object(Gm.a)(this._destroyed)).subscribe((function(){e.disabled&&Promise.resolve().then((function(){e._syncChipsState()})),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new Em(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;8===e.keyCode&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e<this.chips.length}},{key:"_isInputEmpty",value:function(e){return!(!e||"input"!==e.nodeName.toLowerCase()||e.value)}},{key:"_setSelectionByValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(e){return e.deselect()})),Array.isArray(e))e.forEach((function(e){return t._selectValue(e,n)})),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find((function(n){return null!=n.value&&t._compareWith(n.value,e)}));return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())}))}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach((function(t){t!==e&&t.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(t){t.selected&&e._selectionModel.select(t)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.change.emit(new Jme(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){e.focused||e._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach((function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()})),t.isUserInput&&e._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){e._blur(),e.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)}))}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some((function(e){return e._hasFocus}))}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach((function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=vm(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=vm(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=vm(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=vm(e),this.chips&&this.chips.forEach((function(e){return e.chipListSelectable=t._selectable}))}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return C.a.apply(void 0,Object(u.a)(this.chips.map((function(e){return e.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return C.a.apply(void 0,Object(u.a)(this.chips.map((function(e){return e._onFocus}))))}},{key:"chipBlurChanges",get:function(){return C.a.apply(void 0,Object(u.a)(this.chips.map((function(e){return e._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return C.a.apply(void 0,Object(u.a)(this.chips.map((function(e){return e.destroyed}))))}}]),n}(Qme);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(No),_a(pm,8),_a(Tp,8),_a(zp,8),_a(oY),_a(xf,10))},e.\u0275cmp=ze({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,Xme,!0),2&e&&al(i=fl())&&(t.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&Ia("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(Os("id",t._uid),fa("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),os("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Vs([{provide:WJ,useExisting:e}]),Es],ngContentSelectors:zme,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(za(),Sa(0,"div",0),Va(1),xa())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),tge=0,nge=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Yc,this.placeholder="",this.id="mat-chip-list-input-".concat(tge++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return Object(g.a)(e,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(e){e&&9===e.keyCode&&!YK(e,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(e)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this._inputElement.value&&e&&this._chipList._keydown(e),e&&!this._isSeparatorKey(e)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),e&&e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this._inputElement.focus(e)}},{key:"_isSeparatorKey",value:function(e){return!YK(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}},{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=vm(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=vm(e)}},{key:"empty",get:function(){return!this._inputElement.value}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Zme))},e.\u0275dir=Ke({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&Ia("keydown",(function(e){return t._keydown(e)}))("blur",(function(){return t._blur()}))("focus",(function(){return t._focus()}))("input",(function(){return t._onInput()})),2&e&&(Os("id",t.id),fa("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[ct]}),e}(),ige={separatorKeyCodes:[WK]},rge=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[oY,{provide:Zme,useValue:ige}]}),e}(),oge=function(){return["Load average","(last 1 minute)"]},age=function(){return["Load average","(last 5 minutes)"]},sge=function(){return["Load average","(last 15 minutes)"]},cge=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.formatBytes=function(e,t){if(void 0===t&&(t=2),0===e)return"0 Bytes";var n=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ze({type:e,selectors:[["app-status-chart"]],inputs:{computeStatistics:"computeStatistics"},decls:30,vars:114,consts:[[1,"wrapper"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","unitsColor","unitsFontSize","titleColor","titleFontSize","subtitle","subtitleColor","subtitleFontSize"],[1,"chips-wrapper"],["color","primary","selected",""]],template:function(e,t){1&e&&(Sa(0,"mat-card"),Sa(1,"div",0),Oa(2,"circle-progress",1),Oa(3,"circle-progress",1),Oa(4,"circle-progress",1),Oa(5,"circle-progress",1),xa(),Sa(6,"div",0),Oa(7,"circle-progress",1),Oa(8,"circle-progress",1),Oa(9,"circle-progress",1),xa(),Sa(10,"div",2),Sa(11,"mat-chip-list"),Sa(12,"mat-chip",3),_s(13),xa(),xa(),Sa(14,"mat-chip-list"),Sa(15,"mat-chip",3),_s(16),xa(),xa(),Sa(17,"mat-chip-list"),Sa(18,"mat-chip",3),_s(19),xa(),xa(),xa(),Sa(20,"div",2),Sa(21,"mat-chip-list"),Sa(22,"mat-chip",3),_s(23),xa(),xa(),Sa(24,"mat-chip-list"),Sa(25,"mat-chip",3),_s(26),xa(),xa(),Sa(27,"mat-chip-list"),Sa(28,"mat-chip",3),_s(29),xa(),xa(),xa(),xa()),2&e&&(ar(2),ka("percent",t.computeStatistics.statistics.cpu_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","CPU usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),ar(1),ka("percent",t.computeStatistics.statistics.disk_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Disk usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),ar(1),ka("percent",t.computeStatistics.statistics.memory_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Memory usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),ar(1),ka("percent",t.computeStatistics.statistics.swap_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","SWAP usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),ar(2),ka("percent",t.computeStatistics.statistics.load_average_percent[0])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",Nc(111,oge))("subtitleColor","#C0C0C0")("subtitleFontSize",15),ar(1),ka("percent",t.computeStatistics.statistics.load_average_percent[1])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",Nc(112,age))("subtitleColor","#C0C0C0")("subtitleFontSize",15),ar(1),ka("percent",t.computeStatistics.statistics.load_average_percent[2])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",Nc(113,sge))("subtitleColor","#C0C0C0")("subtitleFontSize",15),ar(4),ks("Memory total: ",t.formatBytes(t.computeStatistics.statistics.memory_total),""),ar(3),ks("Memory used: ",t.formatBytes(t.computeStatistics.statistics.memory_used),""),ar(3),ks("Memory free: ",t.formatBytes(t.computeStatistics.statistics.memory_free),""),ar(4),ks("Swap total: ",t.formatBytes(t.computeStatistics.statistics.swap_total),""),ar(3),ks("Swap used: ",t.formatBytes(t.computeStatistics.statistics.swap_used),""),ar(3),ks("Swap free: ",t.formatBytes(t.computeStatistics.statistics.swap_free),""))},directives:[wJ,Bme,ege,Xme],styles:[".wrapper[_ngcontent-%COMP%]{max-height:250px!important}.chips-wrapper[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.chips-wrapper[_ngcontent-%COMP%]{margin-bottom:10px}"]}),e}();function lge(e,t){1&e&&(Sa(0,"div"),_s(1," Statistics not loaded\n"),xa())}function uge(e,t){if(1&e&&(Sa(0,"div"),_s(1),Oa(2,"app-status-chart",2),xa()),2&e){var n=t.$implicit;ar(1),ks(" ",n.compute_name," "),ar(1),ka("computeStatistics",n)}}var hge=function(){function e(e,t,n,i){this.route=e,this.computeService=t,this.serverService=n,this.toasterService=i,this.serverId="",this.computeStatistics=[]}return e.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id"),this.getStatistics()},e.prototype.getStatistics=function(){var e=this;this.serverService.get(Number(this.serverId)).then((function(t){e.computeService.getStatistics(t).subscribe((function(t){e.computeStatistics=t,setTimeout((function(){e.getStatistics()}),2e4)}))}))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(one),_a(qK),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(e,t){1&e&&(ba(0,lge,2,0,"div",0),ba(1,uge,3,2,"div",1)),2&e&&(ka("ngIf",!t.computeStatistics.length),ar(1),ka("ngForOf",t.computeStatistics))},directives:[Hh,Nh,cge],styles:[""]}),e}(),dge=function(){function e(e){this.route=e,this.serverId=""}return e.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},e.\u0275fac=function(t){return new(t||e)(_a(FG))},e.\u0275cmp=ze({type:e,selectors:[["app-system-status"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"System status"),xa(),xa(),xa(),Sa(5,"div",4),Oa(6,"app-status-info"),xa(),xa())},directives:[hge],styles:[""]}),e}(),fge=function(){function e(e){this.serverService=e}return e.prototype.resolve=function(e){return this.serverService.get(parseInt(e.params.server_id))},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(qK))}}),e}(),pge=["terminal"],mge=function(){function e(e,t,n,i,r){this.consoleService=e,this.serverService=t,this.route=n,this.title=i,this.nodeService=r,this.subscriptions=new _.a,this.term=new cse.Terminal,this.fitAddon=new use.FitAddon}return e.prototype.ngOnInit=function(){var e=this;this.serverService.isServiceInitialized?this.getData():this.subscriptions.add(this.serverService.serviceInitialized.subscribe((function(t){t&&e.getData()})))},e.prototype.getData=function(){var e=this;this.serverId=this.route.snapshot.paramMap.get("server_id"),this.projectId=this.route.snapshot.paramMap.get("project_id"),this.nodeId=this.route.snapshot.paramMap.get("node_id"),this.consoleService.consoleResized.subscribe((function(t){e.fitAddon.fit()})),this.serverService.get(+this.serverId).then((function(t){e.server=t,e.nodeService.getNodeById(e.server,e.projectId,e.nodeId).subscribe((function(t){e.node=t,e.title.setTitle(e.node.name),e.openTerminal()}))}))},e.prototype.openTerminal=function(){var e=this;setTimeout((function(){e.term.open(e.terminal.nativeElement);var t=new WebSocket(e.getUrl());t.onerror=function(t){e.term.write("Connection lost\r\n")},t.onclose=function(t){e.term.write("Connection closed\r\n")};var n=new lse.AttachAddon(t);e.term.loadAddon(n),e.term.setOption("cursorBlink",!0),e.term.loadAddon(e.fitAddon),e.fitAddon.activate(e.term),e.fitAddon.fit(),e.term.focus(),e.term.attachCustomKeyEventHandler((function(e){return"KeyC"!==e.code&&"KeyV"!==e.code||!e.ctrlKey}));var i=Math.round(window.innerWidth/e.consoleService.getLineWidth()),r=Math.round(window.innerHeight/e.consoleService.getLineHeight());e.term.resize(i,r)}),0)},e.prototype.getUrl=function(){return"ws://"+this.server.host+":"+this.server.port+"/v2/projects/"+this.projectId+"/nodes/"+this.nodeId+"/console/ws"},e.\u0275fac=function(t){return new(t||e)(_a(A4),_a(qK),_a(FG),_a(sf),_a(D$))},e.\u0275cmp=ze({type:e,selectors:[["app-web-console-full-window"]],viewQuery:function(e,t){var n;1&e&&cl(pge,!0),2&e&&al(n=fl())&&(t.terminal=n.first)},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(e,t){1&e&&Oa(0,"div",0,1)},styles:['.xterm{font-feature-settings:"liga" 0;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}'],encapsulation:2}),e}(),gge=function(){function e(e,t){this.consoleService=e,this.bottomSheet=t}return e.prototype.canDeactivate=function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(Ite);var e=this.bottomSheet._openedBottomSheetRef;return e.instance.message="Exiting the project will close open consoles, do you want to continue?",e.afterDismissed()}return!0},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(A4),we(Ete))}}),e}(),vge=[{path:"",component:gle,children:[{path:"",redirectTo:"servers",pathMatch:"full"},{path:"servers",component:Zce},{path:"bundled",component:Kle},{path:"server/:server_id/projects",component:dle,resolve:{server:fge}},{path:"help",component:sme},{path:"settings",component:Wle},{path:"settings/console",component:ame},{path:"installed-software",component:Wde},{path:"server/:server_id/systemstatus",component:dge},{path:"server/:server_ip/:server_port/project/:project_id",component:yme},{path:"server/:server_id/project/:project_id/snapshots",component:ome,resolve:{server:fge}},{path:"server/:server_id/preferences",component:Xle},{path:"server/:server_id/preferences/gns3vm",component:bme},{path:"server/:server_id/preferences/builtin",component:ghe},{path:"server/:server_id/preferences/builtin/ethernet-hubs",component:She},{path:"server/:server_id/preferences/builtin/ethernet-hubs/addtemplate",component:xhe},{path:"server/:server_id/preferences/builtin/ethernet-hubs/:template_id",component:jhe},{path:"server/:server_id/preferences/builtin/ethernet-switches",component:pde},{path:"server/:server_id/preferences/builtin/ethernet-switches/addtemplate",component:mde},{path:"server/:server_id/preferences/builtin/ethernet-switches/:template_id",component:kde},{path:"server/:server_id/preferences/builtin/cloud-nodes",component:Nhe},{path:"server/:server_id/preferences/builtin/cloud-nodes/addtemplate",component:Bhe},{path:"server/:server_id/preferences/builtin/cloud-nodes/:template_id",component:sde},{path:"server/:server_id/preferences/dynamips/templates",component:Ede},{path:"server/:server_id/preferences/dynamips/templates/addtemplate",component:Ife},{path:"server/:server_id/preferences/dynamips/templates/:template_id",component:mfe},{path:"server/:server_id/preferences/dynamips/templates/:template_id/copy",component:Wpe},{path:"server/:server_id/preferences/qemu/templates",component:rue},{path:"server/:server_id/preferences/qemu/templates/:template_id/copy",component:Gpe},{path:"server/:server_id/preferences/qemu/templates/:template_id",component:Sue},{path:"server/:server_id/preferences/qemu/addtemplate",component:Aue},{path:"server/:server_id/preferences/vpcs/templates",component:Hue},{path:"server/:server_id/preferences/vpcs/templates/:template_id",component:Xue},{path:"server/:server_id/preferences/vpcs/addtemplate",component:zue},{path:"server/:server_id/preferences/virtualbox/templates",component:nhe},{path:"server/:server_id/preferences/virtualbox/templates/:template_id",component:dhe},{path:"server/:server_id/preferences/virtualbox/addtemplate",component:mhe},{path:"server/:server_id/preferences/vmware/templates",component:zfe},{path:"server/:server_id/preferences/vmware/templates/:template_id",component:Qfe},{path:"server/:server_id/preferences/vmware/addtemplate",component:tpe},{path:"server/:server_id/preferences/docker/templates",component:cpe},{path:"server/:server_id/preferences/docker/templates/:template_id",component:kpe},{path:"server/:server_id/preferences/docker/templates/:template_id/copy",component:Kpe},{path:"server/:server_id/preferences/docker/addtemplate",component:ppe},{path:"server/:server_id/preferences/iou/templates",component:Epe},{path:"server/:server_id/preferences/iou/templates/:template_id",component:Upe},{path:"server/:server_id/preferences/iou/templates/:template_id/copy",component:Xpe},{path:"server/:server_id/preferences/iou/addtemplate",component:Rpe}]},{path:"server/:server_id/project/:project_id",component:ace,canDeactivate:[gge]},{path:"server/:server_id/project/:project_id/nodes/:node_id",component:mge},{path:"static/web-ui/server/:server_id/project/:project_id/nodes/:node_id",component:mge},{path:"**",component:cme}],bge=function(){function e(){}return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[yK.forRoot(vge,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],yK]}),e}(),yge=["dynamicComponentContainer"],_ge=function(e){return{hidden:e}},wge=function(e){return{lightTheme:e}},kge=function(){function e(e,t,n,i){this.themeService=e,this.componentFactoryResolver=t,this.viewContainerRef=n,this.location=i,this.viewsCounter=0,this.ticks=1e3,this.progress=0,this.isAdLoaded=!1,this.isVisible=!1,this.interval=10,this.delayTime=5e3,this.breakTime=1200,this.isEndless=!0,this.numberOfViews=1,this.isLightThemeEnabled=!1}return e.prototype.ngOnInit=function(){localStorage.getItem("adbutler"),(new Date).toISOString().substring(0,10),this.location.path().includes("nodes")||this.startTimer(),this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},e.prototype.ngAfterViewInit=function(){this.createDynamicAdComponent()},e.prototype.createDynamicAdComponent=function(){var e=this,t=this.componentFactoryResolver.resolveComponentFactory(Dde),n=this.dynamicComponentContainer.createComponent(t);n.instance.theme="light"===this.themeService.getActualTheme(),n.instance.onLoad.subscribe((function(t){e.onLoadingAdbutler(t)})),n.changeDetectorRef.detectChanges()},e.prototype.startTimer=function(){var e=this;this.timer=Object(uQ.a)(this.delayTime,1e3),setTimeout((function(){e.showNotification()}),5e3),this.timerSubscription=this.timer.subscribe((function(){e.ticks++,e.ticks>e.breakTime&&!e.isVisible&&navigator.onLine&&e.isAdLoaded&&(e.ticks=0,e.showNotification(),e.viewsCounter++,e.isEndless||e.viewsCounter===e.numberOfViews&&e.timerSubscription.unsubscribe())}))},e.prototype.onLoadingAdbutler=function(e){this.isAdLoaded=e},e.prototype.showNotification=function(){var e=this;this.viewTimer=Object(uQ.a)(0,100),this.progress=0,this.isVisible=!0,this.viewTimerSubscription=this.viewTimer.subscribe((function(){e.progress+=1,e.progress>100&&(e.isVisible=!1,e.viewTimerSubscription.unsubscribe())}))},e.prototype.closeNotification=function(){this.isVisible=!1},e.prototype.ngOnDestroy=function(){this.timerSubscription.unsubscribe(),this.viewTimerSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(_a(Aee),_a(Ws),_a(yc),_a(Iu))},e.\u0275cmp=ze({type:e,selectors:[["app-notification-box"]],viewQuery:function(e,t){var n;1&e&&cl(yge,!0,yc),2&e&&al(n=fl())&&(t.dynamicComponentContainer=n.first)},decls:8,vars:7,consts:[[1,"notification-box",3,"ngClass"],["mode","determinate",3,"value"],[2,"display","flex","height","102px"],[1,"content",3,"ngClass"],["dynamicComponentContainer",""],[1,"close-button",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Oa(1,"mat-progress-bar",1),Sa(2,"div",2),Sa(3,"div",3),Oa(4,"template",null,4),Sa(6,"mat-icon",5),Ia("click",(function(){return t.closeNotification()})),_s(7,"close"),xa(),xa(),xa(),xa()),2&e&&(ka("ngClass",Bc(3,_ge,!t.isVisible)),ar(1),ka("value",t.progress),ar(2),ka("ngClass",Bc(5,wge,t.isLightThemeEnabled)))},directives:[Rh,Mae,P$],styles:[".notification-box[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:412px;height:108px}.content[_ngcontent-%COMP%]{background-color:#263238;padding-left:8px;border-left:2px solid #0097a7;border-right:2px solid #0097a7;border-bottom:2px solid #0097a7}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.close-button[_ngcontent-%COMP%]{position:fixed;bottom:90px;right:30px;cursor:pointer}.mat-icon[_ngcontent-%COMP%]:hover{color:#0097a7}.check-button[_ngcontent-%COMP%]{background-color:#0097a7;margin-top:-10px}.hidden[_ngcontent-%COMP%]{visibility:hidden}"]}),e}(),Cge=function(){function e(e,t,n,i,r,o,a){var s=this;this.settingsService=n,this.electronService=i,this.themeService=r,this.router=o,this.progressService=a,e.addSvgIcon("gns3",t.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),e.addSvgIcon("gns3black",t.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),o.events.subscribe((function(e){s.checkEvent(e)}))}return e.prototype.ngOnInit=function(){var e=this;this.electronService.isElectronApp&&this.settingsService.subscribe((function(t){e.electronService.ipcRenderer.send("settings.changed",t)}));var t=localStorage.getItem("theme");this.themeService.setDarkMode("light"!==t)},e.prototype.checkEvent=function(e){e instanceof LU?this.progressService.activate():(e instanceof FU||e instanceof NU||e instanceof BU)&&this.progressService.deactivate()},e.\u0275fac=function(t){return new(t||e)(_a(w$),_a(Jd),_a(UK),_a(hU),_a(Aee),_a(nK),_a(t7))},e.\u0275cmp=ze({type:e,selectors:[["app-root"]],decls:2,vars:0,template:function(e,t){1&e&&(Oa(0,"router-outlet"),Oa(1,"app-notification-box"))},directives:[cK,kge],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0}"]}),e}(),Sge=[j9,E9,p9,Z7,X7,l9,g9,y9,_9,P9,T9,M9,x9,n9,$7,t9,e9,Q7,i9],xge=function(){return function(){}}(),Oge=function(){function e(){}return e.prototype.convert=function(e){var t=new xge;return t.symbol_id=e.id,t.builtin=e.builtin,t.filename=e.filename,t.raw=e.raw,t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Mge=function(){function e(){}return e.prototype.convert=function(e){var t={font_family:void 0,font_size:void 0,font_weight:void 0};return T6.parse(e,{context:"declarationList"}).children.forEach((function(e){"font-size"===e.property&&e.value&&e.value.children&&e.value.children.forEach((function(e){"Dimension"===e.type&&(t.font_size=parseInt(e.value))})),"font-family"===e.property&&e.value&&e.value.children&&e.value.children.forEach((function(e){"Identifier"===e.type&&(t.font_family=e.name)})),"font-weight"===e.property&&e.value&&e.value.children&&e.value.children.forEach((function(e){"Identifier"===e.type&&(t.font_weight=e.name)}))})),t},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Tge=function(){function e(){}return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:NK([s7,E6,Fee,Iee,Dee,Ree,Lee,E7,o6,J7,y7,n7,A9,s9,D9,Y7,K9,N9,g6,m6,c7,m7,f7,$9,u9,eee,tee,f9,d9,Oge,h7,u7,v7,P7,w7,C7,x7,M7,b9,F7,a7,Mge,S9,k9],Sge),imports:[[_d,NZ,j$]]}),e}(),Ege=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.prototype.getItemKey=function(e){return e.symbol_id},t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return Pge(e||t)}}),t}(s6),Pge=Qn(Ege),jge=n("SDrh"),Age=n("zNuj"),Ige=Object(Age.e)(),Dge=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Age.c)((function(){Ige.console.log("Sentry Logger [Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Age.c)((function(){Ige.console.warn("Sentry Logger [Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Age.c)((function(){Ige.console.error("Sentry Logger [Error]: "+e.join(" "))}))},e}();Ige.__SENTRY__=Ige.__SENTRY__||{};var Rge,Lge=Ige.__SENTRY__.logger||(Ige.__SENTRY__.logger=new Dge),Fge=n("BBZ9"),Nge=n("Gqt4");!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(Rge||(Rge={}));var Bge=function(){function e(e){var t=this;this._state=Rge.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(Rge.RESOLVED,e)},this._reject=function(e){t._setResult(Rge.REJECTED,e)},this._setResult=function(e,n){t._state===Rge.PENDING&&(Object(Nge.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==Rge.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===Rge.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===Rge.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,i){if(Array.isArray(t))if(0!==t.length){var r=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0==(r-=1)&&n(o)})).then(null,i)}))}else n([]);else i(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var i=this;return new e((function(e,r){i._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(i){return void r(i)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(i){return void r(i)}else r(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,i){var r,o;return n.then((function(e){o=!1,r=e,t&&t()}),(function(e){o=!0,r=e,t&&t()})).then((function(){o?i(r):e(r)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),Hge=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(jge.d)(t._breadcrumbs),n._tags=Object(jge.a)({},t._tags),n._extra=Object(jge.a)({},t._extra),n._contexts=Object(jge.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(jge.d)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=Object(jge.a)(Object(jge.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(jge.a)(Object(jge.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(jge.a)(Object(jge.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(jge.a)(Object(jge.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return this._contexts=Object(jge.a)(Object(jge.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();if(e&&e.spanRecorder&&e.spanRecorder.spans[0])return e.spanRecorder.spans[0]},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(jge.a)(Object(jge.a)({},this._tags),t._tags),this._extra=Object(jge.a)(Object(jge.a)({},this._extra),t._extra),this._contexts=Object(jge.a)(Object(jge.a)({},this._contexts),t._contexts),t._user&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(Nge.h)(t)&&(t=t,this._tags=Object(jge.a)(Object(jge.a)({},this._tags),t.tags),this._extra=Object(jge.a)(Object(jge.a)({},this._extra),t.extra),this._contexts=Object(jge.a)(Object(jge.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(jge.a)({timestamp:Object(Age.i)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Object(jge.d)(this._breadcrumbs,[n]).slice(-t):Object(jge.d)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=Object(jge.a)(Object(jge.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(jge.a)(Object(jge.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(jge.a)(Object(jge.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(jge.a)(Object(jge.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span&&(e.contexts=Object(jge.a)({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=Object(jge.d)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(jge.d)(zge(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,i){var r=this;return void 0===i&&(i=0),new Bge((function(o,a){var s=e[i];if(null===t||"function"!=typeof s)o(t);else{var c=s(Object(jge.a)({},t),n);Object(Nge.m)(c)?c.then((function(t){return r._notifyEventProcessors(e,t,n,i+1).then(o)})).then(null,a):r._notifyEventProcessors(e,c,n,i+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function zge(){var e=Object(Age.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function Vge(e){zge().push(e)}var qge,Uge=function(){function e(e,t,n){void 0===t&&(t=new Hge),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t}),this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=this.getStack(),t=Hge.clone(e.length>0?e[e.length-1].scope:void 0);return this.getStack().push({client:this.getClient(),scope:t}),t},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(Age.j)(),i=t;if(!t){var r=void 0;try{throw new Error("Sentry syntheticException")}catch(e){r=e}i={originalException:e,syntheticException:r}}return this._invokeClient("captureException",e,Object(jge.a)(Object(jge.a)({},i),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var i=this._lastEventId=Object(Age.j)(),r=n;if(!n){var o=void 0;try{throw new Error(e)}catch(a){o=a}r={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,Object(jge.a)(Object(jge.a)({},r),{event_id:i})),i},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(Age.j)();return this._invokeClient("captureEvent",e,Object(jge.a)(Object(jge.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var i=n.client.getOptions&&n.client.getOptions()||{},r=i.beforeBreadcrumb,o=void 0===r?null:r,a=i.maxBreadcrumbs,s=void 0===a?100:a;if(!(s<=0)){var c=Object(Age.i)(),l=Object(jge.a)({timestamp:c},e),u=o?Object(Age.c)((function(){return o(l,t)})):l;null!==u&&n.scope.addBreadcrumb(u,Math.min(s,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=Wge(this);try{e(this)}finally{Wge(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return Lge.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._invokeClient=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this.getStackTop();r&&r.client&&r.client[e]&&(t=r.client)[e].apply(t,Object(jge.d)(n,[r.scope]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Gge(),r=i.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);Lge.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Gge(){var e=Object(Age.e)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Wge(e){var t=Gge(),n=Yge(t);return Zge(t,e),n}function Kge(){var e=Gge();return Xge(e)&&!Yge(e).isOlderThan(3)||Zge(e,new Uge),Object(Fge.b)()?function(e){try{var t=(i=Gge().__SENTRY__)&&i.extensions&&i.extensions.domain&&i.extensions.domain.active;if(!t)return Yge(e);if(!Xge(t)||Yge(t).isOlderThan(3)){var n=Yge(e).getStackTop();Zge(t,new Uge(n.client,Hge.clone(n.scope)))}return Yge(t)}catch(r){return Yge(e)}var i}(e):Yge(e)}function Xge(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Yge(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new Uge),e.__SENTRY__.hub}function Zge(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function Qge(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Kge();if(i&&i[e])return i[e].apply(i,Object(jge.d)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function $ge(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return Qge("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function Jge(e){Qge("withScope",e)}var eve,tve=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){qge=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return qge.apply(n,e)}},e.id="FunctionToString",e}(),nve=n("7Ki+"),ive=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],rve=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Vge((function(t){var n=Kge();if(!n)return t;var i=n.getIntegration(e);if(i){var r=n.getClient(),o=r?r.getOptions():{},a=i._mergeOptions(o);if(i._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(Lge.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(Age.d)(e)),!0):this._isIgnoredError(e,t)?(Lge.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(Age.d)(e)),!0):this._isDeniedUrl(e,t)?(Lge.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(Age.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(Lge.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(Age.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(n){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(nve.a)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return Object(nve.a)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return Object(nve.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:Object(jge.d)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:Object(jge.d)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:Object(jge.d)(this._options.ignoreErrors||[],e.ignoreErrors||[],ive),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,i=t.value,r=void 0===i?"":i;return[""+r,(void 0===n?"":n)+": "+r]}catch(o){return Lge.error("Cannot extract message for event "+Object(Age.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(i){return Lge.error("Cannot extract url for event "+Object(Age.d)(e)),null}},e.id="InboundFilters",e}(),ove=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e}),ave=function(e){function t(t){var n=this.constructor,i=e.call(this,t)||this;return i.message=t,i.name=n.prototype.constructor.name,ove(i,n.prototype),i}return Object(jge.b)(t,e),t}(Error),sve=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,cve=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.path,i=t.pass,r=t.port;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+t.host+(r?":"+r:"")+"/"+(n?n+"/":n)+t.projectId},e.prototype._fromString=function(e){var t=sve.exec(e);if(!t)throw new ave("Invalid Dsn");var n=Object(jge.c)(t.slice(1),6),i=n[0],r=n[1],o=n[2],a=void 0===o?"":o,s=n[3],c=n[4],l=void 0===c?"":c,u="",h=n[5],d=h.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),h=d.pop()),h){var f=h.match(/^\d+/);f&&(h=f[0])}this._fromComponents({host:s,pass:a,path:u,projectId:h,port:l,protocol:i,user:r})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new ave("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new ave("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new ave("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new ave("Invalid Dsn: Invalid port "+this.port)},e}(),lve=n("Qc63"),uve=[],hve=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new cve(t.dsn))}return e.prototype.captureException=function(e,t,n){var i=this,r=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){r=i.captureEvent(e,t,n)})),r},e.prototype.captureMessage=function(e,t,n,i){var r=this,o=n&&n.event_id;return this._processing=!0,(Object(Nge.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then((function(e){o=r.captureEvent(e,n,i)})),o},e.prototype.captureEvent=function(e,t,n){var i=this,r=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then((function(e){r=e&&e.event_id,i._processing=!1})).then(null,(function(e){Lge.error(e),i._processing=!1})),r},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e;this._isEnabled()&&(this._integrations=(e={},function(e){var t=e.defaultIntegrations&&Object(jge.d)(e.defaultIntegrations)||[],n=e.integrations,i=[];if(Array.isArray(n)){var r=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===r.indexOf(e.name)&&-1===o.indexOf(e.name)&&(i.push(e),o.push(e.name))})),n.forEach((function(e){-1===o.indexOf(e.name)&&(i.push(e),o.push(e.name))}))}else"function"==typeof n?(i=n(t),i=Array.isArray(i)?i:[i]):i=Object(jge.d)(t);var a=i.map((function(e){return e.name})),s="Debug";return-1!==a.indexOf(s)&&i.push.apply(i,Object(jge.d)(i.splice(a.indexOf(s),1))),i}(this._options).forEach((function(t){e[t.name]=t,function(e){-1===uve.indexOf(e.name)&&(e.setupOnce(Vge,Kge),uve.push(e.name),Lge.log("Integration installed: "+e.name))}(t)})),e))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return Lge.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new Bge((function(n){var i=0,r=0;clearInterval(r),r=setInterval((function(){t._processing?(i+=1,e&&i>=e&&n({interval:r,ready:!1})):n({interval:r,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var i=this,r=this.getOptions().normalizeDepth,o=void 0===r?3:r,a=Object(jge.a)(Object(jge.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(Age.j)()),timestamp:e.timestamp||Object(Age.i)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=Hge.clone(s).update(n.captureContext));var c=Bge.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return"number"==typeof o&&o>0?i._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(jge.a)(Object(jge.a)(Object(jge.a)(Object(jge.a)(Object(jge.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(jge.a)(Object(jge.a)({},e),e.data&&{data:Object(lve.c)(e.data,t)})}))}),e.user&&{user:Object(lve.c)(e.user,t)}),e.contexts&&{contexts:Object(lve.c)(e.contexts,t)}),e.extra&&{extra:Object(lve.c)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,i=t.release,r=t.dist,o=t.maxValueLength,a=void 0===o?250:o;void 0===e.environment&&void 0!==n&&(e.environment=n),void 0===e.release&&void 0!==i&&(e.release=i),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=Object(nve.d)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Object(nve.d)(s.value,a));var c=e.request;c&&c.url&&(c.url=Object(nve.d)(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._processEvent=function(e,t,n){var i=this,r=this.getOptions(),o=r.beforeSend,a=r.sampleRate;if(!this._isEnabled())return Bge.reject("SDK not enabled, will not send event.");var s="transaction"===e.type;return!s&&"number"==typeof a&&Math.random()>a?Bge.reject("This event has been sampled, will not send event."):new Bge((function(r,a){i._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;if(t&&t.data&&!0===t.data.__sentry__||!o||s)return i._sendEvent(n),void r(n);var c=o(e,t);if(void 0===c)Lge.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(Nge.m)(c))i._handleAsyncBeforeSend(c,r,a);else{if(null===(n=c))return Lge.log("`beforeSend` returned `null`, will not send event."),void r(null);i._sendEvent(n),r(n)}}else a("An event processor returned null, will not send event.")})).then(null,(function(e){i.captureException(e,{data:{__sentry__:!0},originalException:e}),a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))}))},e.prototype._handleAsyncBeforeSend=function(e,t,n){var i=this;e.then((function(e){null!==e?(i._sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(eve||(eve={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(eve||(eve={}));var dve,fve=function(){function e(){}return e.prototype.sendEvent=function(e){return Bge.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:eve.Skipped})},e.prototype.close=function(e){return Bge.resolve(!0)},e}(),pve=function(){function e(e){this._options=e,this._options.dsn||Lge.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new ave("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new ave("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){Lge.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new fve},e}();function mve(){if(!("fetch"in Object(Age.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function gve(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function vve(){if(!mve())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(dve||(dve={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(dve||(dve={}));var bve="?",yve=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_ve=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,wve=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,kve=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Cve=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sve=/Minified React error #\d+;/i;function xve(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Sve.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,r=e.stacktrace.split("\n"),o=[],a=0;a<r.length;a+=2){var s=null;(t=n.exec(r[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(r[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func=bve),o.push(s))}return o.length?{message:Mve(e),name:e.name,stack:o}:null}(e))return Ove(t,n)}catch(i){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,i,r=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=yve.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Cve.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),i={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||bve,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=wve.exec(o[a]))i={url:n[2],func:n[1]||bve,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=_ve.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=kve.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(r[0].column=e.columnNumber+1),i={url:n[3],func:n[1]||bve,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!i.func&&i.line&&(i.func=bve),r.push(i)}return r.length?{message:Mve(e),name:e.name,stack:r}:null}(e))return Ove(t,n)}catch(i){}return{message:Mve(e),name:e&&e.name,stack:[],failed:!0}}function Ove(e,t){try{return Object(jge.a)(Object(jge.a)({},e),{stack:e.stack.slice(t)})}catch(n){return e}}function Mve(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Tve(e){var t=Pve(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Eve(e){return{exception:{values:[Tve(e)]}}}function Pve(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",i=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==i.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function jve(e,t,n){var i;if(void 0===n&&(n={}),Object(Nge.e)(e)&&e.error)return Eve(xve(e=e.error));if(Object(Nge.a)(e)||Object(Nge.b)(e)){var r=e,o=r.name||(Object(Nge.a)(r)?"DOMError":"DOMException"),a=r.message?o+": "+r.message:o;return i=Ave(a,t,n),Object(Age.b)(i,a),i}return Object(Nge.d)(e)?i=Eve(xve(e)):Object(Nge.h)(e)||Object(Nge.f)(e)?(i=function(e,t,n){var i={exception:{values:[{type:Object(Nge.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(lve.a)(e)}]},extra:{__serialized__:Object(lve.d)(e)}};if(t){var r=Pve(xve(t).stack);i.stacktrace={frames:r}}return i}(e,t,n.rejection),Object(Age.a)(i,{synthetic:!0}),i):(i=Ave(e,t,n),Object(Age.b)(i,""+e,void 0),Object(Age.a)(i,{synthetic:!0}),i)}function Ave(e,t,n){void 0===n&&(n={});var i={message:e};if(n.attachStacktrace&&t){var r=Pve(xve(t).stack);i.stacktrace={frames:r}}return i}function Ive(e,t){var n="transaction"===e.type,i={body:JSON.stringify(e),url:n?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(n){var r=JSON.stringify({event_id:e.event_id,sent_at:new Date(1e3*Object(Age.i)()).toISOString()}),o=JSON.stringify({type:e.type});i.body=r+"\n"+o+"\n"+i.body}return i}var Dve=function(){function e(e){this.dsn=e,this._dsnObject=new cve(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject;return(e.protocol?e.protocol+":":"")+"//"+e.host+(e.port?":"+e.port:"")+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,i=["Sentry sentry_version=7"];return i.push("sentry_client="+e+"/"+t),i.push("sentry_key="+n.user),n.pass&&i.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var r in i.push("dsn="+t.toString()),e)if("user"===r){if(!e.user)continue;e.user.name&&i.push("name="+encodeURIComponent(e.user.name)),e.user.email&&i.push("email="+encodeURIComponent(e.user.email))}else i.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return i.length?n+"?"+i.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return Object(lve.e)(e)},e}(),Rve=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):Bge.reject(new ave("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new Bge((function(n){var i=setTimeout((function(){e&&e>0&&n(!1)}),e);Bge.all(t._buffer).then((function(){clearTimeout(i),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),Lve=function(){function e(e){this.options=e,this._buffer=new Rve(30),this._api=new Dve(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new ave("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),Fve=Object(Age.e)(),Nve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return Object(jge.b)(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n=Ive(e,this._api),i={body:n.body,method:"POST",referrerPolicy:vve()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add(new Bge((function(e,r){Fve.fetch(n.url,i).then((function(n){var i=eve.fromHttpCode(n.status);if(i!==eve.Success){if(i===eve.RateLimit){var o=Date.now(),a=n.headers.get("Retry-After");t._disabledUntil=new Date(o+Object(Age.g)(o,a)),Lge.warn("Too many requests, backing off till: "+t._disabledUntil)}r(n)}else e({status:i})})).catch(r)})))},t}(Lve),Bve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return Object(jge.b)(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n=Ive(e,this._api);return this._buffer.add(new Bge((function(e,i){var r=new XMLHttpRequest;for(var o in r.onreadystatechange=function(){if(4===r.readyState){var n=eve.fromHttpCode(r.status);if(n!==eve.Success){if(n===eve.RateLimit){var o=Date.now(),a=r.getResponseHeader("Retry-After");t._disabledUntil=new Date(o+Object(Age.g)(o,a)),Lge.warn("Too many requests, backing off till: "+t._disabledUntil)}i(r)}else e({status:n})}},r.open("POST",n.url),t.options.headers)t.options.headers.hasOwnProperty(o)&&r.setRequestHeader(o,t.options.headers[o]);r.send(n.body)})))},t}(Lve),Hve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(jge.b)(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var i=jve(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Object(Age.a)(i,{handled:!0,type:"generic"}),i.level=dve.Error,n&&n.event_id&&(i.event_id=n.event_id),Bge.resolve(i)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=dve.Info),function(e,t,n,i){void 0===n&&(n=dve.Info);var r=Ave(t,i&&i.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return r.level=n,i&&i.event_id&&(r.event_id=i.event_id),Bge.resolve(r)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Object(jge.a)(Object(jge.a)({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):mve()?new Nve(t):new Bve(t)},t}(pve),zve=0;function Vve(){return zve>0}function qve(){zve+=1,setTimeout((function(){zve-=1}))}function Uve(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(o){return e}var i=function(){var i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var r=i.map((function(e){return Uve(e,t)}));return e.handleEvent?e.handleEvent.apply(this,r):e.apply(this,r)}catch(o){throw qve(),Jge((function(e){e.addEventProcessor((function(e){var n=Object(jge.a)({},e);return t.mechanism&&(Object(Age.b)(n,void 0,void 0),Object(Age.a)(n,t.mechanism)),n.extra=Object(jge.a)(Object(jge.a)({},n.extra),{arguments:i}),n})),$ge(o)})),o}};try{for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r])}catch(a){}e.prototype=e.prototype||{},i.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(a){}return i}var Gve,Wve=n("CsSr"),Kve=Object(Age.e)(),Xve={},Yve={};function Zve(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Xve[e.type]=Xve[e.type]||[],Xve[e.type].push(e.callback),function(e){if(!Yve[e])switch(Yve[e]=!0,e){case"console":"console"in Kve&&["debug","info","warn","error","log","assert"].forEach((function(e){e in Kve.console&&Object(lve.b)(Kve.console,e,(function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];Qve("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Kve.console,n)}}))}));break;case"dom":"document"in Kve&&(Kve.document.addEventListener("click",ibe("click",Qve.bind(null,"dom")),!1),Kve.document.addEventListener("keypress",rbe(Qve.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Kve[e]&&Kve[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(lve.b)(t,"addEventListener",(function(e){return function(t,n,i){return n&&n.handleEvent?("click"===t&&Object(lve.b)(n,"handleEvent",(function(e){return function(t){return ibe("click",Qve.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(lve.b)(n,"handleEvent",(function(e){return function(t){return rbe(Qve.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&ibe("click",Qve.bind(null,"dom"),!0)(this),"keypress"===t&&rbe(Qve.bind(null,"dom"))(this)),e.call(this,t,n,i)}})),Object(lve.b)(t,"removeEventListener",(function(e){return function(t,n,i){try{e.call(this,t,n.__sentry_wrapped__,i)}catch(r){}return e.call(this,t,n,i)}})))})));break;case"xhr":!function(){if("XMLHttpRequest"in Kve){var e=[],t=[],n=XMLHttpRequest.prototype;Object(lve.b)(n,"open",(function(n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=this,a=i[1];o.__sentry_xhr__={method:Object(Nge.k)(i[0])?i[0].toUpperCase():i[0],url:i[1]},Object(Nge.k)(a)&&"POST"===o.__sentry_xhr__.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(a){}try{var n=e.indexOf(o);if(-1!==n){e.splice(n);var r=t.splice(n)[0];o.__sentry_xhr__&&void 0!==r[0]&&(o.__sentry_xhr__.body=r[0])}}catch(a){}Qve("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Object(lve.b)(o,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(o,t)}})):o.addEventListener("readystatechange",s),n.apply(o,i)}})),Object(lve.b)(n,"send",(function(n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return e.push(this),t.push(i),Qve("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),n.apply(this,i)}}))}}();break;case"fetch":(function(){if(!mve())return!1;var e=Object(Age.e)();if(gve(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(t=gve(i.contentWindow.fetch)),n.head.removeChild(i)}catch(r){Lge.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t})()&&Object(lve.b)(Kve,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i={args:t,fetchData:{method:$ve(t),url:Jve(t)},startTimestamp:Date.now()};return Qve("fetch",Object(jge.a)({},i)),e.apply(Kve,t).then((function(e){return Qve("fetch",Object(jge.a)(Object(jge.a)({},i),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Qve("fetch",Object(jge.a)(Object(jge.a)({},i),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=Object(Age.e)(),t=e.chrome;return!(t&&t.app&&t.app.runtime||!("history"in e)||!e.history.pushState||!e.history.replaceState)}()){var e=Kve.onpopstate;Kve.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=Kve.location.href,r=Gve;if(Gve=i,Qve("history",{from:r,to:i}),e)return e.apply(this,t)},Object(lve.b)(Kve.history,"pushState",t),Object(lve.b)(Kve.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.length>2?t[2]:void 0;if(i){var r=Gve,o=String(i);Gve=o,Qve("history",{from:r,to:o})}return e.apply(this,t)}}}();break;case"error":obe=Kve.onerror,Kve.onerror=function(e,t,n,i,r){return Qve("error",{column:i,error:r,line:n,msg:e,url:t}),!!obe&&obe.apply(this,arguments)};break;case"unhandledrejection":abe=Kve.onunhandledrejection,Kve.onunhandledrejection=function(e){return Qve("unhandledrejection",e),!abe||abe.apply(this,arguments)};break;default:Lge.warn("unknown instrumentation type:",e)}}(e.type))}function Qve(e,t){var n,i;if(e&&Xve[e])try{for(var r=Object(jge.e)(Xve[e]||[]),o=r.next();!o.done;o=r.next()){var a=o.value;try{a(t)}catch(s){Lge.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(Wve.a)(a)+"\nError: "+s)}}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}function $ve(e){return void 0===e&&(e=[]),"Request"in Kve&&Object(Nge.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Jve(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Kve&&Object(Nge.g)(e[0],Request)?e[0].url:String(e[0])}var ebe,tbe,nbe=0;function ibe(e,t,n){return void 0===n&&(n=!1),function(i){ebe=void 0,i&&tbe!==i&&(tbe=i,nbe&&clearTimeout(nbe),n?nbe=setTimeout((function(){t({event:i,name:e})})):t({event:i,name:e}))}}function rbe(e){return function(t){var n;try{n=t.target}catch(r){return}var i=n&&n.tagName;i&&("INPUT"===i||"TEXTAREA"===i||n.isContentEditable)&&(ebe||ibe("input",e)(t),clearTimeout(ebe),ebe=setTimeout((function(){ebe=void 0}),1e3))}}var obe=null,abe=null,sbe=n("tK18"),cbe=function(){function e(t){this.name=e.id,this._options=Object(jge.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&Kge().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Object(Age.d)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Zve({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Object(jge.d)(t))},type:"console"}),this._options.dom&&Zve({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Object(jge.d)(t))},type:"dom"}),this._options.xhr&&Zve({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Object(jge.d)(t))},type:"xhr"}),this._options.fetch&&Zve({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Object(jge.d)(t))},type:"fetch"}),this._options.history&&Zve({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Object(jge.d)(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:dve.fromString(e.level),message:Object(nve.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(nve.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}Kge().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(sbe.a)(e.event.target):Object(sbe.a)(e.event)}catch(n){t="<unknown>"}0!==t.length&&Kge().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,i=t.url,r=t.status_code,o=t.body;Kge().addBreadcrumb({category:"xhr",data:{method:n,url:i,status_code:r},type:"http"},{xhr:e.xhr,input:o})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Kge().addBreadcrumb({category:"fetch",data:e.fetchData,level:dve.Error,type:"http"},{data:e.error,input:e.args}):Kge().addBreadcrumb({category:"fetch",data:Object(jge.a)(Object(jge.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=Object(Age.e)(),n=e.from,i=e.to,r=Object(Age.h)(t.location.href),o=Object(Age.h)(n),a=Object(Age.h)(i);o.path||(o=r),r.protocol===a.protocol&&r.host===a.host&&(i=a.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),Kge().addBreadcrumb({category:"navigation",data:{from:n,to:i}})},e.id="Breadcrumbs",e}(),lbe="5.24.2",ube=function(e){function t(t){return void 0===t&&(t={}),e.call(this,Hve,t)||this}return Object(jge.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(Age.e)().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new Dve(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else Lge.error("Missing dsn option in showReportDialog call");else Lge.error("Missing eventId option in showReportDialog call")}(Object(jge.a)(Object(jge.a)({},e),{dsn:e.dsn||this.getDsn()})):Lge.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,i){return t.platform=t.platform||"javascript",t.sdk=Object(jge.a)(Object(jge.a)({},t.sdk),{name:"sentry.javascript.browser",packages:Object(jge.d)(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:lbe}]),version:lbe}),e.prototype._prepareEvent.call(this,t,n,i)},t.prototype._sendEvent=function(t){var n=this.getIntegration(cbe);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(hve),hbe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],dbe=function(){function e(t){this.name=e.id,this._options=Object(jge.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(Age.e)();this._options.setTimeout&&Object(lve.b)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(lve.b)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(lve.b)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(lve.b)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:hbe).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0];return t[0]=Uve(i,{mechanism:{data:{function:Object(Wve.a)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Uve(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(Wve.a)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(Age.e)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(lve.b)(n,"addEventListener",(function(t){return function(n,i,r){try{"function"==typeof i.handleEvent&&(i.handleEvent=Uve(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:Object(Wve.a)(i),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.call(this,n,Uve(i,{mechanism:{data:{function:"addEventListener",handler:Object(Wve.a)(i),target:e},handled:!0,type:"instrument"}}),r)}})),Object(lve.b)(n,"removeEventListener",(function(e){return function(t,n,i){try{e.call(this,t,n.__sentry_wrapped__,i)}catch(r){}return e.call(this,t,n,i)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach((function(e){e in i&&"function"==typeof i[e]&&Object(lve.b)(i,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(Wve.a)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(Wve.a)(t.__sentry_original__)),Uve(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),fbe=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(jge.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Lge.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Lge.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Zve({callback:function(n){var i=n.error,r=Kge(),o=r.getIntegration(e),a=i&&!0===i.__sentry_own_request__;if(o&&!Vve()&&!a){var s=r.getClient(),c=Object(Nge.i)(i)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(jve(i,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(Age.a)(c,{handled:!1,type:"onerror"}),r.captureEvent(c,{originalException:i})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Zve({callback:function(n){var i=n;try{"reason"in n?i=n.reason:"detail"in n&&"reason"in n.detail&&(i=n.detail.reason)}catch(l){}var r=Kge(),o=r.getIntegration(e),a=i&&!0===i.__sentry_own_request__;if(!o||Vve()||a)return!0;var s=r.getClient(),c=Object(Nge.i)(i)?t._eventFromIncompleteRejection(i):jve(i,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});c.level=dve.Error,Object(Age.a)(c,{handled:!1,type:"onunhandledrejection"}),r.captureEvent(c,{originalException:i})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,i){var r,o=Object(Nge.e)(e)?e.message:e;if(Object(Nge.k)(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(r=a[1],o=a[2])}return this._enhanceEventWithInitialFrame({exception:{values:[{type:r||"Error",value:o}]}},t,n,i)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,i){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(n,10))?void 0:n,a=Object(Nge.k)(t)&&t.length>0?t:Object(Age.f)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:r,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),pbe=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Vge((function(t,n){var i=Kge().getIntegration(e);return i?i._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(Nge.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Object(jge.d)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(Nge.g)(e[t],Error)||n.length+1>=this._limit)return n;var i=Tve(xve(e[t]));return this._walkErrorTree(e[t],t,Object(jge.d)([i],n))},e.id="LinkedErrors",e}(),mbe=Object(Age.e)(),gbe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Vge((function(t){var n,i,r;if(Kge().getIntegration(e)){if(!mbe.navigator&&!mbe.location&&!mbe.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(i=mbe.location)||void 0===i?void 0:i.href),a=(mbe.document||{}).referrer,s=(mbe.navigator||{}).userAgent,c=Object(jge.a)(Object(jge.a)(Object(jge.a)({},null===(r=t.request)||void 0===r?void 0:r.headers),a&&{Referer:a}),s&&{"User-Agent":s}),l=Object(jge.a)(Object(jge.a)({},o&&{url:o}),{headers:c});return Object(jge.a)(Object(jge.a)({},t),{request:l})}return t}))},e.id="UserAgent",e}(),vbe=[new r.InboundFilters,new r.FunctionToString,new dbe,new cbe,new fbe,new pbe,new gbe];!function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=vbe),void 0===e.release){var t=Object(Age.e)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&Lge.enable();var n=Kge(),i=new e(t);n.bindClient(i)}(ube,e)}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var bbe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DK(t,e),t.prototype.handleError=function(t){if(t.error&&t.error.status&&400!==t.error.status&&403!==t.error.status&&404!==t.error.status&&409!==t.error.status&&e.prototype.handleError.call(this,t),t){var n=this.injector.get(iJ);t.error&&t.error.message?n.error(t.error.message):t.message?n.error(t.message):t.error&&n.error(t.error)}},t.\u0275prov=R({token:t,factory:t.\u0275fac=function(e){return ybe(e||t)}}),t}(function(){function e(e){this.injector=e}return e.prototype.extractError=function(e){return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof uv?e.error instanceof Error?e.error:e.error instanceof ErrorEvent?e.error.message:"string"==typeof e.error?"Server returned code "+e.status+' with body "'+e.error+'"':e.message:null},e.prototype.handleError=function(e){$ge(this.extractError(e)||"Handled unknown error")},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(na))}}),e}()),ybe=Qn(bbe),_be=["*"],wbe=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],kbe=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Cbe=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n",Sbe=new he("MAT_GRID_LIST"),xbe=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._element=t,this._gridList=n,this._rowspan=1,this._colspan=1}return Object(g.a)(e,[{key:"_setStyle",value:function(e,t){this._element.nativeElement.style[e]=t}},{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round(bm(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round(bm(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Sbe,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,t){2&e&&fa("rowspan",t.rowspan)("colspan",t.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:_be,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(e,t){1&e&&(za(),Sa(0,"figure",0),Va(1),xa())},styles:[Cbe],encapsulation:2,changeDetection:0}),e}(),Obe=function(){var e=function(){function e(t){Object(m.a)(this,e),this._element=t}return Object(g.a)(e,[{key:"ngAfterContentInit",value:function(){sY(this._lines,this._element)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks))},e.\u0275cmp=ze({type:e,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,aY,!0),2&e&&al(i=fl())&&(t._lines=i)},ngContentSelectors:kbe,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(e,t){1&e&&(za(wbe),Va(0),Sa(1,"div",0),Va(2,1),xa(),Va(3,2))},encapsulation:2,changeDetection:0}),e}(),Mbe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),e}(),Tbe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),e}(),Ebe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),e}(),Pbe=function(){function e(){Object(m.a)(this,e),this.columnIndex=0,this.rowIndex=0}return Object(g.a)(e,[{key:"update",value:function(e,t){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map((function(e){return n._trackTile(e)}))}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new jbe(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){var t=-1,n=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t))}while(n-t<e||0==n);return Math.max(t,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var e=0;e<this.tracker.length;e++)this.tracker[e]=Math.max(0,this.tracker[e]-1)}},{key:"_findGapEndIndex",value:function(e){for(var t=e+1;t<this.tracker.length;t++)if(0!=this.tracker[t])return t;return this.tracker.length}},{key:"_markTilePosition",value:function(e,t){for(var n=0;n<t.colspan;n++)this.tracker[e+n]=t.rowspan}},{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,Object(u.a)(this.tracker));return e>1?this.rowCount+e-1:this.rowCount}}]),e}(),jbe=function e(t,n){Object(m.a)(this,e),this.row=t,this.col=n},Abe=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Ibe=function(){function e(){Object(m.a)(this,e),this._rows=0,this._rowspan=0}return Object(g.a)(e,[{key:"init",value:function(e,t,n,i){this._gutterSize=Nbe(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=n,this._direction=i}},{key:"getBaseTileSize",value:function(e,t){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(t,"))")}},{key:"getTilePosition",value:function(e,t){return 0===t?"0":Fbe("(".concat(e," + ").concat(this._gutterSize,") * ").concat(t))}},{key:"getTileSize",value:function(e,t){return"(".concat(e," * ").concat(t,") + (").concat(t-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,t,n){var i=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(e,n,i,r),this.setRowStyles(e,t,i,r)}},{key:"setColStyles",value:function(e,t,n,i){var r=this.getBaseTileSize(n,i);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(r,t)),e._setStyle("width",Fbe(this.getTileSize(r,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),e}(),Dbe=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this)).fixedRowHeight=e,i}return Object(g.a)(n,[{key:"init",value:function(e,t,i,r){Object(o.a)(Object(a.a)(n.prototype),"init",this).call(this,e,t,i,r),this.fixedRowHeight=Nbe(this.fixedRowHeight),Abe.test(this.fixedRowHeight)}},{key:"setRowStyles",value:function(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",Fbe(this.getTileSize(this.fixedRowHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Fbe("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(Ibe),Rbe=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(m.a)(this,n),(i=t.call(this))._parseRatio(e),i}return Object(g.a)(n,[{key:"setRowStyles",value:function(e,t,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",Fbe(this.getTileSize(this.baseTileHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Fbe("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach((function(e){e._setStyle("marginTop",null),e._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(e){var t=e.split(":");this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}]),n}(Ibe),Lbe=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"setRowStyles",value:function(e,t){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(n,t)),e._setStyle("height",Fbe(this.getTileSize(n,e.rowspan)))}},{key:"reset",value:function(e){e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(Ibe);function Fbe(e){return"calc(".concat(e,")")}function Nbe(e){return e.match(/([A-Za-z%]+)$/)?e:"".concat(e,"px")}var Bbe=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._element=t,this._dir=n,this._gutter="1px"}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new Lbe:e&&e.indexOf(":")>-1?new Rbe(e):new Dbe(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new Pbe);var t=this._tileCoordinator,n=this._tiles.filter((function(t){return!t._gridList||t._gridList===e})),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,t,this.cols,i),n.forEach((function(n,i){var r=t.positions[i];e._tileStyler.setStyle(n,r.row,r.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}},{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round(bm(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var t="".concat(null==e?"":e);t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(pm,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-grid-list"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,xbe,!0),2&e&&al(i=fl())&&(t._tiles=i)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&fa("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Vs([{provide:Sbe,useExisting:e}])],ngContentSelectors:_be,decls:2,vars:0,template:function(e,t){1&e&&(za(),Sa(0,"div"),Va(1),xa())},styles:[Cbe],encapsulation:2,changeDetection:0}),e}(),Hbe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[lY,$X],lY,$X]}),e}(),zbe=new he("CDK_TREE_NODE_OUTLET_NODE"),Vbe=function(){var e=function e(t,n){Object(m.a)(this,e),this.viewContainer=t,this._node=n};return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(zbe,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkTreeNodeOutlet",""]]}),e}(),qbe=function e(t){Object(m.a)(this,e),this.$implicit=t},Ube=function(){var e=function e(t){Object(m.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),e}(),Gbe=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._differs=t,this._changeDetectorRef=n,this._onDestroy=new w.b,this._levels=new Map,this.viewChange=new Um.a({start:0,end:Number.MAX_VALUE})}return Object(g.a)(e,[{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter((function(e){return!e.when}));this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var e,t=this;Om(this._dataSource)?e=this._dataSource.connect(this):Object(Cm.a)(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=Object(Sm.a)(this._dataSource)),e&&(this._dataSubscription=e.pipe(Object(Gm.a)(this._onDestroy)).subscribe((function(e){return t.renderNodeChanges(e)})))}},{key:"renderNodeChanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,o=n.diff(e);o&&(o.forEachOperation((function(n,o,a){if(null==n.previousIndex)t.insertNode(e[a],a,i,r);else if(null==a)i.remove(o),t._levels.delete(n.item);else{var s=i.get(o);i.move(s,a)}})),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,t){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find((function(n){return n.when&&n.when(t,e)}))||this._defaultNodeDef}},{key:"insertNode",value:function(e,t,n,i){var r=this._getNodeDef(e,t),o=new qbe(e);o.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(e,o.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,t),Wbe.mostRecentTreeNode&&(Wbe.mostRecentTreeNode.data=e)}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(dc),_a(No))},e.\u0275cmp=ze({type:e,selectors:[["cdk-tree"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,Ube,!0),2&e&&al(i=fl())&&(t._nodeDefs=i)},viewQuery:function(e,t){var n;1&e&&sl(Vbe,!0),2&e&&al(n=fl())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[Vbe],encapsulation:2}),e}(),Wbe=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._elementRef=t,this._tree=n,this._destroyed=new w.b,this._dataChanges=new w.b,this.role="treeitem",e.mostRecentTreeNode=this}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Gbe))},e.\u0275dir=Ke({type:e,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:3,hostBindings:function(e,t){2&e&&fa("aria-expanded",t.isExpanded)("aria-level",t.level+1)("role",t.role)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),e.mostRecentTreeNode=null,e}(),Kbe=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i))._elementRef=e,o._tree=i,o._differs=r,o}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);var t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):Object(Cm.a)(t)&&t.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(t){return e.updateChildrenNodes(t)})),this.nodeOutlet.changes.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){return e.updateChildrenNodes()}))}},{key:"ngOnDestroy",value:function(){this._clear(),Object(o.a)(Object(a.a)(n.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(e){var t=this._getNodeOutlet();e&&(this._children=e),t&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,t.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var e=this._getNodeOutlet();e&&(e.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var e=this,t=this.nodeOutlet;return t&&t.find((function(t){return!t._node||t._node===e}))}}]),n}(Wbe);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Gbe),_a(dc))},e.\u0275dir=Ke({type:e,selectors:[["cdk-nested-tree-node"]],contentQueries:function(e,t,n){var i;1&e&&ul(n,Vbe,!0),2&e&&al(i=fl())&&(t.nodeOutlet=i)},hostAttrs:[1,"cdk-tree-node","cdk-nested-tree-node"],hostVars:2,hostBindings:function(e,t){2&e&&fa("aria-expanded",t.isExpanded)("role",t.role)},exportAs:["cdkNestedTreeNode"],features:[Vs([{provide:Wbe,useExisting:e},{provide:zbe,useExisting:e}]),Es]}),e}(),Xbe=/([A-Za-z%]+)$/,Ybe=function(){var e=function(){function e(t,n,i,r,o){var a=this;Object(m.a)(this,e),this._treeNode=t,this._tree=n,this._element=r,this._dir=o,this._destroyed=new w.b,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){return a._setPadding(!0)})),t._dataChanges.subscribe((function(){return a._setPadding()}))}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,t=null==this._level?e:this._level;return"number"==typeof t?"".concat(t*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._paddingIndent();if(t!==this._currentPadding||e){var n=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===i?"paddingRight":"paddingLeft";n.style[i]=t||"",n.style[r]="",this._currentPadding=t}}},{key:"_setLevelInput",value:function(e){this._level=bm(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var t=e,n="px";if("string"==typeof e){var i=e.split(Xbe);t=i[0],n=i[1]||n}this.indentUnits=n,this._indent=bm(t),this._setPadding()}},{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Wbe),_a(Gbe),_a(Qs),_a(Ks),_a(pm,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),e}(),Zbe=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this._tree=t,this._treeNode=n,this._recursive=!1}return Object(g.a)(e,[{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}},{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Gbe),_a(Wbe))},e.\u0275dir=Ke({type:e,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,t){1&e&&Ia("click",(function(e){return t._toggle(e)}))},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),e}(),Qbe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)}}),e}(),$be=nY(JX(Wbe)),Jbe=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var o;return Object(m.a)(this,n),(o=t.call(this,e,i))._elementRef=e,o._tree=i,o.role="treeitem",o.tabIndex=Number(r)||0,o}return n}($be);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Gbe),wa("tabindex"))},e.\u0275dir=Ke({type:e,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:3,hostBindings:function(e,t){2&e&&fa("aria-expanded",t.isExpanded)("aria-level",t.level+1)("role",t.role)},inputs:{disabled:"disabled",tabIndex:"tabIndex",role:"role"},exportAs:["matTreeNode"],features:[Vs([{provide:Wbe,useExisting:e}]),Es]}),e}(),eye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Ube);return e.\u0275fac=function(t){return tye(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[Vs([{provide:Ube,useExisting:e}]),Es]}),e}(),tye=Qn(eye),nye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o){var a;return Object(m.a)(this,n),(a=t.call(this,e,i,r))._elementRef=e,a._tree=i,a._differs=r,a._disabled=!1,a.tabIndex=Number(o)||0,a}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){Object(o.a)(Object(a.a)(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){Object(o.a)(Object(a.a)(n.prototype),"ngOnDestroy",this).call(this)}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?e:0}}]),n}(Kbe);return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(Gbe),_a(dc),wa("tabindex"))},e.\u0275dir=Ke({type:e,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],hostVars:2,hostBindings:function(e,t){2&e&&fa("aria-expanded",t.isExpanded)("role",t.role)},inputs:{tabIndex:"tabIndex",disabled:"disabled",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[Vs([{provide:Kbe,useExisting:e},{provide:Wbe,useExisting:e},{provide:zbe,useExisting:e}]),Es]}),e}(),iye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}}]),n}(Ybe);return e.\u0275fac=function(t){return rye(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[Vs([{provide:Ybe,useExisting:e}]),Es]}),e}(),rye=Qn(iye),oye=function(){var e=function e(t,n){Object(m.a)(this,e),this.viewContainer=t,this._node=n};return e.\u0275fac=function(t){return new(t||e)(_a(yc),_a(zbe,8))},e.\u0275dir=Ke({type:e,selectors:[["","matTreeNodeOutlet",""]],features:[Vs([{provide:Vbe,useExisting:e}])]}),e}(),aye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Gbe);return e.\u0275fac=function(t){return sye(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-tree"]],viewQuery:function(e,t){var n;1&e&&sl(oye,!0),2&e&&al(n=fl())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[Vs([{provide:Gbe,useExisting:e}]),Es],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,t){1&e&&Ea(0,0)},directives:[oye],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),e}(),sye=Qn(aye),cye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=vm(e)}}]),n}(Zbe);return e.\u0275fac=function(t){return lye(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[Vs([{provide:Zbe,useExisting:e}]),Es]}),e}(),lye=Qn(cye),uye=[Wte,f$,NZ,SJ,Ooe,j$,s0,_0,G1,lQ,Eae,lre,eJ,n1,d4,Gle,bie,z0,t2,oie,p3,Hbe,o$,function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[Qbe,$X],$X]}),e}(),Ote,rge],hye=n("CqXF"),dye=["*"];function fye(e,t){if(1&e){var n=Pa();Sa(0,"div",2),Ia("click",(function(){return Dt(n),Ba()._onBackdropClicked()})),xa()}2&e&&os("mat-drawer-shown",Ba()._isShowingBackdrop())}function pye(e,t){1&e&&(Sa(0,"mat-drawer-content"),Va(1,2),xa())}var mye=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],gye=["mat-drawer","mat-drawer-content","*"];function vye(e,t){if(1&e){var n=Pa();Sa(0,"div",2),Ia("click",(function(){return Dt(n),Ba()._onBackdropClicked()})),xa()}2&e&&os("mat-drawer-shown",Ba()._isShowingBackdrop())}function bye(e,t){1&e&&(Sa(0,"mat-sidenav-content",3),Va(1,2),xa())}var yye=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_ye=["mat-sidenav","mat-sidenav-content","*"],wye=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",kye={transformDrawer:jv("transform",[Lv("open, open-instant",Rv({transform:"none",visibility:"visible"})),Lv("void",Rv({"box-shadow":"none",visibility:"hidden"})),Nv("void => open-instant",Av("0ms")),Nv("void <=> open, open-instant => void",Av("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Cye=new he("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Sye=new he("MAT_DRAWER_CONTAINER"),xye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){var s;return Object(m.a)(this,n),(s=t.call(this,r,o,a))._changeDetectorRef=e,s._container=i,s}return Object(g.a)(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))}}]),n}(rg);return e.\u0275fac=function(t){return new(t||e)(_a(No),_a(Y((function(){return Mye}))),_a(Ks),_a(ig),_a(Nl))},e.\u0275cmp=ze({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&rs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Es],ngContentSelectors:dye,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},encapsulation:2,changeDetection:0}),e}(),Oye=function(){var e=function(){function e(t,n,i,r,o,a,s){var c=this;Object(m.a)(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=a,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new w.b,this._animationEnd=new w.b,this._animationState="void",this.openedChange=new Yc(!0),this._openedStream=this.openedChange.pipe(Object($m.a)((function(e){return e})),Object(mf.a)((function(){}))),this.openedStart=this._animationStarted.pipe(Object($m.a)((function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")})),Object(hye.a)(void 0)),this._closedStream=this.openedChange.pipe(Object($m.a)((function(e){return!e})),Object(mf.a)((function(){}))),this.closedStart=this._animationStarted.pipe(Object($m.a)((function(e){return e.fromState!==e.toState&&"void"===e.toState})),Object(hye.a)(void 0)),this._destroyed=new w.b,this.onPositionChanged=new Yc,this._modeChanged=new w.b,this.openedChange.subscribe((function(e){e?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Object(Km.a)(c._elementRef.nativeElement,"keydown").pipe(Object($m.a)((function(e){return e.keyCode===KK&&!c.disableClose&&!YK(e)})),Object(Gm.a)(c._destroyed)).subscribe((function(e){return c._ngZone.run((function(){c.close(),e.stopPropagation(),e.preventDefault()}))}))})),this._animationEnd.pipe(Object(Zm.a)((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&c.openedChange.emit(c._opened)}))}return Object(g.a)(e,[{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){n.openedChange.pipe(Object(Wm.a)(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}},{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=vm(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=vm(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(vm(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(gX),_a(CX),_a(Fm),_a(Nl),_a(bu,8),_a(Sye,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&Da("@transform.start",(function(e){return t._animationStartListener(e)}))("@transform.done",(function(e){return t._animationDoneListener(e)})),2&e&&(fa("align",null),Ms("@transform",t._animationState),os("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:dye,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(za(),Sa(0,"div",0),Va(1),xa())},encapsulation:2,data:{animation:[kye.transformDrawer]},changeDetection:0}),e}(),Mye=function(){var e=function(){function e(t,n,i,r,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;Object(m.a)(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new Qc,this.backdropClick=new Yc,this._destroyed=new w.b,this._doCheckSubject=new w.b,this._contentMargins={left:null,right:null},this._contentMarginChanges=new w.b,t&&t.change.pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){a._validateDrawers(),a.updateContentMargins()})),o.change().pipe(Object(Gm.a)(this._destroyed)).subscribe((function(){return a.updateContentMargins()})),this._autosize=s}return Object(g.a)(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Object(Jm.a)(this._allDrawers),Object(Gm.a)(this._destroyed)).subscribe((function(t){e._drawers.reset(t.filter((function(t){return!t._container||t._container===e}))),e._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Object(Jm.a)(null)).subscribe((function(){e._validateDrawers(),e._drawers.forEach((function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)})),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._doCheckSubject.pipe(Object(ZK.a)(10),Object(Gm.a)(e._destroyed)).subscribe((function(){return e.updateContentMargins()}))}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(e){return e.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(e){return e.close()}))}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run((function(){return e._contentMarginChanges.next(e._contentMargins)})))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return e._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(Object($m.a)((function(e){return e.fromState!==e.toState})),Object(Gm.a)(this._drawers.changes)).subscribe((function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),"side"!==e.mode&&e.openedChange.pipe(Object(Gm.a)(this._drawers.changes)).subscribe((function(){return t._setContainerClass(e.opened)}))}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Object(Gm.a)(this._drawers.changes)).subscribe((function(){t._ngZone.onMicrotaskEmpty.pipe(Object(Wm.a)(1)).subscribe((function(){t._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Object(Gm.a)(Object(C.a)(this._drawers.changes,this._destroyed))).subscribe((function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach((function(t){"end"==t.position?e._end=t:e._start=t})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter((function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)})).forEach((function(e){return e._closeViaBackdropClick()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=vm(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:vm(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(pm,8),_a(Ks),_a(Nl),_a(No),_a(og),_a(Cye),_a(__,8))},e.\u0275cmp=ze({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,xye,!0),ul(n,Oye,!0)),2&e&&(al(i=fl())&&(t._content=i.first),al(i=fl())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&cl(xye,!0),2&e&&al(n=fl())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&os("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Vs([{provide:Sye,useExisting:e}])],ngContentSelectors:gye,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(za(mye),ba(0,fye,1,2,"div",0),Va(1),Va(2,1),ba(3,pye,2,0,"mat-drawer-content",1)),2&e&&(ka("ngIf",t.hasBackdrop),ar(3),ka("ngIf",!t._content))},directives:[Hh,xye],styles:[wye],encapsulation:2,changeDetection:0}),e}(),Tye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,o,a){return Object(m.a)(this,n),t.call(this,e,i,r,o,a)}return n}(xye);return e.\u0275fac=function(t){return new(t||e)(_a(No),_a(Y((function(){return jye}))),_a(Ks),_a(ig),_a(Nl))},e.\u0275cmp=ze({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&rs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Es],ngContentSelectors:dye,decls:1,vars:0,template:function(e,t){1&e&&(za(),Va(0))},encapsulation:2,changeDetection:0}),e}(),Eye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(m.a)(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return Object(g.a)(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=vm(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=bm(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=bm(e)}}]),n}(Oye);return e.\u0275fac=function(t){return Pye(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(fa("align",null),rs("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),os("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Es],ngContentSelectors:dye,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(za(),Sa(0,"div",0),Va(1),xa())},encapsulation:2,data:{animation:[kye.transformDrawer]},changeDetection:0}),e}(),Pye=Qn(Eye),jye=function(){var e=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return n}(Mye);return e.\u0275fac=function(t){return Aye(t||e)},e.\u0275cmp=ze({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,Tye,!0),ul(n,Eye,!0)),2&e&&(al(i=fl())&&(t._content=i.first),al(i=fl())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&os("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[Vs([{provide:Sye,useExisting:e}]),Es],ngContentSelectors:_ye,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(za(yye),ba(0,vye,1,2,"div",0),Va(1),Va(2,1),ba(3,bye,2,0,"mat-sidenav-content",1)),2&e&&(ka("ngIf",t.hasBackdrop),ar(3),ka("ngIf",!t._content))},directives:[Hh,Tye,rg],styles:[wye],encapsulation:2,changeDetection:0}),e}(),Aye=Qn(jye),Iye=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},imports:[[_d,$X,Nm,ag],ag,$X]}),e}(),Dye=function(){function e(e){this.httpServer=e}return e.prototype.get=function(e){return this.httpServer.get(e,"/settings")},e.prototype.update=function(e,t){return this.httpServer.post(e,"/settings",t)},e.prototype.getSettingsForQemu=function(e){return this.httpServer.get(e,"/settings/qemu")},e.prototype.updateSettingsForQemu=function(e,t){return this.httpServer.put(e,"/settings/qemu",{enable_hardware_acceleration:t.enable_hardware_acceleration,require_hardware_acceleration:t.require_hardware_acceleration})},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}();function Rye(e,t){1&e&&(Sa(0,"button",11),_s(1,"QEMU VM templates"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/qemu/templates")}function Lye(e,t){if(1&e){var n=Pa();Sa(0,"mat-list-item"),Sa(1,"mat-checkbox",12),Ia("ngModelChange",(function(e){return Dt(n),Ba(2).settings.require_hardware_acceleration=e})),_s(2," Require Hardware Acceleration (KVM/HAXM) "),xa(),xa()}if(2&e){var i=Ba(2);ar(1),ka("ngModel",i.settings.require_hardware_acceleration)}}function Fye(e,t){if(1&e){var n=Pa();Sa(0,"mat-nav-list"),Sa(1,"mat-list-item"),Sa(2,"mat-checkbox",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().settings.enable_hardware_acceleration=e})),_s(3," Enable Hardware Acceleration (KVM/HAXM) "),xa(),xa(),ba(4,Lye,3,1,"mat-list-item",7),xa()}if(2&e){var i=Ba();ar(2),ka("ngModel",i.settings.enable_hardware_acceleration),ar(2),ka("ngIf",i.settings.enable_hardware_acceleration)}}var Nye=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.serverSettingsService=n,this.toasterService=i}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.serverSettingsService.getSettingsForQemu(e.server).subscribe((function(t){e.settings=t}))}))},e.prototype.apply=function(){var e=this;this.settings.enable_hardware_acceleration||(this.settings.require_hardware_acceleration=!1),this.serverSettingsService.updateSettingsForQemu(this.server,this.settings).subscribe((function(t){e.toasterService.success("Changes applied")}))},e.prototype.restoreDefaults=function(){var e=this;this.serverSettingsService.updateSettingsForQemu(this.server,{enable_hardware_acceleration:!0,require_hardware_acceleration:!0}).subscribe((function(t){e.settings=t,e.toasterService.success("Restored to default settings")}))},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Dye),_a(iJ))},e.\u0275cmp=ze({type:e,selectors:[["app-qemu-preferences"]],decls:14,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[1,"default-content"],[1,"container","mat-elevation-z8"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","","color","accent",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"QEMU preferences"),xa(),ba(5,Rye,2,1,"button",4),xa(),xa(),Sa(6,"div",5),Sa(7,"div",6),ba(8,Fye,5,2,"mat-nav-list",7),xa(),Sa(9,"div",8),Sa(10,"button",9),Ia("click",(function(){return t.restoreDefaults()})),_s(11,"Restore defaults"),xa(),Sa(12,"button",10),Ia("click",(function(){return t.apply()})),_s(13,"Apply"),xa(),xa(),xa(),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(3),ka("ngIf",t.settings))},directives:[Hh,h$,rK,J5,o4,Q0,Mf,Rp],styles:[".top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}"]}),e}(),Bye=function(){function e(e){this.route=e,this.serverId=""}return e.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},e.\u0275fac=function(t){return new(t||e)(_a(FG))},e.\u0275cmp=ze({type:e,selectors:[["app-general-preferences"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"General preferences"),xa(),xa(),xa(),Sa(5,"div",4),Oa(6,"div",5),xa(),xa())},styles:[""]}),e}(),Hye=function(){function e(e,t){this.route=e,this.serverService=t}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t}))},e.prototype.restoreDefaults=function(){this.vpcsExecutable=""},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK))},e.\u0275cmp=ze({type:e,selectors:[["app-vpcs-preferences"]],decls:8,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Path to VPCS executable",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VPCS preferences"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-form-field",5),Sa(7,"input",6),Ia("ngModelChange",(function(e){return t.vpcsExecutable=e})),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("ngModel",t.vpcsExecutable))},directives:[a0,y0,wf,Mf,Rp],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),zye=function(){function e(e,t){this.route=e,this.serverService=t}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t}))},e.prototype.restoreDefaults=function(){this.vboxManagePath=""},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK))},e.\u0275cmp=ze({type:e,selectors:[["app-virtual-box-preferences"]],decls:8,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Path to VirtualBox manage",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VirtualBox preferences"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-form-field",5),Sa(7,"input",6),Ia("ngModelChange",(function(e){return t.vboxManagePath=e})),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("ngModel",t.vboxManagePath))},directives:[a0,y0,wf,Mf,Rp],styles:[""]}),e}(),Vye=function(){function e(e,t,n){this.route=e,this.serverService=t,this.serverSettingsService=n}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t}))},e.prototype.restoreDefaults=function(){this.dynamipsPath=""},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Dye))},e.\u0275cmp=ze({type:e,selectors:[["app-dynamips-preferences"]],decls:8,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Path to Dynamips",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"Dynamips preferences"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-form-field",5),Sa(7,"input",6),Ia("ngModelChange",(function(e){return t.dynamipsPath=e})),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("ngModel",t.dynamipsPath))},directives:[a0,y0,wf,Mf,Rp],styles:[".top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),qye=function(){function e(e,t){this.route=e,this.serverService=t}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t}))},e.prototype.restoreDefaults=function(){this.vmrunPath=""},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK))},e.\u0275cmp=ze({type:e,selectors:[["app-vmware-preferences"]],decls:8,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Path to vmrun:",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"VMware preferences"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-form-field",5),Sa(7,"input",6),Ia("ngModelChange",(function(e){return t.vmrunPath=e})),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("ngModel",t.vmrunPath))},directives:[a0,y0,wf,Mf,Rp],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Uye=function(){function e(){}return e.prototype.transform=function(e,t){return e?t?(t=t.toLowerCase(),e.projectDatabase.data.filter((function(e){return e.filename.toLowerCase().includes(t)}))):e:[]},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Xe({name:"projectsfilter",type:e,pure:!0}),e}(),Gye=function(){function e(e){this.httpServer=e}return e.prototype.getTemplates=function(e){return this.httpServer.get(e,"/templates")},e.prototype.getTemplate=function(e,t){return this.httpServer.get(e,"/templates/"+t)},e.prototype.addTemplate=function(e,t){return this.httpServer.post(e,"/templates",t)},e.prototype.saveTemplate=function(e,t){return this.httpServer.put(e,"/templates/"+t.template_id,t)},e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(VK))}}),e}(),Wye=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.tracengService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.templateName="",this.ipAddress="",this.templateNameForm=this.formBuilder.group({templateName:new Cp(null,[Df.required]),ipAddress:new Cp(null,[Df.required])})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","traceng","templates"])},e.prototype.addTemplate=function(){var e=this;if(this.templateNameForm.invalid)this.toasterService.error("Fill all required fields");else{this.templateName=this.templateNameForm.get("templateName").value,this.ipAddress=this.templateNameForm.get("ipAddress").value;var t=this.templateMocksService.getTracengTemplate();t.template_id=Object(Gee.v4)(),t.name=this.templateName,t.ip_address=this.ipAddress,this.tracengService.addTemplate(this.server,t).subscribe((function(){e.goBack()}))}},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Gye),_a(nK),_a(iJ),_a(xue),_a(um))},e.\u0275cmp=ze({type:e,selectors:[["app-add-traceng-template"]],decls:17,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],["matInput","","formControlName","ipAddress","type","text","placeholder","IP address"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"New VPCS node template"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-card",5),Sa(7,"form",6),Sa(8,"mat-form-field",7),Oa(9,"input",8),xa(),Sa(10,"mat-form-field",7),Oa(11,"input",9),xa(),xa(),xa(),Sa(12,"div",10),Sa(13,"button",11),Ia("click",(function(){return t.goBack()})),_s(14,"Cancel"),xa(),Sa(15,"button",12),Ia("click",(function(){return t.addTemplate()})),_s(16,"Add template"),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("formGroup",t.templateNameForm))},directives:[wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),Kye=function(){function e(e,t){this.route=e,this.serverService=t}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t}))},e.prototype.restoreDefaults=function(){this.tracengExecutable=""},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK))},e.\u0275cmp=ze({type:e,selectors:[["app-traceng-preferences"]],decls:8,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Path to TraceNG executable",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"TraceNG preferences"),xa(),xa(),xa(),Sa(5,"div",4),Sa(6,"mat-form-field",5),Sa(7,"input",6),Ia("ngModelChange",(function(e){return t.tracengExecutable=e})),xa(),xa(),xa(),xa()),2&e&&(ar(7),ka("ngModel",t.tracengExecutable))},directives:[a0,y0,wf,Mf,Rp],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Xye(e,t){1&e&&(Sa(0,"button",10),_s(1,"Back"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences")}function Yye(e,t){1&e&&(Sa(0,"button",11),_s(1,"Add TraceNG template"),xa()),2&e&&Ua("routerLink","/server/",Ba().server.id,"/preferences/traceng/addtemplate")}function Zye(e,t){1&e&&Oa(0,"app-empty-templates-list")}function Qye(e,t){if(1&e){var n=Pa();Sa(0,"div",15),Sa(1,"mat-list-item",16),_s(2),xa(),Sa(3,"button",17),Sa(4,"mat-icon"),_s(5,"more_vert"),xa(),xa(),Sa(6,"mat-menu",null,18),Sa(8,"button",19),Ia("click",(function(){Dt(n);var e=t.$implicit;return Ba(3).deleteTemplate(e)})),Sa(9,"mat-icon"),_s(10,"delete"),xa(),Sa(11,"span"),_s(12,"Delete"),xa(),xa(),xa(),xa()}if(2&e){var i=t.$implicit,r=ya(7);ar(1),qa("routerLink",i.template_id),ar(1),ws(i.name),ar(1),ka("matMenuTriggerFor",r)}}function $ye(e,t){if(1&e&&(Sa(0,"mat-nav-list"),ba(1,Qye,13,3,"div",14),xa()),2&e){var n=Ba(2);ar(1),ka("ngForOf",n.tracengTemplates)}}function Jye(e,t){if(1&e&&(Sa(0,"div",12),Sa(1,"div",13),ba(2,$ye,2,1,"mat-nav-list",6),xa(),xa()),2&e){var n=Ba();ar(2),ka("ngIf",n.server)}}var e_e=function(){function e(e,t,n){this.route=e,this.serverService=t,this.tracengService=n,this.tracengTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.getTemplates()}))},e.prototype.getTemplates=function(){var e=this;this.tracengService.getTemplates(this.server).subscribe((function(t){e.tracengTemplates=t.filter((function(e){return"traceng"===e.template_type&&!e.builtin}))}))},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Gye))},e.\u0275cmp=ze({type:e,selectors:[["app-traceng-templates"]],viewQuery:function(e,t){var n;1&e&&cl(Zle,!0),2&e&&al(n=fl())&&(t.deleteComponent=n.first)},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"TraceNG node templates"),xa(),ba(5,Xye,2,1,"button",4),ba(6,Yye,2,1,"button",5),xa(),xa(),ba(7,Zye,1,0,"app-empty-templates-list",6),ba(8,Jye,3,1,"div",7),xa(),Sa(9,"app-delete-template",8,9),Ia("deleteEvent",(function(){return t.onDeleteEvent()})),xa()),2&e&&(ar(5),ka("ngIf",t.server),ar(1),ka("ngIf",t.server),ar(1),ka("ngIf",!t.tracengTemplates.length),ar(1),ka("ngIf",t.tracengTemplates.length),ar(1),ka("server",t.server))},directives:[Hh,Zle,h$,rK,Qle,J5,Nh,o4,LZ,P$,AZ,OZ],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}();function t_e(e,t){if(1&e){var n=Pa();Sa(0,"div",6),Sa(1,"mat-card",7),Sa(2,"form",8),Sa(3,"mat-form-field",9),Sa(4,"input",10),Ia("ngModelChange",(function(e){return Dt(n),Ba().tracengTemplate.name=e})),xa(),xa(),Sa(5,"mat-form-field",9),Sa(6,"input",11),Ia("ngModelChange",(function(e){return Dt(n),Ba().tracengTemplate.default_name_format=e})),xa(),xa(),Sa(7,"mat-form-field",9),Sa(8,"input",12),Ia("ngModelChange",(function(e){return Dt(n),Ba().tracengTemplate.symbol=e})),xa(),xa(),Sa(9,"button",13),Ia("click",(function(){return Dt(n),Ba().chooseSymbol()})),_s(10,"Choose symbol"),xa(),Oa(11,"br"),Oa(12,"br"),xa(),xa(),Sa(13,"div",14),Sa(14,"button",15),Ia("click",(function(){return Dt(n),Ba().goBack()})),_s(15,"Cancel"),xa(),Sa(16,"button",16),Ia("click",(function(){return Dt(n),Ba().onSave()})),_s(17,"Save"),xa(),xa(),xa()}if(2&e){var i=Ba();ar(2),ka("formGroup",i.inputForm),ar(2),ka("ngModel",i.tracengTemplate.name),ar(2),ka("ngModel",i.tracengTemplate.default_name_format),ar(2),ka("ngModel",i.tracengTemplate.symbol)}}function n_e(e,t){if(1&e){var n=Pa();Sa(0,"app-symbols-menu",17),Ia("symbolChangedEmitter",(function(e){return Dt(n),Ba().symbolChanged(e)})),xa()}if(2&e){var i=Ba();ka("server",i.server)("symbol",i.tracengTemplate.symbol)}}var i_e=function(e){return{shadowed:e}},r_e=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.tracengService=n,this.toasterService=i,this.formBuilder=r,this.router=o,this.isSymbolSelectionOpened=!1,this.inputForm=this.formBuilder.group({templateName:new Cp("",Df.required),defaultName:new Cp("",Df.required),symbol:new Cp("",Df.required)})}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then((function(t){e.server=t,e.tracengService.getTemplate(e.server,n).subscribe((function(t){e.tracengTemplate=t}))}))},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","traceng","templates"])},e.prototype.onSave=function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.tracengService.saveTemplate(this.server,this.tracengTemplate).subscribe((function(t){e.toasterService.success("Changes saved")}))},e.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},e.prototype.symbolChanged=function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.tracengTemplate.symbol=e},e.\u0275fac=function(t){return new(t||e)(_a(FG),_a(qK),_a(Gye),_a(iJ),_a(um),_a(nK))},e.\u0275cmp=ze({type:e,selectors:[["app-traceng-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"server","symbol","symbolChangedEmitter"]],template:function(e,t){1&e&&(Sa(0,"div",0),Sa(1,"div",1),Sa(2,"div",2),Sa(3,"h1",3),_s(4,"TraceNG device configuration"),xa(),xa(),xa(),ba(5,t_e,18,4,"div",4),xa(),ba(6,n_e,1,2,"app-symbols-menu",5)),2&e&&(ka("ngClass",Bc(3,i_e,t.isSymbolSelectionOpened)),ar(5),ka("ngIf",t.tracengTemplate),ar(1),ka("ngIf",t.isSymbolSelectionOpened&&t.tracengTemplate))},directives:[Rh,Hh,wJ,Lp,Tf,zp,a0,y0,wf,Mf,Xp,h$,sue],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.cancel-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%], .top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{transition:.25s}.nonvisible[_ngcontent-%COMP%], .shadowed[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),e}(),o_e=n("l5mm");function a_e(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function s_e(e,t){var n=t?"":"none";a_e(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function c_e(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function l_e(e,t){return e.getPropertyValue(t).split(",").map((function(e){return e.trim()}))}function u_e(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function h_e(e,t,n){return n>=e.top&&n<=e.bottom&&t>=e.left&&t<=e.right}function d_e(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function f_e(e,t,n,i){var r=e.width*t,o=e.height*t;return i>e.top-o&&i<e.bottom+o&&n>e.left-r&&n<e.right+r}var p_e=function(){function e(t,n){Object(m.a)(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}return Object(g.a)(e,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach((function(e){t.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:u_e(e)})}))}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var i,r,o=t===this._document?t.documentElement:t,a=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,r=s.left}else i=t.scrollTop,r=t.scrollLeft;var c=a.top-i,l=a.left-r;return this.positions.forEach((function(e,n){e.clientRect&&t!==n&&o.contains(n)&&d_e(e.clientRect,c,l)})),a.top=i,a.left=r,{top:c,left:l}}}]),e}();function m_e(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(var r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?y_e(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||b_e(e,t),g_e("canvas",e,t,y_e),g_e("input, textarea, select",e,t,b_e),t}function g_e(e,t,n,i){var r=t.querySelectorAll(e);if(r.length)for(var o=n.querySelectorAll(e),a=0;a<r.length;a++)i(r[a],o[a])}var v_e=0;function b_e(e,t){t.value=e.value,"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(v_e++))}function y_e(e,t){var n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(swe){}}var __e=zm({passive:!0}),w_e=zm({passive:!1}),k_e=function(){function e(t,n,i,r,o,a){var s=this;Object(m.a)(this,e),this._config=n,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new w.b,this._pointerMoveSubscription=_.a.EMPTY,this._pointerUpSubscription=_.a.EMPTY,this._scrollSubscription=_.a.EMPTY,this._resizeSubscription=_.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new w.b,this.started=new w.b,this.released=new w.b,this.ended=new w.b,this.entered=new w.b,this.exited=new w.b,this.dropped=new w.b,this.moved=this._moveEvents,this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find((function(t){var n=e.target;return!!n&&(n===t||t.contains(n))}));!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){e.preventDefault();var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._lastKnownPointerPosition=t,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n,t);else{var i=s._activeTransform;if(i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement){var r="translate(".concat(i.x," ").concat(i.y,")");s._rootElement.setAttribute("transform",r)}}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})}))}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(e)))return void s._endDragSequence(e);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(e)})))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t),this._parentPositions=new p_e(i,o),a.registerDragItem(this)}return Object(g.a)(e,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){return this._handles=e.map((function(e){return km(e)})),this._handles.forEach((function(e){return s_e(e,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=km(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((function(){n.addEventListener("mousedown",t._pointerDown,w_e),n.addEventListener("touchstart",t._pointerDown,__e)})),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?km(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return t._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&x_e(this._rootElement),x_e(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){this._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}},{key:"enableHandle",value:function(e){this._disabledHandles.delete(e)}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&x_e(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&x_e(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){O_e(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t,n=this._dropContainer;if(n){var i=this._rootElement,r=i.parentNode,o=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");r.insertBefore(s,i),i.style.display="none",this._document.body.appendChild(r.replaceChild(a,i)),(t=this._document,t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body).appendChild(o),this.started.next({source:this}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;t.stopPropagation();var i=this.isDragging(),r=O_e(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){n._updateOnScroll(e)})),this._boundaryElement&&(this._boundaryRect=u_e(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(t._getPointerPositionOnPage(e)),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o}),n.drop(t,i,t._initialContainer,a,o,t._initialIndex),t._dropContainer=t._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run((function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})})),this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=C_e(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=M_e(o,this._document),this._previewRef=o,t.matchSize?T_e(e,r):e.style.transform=C_e(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;T_e(e=m_e(a),a.getBoundingClientRect())}return a_e(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),s_e(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach((function(t){return e.classList.add(t)})):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=C_e(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=l_e(t,"transition-property"),i=n.find((function(e){return"transform"===e||"all"===e}));if(!i)return 0;var r=n.indexOf(i),o=l_e(t,"transition-duration"),a=l_e(t,"transition-delay");return c_e(o[r])+c_e(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)}))}))}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=M_e(this._placeholderRef,this._document)):e=m_e(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=O_e(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=O_e(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,c=this._boundaryRect,l=this._previewRect,u=c.top+s,h=c.bottom-(l.height-s);i=S_e(i,c.left+a,c.right-(l.width-a)),r=S_e(r,u,h)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,s_e(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,w_e),e.removeEventListener("touchstart",this._pointerDown,__e)}},{key:"_applyRootElementTransform",value:function(e,t){var n=C_e(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,c=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),c>0&&(n-=c)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:O_e(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&d_e(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=vm(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}}]),e}();function C_e(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function S_e(e,t,n){return Math.max(t,Math.min(n,e))}function x_e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function O_e(e){return"t"===e.type[0]}function M_e(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach((function(e){return i.appendChild(e)})),i}function T_e(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=C_e(t.left,t.top)}function E_e(e,t){return Math.max(0,Math.min(t,e))}var P_e=function(){function e(t,n,i,r,o){var a=this;Object(m.a)(this,e),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new w.b,this.entered=new w.b,this.exited=new w.b,this.dropped=new w.b,this.sorted=new w.b,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=_.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new w.b,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),Object(o_e.a)(0,Xm.b).pipe(Object(Gm.a)(a._stopScrollTimers)).subscribe((function(){var e=a._scrollNode;1===a._verticalScrollDirection?A_e(e,-2):2===a._verticalScrollDirection&&A_e(e,2),1===a._horizontalScrollDirection?I_e(e,-2):2===a._horizontalScrollDirection&&I_e(e,2)}))},this.element=km(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new p_e(i,o)}return Object(g.a)(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var e=this,t=km(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(t){return t._startReceiving(e)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(e,t,n,i){var r;this.start(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),c=o[r];if(c===e&&(c=o[r+1]),a>-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var u=o[0].getRootElement();u.parentNode.insertBefore(s,u),o.unshift(e)}else km(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,o){this._reset(),null==o&&(o=n.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:o,container:this,previousContainer:n,isPointerOverContainer:i,distance:r})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach((function(e){return e._withDropContainer(t)})),this.isDragging()&&(n.filter((function(e){return e.isDragging()})).every((function(t){return-1===e.indexOf(t)}))?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=km(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(Object(u.a)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?j_e("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(t){return t.drag===e})):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&f_e(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=j_e(r,(function(t){return t.drag===e})),c=r[o],l=c.clientRect,u=s>o?1:-1,h=this._getItemOffsetPx(r[s].clientRect,l,u),d=this._getSiblingOffsetPx(s,r,u),f=r.slice();!function(e,t,n){var i=E_e(t,e.length-1),r=E_e(n,e.length-1);if(i!==r){for(var o=e[i],a=r<i?-1:1,s=i;s!==r;s+=a)e[s]=e[s+a];e[r]=o}}(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach((function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?h:d,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),d_e(t.clientRect,0,r)):(o.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),d_e(t.clientRect,r,0))}})),this._previousSwap.overlaps=h_e(l,t,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,o=0;if(this._parentPositions.positions.forEach((function(a,s){if(s!==n._document&&a.clientRect&&!i&&f_e(a.clientRect,.05,e,t)){var c=l(function(e,t,n,i){var r=D_e(t,i),o=R_e(t,n),a=0,s=0;if(r){var c=e.scrollTop;1===r?c>0&&(a=1):e.scrollHeight-c>e.clientHeight&&(a=2)}if(o){var l=e.scrollLeft;1===o?l>0&&(s=1):e.scrollWidth-l>e.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,e,t),2);o=c[1],((r=c[0])||o)&&(i=s)}})),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,c=a.height,u={width:s,height:c,top:0,right:s,bottom:c,left:0};r=D_e(u,t),o=R_e(u,e),i=window}!i||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var e=km(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:u_e(t)}})).sort((function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top}))}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=km(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(e){var t=e.getRootElement();t&&(t.style.transform="")})),this._siblings.forEach((function(t){return t._stopReceiving(e)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",c=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[c]:a+=r[s]-o.clientRect[c]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation;return j_e(this._itemPositions,(function(a,s,c){var l=a.drag,u=a.clientRect;return l===e?c.length<2:(!i||l!==r._previousSwap.drag||!r._previousSwap.overlaps||(o?i.x:i.y)!==r._previousSwap.delta)&&(o?t>=Math.floor(u.left)&&t<Math.floor(u.right):n>=Math.floor(u.top)&&n<Math.floor(u.bottom))}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return h_e(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find((function(i){return i._canReceive(e,t,n)}))}},{key:"_canReceive",value:function(e,t,n){if(!h_e(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var r=km(this.element);return i===r||r.contains(i)}},{key:"_startReceiving",value:function(e){var t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach((function(e){d_e(e.clientRect,n.top,n.left)})),e._itemPositions.forEach((function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})))}else e.isReceiving()&&e._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=qm(km(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}]),e}();function j_e(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function A_e(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function I_e(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function D_e(e,t){var n=e.top,i=e.bottom,r=.05*e.height;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function R_e(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var L_e=zm({passive:!1,capture:!0}),F_e=function(){var e=function(){function e(t,n){var i=this;Object(m.a)(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new w.b,this.pointerUp=new w.b,this.scroll=new w.b,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.size&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.size&&(e.preventDefault(),i.pointerMove.next(e))},this._document=n}return Object(g.a)(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,L_e)}))}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,L_e)}},{key:"startDragging",value:function(e,t){var n=this;if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:L_e}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:L_e}),this._ngZone.runOutsideAngular((function(){n._globalListeners.forEach((function(e,t){n._document.addEventListener(t,e.handler,e.options)}))}))}}},{key:"stopDragging",value:function(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(e){return this._activeDragInstances.has(e)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach((function(t){return e.removeDragItem(t)})),this._dropInstances.forEach((function(t){return e.removeDropContainer(t)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach((function(t,n){e._document.removeEventListener(n,t.handler,t.options)})),this._globalListeners.clear()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(Nl),we(bu))},e.\u0275prov=R({factory:function(){return new e(we(Nl),we(bu))},token:e,providedIn:"root"}),e}(),N_e={dragStartThreshold:5,pointerDirectionChangeThreshold:5},B_e=function(){var e=function(){function e(t,n,i,r){Object(m.a)(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return Object(g.a)(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N_e;return new k_e(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new P_e(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(we(bu),we(Nl),we(og),we(F_e))},e.\u0275prov=R({factory:function(){return new e(we(bu),we(Nl),we(og),we(F_e))},token:e,providedIn:"root"}),e}(),H_e=new he("CDK_DRAG_PARENT"),z_e=new he("CdkDropListGroup"),V_e=function(){var e=function(){function e(){Object(m.a)(this,e),this._items=new Set,this._disabled=!1}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[Vs([{provide:z_e,useExisting:e}])]}),e}(),q_e=new he("CDK_DRAG_CONFIG"),U_e=0,G_e=new he("CdkDropList"),W_e=function(){var e=function(){function e(t,n,i,r,o,a,s){var c=this;Object(m.a)(this,e),this.element=t,this._changeDetectorRef=i,this._dir=r,this._group=o,this._scrollDispatcher=a,this._destroyed=new w.b,this.connectedTo=[],this.id="cdk-drop-list-".concat(U_e++),this.enterPredicate=function(){return!0},this.dropped=new Yc,this.entered=new Yc,this.exited=new Yc,this.sorted=new Yc,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=function(e,t){return c.enterPredicate(e.data,t.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),o&&o._items.add(this)}return Object(g.a)(e,[{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(t){var n=this;this._dir&&this._dir.change.pipe(Object(Jm.a)(this._dir.value),Object(Gm.a)(this._destroyed)).subscribe((function(e){return t.withDirection(e)})),t.beforeStarted.subscribe((function(){var i=_m(n.connectedTo).map((function(t){return"string"==typeof t?e._dropLists.find((function(e){return e.id===t})):t}));if(n._group&&n._group._items.forEach((function(e){-1===i.indexOf(e)&&i.push(e)})),!n._scrollableParentsResolved&&n._scrollDispatcher){var r=n._scrollDispatcher.getAncestorScrollContainers(n.element).map((function(e){return e.getElementRef().nativeElement}));n._dropListRef.withScrollableParents(r),n._scrollableParentsResolved=!0}t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.sortingDisabled=vm(n.sortingDisabled),t.autoScrollDisabled=vm(n.autoScrollDisabled),t.connectedTo(i.filter((function(e){return e&&e!==n})).map((function(e){return e._dropListRef}))).withOrientation(n.orientation)}))}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe((function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()})),e.sorted.subscribe((function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),t._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.draggingDisabled,i=e.sortingDisabled,r=e.listAutoScrollDisabled,o=e.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(e){return e._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(B_e),_a(No),_a(pm,8),_a(z_e,12),_a(ig),_a(q_e,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(Os("id",t.id),os("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Vs([{provide:z_e,useValue:void 0},{provide:G_e,useExisting:e}])]}),e._dropLists=[],e}(),K_e=new he("CdkDragHandle"),X_e=function(){var e=function(){function e(t,n){Object(m.a)(this,e),this.element=t,this._stateChanges=new w.b,this._disabled=!1,this._parentDrag=n}return Object(g.a)(e,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=vm(e),this._stateChanges.next(this)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(H_e,12))},e.\u0275dir=Ke({type:e,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[Vs([{provide:K_e,useExisting:e}])]}),e}(),Y_e=new he("CdkDragPlaceholder"),Z_e=function(){var e=function e(t){Object(m.a)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[Vs([{provide:Y_e,useExisting:e}])]}),e}(),Q_e=new he("CdkDragPreview"),$_e=function(){var e=function(){function e(t){Object(m.a)(this,e),this.templateRef=t,this._matchSize=!1}return Object(g.a)(e,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=vm(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(vc))},e.\u0275dir=Ke({type:e,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"},features:[Vs([{provide:Q_e,useExisting:e}])]}),e}(),J_e=function(){var e=function(){function e(t,n,i,r,o,a,s,c,l,u){var h=this;Object(m.a)(this,e),this.element=t,this.dropContainer=n,this._document=i,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=l,this._selfHandle=u,this._destroyed=new w.b,this.started=new Yc,this.released=new Yc,this.ended=new Yc,this.entered=new Yc,this.exited=new Yc,this.dropped=new Yc,this.moved=new k.a((function(e){var t=h._dragRef.moved.pipe(Object(mf.a)((function(e){return{source:h,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}}))).subscribe(e);return function(){t.unsubscribe()}})),this._dragRef=c.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return Object(g.a)(e,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(Object(Wm.a)(1),Object(Gm.a)(this._destroyed)).subscribe((function(){e._updateRootElement(),e._handles.changes.pipe(Object(Jm.a)(e._handles),Object(jU.a)((function(t){var n=t.filter((function(t){return t._parentDrag===e})).map((function(e){return e.element}));e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)})),Object(tg.a)((function(e){return C.a.apply(void 0,Object(u.a)(e.map((function(e){return e._stateChanges.pipe(Object(Jm.a)(e))}))))})),Object(Gm.a)(e._destroyed)).subscribe((function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)})),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)}))}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?ewe(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?ewe(this.element.nativeElement,e):km(e):null}},{key:"_syncInputs",value:function(e){var t=this;e.beforeStarted.subscribe((function(){if(!e.isDragging()){var n=t._dir,i=t.dragStartDelay,r=t._placeholderTemplate?{template:t._placeholderTemplate.templateRef,context:t._placeholderTemplate.data,viewContainer:t._viewContainerRef}:null,o=t._previewTemplate?{template:t._previewTemplate.templateRef,context:t._previewTemplate.data,matchSize:t._previewTemplate.matchSize,viewContainer:t._viewContainerRef}:null;e.disabled=t.disabled,e.lockAxis=t.lockAxis,e.dragStartDelay="object"==typeof i&&i?i:bm(i),e.constrainPosition=t.constrainPosition,e.previewClass=t.previewClass,e.withBoundaryElement(t._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o),n&&e.withDirection(n.value)}}))}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe((function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()})),e.released.subscribe((function(){t.released.emit({source:t})})),e.ended.subscribe((function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:e.container.data,item:t})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=a&&a,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=vm(e),this._dragRef.disabled=this._disabled}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_a(Ks),_a(G_e,12),_a(bu),_a(Nl),_a(yc),_a(q_e,8),_a(pm,8),_a(B_e),_a(No),_a(K_e,10))},e.\u0275dir=Ke({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;1&e&&(ul(n,Q_e,!0),ul(n,Y_e,!0),ul(n,K_e,!0)),2&e&&(al(i=fl())&&(t._previewTemplate=i.first),al(i=fl())&&(t._placeholderTemplate=i.first),al(i=fl())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&os("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Vs([{provide:H_e,useExisting:e}]),ct]}),e}();function ewe(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var twe,nwe,iwe,rwe=function(){var e=function e(){Object(m.a)(this,e)};return e.\u0275mod=Ge({type:e}),e.\u0275inj=F({factory:function(t){return new(t||e)},providers:[B_e],imports:[ag]}),e}(),owe=function(){function e(e){e.events.subscribe((function(e){e instanceof FU&&(gtag("set","page",e.url),gtag("send","pageview"))}))}return e.\u0275prov=R({token:e,factory:e.\u0275fac=function(t){return new(t||e)(we(nK))}}),e}(),awe=function(){function e(e){this._googleAnalyticsService=e}return e.\u0275mod=Ge({type:e,bootstrap:[Cge]}),e.\u0275inj=F({factory:function(t){return new(t||e)(we(owe))},providers:[UK,{provide:ti,useClass:bbe},Hq,xce,GK,z4,qK,rne,D$,x6,a6,jK,VK,wae,jae,iJ,t7,J8,O6,c6,Ege,tse,j7,U9,u6,zK,lce,Yee,I9,Dye,$2,Iue,xue,Yue,vhe,tne,Ade,jde,Pde,A5,J2,I2,I$,c1,Dfe,w5,Jte,L5,nne,T5,J9,yce,R9,ble,vle,nee,v6,b6,I4,zZ,one,Gye,Y6,Dte,lme,Aee,owe,A4,fge,gge,sf,Kte],imports:[[rf,Mv,bge,hm,dm,C_,Kg,Tge,Zq.forRoot(),uU,fU,_U,Iye,ese,hae,rwe,Cce,uye,Hme.forRoot()]]}),e}();twe=[Rh,Lh,Nh,Hh,Zh,Yh,Uh,Gh,Wh,Kh,Xh,cK,rK,oK,sK,qW,Lp,Zf,ep,wf,zf,Wf,bf,Yf,Jf,Uf,Mf,Tf,Qp,im,om,sm,$p,tm,Rp,Ap,Tp,Bp,zp,Xp,qp,Gp,Ug,Ag,mg,Ig,gg,vg,yg,Cg,Lg,wg,kg,Dg,Eg,Rg,jg,Hg,zg,Vg,Wg,Fg,qg,Q9,_oe,Xq,Yq,yU,bU,rg,mm,Oye,Mye,xye,Eye,jye,Tye,Qae,Jae,cae,uae,oae,W_e,V_e,J_e,X_e,$_e,Z_e,Gte,h$,d$,AZ,OZ,LZ,CZ,wJ,kJ,CJ,uJ,hJ,dJ,fJ,pJ,gJ,vJ,bJ,mJ,yJ,_J,xoe,Soe,P$,UJ,a0,YJ,ZJ,QJ,JJ,t0,u0,h0,y0,f0,f1,v1,E1,w1,m1,I1,y1,j1,C1,M1,x1,R1,B1,F1,z1,q1,WZ,rQ,oQ,aQ,sQ,Mae,sre,cre,J$,Q0,J0,t4,J5,o4,n4,aY,i4,r4,wY,h4,u4,B5,qle,Nle,Ble,Hle,Vle,zle,Rle,uie,vie,H0,B0,DY,TY,J1,e2,$ne,eie,Yne,Vne,Zne,tie,iie,Wne,Xne,l3,f3,Bbe,xbe,Obe,Tbe,Ebe,Mbe,KQ,IQ,FQ,t$,r$,jQ,nye,eye,iye,cye,aye,Jbe,oye,xte,ege,Xme,nge,Yme,Wme,Kme,Bme,Cge,ace,Zce,bce,kae,Aae,dle,ate,tte,Xee,gle,Pae,Z8,$8,x4,E4,yae,Doe,K6,W6,S6,R6,m8,d6,l8,e8,n8,h8,f8,Dae,Wle,Xle,Kle,fre,Tce,Bae,zae,Wde,Nee,mre,_re,wre,bre,yre,pre,vre,gre,Lde,w6,j6,c8,Nye,rue,Aue,Sue,Bye,Hye,Hue,zue,Xue,zye,nhe,dhe,mhe,ghe,She,xhe,jhe,Nhe,Bhe,sde,pde,mde,kde,Vye,Ede,mfe,Ife,K4,qye,zfe,Qfe,tpe,Yle,a8,$6,Zle,cpe,ppe,kpe,Epe,Rpe,Upe,Gpe,Wpe,Xpe,Kpe,Qle,sue,ome,aue,Iae,Dde,L4,A$,ame,kge,Uee,sme,N6,H6,sse,ute,Lse,m$,X6,q6,G6,F4,X4,Y4,_te,j4,M4,C4,o1,s1,k2,v2,A2,Q2,G2,z3,u5,n5,_5,M5,j5,R5,_4,w4,k4,Wye,Kye,e_e,r_e,S3,$ce,r8,p8,jte,jee,cme,g8,v8,Ite,z6,bme,Jce,Moe,yme,dge,hge,cge,N4,D4,dse,kse,R4,mge,$ie,H4,B4,Zte,ane,hne,m4,N5],nwe=[td,od,nd,ud,yd,pd,md,rd,gd,ad,cd,ld,dd,V4,Zpe,Ype,yie,Toe,Uye],(iwe=dle.\u0275cmp).directiveDefs=function(){return twe.map(Ve)},iwe.pipeDefs=function(){return nwe.map(qe)},function(){if(di)throw new Error("Cannot enable prod mode after platform setup.");hi=!1}(),tf().bootstrapModule(awe).then((function(e){var t,n=e.injector.get(ou);t=new uf(n.components[0]),"undefined"!=typeof COMPILED&&COMPILED||((ie.ng=ie.ng||{}).profiler=t)})).catch((function(e){return console.log(e)}))},zahk:function(e,t,n){e.exports=n("T8ZO")},zuyY:function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},zx2A:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return d}));var i=n("1OyB"),r=n("vuIU"),o=n("Ji7U"),a=n("LK+K"),s=n("7o/Q"),c=n("HDdC"),l=n("SeVD"),u=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this)).parent=e,r}return Object(r.a)(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(s.a),h=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(s.a);function d(e,t){if(!t.closed)return e instanceof c.a?e.subscribe(t):Object(l.a)(e)(t)}}},[[0,0]]]);