mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-18 01:34:50 +02:00
1 line
3.1 MiB
1 line
3.1 MiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+/L5":function(e,t,n){var r=n("t1UP").isCustomProperty,i=n("vd7W").TYPE,o=n("4njK").mode,a=i.Ident,s=i.Hash,c=i.Colon,l=i.Semicolon,u=i.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,i=p.call(this),o=r(i),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:i,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 r=n("qCKp"),i=n("odkN");r.Observable.prototype.let=i.letProto,r.Observable.prototype.letBind=i.letProto},"+EXs":function(e,t,n){"use strict";function r(e){return(r="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 i=n("JL25");function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?Object(i.a)(e):t}},"+Kd2":function(e,t,n){var r=n("vd7W").TYPE,i=n("4njK").mode,o=r.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,i.exclamationMarkOrSemicolon,!1))),e}},"+Wds":function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},"+XMV":function(e,t,n){"use strict";e.exports=n("GOzd")()?String.prototype.contains:n("+Wds")},"+oeQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("H+DX");r.Observable.prototype.observeOn=i.observeOn},"+psR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("16Oq");r.Observable.prototype.retry=i.retry},"+qxJ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("GsYY");r.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},"+v8i":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.concat=r.concat},"+wdc":function(e,t,n){"use strict";var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,h=null,d=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(d,0))},i=function(e,t){h=setTimeout(e,t)},o=function(){clearTimeout(h)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,b=-1,y=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();_=e+y;try{v(!0,e)?k.postMessage(null):(g=!1,v=null)}catch(n){throw k.postMessage(null),n}}else g=!1},r=function(e){v=e,g||(g=!0,k.postMessage(null))},i=function(e,n){b=f(function(){e(t.unstable_now())},n)},o=function(){p(b),b=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<O(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>O(a,n))void 0!==c&&0>O(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>O(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],T=[],E=1,P=null,j=3,I=!1,A=!1,D=!1;function R(e){for(var t=S(T);null!==t;){if(null===t.callback)x(T);else{if(!(t.startTime<=e))break;x(T),t.sortIndex=t.expirationTime,C(M,t)}t=S(T)}}function L(e){if(D=!1,R(e),!A)if(null!==S(M))A=!0,r(N);else{var t=S(T);null!==t&&i(L,t.startTime-e)}}function N(e,n){A=!1,D&&(D=!1,o()),I=!0;var r=j;try{for(R(n),P=S(M);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"==typeof a){P.callback=null,j=P.priorityLevel;var s=a(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?P.callback=s:P===S(M)&&x(M),R(n)}else x(M);P=S(M)}if(null!==P)var c=!0;else{var l=S(T);null!==l&&i(L,l.startTime-n),c=!1}return c}finally{P=null,j=r,I=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||I||(A=!0,r(N))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return S(M)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:E++,callback:n,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(e.sortIndex=a,C(T,e),null===S(M)&&e===S(T)&&(D?o():D=!0,i(L,a-s))):(e.sortIndex=c,C(M,e),A||I||(A=!0,r(N))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},"/+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 r(i){if(Array.isArray(i.match)){for(var o=0;o<i.match.length;o++)if(r(i.match[o]))return t(i.syntax)&&n.unshift(i.syntax),!0}else if(i.node===e)return n=t(i.syntax)?[i.syntax]:[],!0;return!1}(this.matched),n}function r(e,t,r){var i=n.call(e,t);return null!==i&&i.some(r)}e.exports={getTrace:n,isType:function(e,t){return r(this,e,function(e){return"Type"===e.type&&e.name===t})},isProperty:function(e,t){return r(this,e,function(e){return"Property"===e.type&&e.name===t})},isKeyword:function(e){return r(this,e,function(e){return"Keyword"===e.type})}}},"/1Vs":function(e,t,n){"use strict";e.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},"/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)}}},"/E8u":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("KUzl"),i=n("cRt0"),o=n("+EXs");function a(e){var t=Object(i.a)();return function(){var n,i=Object(r.a)(e);if(t){var a=Object(r.a)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Object(o.a)(this,n)}}},"/POA":function(e,t,n){self,e.exports=function(){"use strict";var e={4567:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(9042),a=n(6114),s=n(6193),c=n(3656),l=n(844),u=n(5596),h=n(9631),d=function(e){function t(t,n){var r=e.call(this)||this;r._terminal=t,r._renderService=n,r._liveRegionLineCount=0,r._charsToConsume=[],r._charsToAnnounce="",r._accessibilityTreeRoot=document.createElement("div"),r._accessibilityTreeRoot.classList.add("xterm-accessibility"),r._rowContainer=document.createElement("div"),r._rowContainer.setAttribute("role","list"),r._rowContainer.classList.add("xterm-accessibility-tree"),r._rowElements=[];for(var i=0;i<r._terminal.rows;i++)r._rowElements[i]=r._createAccessibilityTreeNode(),r._rowContainer.appendChild(r._rowElements[i]);if(r._topBoundaryFocusListener=function(e){return r._onBoundaryFocus(e,0)},r._bottomBoundaryFocusListener=function(e){return r._onBoundaryFocus(e,1)},r._rowElements[0].addEventListener("focus",r._topBoundaryFocusListener),r._rowElements[r._rowElements.length-1].addEventListener("focus",r._bottomBoundaryFocusListener),r._refreshRowsDimensions(),r._accessibilityTreeRoot.appendChild(r._rowContainer),r._renderRowsDebouncer=new s.RenderDebouncer(r._renderRows.bind(r)),r._refreshRows(),r._liveRegion=document.createElement("div"),r._liveRegion.classList.add("live-region"),r._liveRegion.setAttribute("aria-live","assertive"),r._accessibilityTreeRoot.appendChild(r._liveRegion),!r._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return r._terminal.element.insertAdjacentElement("afterbegin",r._accessibilityTreeRoot),r.register(r._renderRowsDebouncer),r.register(r._terminal.onResize(function(e){return r._onResize(e.rows)})),r.register(r._terminal.onRender(function(e){return r._refreshRows(e.start,e.end)})),r.register(r._terminal.onScroll(function(){return r._refreshRows()})),r.register(r._terminal.onA11yChar(function(e){return r._onChar(e)})),r.register(r._terminal.onLineFeed(function(){return r._onChar("\n")})),r.register(r._terminal.onA11yTab(function(e){return r._onTab(e)})),r.register(r._terminal.onKey(function(e){return r._onKey(e.key)})),r.register(r._terminal.onBlur(function(){return r._clearLiveRegion()})),r.register(r._renderService.onDimensionsChange(function(){return r._refreshRowsDimensions()})),r._screenDprMonitor=new u.ScreenDprMonitor,r.register(r._screenDprMonitor),r._screenDprMonitor.setListener(function(){return r._refreshRowsDimensions()}),r.register(c.addDisposableDomListener(window,"resize",function(){return r._refreshRowsDimensions()})),r}return i(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,r=this._rowElements[0===t?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===r){var i,o;if(0===t?(i=n,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(i=this._rowElements.shift(),o=n,this._rowContainer.removeChild(i)),i.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,r=n.lines.length.toString(),i=e;i<=t;i++){var o=n.translateBufferLineToString(n.ydisp+i,!0),a=(n.ydisp+i+1).toString(),s=this._rowElements[i];s&&(0===o.length?s.innerText="\xa0":s.textContent=o,s.setAttribute("aria-posinset",a),s.setAttribute("aria-setsize",r))}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},3614:function(e,t){function n(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function i(e,t,i){e=r(e=n(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function o(e,t,n){var r=n.getBoundingClientRect(),i=e.clientX-r.left-10,o=e.clientY-r.top-10;t.style.width="20px",t.style.height="20px",t.style.left=i+"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=n,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&&i(e.clipboardData.getData("text/plain"),t,n)},t.paste=i,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,n,r,i){o(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}},4774:function(e,t){var n,r,i,o;function a(e){var t=e.toString(16);return t.length<2?"0"+t:t}function s(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,r){return void 0!==r?"#"+a(e)+a(t)+a(n)+a(r):"#"+a(e)+a(t)+a(n)},e.toRgba=function(e,t,n,r){return void 0===r&&(r=255),(e<<24|t<<16|n<<8|r)>>>0}}(n=t.channels||(t.channels={})),(r=t.color||(t.color={})).blend=function(e,t){var r=(255&t.rgba)/255;if(1===r)return{css:t.css,rgba:t.rgba};var i=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)*r),u=s+Math.round((i-s)*r),h=c+Math.round((o-c)*r);return{css:n.toCss(l,u,h),rgba:n.toRgba(l,u,h)}},r.isOpaque=function(e){return 255==(255&e.rgba)},r.ensureContrastRatio=function(e,t,n){var r=o.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return o.toColor(r>>24&255,r>>16&255,r>>8&255)},r.opaque=function(e){var t=(255|e.rgba)>>>0,r=o.toChannels(t);return{css:n.toCss(r[0],r[1],r[2]),rgba:t}},r.opacity=function(e,t){var r=Math.round(255*t),i=o.toChannels(e.rgba),a=i[0],s=i[1],c=i[2];return{css:n.toCss(a,s,c,r),rgba:n.toRgba(a,s,c,r)}},(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 r=e/255,i=t/255,o=n/255;return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.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}(i=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var r=e>>24&255,o=e>>16&255,a=e>>8&255,c=t>>24&255,l=t>>16&255,u=t>>8&255,h=s(i.relativeLuminance2(c,u,l),i.relativeLuminance2(r,o,a));h<n&&(c>0||l>0||u>0);)c-=Math.max(0,Math.ceil(.1*c)),l-=Math.max(0,Math.ceil(.1*l)),u-=Math.max(0,Math.ceil(.1*u)),h=s(i.relativeLuminance2(c,u,l),i.relativeLuminance2(r,o,a));return(c<<24|l<<16|u<<8|255)>>>0}function r(e,t,n){for(var r=e>>24&255,o=e>>16&255,a=e>>8&255,c=t>>24&255,l=t>>16&255,u=t>>8&255,h=s(i.relativeLuminance2(c,u,l),i.relativeLuminance2(r,o,a));h<n&&(c<255||l<255||u<255);)c=Math.min(255,c+Math.ceil(.1*(255-c))),l=Math.min(255,l+Math.ceil(.1*(255-l))),u=Math.min(255,u+Math.ceil(.1*(255-u))),h=s(i.relativeLuminance2(c,u,l),i.relativeLuminance2(r,o,a));return(c<<24|l<<16|u<<8|255)>>>0}e.ensureContrastRatio=function(e,n,o){var a=i.relativeLuminance(e>>8),c=i.relativeLuminance(n>>8);if(s(a,c)<o)return c<a?t(e,n,o):r(e,n,o)},e.reduceLuminance=t,e.increaseLuminance=r,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,r){return{css:n.toCss(e,t,r),rgba:n.toRgba(e,t,r)}}}(o=t.rgba||(t.rgba={})),t.toPaddedHex=a,t.contrastRatio=s},7239:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var n=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=n},5680:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorManager=t.DEFAULT_ANSI_COLORS=void 0;var r=n(4774),i=n(7239),o=r.css.toColor("#ffffff"),a=r.css.toColor("#000000"),s=r.css.toColor("#ffffff"),c=r.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[r.css.toColor("#2e3436"),r.css.toColor("#cc0000"),r.css.toColor("#4e9a06"),r.css.toColor("#c4a000"),r.css.toColor("#3465a4"),r.css.toColor("#75507b"),r.css.toColor("#06989a"),r.css.toColor("#d3d7cf"),r.css.toColor("#555753"),r.css.toColor("#ef2929"),r.css.toColor("#8ae234"),r.css.toColor("#fce94f"),r.css.toColor("#729fcf"),r.css.toColor("#ad7fa8"),r.css.toColor("#34e2e2"),r.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],n=0;n<216;n++){var i=t[n/36%6|0],o=t[n/6%6|0],a=t[n%6];e.push({css:r.channels.toCss(i,o,a),rgba:r.channels.toRgba(i,o,a)})}for(n=0;n<24;n++){var s=8+10*n;e.push({css:r.channels.toCss(s,s,s),rgba:r.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 i.ColorContrastCache,this.colors={foreground:o,background:a,cursor:s,cursorAccent:c,selectionTransparent:l,selectionOpaque:r.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=r.color.blend(this.colors.background,this.colors.selectionTransparent),r.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=r.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 i=this._ctx.getImageData(0,0,1,1).data;if(255!==i[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:r.channels.toRgba(a,s,c,l),css:e}}return{css:this._ctx.fillStyle,rgba:r.channels.toRgba(i[0],i[1],i[2],i[3])}},e}();t.ColorManager=u},9631:function(e,t){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 r=0,i=t;r<i.length;r++){var o=i[r];null===(e=null==o?void 0:o.parentElement)||void 0===e||e.removeChild(o)}}},3656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,r){e.addEventListener(t,n,r);var i=!1;return{dispose:function(){i||(i=!0,e.removeEventListener(t,n,r))}}}},3551:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var o=n(8460),a=n(2585),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 r=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 r._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,r=Math.ceil(2e3/this._bufferService.cols),i=this._bufferService.buffer.iterator(!1,t,n,r,r);i.hasNext();)for(var o=i.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 r={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(r),r.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 r,i=this,o=new RegExp(n.regex.source,(n.regex.flags||"")+"g"),a=-1,s=function(){var s=r["number"!=typeof n.matchIndex?0:n.matchIndex];if(!s)return c._logService.debug("match found without corresponding matchIndex",r,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){i._rowsTimeoutId||e&&i._addLink(l[1],l[0]-i._bufferService.buffer.ydisp,s,n,d)}):c._addLink(l[1],l[0]-c._bufferService.buffer.ydisp,s,n,d)},c=this;null!==(r=o.exec(t))&&"break"!==s(););},e.prototype._addLink=function(e,t,n,r,i){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(r.handler)return r.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,i)),o._element.classList.add("xterm-cursor-pointer")},function(e){o._onLinkTooltip.fire(o._createLinkHoverEvent(s,l,u,h,i)),r.hoverTooltipCallback&&r.hoverTooltipCallback(e,n,{start:{x:s,y:l},end:{x:u,y:h}})},function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(s,l,u,h,i)),o._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()},function(e){return!r.willLinkActivate||r.willLinkActivate(e,n)}))}},e.prototype._createLinkHoverEvent=function(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}},e._timeBeforeLatency=200,e=r([i(0,a.IBufferService),i(1,a.ILogService),i(2,a.IUnicodeService)],e)}();t.Linkifier=s;var c=function(e,t,n,r,i,o,a,s,c){this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.clickCallback=i,this.hoverCallback=o,this.tooltipCallback=a,this.leaveCallback=s,this.willLinkActivate=c};t.MouseZone=c},6465:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var s=n(2585),c=n(8460),l=n(844),u=n(3656),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 i(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 r=this;this._element=e,this._mouseService=t,this._renderService=n,this.register(u.addDisposableDomListener(this._element,"mouseleave",function(){r._isMouseOut=!0,r._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(),r=0;r<n.length;r++){var i=n[r];if(i.classList.contains("xterm"))break;if(i.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,r=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 i=!1;this._linkProviders.forEach(function(n,o){var a;t?(null===(a=r._activeProviderReplies)||void 0===a?void 0:a.get(o))&&(i=r._checkLinkProviderResult(o,e,i)):n.provideLinks(e.y,function(t){var n,a;if(!r._isMouseOut){var s=null==t?void 0:t.map(function(e){return{link:e}});null===(n=r._activeProviderReplies)||void 0===n||n.set(o,s),i=r._checkLinkProviderResult(o,e,i),(null===(a=r._activeProviderReplies)||void 0===a?void 0:a.size)===r._linkProviders.length&&r._removeIntersectingLinks(e.y,r._activeProviderReplies)}})})},t.prototype._removeIntersectingLinks=function(e,t){for(var n=new Set,r=0;r<t.size;r++){var i=t.get(r);if(i)for(var o=0;o<i.length;o++)for(var a=i[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)){i.splice(o--,1);break}n.add(c)}}},t.prototype._checkLinkProviderResult=function(e,t,n){var r,i=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 i._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===(r=this._activeProviderReplies.get(s))||void 0===r?void 0:r.find(function(e){return i._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,r;(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===(r=t._element)||void 0===r||r.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 r,i,o;(null===(r=t._currentLink)||void 0===r?void 0:r.state)&&(null===(o=null===(i=t._currentLink)||void 0===i?void 0:i.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 r;(null===(r=this._currentLink)||void 0===r?void 0:r.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,r=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-r-1,n.end.x,n.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)},t.prototype._linkLeave=function(e,t,n){var r;(null===(r=this._currentLink)||void 0===r?void 0:r.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,r=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||r&&e.range.start.x<=t.x||n&&r)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,n){var r=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}},o([a(0,s.IBufferService)],t)}(l.Disposable);t.Linkifier2=h},9042:function(e,t){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"},6954:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var s=n(844),c=n(3656),l=n(4725),u=n(2585),h=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s._element=t,s._screenElement=n,s._bufferService=r,s._mouseService=i,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 i(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 r=this._zones[n];(r.y1>e&&r.y1<=t+1||r.y2>e&&r.y2<=t+1||r.y1<e&&r.y2>t+1)&&(this._currentZone&&this._currentZone===r&&(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],r=t[1],i=0;i<this._zones.length;i++){var o=this._zones[i];if(o.y1===o.y2){if(r===o.y1&&n>=o.x1&&n<o.x2)return o}else if(r===o.y1&&n>=o.x1||r===o.y2&&n<o.x2||r>o.y1&&r<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},6193:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var n=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 r=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 r._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=n},5596:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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 i(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(844).Disposable);t.ScreenDprMonitor=o},3236:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(2950),a=n(1680),s=n(3614),c=n(2584),l=n(5435),u=n(3525),h=n(3551),d=n(9312),f=n(6114),p=n(3656),m=n(9042),g=n(357),v=n(6954),b=n(4567),y=n(1296),_=n(7399),w=n(8460),k=n(8437),C=n(5680),S=n(3230),x=n(4725),O=n(428),M=n(8934),T=n(6465),E=n(5114),P=n(8969),j=n(4774),I="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(n._inputHandler.onAnsiColorChange(function(e){return n._changeAnsiColor(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 i(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._changeAnsiColor=function(e){var t,n,r=this;this._colorManager&&(e.colors.forEach(function(e){var t=j.rgba.toColor(e.red,e.green,e.blue);r._colorManager.colors.ansi[e.colorIndex]=t}),null===(t=this._renderService)||void 0===t||t.setColors(this._colorManager.colors),null===(n=this.viewport)||void 0===n||n.onThemeChange(this._colorManager.colors))},t.prototype.dispose=function(){var t,n,r;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._renderService)||void 0===t||t.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(r=null===(n=this.element)||void 0===n?void 0:n.parentNode)||void 0===r||r.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,r,i,o;switch(e.prototype._updateOptions.call(this,t),t){case"fontFamily":case"fontSize":null===(n=this._renderService)||void 0===n||n.clear(),null===(r=this._charSizeService)||void 0===r||r.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===(i=this.viewport)||void 0===i||i.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.");e.isConnected||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"),this.element.setAttribute("role","document"),e.appendChild(this.element);var n=I.createDocumentFragment();this._viewportElement=I.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),n.appendChild(this._viewportElement),this._viewportScrollArea=I.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=I.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=I.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),n.appendChild(this.screenElement),this.textarea=I.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 r=this._instantiationService.createInstance(E.CoreBrowserService,this.textarea);this._instantiationService.setService(x.ICoreBrowserService,r),this._charSizeService=this._instantiationService.createInstance(O.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(x.ICharSizeService,this._charSizeService),this._compositionView=I.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(I,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(e){return t._colorManager.onOptionsChange(e)})),this._colorManager.setTheme(this._theme);var i=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(S.RenderService,i,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,r;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===(r=this.viewport)||void 0===r||r.onThemeChange(this._colorManager.colors)},t.prototype.bindMouse=function(){var e=this,t=this,n=this.element;function r(e){var n,r,i=t._mouseService.getRawByteCoords(e,t.screenElement,t.cols,t.rows);if(!i)return!1;switch(e.overrideType||e.type){case"mousemove":r=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":r=0,n=e.button<3?e.button:3;break;case"mousedown":r=1,n=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(r=e.deltaY<0?0:1),n=4;break;default:return!1}return!(void 0===r||void 0===n||n>4)&&t._coreMouseService.triggerMouseEvent({col:i.x-33,row:i.y-33,button:n,action:r,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var i={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o=function(t){return r(t),t.buttons||(e._document.removeEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.removeEventListener("mousemove",i.mousedrag)),e.cancel(t)},a=function(t){return r(t),t.preventDefault(),e.cancel(t)},s=function(e){e.buttons&&r(e)},l=function(e){e.buttons||r(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?i.mousemove||(n.addEventListener("mousemove",l),i.mousemove=l):(n.removeEventListener("mousemove",i.mousemove),i.mousemove=null),16&t?i.wheel||(n.addEventListener("wheel",a,{passive:!1}),i.wheel=a):(n.removeEventListener("wheel",i.wheel),i.wheel=null),2&t?i.mouseup||(i.mouseup=o):(e._document.removeEventListener("mouseup",i.mouseup),i.mouseup=null),4&t?i.mousedrag||(i.mousedrag=s):(e._document.removeEventListener("mousemove",i.mousedrag),i.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 r(t),i.mouseup&&e._document.addEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.addEventListener("mousemove",i.mousedrag),e.cancel(t)})),this.register(p.addDisposableDomListener(n,"wheel",function(t){if(i.wheel);else if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var r=c.C0.ESC+(e._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",a=0;a<Math.abs(n);a++)o+=r;e._coreService.triggerDataEvent(o,!0)}},{passive:!0})),this.register(p.addDisposableDomListener(n,"wheel",function(t){if(!i.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 r=this.linkifier.registerLinkMatcher(e,t,n);return this.refresh(0,this.rows-1),r},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,r;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(r=this.viewport)||void 0===r||r.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 r=this._customKeyEventHandler;this._setup(),e.prototype.reset.call(this),null===(t=this._selectionService)||void 0===t||t.reset(),this._customKeyEventHandler=r,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 r=this._renderService.dimensions.scaledCellWidth.toFixed(0),i=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(c.C0.ESC+"[6;"+i+";"+r+"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},1680:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var s=n(844),c=n(3656),l=n(4725),u=n(2585),h=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l._scrollLines=t,l._viewportElement=n,l._scrollArea=r,l._bufferService=i,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 i(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},2950:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=n(4725),a=n(2585),s=function(){function e(e,t,n,r,i,o){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=r,this._charSizeService=i,this._coreService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}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._dataAlreadySent="",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,n.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start)).length>0&&t._coreService.triggerDataEvent(e,!0))},0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!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._dataAlreadySent=n,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),r=this._bufferService.buffer.y*n,i=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=r+"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=i+"px",this._textarea.style.top=r+"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)}},r([i(2,a.IBufferService),i(3,a.IOptionsService),i(4,o.ICharSizeService),i(5,a.ICoreService)],e)}();t.CompositionHelper=s},9806:function(e,t){function n(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=n,t.getCoords=function(e,t,r,i,o,a,s,c){if(o){var l=n(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),r+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),i),l}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},9504:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var r=n(2584);function i(e,t,n,r){var i=e-o(n,e),s=t-o(n,t);return l(Math.abs(i-s)-function(e,t,n){for(var r=0,i=e-o(n,e),s=t-o(n,t),c=0;c<Math.abs(i-s);c++){var l="A"===a(e,t)?-1:1,u=n.buffer.lines.get(i+l*c);u&&u.isWrapped&&r++}return r}(e,t,n),c(a(e,t),r))}function o(e,t){for(var n=0,r=e.buffer.lines.get(t),i=r&&r.isWrapped;i&&t>=0&&t<e.rows;)n++,i=(r=e.buffer.lines.get(--t))&&r.isWrapped;return n}function a(e,t){return e>t?"A":"B"}function s(e,t,n,r,i,o){for(var a=e,s=t,c="";a!==n||s!==r;)a+=i?1:-1,i&&a>o.cols-1?(c+=o.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!i&&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 r.C0.ESC+(t?"O":"[")+e}function l(e,t){e=Math.floor(e);for(var n="",r=0;r<e;r++)n+=t;return n}t.moveToCellSequence=function(e,t,n,r){var a,u=n.buffer.x,h=n.buffer.y;if(!n.buffer.hasScrollback)return function(e,t,n,r,a,u){return 0===i(t,r,a,u).length?"":l(s(e,t,e,t-o(a,t),!1,a).length,c("D",u))}(u,h,0,t,n,r)+i(h,t,n,r)+function(e,t,n,r,a,u){var h;h=i(t,r,a,u).length>0?r-o(a,r):t;var d=r,f=function(e,t,n,r,a,s){var c;return c=i(n,r,a,s).length>0?r-o(a,r):t,e<n&&c<=r||e>=n&&c<r?"C":"D"}(e,t,n,r,a,u);return l(s(e,h,n,d,"C"===f,a).length,c(f,u))}(u,h,e,t,n,r);if(h===t)return a=u>e?"D":"C",l(Math.abs(u-e),c(a,r));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,r))}},244:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var n=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,r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=function(){return n._wrappedAddonDispose(r)},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=n},4389:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var r=n(511),i=n(3236),o=n(9042),a=n(8460),s=n(244),c=function(){function e(e){this._core=new i.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(),this._buffer||(this._buffer=new u(this._core)),this._buffer},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,r=e;n<r.length;n++){var i=r[n];if(i===1/0||isNaN(i)||i%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 r.CellData},e}(),u=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new a.EventEmitter,this._normal=new l(this._core.buffers.normal,"normal"),this._alternate=new l(this._core.buffers.alt,"alternate"),this._core.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._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.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._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.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 r.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}()},1546:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var r=n(643),i=n(8803),o=n(1420),a=n(3734),s=n(1752),c=n(4774),l=n(9631),u=function(){function e(e,t,n,r,i,o,a,s){this._container=e,this._alpha=r,this._colors=i,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,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,r*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,r){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,r*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,r){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,r*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,r*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()?i.INVERTED_DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?i.INVERTED_DEFAULT_COLOR:e.getFgColor()):(a=e.isBgDefault()?r.DEFAULT_COLOR:e.getBgColor(),o=e.isFgDefault()?r.DEFAULT_COLOR:e.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||r.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||r.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,r){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(r)this._ctx.fillStyle=r.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(r)this._ctx.fillStyle=r.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=i.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(),r=e.getFgColorMode(),i=e.getBgColor(),o=e.getBgColorMode(),a=!!e.isInverse(),s=!!e.isInverse();if(a){var l=n;n=i,i=l;var u=r;r=o,o=u}var h=this._resolveBackgroundRgba(o,i,a),d=this._resolveForegroundRgba(r,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,r){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&r&&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},5879:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(3734),a=n(643),s=n(511),c=function(e){function t(t,n,r){var i=e.call(this)||this;return i.content=0,i.combinedData="",i.fg=t.fg,i.bg=t.bg,i.combinedData=n,i._width=r,i}return i(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=[],r=t.translateToString(!0),i=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-i>1)for(var h=this._getJoinedRanges(r,s,o,t,i),d=0;d<h.length;d++)n.push(h[d]);i=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-i>1)for(h=this._getJoinedRanges(r,s,o,t,i),d=0;d<h.length;d++)n.push(h[d]);return n},e.prototype._getJoinedRanges=function(t,n,r,i,o){for(var a=t.substring(n,r),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,i,o),s},e.prototype._stringRangesToCellRanges=function(e,t,n){var r=0,i=!1,o=0,s=e[r];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(!i&&s[0]<=o&&(s[0]=c,i=!0),s[1]<=o){if(s[1]=c,!(s=e[++r]))break;s[0]<=o?(s[0]=c,i=!0):i=!1}o+=u}}s&&(s[1]=this._bufferService.cols)}},e._mergeRanges=function(e,t){for(var n=!1,r=0;r<e.length;r++){var i=e[r];if(n){if(t[1]<=i[0])return e[r-1][1]=t[1],e;if(t[1]<=i[1])return e[r-1][1]=Math.max(t[1],i[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=i[0])return e.splice(r,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),n=!0)}}return n?e[e.length-1][1]=t[1]:e.push(t),e},e}();t.CharacterJoinerRegistry=l},2512:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(1546),a=n(511),s=600,c=function(e){function t(t,n,r,i,o,s,c,l,u){var h=e.call(this,t,"cursor",n,!0,r,i,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 i(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 l(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 r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(r,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.options.cursorStyle;return i&&"block"!==i?this._cursorRenderers[i](r,n,this._cell):this._renderBlurCursor(r,n,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=n,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&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"](r,n,this._cell),this._ctx.restore(),this._state.x=r,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=c;var l=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=s),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(t._animationTimeRestarted){var e=s-(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=s-(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})},s)},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}()},3700:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var n=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 r=this.cache[n].length;r<t;r++)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=n},5098:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(1546),a=n(8803),s=n(2040),c=function(e){function t(t,n,r,i,o,a,s,c){var l=e.call(this,t,"link",n,!0,r,i,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 i(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},3525:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var s=n(9596),c=n(4149),l=n(2512),u=n(5098),h=n(5879),d=n(844),f=n(4725),p=n(2585),m=n(1420),g=n(8460),v=1,b=function(e){function t(t,n,r,i,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,r,i,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 i(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 r=n[t];r.setColors(this._colors),r.reset()}},t.prototype.onResize=function(e,t){this._updateDimensions();for(var n=0,r=this._renderLayers;n<r.length;n++)r[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(r){return r.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,r=this._renderLayers;n<r.length;n++)r[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},1752:function(e,t){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}},4149:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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,r,i,o,a){var s=e.call(this,t,"selection",n,!0,r,i,o,a)||this;return s._clearState(),s}return i(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 r=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(r,0),a=Math.min(i,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=r===o?e[0]:0,o,(o===i?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,i===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,r){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||n!==this._state.columnSelectMode||r!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},t}(n(1546).BaseRenderLayer);t.SelectionRenderLayer=o},9596:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(3700),a=n(1546),s=n(3734),c=n(643),l=n(5879),u=n(511),h=function(e){function t(t,n,r,i,a,s,c,l){var h=e.call(this,t,"text",n,a,r,s,c,l)||this;return h._characterWidth=0,h._characterFont="",h._characterOverlapCache={},h._workCell=new u.CellData,h._state=new o.GridCache,h._characterJoinerRegistry=i,h}return i(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,r){for(var i=e;i<=t;i++)for(var o=i+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),r(h,u,i),u=f}}},t.prototype._drawBackground=function(e,t){var n=this,r=this._ctx,i=this._bufferService.cols,o=0,a=0,c=null;r.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?(r.fillStyle=c||"",n._fillCells(o,a,i-o,1),o=t,a=l):c!==u&&(r.fillStyle=c||"",n._fillCells(o,a,t-o,1),o=t,a=l),c=u}),null!==c&&(r.fillStyle=c,this._fillCells(o,a,i-o,1)),r.restore()},t.prototype._drawForeground=function(e,t){var n=this;this._forEachCell(e,t,this._characterJoinerRegistry,function(e,t,r){if(!e.isInvisible()&&(n._drawChars(e,t,r),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 i=e.getBgColor();n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&i<8&&(i+=8),n._ctx.fillStyle=n._colors.ansi[i].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,r,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},9616:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var n=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=n},1420:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var r=n(2040),i=n(1906),o=[];t.acquireCharAtlas=function(e,t,n,a,s){for(var c=r.generateConfig(a,s,e,n),l=0;l<o.length;l++){var u=(h=o[l]).ownedBy.indexOf(t);if(u>=0){if(r.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(r.configEquals(h.config,c))return h.ownedBy.push(t),h.atlas}var d={atlas:new i.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}}}},2040:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;var r=n(643);t.generateConfig=function(e,t,n,r){return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,fontWeightBold:n.fontWeightBold,allowTransparency:n.allowTransparency,colors:{foreground:r.foreground,background:r.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:r.ansi}}},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<r.DEFAULT_COLOR}},8803:function(e,t){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},1906:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(8803),a=n(9616),s=n(5680),c=n(7001),l=n(6114),u=n(1752),h=n(4774),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 r=e.call(this)||this;r._config=n,r._drawToCacheCount=0,r._glyphsWaitingOnBitmap=[],r._bitmapCommitTimeout=null,r._bitmap=null,r._cacheCanvas=t.createElement("canvas"),r._cacheCanvas.width=1024,r._cacheCanvas.height=1024,r._cacheCtx=u.throwIfFalsy(r._cacheCanvas.getContext("2d",{alpha:!0}));var i=t.createElement("canvas");i.width=r._config.scaledCharWidth,i.height=r._config.scaledCharHeight,r._tmpCtx=u.throwIfFalsy(i.getContext("2d",{alpha:r._config.allowTransparency})),r._width=Math.floor(1024/r._config.scaledCharWidth),r._height=Math.floor(1024/r._config.scaledCharHeight);var o=r._width*r._height;return r._cacheMap=new c.LRUMap(o),r._cacheMap.prealloc(o),r}return i(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,r){if(32===t.code)return!0;if(!this._canCache(t))return!1;var i=f(t),o=this._cacheMap.get(i);if(null!=o)return this._drawFromCache(e,o,n,r),!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(i,s),this._drawFromCache(e,s,n,r),!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,r){if(!t.isEmpty){var i=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index);e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,i,o,this._config.scaledCharWidth,this._config.scaledCharHeight,n,r,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 r=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),i=!1;this._config.allowTransparency||(i=function(e,t){for(var n=!0,r=t.rgba>>>24,i=t.rgba>>>16&255,o=t.rgba>>>8&255,a=0;a<e.data.length;a+=4)e.data[a]===r&&e.data[a+1]===i&&e.data[a+2]===o?e.data[a+3]=0:n=!1;return n}(r,n));var a=this._toCoordinateX(t),s=this._toCoordinateY(t);this._cacheCtx.putImageData(r,a,s);var c={index:t,isEmpty:i,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 r=0;r<t.length;r++)t[r].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 i(t,e),t.prototype.draw=function(e,t,n,r){return!1},t}(a.BaseCharAtlas);t.NoneCharAtlas=m},7001:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var n=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 r=this._nodePool;r.length>0?((n=r.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=n},1296:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var s=n(3787),c=n(8803),l=n(844),u=n(4725),h=n(2585),d=n(8460),f=n(4774),p=n(9631),m="xterm-dom-renderer-owner-",g="xterm-fg-",v="xterm-bg-",b="xterm-focus",y=1,_=function(e){function t(t,n,r,i,o,a,c,l,u){var h=e.call(this)||this;return h._colors=t,h._element=n,h._screenElement=r,h._viewportElement=i,h._linkifier=o,h._linkifier2=a,h._charSizeService=c,h._optionsService=l,h._bufferService=u,h._terminalClass=y++,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(m+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 i(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(m+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.textContent=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,r){t+=e._terminalSelector+" ."+g+r+" { color: "+n.css+"; }"+e._terminalSelector+" ."+v+r+" { background-color: "+n.css+"; }"}),t+=this._terminalSelector+" ."+g+c.INVERTED_DEFAULT_COLOR+" { color: "+f.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+v+c.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=t},t.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var n=this._rowElements.length;n<=t;n++){var r=document.createElement("div");this._rowContainer.appendChild(r),this._rowElements.push(r)}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(b)},t.prototype.onFocus=function(){this._rowContainer.classList.add(b)},t.prototype.onSelectionChanged=function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var r=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(r,0),a=Math.min(i,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,r===o?e[0]:0,o===i?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,i===a?t[0]:this._bufferService.cols))),this._selectionContainer.appendChild(s)}}},t.prototype._createSelectionElement=function(e,t,n,r){void 0===r&&(r=1);var i=document.createElement("div");return i.style.height=r*this.dimensions.actualCellHeight+"px",i.style.top=e*this.dimensions.actualCellHeight+"px",i.style.left=t*this.dimensions.actualCellWidth+"px",i.style.width=this.dimensions.actualCellWidth*(n-t)+"px",i},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].innerText=""},t.prototype.renderRows=function(e,t){for(var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._optionsService.options.cursorBlink,o=e;o<=t;o++){var a=this._rowElements[o];a.innerText="";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,r,i,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+m+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,r,i,o){for(;e!==t||n!==r;){var a=this._rowElements[n];if(!a)return;var s=a.children[e];s&&(s.style.textDecoration=o?"underline":"none"),++e>=i&&(e=0,n++)}},o([a(6,u.ICharSizeService),a(7,h.IOptionsService),a(8,h.IBufferService)],t)}(l.Disposable);t.DomRenderer=_},3787:function(e,t,n){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 r=n(8803),i=n(643),o=n(511),a=n(4774);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()!==i.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()?i.WHITESPACE_CELL_CHAR:this._workCell.getChars()||i.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-"+r.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-"+r.INVERTED_DEFAULT_COLOR)}d.appendChild(g)}}return d},e.prototype._applyMinimumContrast=function(e,t,n){if(1===this._optionsService.options.minimumContrastRatio)return!1;var r=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===r&&(r=a.color.ensureContrastRatio(t,n,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=r?r:null)),!!r&&(this._addStyle(e,"color:"+r.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},456:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var n=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=n},428:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=n(2585),a=n(8460),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())},r([i(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}()},5114:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var n=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=n},8934:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=n(4725),a=n(9806),s=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,n,r,i){return a.getCoords(e,t,n,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},e.prototype.getRawByteCoords=function(e,t,n,r){var i=this.getCoords(e,t,n,r);return a.getRawByteCoords(i)},r([i(0,o.IRenderService),i(1,o.ICharSizeService)],e)}();t.MouseService=s},3230:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var s=n(6193),c=n(8460),l=n(844),u=n(5596),h=n(3656),d=n(2585),f=n(4725),p=function(e){function t(t,n,r,i,o,a){var l=e.call(this)||this;if(l._renderer=t,l._rowCount=n,l._charSizeService=o,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(i.onOptionChange(function(){return l._renderer.onOptionsChanged()})),l.register(l._charSizeService.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(r),l.register({dispose:function(){return d.disconnect()}})}return l}return i(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._charSizeService.hasValidSize||this._charSizeService.measure(),!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._charSizeService.measure(),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},9312:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var s=n(6114),c=n(456),l=n(511),u=n(8460),h=n(4725),d=n(2585),f=n(9806),p=n(9504),m=n(844),g=String.fromCharCode(160),v=new RegExp(g,"g"),b=function(e){function t(t,n,r,i,o,a,s){var h=e.call(this)||this;return h._element=t,h._screenElement=n,h._bufferService=r,h._coreService=i,h._mouseService=o,h._optionsService=a,h._renderService=s,h._dragScrollAmount=0,h._enabled=!0,h._workCell=new l.CellData,h._mouseDownTimeStamp=0,h._oldHasSelection=!1,h._oldSelectionStart=void 0,h._oldSelectionEnd=void 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 i(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,r=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[1];i<=t[1];i++){var o=n.translateBufferLineToString(i,!0,e[0],t[0]);r.push(o)}}else{for(r.push(n.translateBufferLineToString(e[1],!0,e[0],e[1]===t[1]?t[0]:void 0)),i=e[1]+1;i<=t[1]-1;i++){var a=n.lines.get(i);o=n.translateBufferLineToString(i,!0),a&&a.isWrapped?r[r.length-1]+=o:r.push(o)}e[1]!==t[1]&&(a=n.lines.get(t[1]),o=n.translateBufferLineToString(t[1],!0,0,t[0]),a&&a.isWrapped?r[r.length-1]+=o:r.push(o))}return r.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,r=this._model.finalSelectionEnd;return!!(n&&r&&t)&&this._areCoordsInSelection(t,n,r)},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 r=n.lines.get(this._model.selectionEnd[1]);r&&0===r.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&&this._optionsService.getOption("altClickMovesCursor")){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 r=p.moveToCellSequence(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(r,!0)}}}else this._fireEventIfSelectionChanged()},t.prototype._fireEventIfSelectionChanged=function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);n?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,n)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,n)},t.prototype._fireOnSelectionChange=function(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,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],r=0;t[0]>=r;r++){var i=e.loadCell(r,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:i>1&&t[0]!==r&&(n+=i-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.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!(e[0]>=this._bufferService.cols)){var i=this._bufferService.buffer,o=i.lines.get(e[1]);if(o){var a=i.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=i.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(r&&y+_===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var S=i.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},4725:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var r=n(8343);t.ICharSizeService=r.createDecorator("CharSizeService"),t.ICoreBrowserService=r.createDecorator("CoreBrowserService"),t.IMouseService=r.createDecorator("MouseService"),t.IRenderService=r.createDecorator("RenderService"),t.ISelectionService=r.createDecorator("SelectionService"),t.ISoundService=r.createDecorator("SoundService")},357:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var o=n(2585),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,r=new Uint8Array(n),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e=r([i(0,o.IOptionsService)],e)}();t.SoundService=a},6349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var r=n(8460),i=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new r.EventEmitter,this.onInsertEmitter=new r.EventEmitter,this.onTrimEmitter=new r.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=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t){for(var i=e;i<this._length-t;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(i=this._length-1;i>=e;i--)this._array[this._getCyclicIndex(i+n.length)]=this._array[this._getCyclicIndex(i)];for(i=0;i<n.length;i++)this._array[this._getCyclicIndex(e+i)]=n[i];if(n.length&&this.onInsertEmitter.fire({index:e,amount:n.length}),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 r=t-1;r>=0;r--)this.set(e+r+n,this.get(e+r));var i=e+t+n-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<t;r++)this.set(e+r+n,this.get(e+r))}},e.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},e}();t.CircularList=i},1439:function(e,t){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 r=Array.isArray(t)?[]:{};for(var i in t)r[i]=n<=1?t[i]:t[i]?e(t[i],n-1):t[i];return r}},8969:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(844),a=n(2585),s=n(4348),c=n(7866),l=n(744),u=n(7302),h=n(6975),d=n(8460),f=n(1753),p=n(3730),m=n(1480),g=n(7994),v=n(9282),b=n(5435),y=n(5981),_=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 i(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,r=this._bufferService.buffer;(n=this._cachedBlankLine)&&n.length===this.cols&&n.getFg(0)===e.fg&&n.getBg(0)===e.bg||(n=r.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;var i=r.ybase+r.scrollTop,o=r.ybase+r.scrollBottom;if(0===r.scrollTop){var a=r.lines.isFull;o===r.lines.length-1?a?r.lines.recycle().copyFrom(n):r.lines.push(n.clone()):r.lines.splice(o+1,0,n.clone()),a?this._bufferService.isUserScrolling&&(r.ydisp=Math.max(r.ydisp-1,0)):(r.ybase++,this._bufferService.isUserScrolling||r.ydisp++)}else r.lines.shiftElements(i+1,o-i+1-1,-1),r.lines.set(o,n.clone());this._bufferService.isUserScrolling||(r.ydisp=r.ybase),this._dirtyRowService.markRangeDirty(r.scrollTop,r.scrollBottom),this._onScroll.fire(r.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 r=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),r!==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=_},8460:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var n=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=[],r=0;r<this._listeners.length;r++)n.push(this._listeners[r]);for(r=0;r<n.length;r++)n[r].call(void 0,e,t)},e.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},e}();t.EventEmitter=n,t.forwardEvent=function(e,t){return e(function(e){return t.fire(e)})}},5435:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(2584),s=n(7116),c=n(2015),l=n(844),u=n(8273),h=n(482),d=n(8437),f=n(8460),p=n(643),m=n(511),g=n(3734),v=n(6242),b=n(6351),y={"(":0,")":1,"*":2,"+":3,"-":1,".":2},_=131072;function w(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 k=function(){function e(e,t,n,r){this._bufferService=e,this._coreService=t,this._logService=n,this._optionsService=r,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)return this._data=new Uint32Array(0),!0;var t=h.utf32ToString(this._data);switch(this._data=new Uint32Array(0),t){case'"q':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r0"q'+a.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r61;1"p'+a.C0.ESC+"\\");break;case"r":this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+a.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(a.C0.ESC+"P1$r0m"+a.C0.ESC+"\\");break;case" q":var n={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+(n-=this._optionsService.options.cursorBlink?1:0)+" q"+a.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(a.C0.ESC+"P0$r"+a.C0.ESC+"\\")}return!0},e}(),C=function(e){function t(t,n,r,i,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=r,b._dirtyRowService=i,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._onAnsiColorChange=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.registerCsiHandler({final:"@"},function(e){return b.insertChars(e)}),b._parser.registerCsiHandler({intermediates:" ",final:"@"},function(e){return b.scrollLeft(e)}),b._parser.registerCsiHandler({final:"A"},function(e){return b.cursorUp(e)}),b._parser.registerCsiHandler({intermediates:" ",final:"A"},function(e){return b.scrollRight(e)}),b._parser.registerCsiHandler({final:"B"},function(e){return b.cursorDown(e)}),b._parser.registerCsiHandler({final:"C"},function(e){return b.cursorForward(e)}),b._parser.registerCsiHandler({final:"D"},function(e){return b.cursorBackward(e)}),b._parser.registerCsiHandler({final:"E"},function(e){return b.cursorNextLine(e)}),b._parser.registerCsiHandler({final:"F"},function(e){return b.cursorPrecedingLine(e)}),b._parser.registerCsiHandler({final:"G"},function(e){return b.cursorCharAbsolute(e)}),b._parser.registerCsiHandler({final:"H"},function(e){return b.cursorPosition(e)}),b._parser.registerCsiHandler({final:"I"},function(e){return b.cursorForwardTab(e)}),b._parser.registerCsiHandler({final:"J"},function(e){return b.eraseInDisplay(e)}),b._parser.registerCsiHandler({prefix:"?",final:"J"},function(e){return b.eraseInDisplay(e)}),b._parser.registerCsiHandler({final:"K"},function(e){return b.eraseInLine(e)}),b._parser.registerCsiHandler({prefix:"?",final:"K"},function(e){return b.eraseInLine(e)}),b._parser.registerCsiHandler({final:"L"},function(e){return b.insertLines(e)}),b._parser.registerCsiHandler({final:"M"},function(e){return b.deleteLines(e)}),b._parser.registerCsiHandler({final:"P"},function(e){return b.deleteChars(e)}),b._parser.registerCsiHandler({final:"S"},function(e){return b.scrollUp(e)}),b._parser.registerCsiHandler({final:"T"},function(e){return b.scrollDown(e)}),b._parser.registerCsiHandler({final:"X"},function(e){return b.eraseChars(e)}),b._parser.registerCsiHandler({final:"Z"},function(e){return b.cursorBackwardTab(e)}),b._parser.registerCsiHandler({final:"`"},function(e){return b.charPosAbsolute(e)}),b._parser.registerCsiHandler({final:"a"},function(e){return b.hPositionRelative(e)}),b._parser.registerCsiHandler({final:"b"},function(e){return b.repeatPrecedingCharacter(e)}),b._parser.registerCsiHandler({final:"c"},function(e){return b.sendDeviceAttributesPrimary(e)}),b._parser.registerCsiHandler({prefix:">",final:"c"},function(e){return b.sendDeviceAttributesSecondary(e)}),b._parser.registerCsiHandler({final:"d"},function(e){return b.linePosAbsolute(e)}),b._parser.registerCsiHandler({final:"e"},function(e){return b.vPositionRelative(e)}),b._parser.registerCsiHandler({final:"f"},function(e){return b.hVPosition(e)}),b._parser.registerCsiHandler({final:"g"},function(e){return b.tabClear(e)}),b._parser.registerCsiHandler({final:"h"},function(e){return b.setMode(e)}),b._parser.registerCsiHandler({prefix:"?",final:"h"},function(e){return b.setModePrivate(e)}),b._parser.registerCsiHandler({final:"l"},function(e){return b.resetMode(e)}),b._parser.registerCsiHandler({prefix:"?",final:"l"},function(e){return b.resetModePrivate(e)}),b._parser.registerCsiHandler({final:"m"},function(e){return b.charAttributes(e)}),b._parser.registerCsiHandler({final:"n"},function(e){return b.deviceStatus(e)}),b._parser.registerCsiHandler({prefix:"?",final:"n"},function(e){return b.deviceStatusPrivate(e)}),b._parser.registerCsiHandler({intermediates:"!",final:"p"},function(e){return b.softReset(e)}),b._parser.registerCsiHandler({intermediates:" ",final:"q"},function(e){return b.setCursorStyle(e)}),b._parser.registerCsiHandler({final:"r"},function(e){return b.setScrollRegion(e)}),b._parser.registerCsiHandler({final:"s"},function(e){return b.saveCursor(e)}),b._parser.registerCsiHandler({final:"t"},function(e){return b.windowOptions(e)}),b._parser.registerCsiHandler({final:"u"},function(e){return b.restoreCursor(e)}),b._parser.registerCsiHandler({intermediates:"'",final:"}"},function(e){return b.insertColumns(e)}),b._parser.registerCsiHandler({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.registerOscHandler(0,new v.OscHandler(function(e){return b.setTitle(e),b.setIconName(e),!0})),b._parser.registerOscHandler(1,new v.OscHandler(function(e){return b.setIconName(e)})),b._parser.registerOscHandler(2,new v.OscHandler(function(e){return b.setTitle(e)})),b._parser.registerOscHandler(4,new v.OscHandler(function(e){return b.setAnsiColor(e)})),b._parser.registerEscHandler({final:"7"},function(){return b.saveCursor()}),b._parser.registerEscHandler({final:"8"},function(){return b.restoreCursor()}),b._parser.registerEscHandler({final:"D"},function(){return b.index()}),b._parser.registerEscHandler({final:"E"},function(){return b.nextLine()}),b._parser.registerEscHandler({final:"H"},function(){return b.tabSet()}),b._parser.registerEscHandler({final:"M"},function(){return b.reverseIndex()}),b._parser.registerEscHandler({final:"="},function(){return b.keypadApplicationMode()}),b._parser.registerEscHandler({final:">"},function(){return b.keypadNumericMode()}),b._parser.registerEscHandler({final:"c"},function(){return b.fullReset()}),b._parser.registerEscHandler({final:"n"},function(){return b.setgLevel(2)}),b._parser.registerEscHandler({final:"o"},function(){return b.setgLevel(3)}),b._parser.registerEscHandler({final:"|"},function(){return b.setgLevel(3)}),b._parser.registerEscHandler({final:"}"},function(){return b.setgLevel(2)}),b._parser.registerEscHandler({final:"~"},function(){return b.setgLevel(1)}),b._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return b.selectDefaultCharset()}),b._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return b.selectDefaultCharset()});var y=function(e){_._parser.registerEscHandler({intermediates:"(",final:e},function(){return b.selectCharset("("+e)}),_._parser.registerEscHandler({intermediates:")",final:e},function(){return b.selectCharset(")"+e)}),_._parser.registerEscHandler({intermediates:"*",final:e},function(){return b.selectCharset("*"+e)}),_._parser.registerEscHandler({intermediates:"+",final:e},function(){return b.selectCharset("+"+e)}),_._parser.registerEscHandler({intermediates:"-",final:e},function(){return b.selectCharset("-"+e)}),_._parser.registerEscHandler({intermediates:".",final:e},function(){return b.selectCharset("."+e)}),_._parser.registerEscHandler({intermediates:"/",final:e},function(){return b.selectCharset("/"+e)})},_=this;for(var w in s.CHARSETS)y(w);return b._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return b.screenAlignmentPattern()}),b._parser.setErrorHandler(function(e){return b._logService.error("Parsing error: ",e),e}),b._parser.registerDcsHandler({intermediates:"$",final:"q"},new k(b._bufferService,b._coreService,b._logService,b._optionsService)),b}return i(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}),Object.defineProperty(t.prototype,"onAnsiColorChange",{get:function(){return this._onAnsiColorChange.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,r=t.y;if(this._logService.debug("parsing data",e),this._parseBuffer.length<e.length&&this._parseBuffer.length<_&&(this._parseBuffer=new Uint32Array(Math.min(e.length,_))),this._dirtyRowService.clearRange(),e.length>_)for(var i=0;i<e.length;i+=_){var o=i+_<e.length?i+_:e.length,a="string"==typeof e?this._stringDecoder.decode(e.substring(i,o),this._parseBuffer):this._utf8Decoder.decode(e.subarray(i,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===r||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},t.prototype.print=function(e,t,n){var r,i,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(i=this._unicodeService.wcwidth(r=e[m]),r<127&&a){var g=a[String.fromCharCode(r)];g&&(r=g.charCodeAt(0))}if(s&&this._onA11yChar.fire(h.stringFromCodePoint(r)),i||!o.x){if(o.x+i-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===i)continue;if(u&&(f.insertCells(o.x,i,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++,r,i,d.fg,d.bg,d.extended),i>0)for(;--i;)f.setCellFromCodePoint(o.x++,0,0,d.fg,d.bg,d.extended)}else f.getWidth(o.x-1)?f.addCodepointToCell(o.x-1,r):f.addCodepointToCell(o.x-2,r)}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.registerCsiHandler(e,"t"!==e.final||e.prefix||e.intermediates?t:function(e){return!w(e.params[0],n._optionsService.options.windowOptions)||t(e)})},t.prototype.addDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new b.DcsHandler(t))},t.prototype.addEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.addOscHandler=function(e,t){return this._parser.registerOscHandler(e,new v.OscHandler(t))},t.prototype.bell=function(){return this._onRequestBell.fire(),!0},t.prototype.lineFeed=function(){var e=this._bufferService.buffer;return 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(),!0},t.prototype.carriageReturn=function(){return this._bufferService.buffer.x=0,!0},t.prototype.backspace=function(){var e,t=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),t.x>0&&t.x--,!0;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--}return this._restrictCursor(),!0},t.prototype.tab=function(){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;var e=this._bufferService.buffer.x;return this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-e),!0},t.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},t.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!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;return this._moveCursor(0,t>=0?-Math.min(t,e.params[0]||1):-(e.params[0]||1)),!0},t.prototype.cursorDown=function(e){var t=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;return this._moveCursor(0,t>=0?Math.min(t,e.params[0]||1):e.params[0]||1),!0},t.prototype.cursorForward=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.cursorBackward=function(e){return this._moveCursor(-(e.params[0]||1),0),!0},t.prototype.cursorNextLine=function(e){return this.cursorDown(e),this._bufferService.buffer.x=0,!0},t.prototype.cursorPrecedingLine=function(e){return this.cursorUp(e),this._bufferService.buffer.x=0,!0},t.prototype.cursorCharAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y),!0},t.prototype.cursorPosition=function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0},t.prototype.charPosAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y),!0},t.prototype.hPositionRelative=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.linePosAbsolute=function(e){return this._setCursor(this._bufferService.buffer.x,(e.params[0]||1)-1),!0},t.prototype.vPositionRelative=function(e){return this._moveCursor(0,e.params[0]||1),!0},t.prototype.hVPosition=function(e){return this.cursorPosition(e),!0},t.prototype.tabClear=function(e){var t=e.params[0];return 0===t?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===t&&(this._bufferService.buffer.tabs={}),!0},t.prototype.cursorForwardTab=function(e){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop();return!0},t.prototype.cursorBackwardTab=function(e){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1,n=this._bufferService.buffer;t--;)n.x=n.prevStop();return!0},t.prototype._eraseInBufferLine=function(e,t,n,r){void 0===r&&(r=!1);var i=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);i.replaceCells(t,n,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r&&(i.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))}return!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)}return this._dirtyRowService.markDirty(this._bufferService.buffer.y),!0},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)return!0;for(var r=n.ybase+n.y,i=this._bufferService.rows-1+n.ybase-(this._bufferService.rows-1-n.scrollBottom)+1;t--;)n.lines.splice(i-1,1),n.lines.splice(r,0,n.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(n.y,n.scrollBottom),n.x=0,!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)return!0;var r,i=n.ybase+n.y;for(r=this._bufferService.rows-1+n.ybase-(r=this._bufferService.rows-1-n.scrollBottom);t--;)n.lines.splice(i,1),n.lines.splice(r,0,n.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(n.y,n.scrollBottom),n.x=0,!0},t.prototype.insertChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);return 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)),!0},t.prototype.deleteChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);return 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)),!0},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()));return this._dirtyRowService.markRangeDirty(n.scrollTop,n.scrollBottom),!0},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));return this._dirtyRowService.markRangeDirty(n.scrollTop,n.scrollBottom),!0},t.prototype.scrollLeft=function(e){var t=this._bufferService.buffer;if(t.y>t.scrollBottom||t.y<t.scrollTop)return!0;for(var n=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var i=t.lines.get(t.ybase+r);i.deleteCells(0,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom),!0},t.prototype.scrollRight=function(e){var t=this._bufferService.buffer;if(t.y>t.scrollBottom||t.y<t.scrollTop)return!0;for(var n=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var i=t.lines.get(t.ybase+r);i.insertCells(0,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom),!0},t.prototype.insertColumns=function(e){var t=this._bufferService.buffer;if(t.y>t.scrollBottom||t.y<t.scrollTop)return!0;for(var n=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var i=this._bufferService.buffer.lines.get(t.ybase+r);i.insertCells(t.x,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom),!0},t.prototype.deleteColumns=function(e){var t=this._bufferService.buffer;if(t.y>t.scrollBottom||t.y<t.scrollTop)return!0;for(var n=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var i=t.lines.get(t.ybase+r);i.deleteCells(t.x,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom),!0},t.prototype.eraseChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);return 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)),!0},t.prototype.repeatPrecedingCharacter=function(e){if(!this._parser.precedingCodepoint)return!0;for(var t=e.params[0]||1,n=new Uint32Array(t),r=0;r<t;++r)n[r]=this._parser.precedingCodepoint;return this.print(n,0,n.length),!0},t.prototype.sendDeviceAttributesPrimary=function(e){return 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")),!0},t.prototype.sendDeviceAttributesSecondary=function(e){return 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")),!0},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}return!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}return!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}return!0},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}return!0},t.prototype._updateAttrColor=function(e,t,n,r,i){return 2===t?(e|=50331648,e&=-16777216,e|=g.AttributeData.fromColorRGB([n,r,i])):5===t&&(e&=-50331904,e|=33554432|255&n),e},t.prototype._extractColor=function(e,t,n){var r=[0,0,-1,0,0,0],i=0,o=0;do{if(r[o+i]=e.params[t+o],e.hasSubParams(t+o)){var a=e.getSubParams(t+o),s=0;do{5===r[1]&&(i=1),r[o+s+1+i]=a[s]}while(++s<a.length&&s+o+1+i<r.length);break}if(5===r[1]&&o+i>=2||2===r[1]&&o+i>=5)break;r[1]&&(i=1)}while(++o+t<e.length&&o+i<r.length);for(s=2;s<r.length;++s)-1===r[s]&&(r[s]=0);switch(r[0]){case 38:n.fg=this._updateAttrColor(n.fg,r[1],r[3],r[4],r[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,r[1],r[3],r[4],r[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,r[1],r[3],r[4],r[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,this._curAttrData.bg=d.DEFAULT_ATTR_DATA.bg,!0;for(var t,n=e.length,r=this._curAttrData,i=0;i<n;i++)(t=e.params[i])>=30&&t<=37?(r.fg&=-50331904,r.fg|=16777216|t-30):t>=40&&t<=47?(r.bg&=-50331904,r.bg|=16777216|t-40):t>=90&&t<=97?(r.fg&=-50331904,r.fg|=16777224|t-90):t>=100&&t<=107?(r.bg&=-50331904,r.bg|=16777224|t-100):0===t?(r.fg=d.DEFAULT_ATTR_DATA.fg,r.bg=d.DEFAULT_ATTR_DATA.bg):1===t?r.fg|=134217728:3===t?r.bg|=67108864:4===t?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):5===t?r.fg|=536870912:7===t?r.fg|=67108864:8===t?r.fg|=1073741824:2===t?r.bg|=134217728:21===t?this._processUnderline(2,r):22===t?(r.fg&=-134217729,r.bg&=-134217729):23===t?r.bg&=-67108865:24===t?r.fg&=-268435457:25===t?r.fg&=-536870913:27===t?r.fg&=-67108865:28===t?r.fg&=-1073741825:39===t?(r.fg&=-67108864,r.fg|=16777215&d.DEFAULT_ATTR_DATA.fg):49===t?(r.bg&=-67108864,r.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?i+=this._extractColor(e,i,r):59===t?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):100===t?(r.fg&=-67108864,r.fg|=16777215&d.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0},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")}return!0},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")}return!0},t.prototype.softReset=function(e){return 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,!0},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"}return this._optionsService.options.cursorBlink=t%2==1,!0},t.prototype.setScrollRegion=function(e){var t,n=e.params[0]||1;return(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)),!0},t.prototype.windowOptions=function(e){if(!w(e.params[0],this._optionsService.options.windowOptions))return!0;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())}return!0},t.prototype.saveCursor=function(e){return 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,!0},t.prototype.restoreCursor=function(e){return 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(),!0},t.prototype.setTitle=function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0},t.prototype.setIconName=function(e){return this._iconName=e,!0},t.prototype._parseAnsiColorChange=function(e){for(var t,n={colors:[]},r=/(\d+);rgb:([0-9a-f]{2})\/([0-9a-f]{2})\/([0-9a-f]{2})/gi;null!==(t=r.exec(e));)n.colors.push({colorIndex:parseInt(t[1]),red:parseInt(t[2],16),green:parseInt(t[3],16),blue:parseInt(t[4],16)});return 0===n.colors.length?null:n},t.prototype.setAnsiColor=function(e){var t=this._parseAnsiColorChange(e);return t?this._onAnsiColorChange.fire(t):this._logService.warn("Expected format <num>;rgb:<rr>/<gg>/<bb> but got data: "+e),!0},t.prototype.nextLine=function(){return this._bufferService.buffer.x=0,this.index(),!0},t.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},t.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},t.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),!0},t.prototype.selectCharset=function(e){return 2!==e.length?(this.selectDefaultCharset(),!0):("/"===e[0]||this._charsetService.setgCharset(y[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET),!0)},t.prototype.index=function(){this._restrictCursor();var e=this._bufferService.buffer;return 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(),!0},t.prototype.tabSet=function(){return this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0,!0},t.prototype.reverseIndex=function(){this._restrictCursor();var e=this._bufferService.buffer;return 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()),!0},t.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},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){return this._charsetService.setgLevel(e),!0},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 r=t.lines.get(t.ybase+t.y+n);r&&(r.fill(e),r.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},t}(l.Disposable);t.InputHandler=C},844:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var n=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=n,t.disposeArray=r,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return r(e)}}}},6114:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isFirefox=void 0;var n="undefined"==typeof navigator,r=n?"node":navigator.userAgent,i=n?"node":navigator.platform;t.isFirefox=r.includes("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(r),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),t.isIpad="iPad"===i,t.isIphone="iPhone"===i,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),t.isLinux=i.indexOf("Linux")>=0},8273:function(e,t){function n(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),n>=e.length)return e;r=r>=e.length?e.length:(e.length+r)%e.length;for(var i=n=(e.length+n)%e.length;i<r;++i)e[i]=t;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(e,t,r,i){return e.fill?e.fill(t,r,i):n(e,t,r,i)},t.fillFallback=n,t.concat=function(e,t){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}},9282:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var r=n(643);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),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&n&&(i.isWrapped=n[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&n[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},3734:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var n=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=n;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},9092:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var r=n(6349),i=n(8437),o=n(511),a=n(643),s=n(4634),c=n(4863),l=n(7116),u=n(3734);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=i.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 r.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 i.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=i.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 r.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(i.DEFAULT_ATTR_DATA),r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),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 i.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 i.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(r<this.lines.maxLength){var c=this.lines.length-r;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=r}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(i.DEFAULT_ATTR_DATA));if(n.length>0){var r=s.reflowLargerCreateNewLayout(this.lines,n);s.reflowLargerApplyNewLayout(this.lines,r.layout),this._reflowLargerAdjustViewport(e,t,r.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,n){for(var r=this.getNullCell(i.DEFAULT_ATTR_DATA),o=n;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new i.BufferLine(e,r))):(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(i.DEFAULT_ATTR_DATA),r=[],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(i.DEFAULT_ATTR_DATA,!0);m.push(v)}m.length>0&&(r.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(r.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=r[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 I=P.newLines.length-1;I>=0;I--)this.lines.set(g--,P.newLines[I]);g++,x.push({index:T+1,amount:P.newLines.length}),j+=P.newLines.length,P=r[++E]}else this.lines.set(g,O[T--]);var A=0;for(g=x.length-1;g>=0;g--)x[g].index+=A,this.lines.onInsertEmitter.fire(x[g]),A+=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 r=this.lines.get(e);if(!r)return[-1,-1];for(var i=n?r.getTrimmedLength():r.length,o=0;o<i;++o)if(r.get(o)[a.CHAR_DATA_WIDTH_INDEX]&&(t-=r.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,r){void 0===n&&(n=0);var i=this.lines.get(e);return i?i.translateToString(t,n,r):""},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,r,i){return new d(this,e,t,n,r,i)},e}();t.Buffer=h;var d=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=e.lines.length),void 0===i&&(i=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=n,this._endIndex=r,this._startOverscan=i,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},8437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var r=n(482),i=n(643),o=n(511),a=n(3734);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 r=t||o.CellData.fromCharData([0,i.NULL_CELL_CHAR,i.NULL_CELL_WIDTH,i.NULL_CELL_CODE]),a=0;a<e;++a)this.setCell(a,r);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?r.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[i.CHAR_DATA_ATTR_INDEX],t[i.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[i.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[i.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?r.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,r,i,o){268435456&i&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=r,this._data[3*e+2]=i},e.prototype.addCodepointToCell=function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=r.stringFromCodePoint(t):(2097151&n?(this._combined[e]=r.stringFromCodePoint(2097151&n)+r.stringFromCodePoint(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)},e.prototype.insertCells=function(e,t,n,r){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),t<this.length-e){for(var i=new o.CellData,s=this.length-e-t-1;s>=0;--s)this.setCell(e+t+s,this.loadCell(e+s,i));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==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)},e.prototype.deleteCells=function(e,t,n,r){if(t<this.length-(e%=this.length)){for(var i=new o.CellData,s=0;s<this.length-e-t;++s)this.setCell(e+s,this.loadCell(e+t+s,i));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==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)},e.prototype.replaceCells=function(e,t,n,r){for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.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 r=this.length;r<e;++r)this.setCell(r,t)}else if(e){(n=new Uint32Array(3*e)).set(this._data.subarray(0,3*e)),this._data=n;var i=Object.keys(this._combined);for(r=0;r<i.length;r++){var o=parseInt(i[r],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,r,i){var o=e._data;if(i)for(var a=r-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<r;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?r.stringFromCodePoint(s):i.WHITESPACE_CELL_CHAR,t+=a>>22||1}return o},e}();t.BufferLine=s},4634:function(e,t){function n(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();var r=!e[t].hasContent(n-1)&&1===e[t].getWidth(n-1),i=2===e[t+1].getWidth(0);return r&&i?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,r,i,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(i>=s&&i<c)s+=u.length-1;else{for(var h=0,d=n(u,h,t),f=1,p=0;f<u.length;){var m=n(u,f,t),g=Math.min(m-p,r-d);u[h].copyCellsFrom(u[f],p,d,g,!1),(d+=g)===r&&(h++,d=0),(p+=g)===m&&(f++,p=0),0===d&&0!==h&&2===u[h-1].getWidth(r-1)&&(u[h].copyCellsFrom(u[h-1],r-1,d++,1,!1),u[h-1].setCell(r-1,o))}u[h].replaceCells(d,r,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=[],r=0,i=t[r],o=0,a=0;a<e.length;a++)if(i===a){var s=t[++r];e.onDeleteEmitter.fire({index:a-o,amount:s}),a+=s-1,o+=s,i=t[++r]}else n.push(a);return{layout:n,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var n=[],r=0;r<t.length;r++)n.push(e.get(t[r]));for(r=0;r<n.length;r++)e.set(r,n[r]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,r){for(var i=[],o=e.map(function(r,i){return n(e,i,t)}).reduce(function(e,t){return e+t}),a=0,s=0,c=0;c<o;){if(o-c<r){i.push(o-c);break}a+=r;var l=n(e,s,t);a>l&&(a-=l,s++);var u=2===e[s].getWidth(a-1);u&&a--;var h=u?r-1:r;i.push(h),c+=h}return i},t.getWrappedLineTrimmedLength=n},5295:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(9092),a=n(8460),s=function(e){function t(t,n){var r=e.call(this)||this;return r._optionsService=t,r._bufferService=n,r._onBufferActivate=r.register(new a.EventEmitter),r.reset(),r}return i(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._normal=new o.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new o.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this.setupTabStops()},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(844).Disposable);t.BufferSet=s},511:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(482),a=n(643),s=n(3734),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 i(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 r=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(n-55296)+r-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},643:function(e,t){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},4863:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(8460),a=function(e){function t(n){var r=e.call(this)||this;return r.line=n,r._id=t._nextId++,r.isDisposed=!1,r._onDispose=new o.EventEmitter,r}return i(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(),e.prototype.dispose.call(this))},t._nextId=1,t}(n(844).Disposable);t.Marker=a},7116:function(e,t){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"}},2584:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,(r=t.C0||(t.C0={})).NUL="\0",r.SOH="\x01",r.STX="\x02",r.ETX="\x03",r.EOT="\x04",r.ENQ="\x05",r.ACK="\x06",r.BEL="\x07",r.BS="\b",r.HT="\t",r.LF="\n",r.VT="\v",r.FF="\f",r.CR="\r",r.SO="\x0e",r.SI="\x0f",r.DLE="\x10",r.DC1="\x11",r.DC2="\x12",r.DC3="\x13",r.DC4="\x14",r.NAK="\x15",r.SYN="\x16",r.ETB="\x17",r.CAN="\x18",r.EM="\x19",r.SUB="\x1a",r.ESC="\x1b",r.FS="\x1c",r.GS="\x1d",r.RS="\x1e",r.US="\x1f",r.SP=" ",r.DEL="\x7f",(n=t.C1||(t.C1={})).PAD="\x80",n.HOP="\x81",n.BPH="\x82",n.NBH="\x83",n.IND="\x84",n.NEL="\x85",n.SSA="\x86",n.ESA="\x87",n.HTS="\x88",n.HTJ="\x89",n.VTS="\x8a",n.PLD="\x8b",n.PLU="\x8c",n.RI="\x8d",n.SS2="\x8e",n.SS3="\x8f",n.DCS="\x90",n.PU1="\x91",n.PU2="\x92",n.STS="\x93",n.CCH="\x94",n.MW="\x95",n.SPA="\x96",n.EPA="\x97",n.SOS="\x98",n.SGCI="\x99",n.SCI="\x9a",n.CSI="\x9b",n.ST="\x9c",n.OSC="\x9d",n.PM="\x9e",n.APC="\x9f"},7399:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var r=n(2584),i={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?r.C0.ESC+"OA":r.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B");break;case 8:if(e.shiftKey){a.key=r.C0.BS;break}if(e.altKey){a.key=r.C0.ESC+r.C0.DEL;break}a.key=r.C0.DEL;break;case 9:if(e.shiftKey){a.key=r.C0.ESC+"[Z";break}a.key=r.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?r.C0.ESC+r.C0.CR:r.C0.CR,a.cancel=!0;break;case 27:a.key=r.C0.ESC,e.altKey&&(a.key=r.C0.ESC+r.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"D",a.key===r.C0.ESC+"[1;3D"&&(a.key=r.C0.ESC+(n?"b":"[1;5D"))):a.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"C",a.key===r.C0.ESC+"[1;3C"&&(a.key=r.C0.ESC+(n?"f":"[1;5C"))):a.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"A",n||a.key!==r.C0.ESC+"[1;3A"||(a.key=r.C0.ESC+"[1;5A")):a.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"B",n||a.key!==r.C0.ESC+"[1;3B"||(a.key=r.C0.ESC+"[1;5B")):a.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=r.C0.ESC+"[2~");break;case 46:a.key=s?r.C0.ESC+"[3;"+(s+1)+"~":r.C0.ESC+"[3~";break;case 36:a.key=s?r.C0.ESC+"[1;"+(s+1)+"H":t?r.C0.ESC+"OH":r.C0.ESC+"[H";break;case 35:a.key=s?r.C0.ESC+"[1;"+(s+1)+"F":t?r.C0.ESC+"OF":r.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:a.key=r.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:a.key=r.C0.ESC+"[6~";break;case 112:a.key=s?r.C0.ESC+"[1;"+(s+1)+"P":r.C0.ESC+"OP";break;case 113:a.key=s?r.C0.ESC+"[1;"+(s+1)+"Q":r.C0.ESC+"OQ";break;case 114:a.key=s?r.C0.ESC+"[1;"+(s+1)+"R":r.C0.ESC+"OR";break;case 115:a.key=s?r.C0.ESC+"[1;"+(s+1)+"S":r.C0.ESC+"OS";break;case 116:a.key=s?r.C0.ESC+"[15;"+(s+1)+"~":r.C0.ESC+"[15~";break;case 117:a.key=s?r.C0.ESC+"[17;"+(s+1)+"~":r.C0.ESC+"[17~";break;case 118:a.key=s?r.C0.ESC+"[18;"+(s+1)+"~":r.C0.ESC+"[18~";break;case 119:a.key=s?r.C0.ESC+"[19;"+(s+1)+"~":r.C0.ESC+"[19~";break;case 120:a.key=s?r.C0.ESC+"[20;"+(s+1)+"~":r.C0.ESC+"[20~";break;case 121:a.key=s?r.C0.ESC+"[21;"+(s+1)+"~":r.C0.ESC+"[21~";break;case 122:a.key=s?r.C0.ESC+"[23;"+(s+1)+"~":r.C0.ESC+"[23~";break;case 123:a.key=s?r.C0.ESC+"[24;"+(s+1)+"~":r.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.shiftKey||!e.metaKey?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=r.C0.US):65===e.keyCode&&(a.type=1);else{var c=i[e.keyCode],l=c&&c[e.shiftKey?1:0];l?a.key=r.C0.ESC+l:e.keyCode>=65&&e.keyCode<=90&&(a.key=r.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=r.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=r.C0.DEL:219===e.keyCode?a.key=r.C0.ESC:220===e.keyCode?a.key=r.C0.FS:221===e.keyCode&&(a.key=r.C0.GS)}return a}},482:function(e,t){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 r="",i=t;i<n;++i){var o=e[i];o>65535?(o-=65536,r+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):r+=String.fromCharCode(o)}return r};var n=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 r=0,i=0;this._interim&&(56320<=(s=e.charCodeAt(i++))&&s<=57343?t[r++]=1024*(this._interim-55296)+s-56320+65536:(t[r++]=this._interim,t[r++]=s),this._interim=0);for(var o=i;o<n;++o){var a=e.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=n)return this._interim=a,r;var s;56320<=(s=e.charCodeAt(o))&&s<=57343?t[r++]=1024*(a-55296)+s-56320+65536:(t[r++]=a,t[r++]=s)}else 65279!==a&&(t[r++]=a)}return r},e}();t.StringToUtf32=n;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 r,i,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||65279===h||(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&(r=e[v])||128&(i=e[v+1])||128&(o=e[v+2])||128&(a=e[v+3]));)t[s++]=r,t[s++]=i,t[s++]=o,t[s++]=a,v+=4;if((r=e[v++])<128)t[s++]=r;else if(192==(224&r)){if(v>=n)return this.interim[0]=r,s;if(128!=(192&(i=e[v++]))){v--;continue}if((c=(31&r)<<6|63&i)<128){v--;continue}t[s++]=c}else if(224==(240&r)){if(v>=n)return this.interim[0]=r,s;if(128!=(192&(i=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=r,this.interim[1]=i,s;if(128!=(192&(o=e[v++]))){v--;continue}if((c=(15&r)<<12|(63&i)<<6|63&o)<2048||c>=55296&&c<=57343||65279===c)continue;t[s++]=c}else if(240==(248&r)){if(v>=n)return this.interim[0]=r,s;if(128!=(192&(i=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=r,this.interim[1]=i,s;if(128!=(192&(o=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=o,s;if(128!=(192&(a=e[v++]))){v--;continue}if((c=(7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)<65536||c>1114111)continue;t[s++]=c}}return s},e}();t.Utf8ToUtf32=r},225:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var r,i=n(8273),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",!r){r=new Uint8Array(65536),i.fill(r,1),r[0]=0,i.fill(r,0,1,32),i.fill(r,0,127,160),i.fill(r,2,4352,4448),r[9001]=2,r[9002]=2,i.fill(r,2,11904,42192),r[12351]=1,i.fill(r,2,44032,55204),i.fill(r,2,63744,64256),i.fill(r,2,65040,65050),i.fill(r,2,65072,65136),i.fill(r,2,65280,65377),i.fill(r,2,65504,65511);for(var e=0;e<o.length;++e)i.fill(r,0,o[e][0],o[e][1]+1)}}return e.prototype.wcwidth=function(e){return e<32?0:e<127?1:e<65536?r[e]:function(e,t){var n,r=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=r;)if(e>t[n=r+i>>1][1])r=n+1;else{if(!(e<t[n][0]))return!0;i=n-1}return!1}(e,a)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=s},5981:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var n=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],r=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(n),this._pendingData-=n.length,r&&r(),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=n},5770:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var r=n(482),i=n(8742),o=n(5770),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(){},this._active=a},e.prototype.registerHandler=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.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 i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,n);else this._handlerFb(this._ident,"PUT",r.utf32ToString(e,t,n))},e.prototype.unhook=function(e){if(this._active.length){for(var t=this._active.length-1;t>=0&&!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=new i.Params;c.addParam(0);var l=function(){function e(e){this._handler=e,this._data="",this._params=c,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():c,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=r.utf32ToString(e,t,n),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=!1;return this._hitLimit?t=!1:e&&(t=this._handler(this._data,this._params)),this._params=c,this._data="",this._hitLimit=!1,t},e}();t.DcsHandler=l},2015:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(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(844),a=n(8273),s=n(8742),c=n(6242),l=n(6351),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,r){this.table[t<<8|e]=n<<4|r},e.prototype.addMany=function(e,t,n,r){for(var i=0;i<e.length;i++)this.table[t<<8|e[i]]=n<<4|r},e}();t.TransitionTable=u;var h=160;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)},r=n(32,127),i=n(0,24);i.push(25),i.push.apply(i,n(28,32));var o,a=n(0,14);for(o in e.setDefault(1,0),e.addMany(r,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(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,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(r,7,0,7),e.addMany(i,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(i,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(i,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(i,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(i,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(i,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(h,0,2,0),e.add(h,8,5,8),e.add(h,6,0,6),e.add(h,11,0,11),e.add(h,13,13,13),e}();var d=function(e){function n(n){void 0===n&&(n=t.VT500_TRANSITION_TABLE);var r=e.call(this)||this;return r._transitions=n,r.initialState=0,r.currentState=r.initialState,r._params=new s.Params,r._params.addParam(0),r._collect=0,r.precedingCodepoint=0,r._printHandlerFb=function(e,t,n){},r._executeHandlerFb=function(e){},r._csiHandlerFb=function(e,t){},r._escHandlerFb=function(e){},r._errorHandlerFb=function(e){return e},r._printHandler=r._printHandlerFb,r._executeHandlers=Object.create(null),r._csiHandlers=Object.create(null),r._escHandlers=Object.create(null),r._oscParser=new c.OscParser,r._dcsParser=new l.DcsParser,r._errorHandler=r._errorHandlerFb,r.registerEscHandler({final:"\\"},function(){return!0}),r}return i(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 r=0;r<e.intermediates.length;++r){var i=e.intermediates.charCodeAt(r);if(32>i||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=i}}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.registerEscHandler=function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var r=this._escHandlers[n];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},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.registerCsiHandler=function(e,t){var n=this._identifier(e);void 0===this._csiHandlers[n]&&(this._csiHandlers[n]=[]);var r=this._csiHandlers[n];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},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.registerDcsHandler=function(e,t){return this._dcsParser.registerHandler(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.registerOscHandler=function(e,t){return this._oscParser.registerHandler(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,r=0,i=this.currentState,o=this._oscParser,a=this._dcsParser,s=this._collect,c=this._params,l=this._transitions.table,u=0;u<t;++u){switch((r=l[i<<8|((n=e[u])<160?n:h)])>>4){case 2:for(var d=u+1;;++d){if(d>=t||(n=e[d])<32||n>126&&n<h){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(n=e[d])<32||n>126&&n<h){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(n=e[d])<32||n>126&&n<h){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(n=e[d])<32||n>126&&n<h){this._printHandler(e,u,d),u=d-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:i,collect:s,params:c,abort:!1}).abort)return;break;case 7:for(var f=this._csiHandlers[s<<8|n],p=f?f.length-1:-1;p>=0&&!f[p](c);p--);p<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 m=this._escHandlers[s<<8|n],g=m?m.length-1:-1;g>=0&&!m[g]();g--);g<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 v=u+1;;++v)if(v>=t||24===(n=e[v])||26===n||27===n||n>127&&n<h){a.put(e,u,v),u=v-1;break}break;case 14:a.unhook(24!==n&&26!==n),27===n&&(r|=1),c.reset(),c.addParam(0),s=0,this.precedingCodepoint=0;break;case 4:o.start();break;case 5:for(var b=u+1;;b++)if(b>=t||(n=e[b])<32||n>127&&n<h){o.put(e,u,b),u=b-1;break}break;case 6:o.end(24!==n&&26!==n),27===n&&(r|=1),c.reset(),c.addParam(0),s=0,this.precedingCodepoint=0}i=15&r}this._collect=s,this.currentState=i},n}(o.Disposable);t.EscapeSequenceParser=d},6242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var r=n(5770),i=n(482),o=[],a=function(){function e(){this._state=0,this._active=o,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return e.prototype.registerHandler=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.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(){},this._active=o},e.prototype.reset=function(){2===this._state&&this.end(!1),this._active=o,this._id=-1,this._state=0},e.prototype._start=function(){if(this._active=this._handlers[this._id]||o,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")},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._id,"PUT",i.utf32ToString(e,t,n))},e.prototype._end=function(e){if(this._active.length){for(var t=this._active.length-1;t>=0&&!this._active[t].end(e);t--);for(t--;t>=0;t--)this._active[t].end(!1)}else this._handlerFb(this._id,"END",e)},e.prototype.start=function(){this.reset(),this._state=1},e.prototype.put=function(e,t,n){if(3!==this._state){if(1===this._state)for(;t<n;){var r=e[t++];if(59===r){this._state=2,this._start();break}if(r<48||57<r)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+r-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._active=o,this._id=-1,this._state=0)},e}();t.OscParser=a;var s=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+=i.utf32ToString(e,t,n),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=!1;return this._hitLimit?t=!1:e&&(t=this._handler(this._data)),this._data="",this._hitLimit=!1,t},e}();t.OscHandler=s},8742:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var n=2147483647,r=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 r=t[0]instanceof Array?1:0;r<t.length;++r){var i=t[r];if(i instanceof Array)for(var o=0;o<i.length;++o)n.addSubParam(i[o]);else n.addParam(i)}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,r=255&this._subParamsIdx[t];r-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,r))}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>n?n: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>n?n: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,r=255&this._subParamsIdx[t];r-n>0&&(e[t]=this._subParams.slice(n,r))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var r=this._digitIsSub?this._subParams:this.params,i=r[t-1];r[t-1]=~i?Math.min(10*i+e,n):e}},e}();t.Params=r},744:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var s=n(2585),c=n(5295),l=n(8460),u=n(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var h=function(e){function n(n){var r=e.call(this)||this;return r._optionsService=n,r.isUserScrolling=!1,r._onResize=new l.EventEmitter,r.cols=Math.max(n.options.cols,t.MINIMUM_COLS),r.rows=Math.max(n.options.rows,t.MINIMUM_ROWS),r.buffers=new c.BufferSet(n,r),r}return i(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.reset(),this.isUserScrolling=!1},o([a(0,s.IOptionsService)],n)}(u.Disposable);t.BufferService=h},7994:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var n=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=n},1753:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var o=n(2585),a=n(8460),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,r=Object.keys(s);n<r.length;n++){var i=r[n];this.addProtocol(i,s[i])}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},r([i(0,o.IBufferService),i(1,o.ICoreService)],e)}();t.CoreMouseService=h},6975:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var s=n(2585),c=n(8460),l=n(1439),u=n(844),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,r,i){var o=e.call(this)||this;return o._bufferService=n,o._logService=r,o._optionsService=i,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 i(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},3730:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var o=n(2585),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)},r([i(0,o.IBufferService)],e)}();t.DirtyRowService=a},4348:function(e,t,n){var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var i=n(2585),o=n(8343),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,r=e;n<r.length;n++){var i=r[n];this.set(i[0],i[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(i.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 i=o.getServiceDependencies(e).sort(function(e,t){return e.index-t.index}),a=[],s=0,c=i;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=i.length>0?i[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,r([void 0],r(t,a))))},e}();t.InstantiationService=s},7866:function(e,t,n){var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=t.LogLevel=void 0;var a,s=n(2585);!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)},r([i(0,s.IOptionsService)],e)}();t.LogService=l},7302:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=t.DEFAULT_BELL_SOUND=void 0;var r=n(8460),i=n(6114),o=n(1439);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:i.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,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 r.EventEmitter,this.options=o.clone(t.DEFAULT_OPTIONS);for(var n=0,i=Object.keys(e);n<i.length;n++){var a=i[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(s.includes(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=a.includes(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},8343:function(e,t){function n(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 r=function e(t,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(e,t,i)};return r.toString=function(){return e},t.serviceRegistry.set(e,r),r}},2585:function(e,t,n){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 r=n(8343);t.IBufferService=r.createDecorator("BufferService"),t.ICoreMouseService=r.createDecorator("CoreMouseService"),t.ICoreService=r.createDecorator("CoreService"),t.ICharsetService=r.createDecorator("CharsetService"),t.IDirtyRowService=r.createDecorator("DirtyRowService"),t.IInstantiationService=r.createDecorator("InstantiationService"),t.ILogService=r.createDecorator("LogService"),t.IOptionsService=r.createDecorator("OptionsService"),t.IUnicodeService=r.createDecorator("UnicodeService")},1480:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var r=n(8460),i=n(225),o=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new r.EventEmitter;var e=new i.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,r=0;r<n;++r){var i=e.charCodeAt(r);if(55296<=i&&i<=56319){if(++r>=n)return t+this.wcwidth(i);var o=e.charCodeAt(r);56320<=o&&o<=57343?i=1024*(i-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(i)}return t},e}();t.UnicodeService=o}},t={};return function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(4389)}()},"/slF":function(e,t,n){var r=n("vd7W").isDigit,i=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,i){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(!r(e.value.charCodeAt(t)))return 0;return i+1}function v(e,t,n){var r=!1,i=m(e,t,n);if(null===(e=n(i)))return t;if(e.type!==u){if(!p(e,43)&&!p(e,d))return t;if(r=!0,i=m(n(++i),i,n),null===(e=n(i))&&e.type!==u)return 0}if(!r){var o=e.value.charCodeAt(0);if(43!==o&&o!==d)return 0}return g(e,r?0:1,r,i)}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(!i(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||!i(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&&r(e.value.charCodeAt(s));s++);return s===a?0:i(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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this,e)).keySelector=i,a.hasKey=!1,"function"==typeof r&&(a.compare=r),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(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(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 r=n("qCKp"),i=n("bb3/");r.Observable.prototype.timestamp=i.timestamp},"02G1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(r.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 i});var r=n("bHdf");function i(){return Object(r.a)(1)}},"0ZAG":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("8mU2");r.Observable.prototype.takeLast=i.takeLast},"0c70":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.toArray=function(){return r.toArray()(this)}},"11EI":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.fromEventPattern=r.fromEventPattern},"16Al":function(e,t,n){"use strict";var r=n("WbBG");function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},"16Oq":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.retry=function(e){return void 0===e&&(e=-1),r.retry(e)(this)}},"17x9":function(e,t,n){e.exports=n("16Al")()},"19/K":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("Sj+y"),i=function(){return r.b.create}()},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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),r=Object(s.c)(this.notifier,new s.a(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}]),e}(),u=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).seenValue=!1,r}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 r=n("qCKp");r.Observable.bindCallback=r.bindCallback},"1M8x":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Xk39");r.Observable.prototype.catch=i._catch,r.Observable.prototype._catch=i._catch},"1aLD":function(e,t,n){var r=n("XDwu"),i=" ";function o(e,t){function n(e,t){return r.slice(e,t).map(function(t,n){for(var r=String(e+n+1);r.length<l;)r=" "+r;return r+" |"+t}).join("\n")}var r=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,r.length+1),l=Math.max(4,String(c).length)+1,u=0;(a+=(i.length-1)*(r[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<r.length&&(r[h]=r[h].replace(/\t/g,i),r[h]=(u>0&&r[h].length>u?"\u2026":"")+r[h].substr(u,98)+(r[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,i,a){var s=r("SyntaxError",e);return s.source=t,s.offset=n,s.line=i,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:i,column:a},s}},"1gRP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.materialize=function(){return r.materialize()(this)}},"1uah":function(e,t,n){"use strict";n.d(t,"b",function(){return d}),n.d(t,"a",function(){return f});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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 r=t[t.length-1];return"function"==typeof r&&t.pop(),Object(s.a)(t,void 0).lift(new f(r))}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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return arguments.length>2&&void 0!==arguments[2]||Object.create(null),Object(o.a)(this,n),(i=t.call(this,e)).resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}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 r=e[n];r.stillUnsubscribed?this.destination.add(r.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,r=0;r<t;r++){var i=e[r];if("function"==typeof i.hasValue&&!i.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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this,e)).parent=r,a.observable=i,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 r=n("qCKp"),i=n("uMcE");r.Observable.prototype.shareReplay=i.shareReplay},"2Gxe":function(e,t,n){var r=n("vd7W").TYPE,i=r.Ident,o=r.String,a=r.Colon,s=r.LeftSquareBracket,c=r.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(i),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat(i)):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(i)),{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,r=null,a=null;return this.eat(s),this.scanner.skipSC(),e=l.call(this),this.scanner.skipSC(),this.scanner.tokenType!==c&&(this.scanner.tokenType!==i&&(n=u.call(this),this.scanner.skipSC(),r=this.scanner.tokenType===o?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===i&&(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:r,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 r=n("qCKp"),i=n("j5kd");r.Observable.prototype.windowTime=i.windowTime},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"2TAq":function(e,t,n){var r=n("vd7W").isHexDigit,i=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 i=t,o=0;i<e.value.length;i++){var a=e.value.charCodeAt(i);if(45===a&&n&&0!==o)return d(e,t+o+1,!1)>0?6:0;if(!r(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||!i(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 r=d(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===l||e.type===c?h(e,45)&&d(e,1,!1)?n+1:0:f(r,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 r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),l=n("XNiG"),u=n("9ppp"),h=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(r.a)(this,n),(i=t.call(this))._value=e,i}return Object(i.a)(n,[{key:"value",get:function(){return this.getValue()}},{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)}}]),n}(l.b)},"2W6z":function(e,t,n){"use strict";e.exports=function(){}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={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 r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"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 r=n("kU1M");t.concatMap=function(e){return r.concatMap(e)(this)}},"33Dm":function(e,t,n){var r=n("vd7W").TYPE,i=r.WhiteSpace,o=r.Comment,a=r.Ident,s=r.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 i: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 r=n("qCKp"),i=n("338f");r.Observable.prototype.concatMap=i.concatMap},"3E0/":function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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),r=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new d(r,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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this,e)).delay=r,a.scheduler=i,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,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(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 r=n("qCKp"),i=n("dL1u");r.Observable.prototype.buffer=i.buffer},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("MGFw"),i=n("WtWf"),o=n("mvVQ"),a=n("/E8u"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).scheduler=e,o.work=i,o.pending=!1,o}return Object(i.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,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,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,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,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,i){return Object(r.a)(this,n),t.call(this)}return Object(i.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 r=n("qCKp");r.Observable.fromPromise=r.from},"3UWI":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("D0XW"),i=n("tnsW"),o=n("PqYM");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return Object(i.a)(function(){return Object(o.a)(e,t)})}},"3XNy":function(e,t){function n(e){return e>=48&&e<=57}function r(e){return e>=65&&e<=90}function i(e){return e>=97&&e<=122}function o(e){return r(e)||i(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:r,isLowercaseLetter:i,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,r){return 43===e||45===e?n(t)?2:46===t&&n(r)?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 r=n("lcII");n.d(t,"webSocket",function(){return r.a});var i=n("wxn8");n.d(t,"WebSocketSubject",function(){return i.a})},"4AtU":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.expand=function(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),r.expand(e,t=(t||0)<1?Number.POSITIVE_INFINITY:t,n)(this)}},"4D8k":function(e,t,n){"use strict";var r=n("9Qh4"),i=n("fEpb").Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:r("",i&&i.hasInstance||e("hasInstance")),isConcatSpreadable:r("",i&&i.isConcatSpreadable||e("isConcatSpreadable")),iterator:r("",i&&i.iterator||e("iterator")),match:r("",i&&i.match||e("match")),replace:r("",i&&i.replace||e("replace")),search:r("",i&&i.search||e("search")),species:r("",i&&i.species||e("species")),split:r("",i&&i.split||e("split")),toPrimitive:r("",i&&i.toPrimitive||e("toPrimitive")),toStringTag:r("",i&&i.toStringTag||e("toStringTag")),unscopables:r("",i&&i.unscopables||e("unscopables"))})}},"4HHr":function(e,t){var n=Object.prototype.hasOwnProperty,r=function(){};function i(e){return"function"==typeof e?e:r}function o(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function a(e,t){var r=t.structure,i=[];for(var o in r)if(!1!==n.call(r,o)){var a=r[o],s={name:o,type:!1,nullable:!1};Array.isArray(r[o])||(a=[r[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&&i.push(s)}return i.length?{context:t.walkContext,fields:i}:null}function s(e,t){var n=e.fields.slice(),r=e.context,i="string"==typeof r;return t&&n.reverse(),function(e,o,a){var s;i&&(s=o[r],o[r]=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))}i&&(o[r]=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}}}e.exports=function(e){var t=function(e){var t={};for(var r in e.node)if(n.call(e.node,r)){var i=e.node[r];if(!i.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=a(0,i)}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=r,s=r,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=i(n.enter),s=i(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===r&&s===r)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,r){a.call(h,t,n,r),c.hasOwnProperty(t.type)&&c[t.type](t,h,e),s.call(h,t,n,r)}(e)};return p.find=function(e,t){var n=null;return p(e,function(e,r,i){null===n&&t.call(this,e,r,i)&&(n=e)}),n},p.findLast=function(e,t){var n=null;return p(e,{reverse:!0,enter:function(e,r,i){null===n&&t.call(this,e,r,i)&&(n=e)}}),n},p.findAll=function(e,t){var n=[];return p(e,function(e,r,i){t.call(this,e,r,i)&&n.push(e)}),n},p}},"4Hgy":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t._do=function(e,t,n){return r.tap(e,t,n)(this)}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=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 r=n("qCKp"),i=n("nZYK");r.Observable.prototype.switchMap=i.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 r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},"4hIw":function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var r=n("MGFw"),i=n("D0XW"),o=n("Kqap"),a=n("NXyV"),s=n("lJxs");function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.a;return function(t){return Object(a.a)(function(){return t.pipe(Object(o.a)(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{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(r.a)(this,e),this.value=t,this.interval=n}},"4njK":function(e,t,n){var r=n("vd7W").TYPE,i=r.WhiteSpace,o=r.Semicolon,a=r.LeftCurlyBracket,s=r.Delim;function c(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===i?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 r,i=this.scanner.getTokenStart(e);return this.scanner.skip(this.scanner.getRawLength(e,t||l)),r=n&&this.scanner.tokenStart>i?c.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(i,r),value:this.scanner.source.substring(i,r)}},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","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":"none|inline|block|list-item|inline-list-item|inline-block|inline-table|table|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|flex|inline-flex|grid|inline-grid|run-in|ruby|ruby-base|ruby-text|ruby-base-container|ruby-text-container|contents|-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-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-row-align":"start|end|center|stretch","-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 r=n("qCKp");r.Observable.race=r.race},"4yVj":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("quSY");function o(e,t){return new r.a(function(n){var r=new i.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}},"5+tZ":function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return f});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r){return r.pipe(u(function(n,r){return Object(c.a)(e(n,r)).pipe(Object(s.a)(function(e,i){return t(n,e,r,i)}))},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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Object(o.a)(this,n),(i=t.call(this,e)).project=r,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}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(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new l.a(this),n=this.destination;n.add(t);var r=Object(l.c)(e,t);r!==t&&n.add(r)}},{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 r=n("MGFw"),i=n("WtWf"),o=n("mvVQ"),a=n("/E8u"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i,o){var a;return Object(r.a)(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=o,a.index=0,a}return Object(i.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)},"52x2":function(e,t,n){"use strict";e.exports=function(){}},"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 r=n("kU1M");t.exhaust=function(){return r.exhaust()(this)}},"5hZ8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("b/PJ");r.Observable.prototype.skipUntil=i.skipUntil},"5i7x":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.mapTo=function(e){return r.mapTo(e)(this)}},"6IDA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("YiA4");r.Observable.prototype.windowWhen=i.windowWhen},"6PMC":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.skipWhile=function(e){return r.skipWhile(e)(this)}},"6RFS":function(e,t,n){var r=n("vd7W").TYPE,i=r.WhiteSpace,o=r.Comment,a=r.AtKeyword,s=r.CDO,c=r.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 i: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 r=n("kU1M");t.findIndex=function(e,t){return r.findIndex(e,t)(this)}},"7+OI":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},"7+k4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("qIMP");r.Observable.prototype.pairwise=i.pairwise},7065:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.max=function(e){return r.max(e)(this)}},"70oK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("73rQ");r.Observable.prototype.exhaustMap=i.exhaustMap},"73rQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.exhaustMap=function(e){return r.exhaustMap(e)(this)}},"7GzS":function(e,t,n){var r=n("vd7W").cmpChar,i=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 i(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 r(this.scanner.source,this.scanner.tokenStart,117)&&r(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 r=n("HDdC"),i=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 r.a(function(n){var r=new i.a;return r.add(t.schedule(function(){var i=e[o.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(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 r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),l=n("c7jc"),u=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).scheduler=e,o.work=i,o}return Object(i.a)(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?Object(o.a)(Object(a.a)(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=l.a.setImmediate(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return Object(o.a)(Object(a.a)(n.prototype),"recycleAsyncId",this).call(this,e,t,r);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(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(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 i}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var r=n("Gqt4");function i(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,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!Object(r.k)(e)&&(Object(r.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 r=n("qCKp"),i=n("TqLU");r.Observable.prototype.find=i.find},"7N5M":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("TpWx");r.Observable.prototype.windowCount=i.windowCount},"7PmA":function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},"7RDD":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ZHaO");r.Observable.prototype.multicast=i.multicast},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n("MGFw"),i=n("WtWf"),o=n("JL25"),a=n("t9bE"),s=n("KUzl"),c=n("mvVQ"),l=n("/E8u"),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,i,a){var s;switch(Object(r.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,i,a)}return s}return Object(i.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,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(d.a),v=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e,i,a,s){var c,l;Object(r.a)(this,n),(c=t.call(this))._parentSubscriber=e;var d=Object(o.a)(c);return Object(u.a)(i)?l=i:i&&(l=i.next,a=i.error,s=i.complete,i!==h.a&&(d=Object.create(i),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(i.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(r){return p.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(m.a)(r),!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 r=n("kU1M");t.distinctUntilKeyChanged=function(e,t){return r.distinctUntilKeyChanged(e,t)(this)}},"82qP":function(e,t,n){e.exports={AtrulePrelude:n("TefO"),Selector:n("HvLG"),Value:n("n/gj")}},"86bp":function(e,t,n){"use strict";var r=n("YsTz"),i=Array.prototype.forEach,o=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return i.call(arguments,function(e){r(e)&&a(Object(e),t)}),t}},"89kA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ZR4w");r.Observable.prototype.map=i.map},"8Ip+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");function i(){return r.NEVER}t.staticNever=i,r.Observable.never=i},"8LQU":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.subscribeOn=function(e,t){return void 0===t&&(t=0),r.subscribeOn(e,t)(this)}},"8Qeq":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof r.a?t:null}return!0}},"8XFM":function(e,t){var n=Object.prototype.hasOwnProperty,r={generic:!0,types:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function i(e){return e&&e.constructor===Object}function o(e){if(i(e)){var t={};for(var r in e)n.call(e,r)&&(t[r]=e[r]);return t}return e}function a(e,t){for(var r in t)n.call(t,r)&&(i(e[r])?a(e[r],o(t[r])):e[r]=o(t[r]))}function s(e,t,r){for(var c in r)if(!1!==n.call(r,c))if(!0===r[c])c in t&&n.call(t,c)&&(e[c]=o(t[c]));else if(r[c])if(i(r[c]))a(l={},e[c]),a(l,t[c]),e[c]=l;else if(Array.isArray(r[c])){var l={},u=r[c].reduce(function(e,t){return e[t]=!0,e},{});for(var h in e[c])n.call(e[c],h)&&(l[h]={},e[c]&&e[c][h]&&s(l[h],e[c][h],u));for(var h in t[c])n.call(t[c],h)&&(l[h]||(l[h]={}),t[c]&&t[c][h]&&s(l[h],t[c][h],u));e[c]=l}return e}e.exports=function(e,t){return s(e,t,r)}},"8YE1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("5i7x");r.Observable.prototype.mapTo=i.mapTo},"8Yhr":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Vzig");r.Observable.prototype.throttleTime=i.throttleTime},"8mU2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.takeLast=function(e){return r.takeLast(e)(this)}},"8mYp":function(e,t,n){var r=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===r&&!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)}}},"8vcG":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("ZJsx"),i=n("dR+g"),o=n("ftpp");function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.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.")}()}},"8wsT":function(e,t,n){var r=n("twQA"),i=r.TYPE,o=r.NAME,a=n("P3uw").cmpStr,s=i.EOF,c=i.WhiteSpace,l=i.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,r=e,i=this.offsetAndType[Math.max(r-1,0)]&u;e:for(;r<this.tokenCount&&!((n=this.balance[r])<e);r++)switch(t(this.offsetAndType[r]>>h,this.source,i)){case 1:break e;case 2:r++;break e;default:i=this.offsetAndType[r]&u,this.balance[n]===r&&(r=n)}return r-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]<e},isDelim:function(e,t){return t?this.lookupType(t)===i.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===i.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 r=e,i=t&u;return e=i,{idx:n,type:o[t>>h],chunk:this.source.substring(r,i),balance:this.balance[n]}},this)}},e.exports=d},"9E4K":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("gzwt");r.Observable.prototype.count=i.count},"9HtI":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("atJV");r.Observable.prototype.last=i.last},"9K4g":function(e,t,n){var r=n("vd7W").TYPE.Hash;e.exports={name:"HexColor",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(r),{type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.value)}}},"9Qh4":function(e,t,n){"use strict";var r=n("k2qM"),i=n("F5Mc"),o=n("IDEf"),a=n("86bp"),s=n("+XMV");(e.exports=function(e,t){var n,i,c,l,u;return arguments.length<2||"string"!=typeof e?(l=t,t=e,e=null):l=arguments[2],r(e)?(n=s.call(e,"c"),i=s.call(e,"e"),c=s.call(e,"w")):(n=c=!0,i=!1),u={value:t,configurable:n,enumerable:i,writable:c},l?o(a(l),u):u}).gs=function(e,t,n){var c,l,u,h;return"string"!=typeof e?(u=n,n=t,t=e,e=null):u=arguments[3],r(t)?i(t)?r(n)?i(n)||(u=n,n=void 0):n=void 0:(u=t,t=n=void 0):t=void 0,r(e)?(c=s.call(e,"c"),l=s.call(e,"e")):(c=!0,l=!1),h={get:t,set:n,configurable:c,enumerable:l},u?o(a(u),h):h}},"9Sef":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("fY5S");r.Observable.prototype.zip=i.zipProto},"9g66":function(e,t,n){"use strict";var r=n("e989"),i=n("lq5y"),o=Math.max;e.exports=function(e,t){var n,a,s,c=o(arguments.length,2);for(e=Object(i(e)),s=function(r){try{e[r]=t[r]}catch(i){n||(n=i)}},a=1;a<c;++a)r(t=arguments[a]).forEach(s);if(void 0!==n)throw n;return e}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=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 r=n("qCKp"),i=n("6PMC");r.Observable.prototype.skipWhile=i.skipWhile},"9xAK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("w0v+"),o=n("kU1M");t.bufferTime=function(e){var t=arguments.length,n=r.asyncScheduler;i.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 r=n("qCKp"),i=n("IMZ1");r.Observable.prototype.publishBehavior=i.publishBehavior},A5T5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.repeatWhen=function(e){return r.repeatWhen(e)(this)}},ADT6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.filter=function(e,t){return r.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 r=n("kU1M");t.groupBy=function(e,t,n,i){return r.groupBy(e,t,n,i)(this)}},BBZ9:function(e,t,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i})},BFxc:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return Object(a.a)(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%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,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()}}]),n}(s.a)},BSEn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.bufferToggle=function(e,t){return r.bufferToggle(e,t)(this)}},BdNY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("4Hgy");r.Observable.prototype.do=i._do,r.Observable.prototype._do=i._do},BilO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.of=r.of},"C/AH":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Elj+");r.Observable.prototype.repeat=i.repeat},C8tm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("B9G6");r.Observable.prototype.groupBy=i.groupBy},CJ5M:function(e,t,n){var r=n("vd7W"),i=r.isIdentifierStart,o=r.isHexDigit,a=r.isDigit,s=r.cmpStr,c=r.consumeNumber,l=r.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 r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r))return!0;if(null!==e.min&&r<e.min)return!0;if(null!==e.max&&r>e.max)return!0}return!1}function y(e,t){var n=e.index,r=0;do{if(r++,e.balance<=n)break}while(e=t(r));return r}function _(e){return function(t,n,r){return null===t?0:t.type===l.Function&&g(t.value,f)?y(t,n):e(t,n,r)}}function w(e){return function(t){return null===t||t.type!==e?0:1}}function k(e){return function(t,n,r){if(null===t||t.type!==l.Dimension)return 0;var i=c(t.value,0);if(null!==e){var o=t.value.indexOf("\\",i),a=-1!==o&&v(t.value,o)?t.value.substring(i,o):t.value.substr(i);if(!1===e.hasOwnProperty(a.toLowerCase()))return 0}return b(r,t.value,i)?0:1}}function C(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===l.Number&&0===Number(t.value)?1:e(t,n,r)}}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:i(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,r=0,i=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<i)break e;r--;break;case l.Semicolon:if(0===r)break e;break;case l.Delim:if("!"===e.value&&0===r)break e;break;case l.Function:case l.LeftParenthesis:case l.LeftSquareBracket:case l.LeftCurlyBracket:r++}if(n++,e.balance<=i)break}while(e=t(n));return n},"any-value":function(e,t){if(!e)return 0;var n=e.index,r=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(r++,e.balance<=n)break}while(e=t(r));return r},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 r=c(e.value,0);return r===e.value.length||v(e.value,r)?b(n,e.value,r)?0:1:0}),integer:_(function(e,t,n){if(null===e||e.type!==l.Number)return 0;for(var r=43===e.value.charCodeAt(0)||45===e.value.charCodeAt(0)?1:0;r<e.value.length;r++)if(!a(e.value.charCodeAt(r)))return 0;return b(n,e.value,r)?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 i});var r=n("Lhse");function i(e){return e&&"function"==typeof e[r.a]}},COpn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.skipLast=function(e){return r.skipLast(e)(this)}},CRDf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("kJWO"),i=function(e){return function(t){var n=e[r.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 r=n("kU1M");t.sample=function(e){return r.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+))?(.*)$/,r=/^data:.+\,.+$/;function i(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,r=i(e);if(r){if(!r.path)return e;n=r.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?"/":"."),r?(r.path=n,o(r)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),s=i(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),o(n);if(n||t.match(r))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=i,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 r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).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 r=h(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=h(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r: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 r=i(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var c=r.path.lastIndexOf("/");c>=0&&(r.path=r.path.substring(0,c+1))}t=s(o(r),t)}return a(t)}},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("SeVD"),o=n("7HRe");function a(e,t){return t?Object(o.a)(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},CqXF:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).value=r,i}return Object(a.a)(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(s.a)},CuWV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.publishLast=function(){return r.publishLast()(this)}},CwTu:function(e,t,n){var r=n("XDwu"),i=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=r("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},MatchError:function(e,t,n,a){var s=r("SyntaxMatchError",e),c=function(e){for(var t=e.tokens,n=e.longestMatch,r=n<t.length?t[n].node:null,i=-1,o=0,a="",s=0;s<t.length;s++)s===n&&(i=a.length),null!==r&&t[s].node===r&&(s<=n?o++:o=0),a+=t[s].value;return{node:r,css:a,mismatchOffset:-1===i?a.length:i,last:null===r||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?i(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 i}),n.d(t,"a",function(){return o});var r=n("3N8a"),i=new(n("IjjT").a)(r.a),o=i},DDB3:function(e,t,n){var r=n("vd7W").TYPE,i=r.Ident,o=r.Function,a=r.Colon,s=r.RightParenthesis;e.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,r=null;return this.eat(a),this.eat(a),this.scanner.tokenType===o?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),r=this.pseudo[t].call(this),this.scanner.skipSC()):(r=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(s)):e=this.consume(i),{type:"PseudoElementSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:r}},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 r});var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},DJod:function(e,t,n){var r=n("vd7W").TYPE,i=n("4njK").mode,o=r.WhiteSpace,a=r.Comment,s=r.Semicolon,c=r.AtKeyword,l=r.LeftCurlyBracket,u=r.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,i.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,r=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:r.push(this.parseWithFallback(this.Atrule,h));break;default:r.push(t.call(this))}return this.scanner.eof||this.eat(u),{type:"Block",loc:this.getLocation(n,this.scanner.tokenStart),children:r}},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 r=n("qCKp"),i=n("4AtU");r.Observable.prototype.expand=i.expand},DWF9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("mfsk");r.Observable.prototype.defaultIfEmpty=i.defaultIfEmpty},DpPw:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("bcPL");r.Observable.prototype.onErrorResumeNext=i.onErrorResumeNext},Du80:function(e,t,n){var r=n("vd7W"),i=new(n("8wsT")),o={decorator:function(e){var t=null,n={len:0,node:null},r=[n],i="";return{children:e.children,node:function(n){var r=t;t=n,e.node.call(this,n),t=r},chunk:function(e){i+=e,n.node!==t?r.push({len:e.length,node:t}):n.len+=e.length},result:function(){return a(i,r)}}}};function a(e,t){var n=[],o=0,a=0,s=t?t[a].node:null;for(r(e,i);!i.eof;){if(t)for(;a<t.length&&o+t[a].len<=i.tokenStart;)o+=t[a++].len,s=t[a].node;n.push({type:i.tokenType,value:i.getTokenValue(),index:i.tokenIndex,balance:i.balance[i.tokenIndex],node:s}),i.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 r=n("qCKp"),i=n("VmLd");r.Observable.prototype.combineLatest=i.combineLatest},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return p});var r=n("t9bE"),i=n("KUzl"),o=n("MGFw"),a=n("WtWf"),s=n("mvVQ"),c=n("/E8u"),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,r){var i;return Object(o.a)(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}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,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).connectable=r,i}return Object(a.a)(n,[{key:"_error",value:function(e){this._unsubscribe(),Object(r.a)(Object(i.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Object(r.a)(Object(i.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)},ESbf:function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},EUoG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("v87U");r.Observable.prototype.single=i.single},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("HDdC"),i=new r.a(function(e){return e.complete()});function o(e){return e?function(e){return new r.a(function(t){return e.schedule(function(){return t.complete()})})}(e):i}},EaiB:function(e,t,n){var r=n("vd7W").TYPE,i=r.WhiteSpace,o=r.Comment,a=r.Ident,s=r.Function,c=r.Colon,l=r.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 i: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 r=n("xDdU"),i=n("xk4V"),o=i;o.v1=r,o.v4=i,e.exports=o},EiPP:function(e,t,n){var r=n("O36p"),i=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");function g(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=l(e),n=d(e),b=u(e),y=h(n),_={List:r,SyntaxError:i,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,_,_.lexer.structure)},tokenize:c,parse:t,walk:n,generate:b,find:n.find,findLast:n.findLast,findAll:n.findAll,clone:f,fromPlainObject:y.fromPlainObject,toPlainObject:y.toPlainObject,createSyntax:function(e){return v(m({},e))},fork:function(t){var n=m({},e);return v("function"==typeof t?t(n,g):m(n,t))}};return _.lexer=new a({generic:!0,types:e.types,properties:e.properties,node:e.node},_),_}t.create=function(e){return v(m({},e))}},"Elj+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.repeat=function(e){return void 0===e&&(e=-1),r.repeat(e)(this)}},F5Mc:function(e,t,n){"use strict";var r=n("YyF0"),i=/^\s*class[\s{/}]/,o=Function.prototype.toString;e.exports=function(e){return!!r(e)&&!i.test(o.call(e))}},"F97/":function(e,t,n){"use strict";function r(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 r})},F977:function(e,t,n){var r=n("vd7W").isDigit,i=n("vd7W").TYPE,o=i.Number,a=i.Delim;function s(){this.scanner.skipWS();for(var e=this.consume(o),t=0;t<e.length;t++){var n=e.charCodeAt(t);r(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 r=n("kU1M");t.dematerialize=function(){return r.dematerialize()(this)}},FEnK:function(e,t,n){var r=n("vd7W").TYPE,i=r.Semicolon,o=r.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!==i&&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"}},FKvE:function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},FU7m:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");t.Observable=r.Observable,t.Subject=r.Subject;var i=n("w0v+");t.AnonymousSubject=i.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 r=n("qCKp"),i=n("vTln");r.Observable.prototype.distinct=i.distinct},Fm6d:function(e,t){var n=function(){};function r(e){return"function"==typeof e?e:n}e.exports=function(e,t,i){var o=n,a=n;if("function"==typeof t?o=t:t&&(o=r(t.enter),a=r(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(i,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(i,t)}(e)}},Fzww:function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},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 r=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(i(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(i(this._socket,"close",function(){return t.dispose()})),this._disposables.push(i(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 i(e,t,n){return e.addEventListener(t,n),{dispose:function(){n&&e.removeEventListener(t,n)}}}t.AttachAddon=r}])},G12B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("P71F");r.Observable.prototype.sampleTime=i.sampleTime},G21R:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("UE8N");r.Observable.prototype.sequenceEqual=i.sequenceEqual},G4Hi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.generate=r.generate},"G9/t":function(e,t,n){var r=n("vd7W").TYPE,i=n("4njK").mode,o=r.AtKeyword,a=r.Semicolon,s=r.LeftCurlyBracket,c=r.RightCurlyBracket;function l(e){return this.Raw(e,i.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,r=null,i=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"===(r=this.parseWithFallback(this.AtrulePrelude.bind(this,e),l)).type&&null===r.children.head&&(r=null):r=l.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case a:this.scanner.next();break;case s:i=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:r,block:i}},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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this,e)).predicate=r,a.inclusive=i,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(r){return void n.error(r)}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)},GOzd:function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},Gqt4:function(e,t,n){"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function i(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 r}),n.d(t,"e",function(){return i}),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 r=n("kU1M");t.distinctUntilChanged=function(e,t){return r.distinctUntilChanged(e,t)(this)}},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("LRne"),i=n("0EUg");function o(){return Object(i.a)()(r.a.apply(void 0,arguments))}},"H+DX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.observeOn=function(e,t){return void 0===t&&(t=0),r.observeOn(e,t)(this)}},HAEL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.pairs=r.pairs},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("MGFw"),i=n("WtWf"),o=n("8Qeq"),a=n("WyKG"),s=n("kJWO"),c=n("mCNh"),l=n("2fFW"),u=function(){var e=function(){function e(t){Object(r.a)(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return Object(i.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 r=this.operator,i=Object(a.a)(e,t,n);if(i.add(r?r.call(i,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),l.a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{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,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,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 r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}}]),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 r=n("vd7W").TYPE.CDO;e.exports={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(r),{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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this,e)).predicate=r,a.source=i,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 r=n("vd7W").TYPE,i=r.Delim,o=r.Ident,a=r.Dimension,s=r.Percentage,c=r.Number,l=r.Hash,u=r.Colon,h=r.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 i: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=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=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 r=n("qCKp"),i=n("QTCG");r.Observable.prototype.takeWhile=i.takeWhile},IDEf:function(e,t,n){"use strict";e.exports=n("FKvE")()?Object.assign:n("9g66")},IMZ1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.publishBehavior=function(e){return r.publishBehavior(e)(this)}},IUuq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.combineAll=function(e){return r.combineAll(e)(this)}},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("MGFw"),i=n("WtWf"),o=n("JL25"),a=n("t9bE"),s=n("KUzl"),c=n("mvVQ"),l=n("/E8u"),u=n("Y/cZ"),h=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a.now;return Object(r.a)(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==Object(o.a)(i)?n.delegate.now():a()})).actions=[],i.active=!1,i.scheduled=void 0,i}return Object(i.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):Object(a.a)(Object(s.a)(n.prototype),"schedule",this).call(this,e,t,r)}},{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 r=n("vd7W").cmpChar,i=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,r=this.scanner.source.charCodeAt(n);for(r!==h&&r!==d||(t&&this.error("Number sign is not allowed"),n++);n<this.scanner.tokenEnd;n++)i(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(!r(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&&r(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&&i(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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).total=r,i.count=0,i}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 r=n("t9bE"),i=n("KUzl"),o=n("mvVQ"),a=n("/E8u"),s=n("MGFw"),c=n("WtWf"),l=n("zx2A");function u(e){return function(t){var n=new h(e),r=t.lift(n);return n.caught=r}}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,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e)).selector=r,o.caught=i,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(r.a)(Object(i.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)},JL25:function(e,t,n){"use strict";function r(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 r})},JM0U:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.auditTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.auditTime(e,t)(this)}},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("GyhO"),i=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(i.a)(o)?(t.pop(),function(e){return Object(r.a)(t,e,o)}):function(e){return Object(r.a)(t,e)}}},Jb7g:function(e,t,n){"use strict";var r=n("9Qh4"),i=n("s4AO"),o=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:r(function(t){return o[t]?o[t]:o[t]=e(String(t))}),keyFor:r(function(e){var t;for(t in i(e),o)if(o[t]===e)return t})})}},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}},JpQp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("LSSe");r.Observable.prototype.throttle=i.throttle},K9S6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=null;return t.forEach(function(e){if(null==i){var t=e.apply(void 0,n);null!=t&&(i=t)}}),i}return(0,i.default)(r)};var r,i=(r=n("pvIh"))&&r.__esModule?r:{default:r};e.exports=t.default},KC9P:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ovWV");r.Observable.prototype.concat=i.concat},KGUQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("FDEy");r.Observable.prototype.dematerialize=i.dematerialize},KUzl:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return r})},KVj6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("7065");r.Observable.prototype.max=i.max},KW4y:function(e,t,n){var r=n("4vYp");e.exports={generic:!0,types:r.types,properties:r.properties,node:n("585i")}},KavO:function(e,t,n){var r=n("Cbry"),i=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,r=0,i=e.length;r<i;r++)n.add(e[r],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:r.toSetString(e),a=o?this.has(e):i.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=r.toSetString(e);return i.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=r.toSetString(e);if(i.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 r=n("tZmI"),i={type:"Match"},o={type:"Mismatch"},a={type:"DisallowEmpty"};function s(e,t,n){return t===i&&n===o||e===i&&t===i&&n===i?e:("If"===e.type&&e.else===o&&t===i&&(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,t,n){switch(e){case" ":for(var r=i,a=t.length-1;a>=0;a--)r=s(f=t[a],r,o);return r;case"|":r=o;var h=null;for(a=t.length-1;a>=0;a--){if(l(f=t[a])&&(null===h&&a>0&&l(t[a-1])&&(r=s({type:"Enum",map:h=Object.create(null)},i,r)),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,r=s(f,i,r)}return r;case"&&":if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};for(r=o,a=t.length-1;a>=0;a--){var f=t[a];p=t.length>1?u(e,t.filter(function(e){return e!==f}),!1):i,r=s(f,p,r)}return r;case"||":if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};for(r=n?i:o,a=t.length-1;a>=0;a--){var p;f=t[a],p=t.length>1?u(e,t.filter(function(e){return e!==f}),!0):i,r=s(f,p,r)}return r}}function h(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=u(e.combinator,e.terms.map(h),!1);return e.disallowEmpty&&(t=s(t,a,o)),t;case"Multiplier":return function(e){var t=i,n=h(e.term);if(0===e.max)n=s(n,a,o),(t=s(n,null,o)).then=s(i,i,t),e.comma&&(t.then.else=s({type:"Comma",syntax:e},t,o));else for(var r=e.min||1;r<=e.max;r++)e.comma&&t!==i&&(t=s({type:"Comma",syntax:e},t,o)),t=s(n,s(i,i,t),o);if(0===e.min)t=s(i,i,t);else for(r=0;r<e.min-1;r++)e.comma&&t!==i&&(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:i,MISMATCH:o,DISALLOW_EMPTY:a,buildMatchGraph:function(e,t){return"string"==typeof e&&(e=r(e)),{type:"MatchGraph",match:h(e),syntax:t||null,source:e}}}},Kj3r:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this,e)).dueTime=r,a.scheduler=i,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 r=n("Sean"),i=n("vd7W").isBOM,o=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};o.prototype={setSource:function(e,t,n,r){this.source=e,this.startOffset=void 0===t?0:t,this.startLine=void 0===n?1:n,this.startColumn=void 0===r?1:r,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(function(e,t){for(var n=t.length,o=r(e.lines,n),a=e.startLine,s=r(e.columns,n),c=e.startColumn,l=t.length>0?i(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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),s=n("7o/Q");function c(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new l(e,t,n))}}var l=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(o.a)(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i,a){var s;return Object(o.a)(this,n),(s=t.call(this,e)).accumulator=r,s._seed=i,s.hasSeed=a,s.index=0,s}return Object(a.a)(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{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(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}]),n}(s.a)},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},Kvnp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("cLIC");r.Observable.prototype.every=i.every},KxFi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),r.mergeAll(e)(this)}},LM6Q:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.startWith.apply(void 0,e)(this)}},LOqM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("uARb");r.Observable.prototype.debounce=i.debounce},"LOr+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.debounceTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.debounceTime(e,t)(this)}},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("z+Ro"),i=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(r.a)(a)?(t.pop(),Object(o.a)(t,a)):Object(i.a)(t)}},LSSe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M"),i=n("w0v+");t.throttle=function(e,t){return void 0===t&&(t=i.defaultThrottleConfig),r.throttle(e,t)(this)}},LSkT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("COpn");r.Observable.prototype.skipLast=i.skipLast},LUEE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("CVW7");r.Observable.prototype.sample=i.sample},LfHy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.publishReplay=function(e,t,n,i){return r.publishReplay(e,t,n,i)(this)}},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});var i=r()},Lsvf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.ignoreElements=function(){return r.ignoreElements()(this)}},"Lw+5":function(e,t,n){var r=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===r);)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 r=n("qCKp"),i=n("IUuq");r.Observable.prototype.combineAll=i.combineAll},M6P7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t._finally=function(e){return r.finalize(e)(this)}},M6kn:function(e,t,n){},MBAA:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("quSY"),o=n("Lhse");function a(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,a=new i.a;return a.add(function(){r&&"function"==typeof r.return&&r.return()}),a.add(t.schedule(function(){r=e[o.a](),a.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),a})}},MGFw:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},MgzW:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var h=0;h<s.length;h++)o.call(n,s[h])&&(c[s[h]]=n[s[h]])}}return c}},Mw3v:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.pluck.apply(void 0,e)(this)}},Myac:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.race.apply(void 0,e)(this)}},"ND/j":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Xh4i");r.Observable.prototype.window=i.window},NEMR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.retryWhen=function(e){return r.retryWhen(e)(this)}},"NHP+":function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),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(r.a)(this,n),(e=t.apply(this,arguments)).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return Object(i.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 r(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return r})},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("sVev"),i=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(i.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 r.a}))}}},NNCq:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var r=n("HDdC");function i(){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 r.a(function(r){void 0===t&&(t=e,e=0);var i=0,a=e;if(n)return n.schedule(o,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(a++),r.closed)break}})}function o(e){var t=e.start,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t),r.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 r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function a(e){return new r.a(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(t)})}},Nh3w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Y7AG");r.Observable.prototype.partition=i.partition},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).hasFirst=!1,r.observables=[],r.subscriptions=[],r}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 r=e[n],i=Object(u.a)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}}},{key:"notifyNext",value:function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(t)}}]),n}(l.a)},O36p:function(e,t){function n(e){return{prev:null,next:null,data:e}}function r(e,t,n){var r;return null!==o?(r=o,o=o.cursor,r.prev=t,r.next=n,r.cursor=e.cursor):r={prev:t,next:n,cursor:e.cursor},e.cursor=r,r}function i(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,r){for(var i=this.cursor;null!==i;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.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 r=0;r<e.length;r++){var i=n(e[r]);null!==t?t.next=i:this.head=i,i.prev=t,t=i}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=r(this,null,this.head);null!==o.next;)o.next=(n=o.next).next,e.call(t,n.data,n,this);i(this)},a.prototype.forEachRight=a.prototype.eachRight=function(e,t){var n;void 0===t&&(t=this);for(var o=r(this,this.tail,null);null!==o.prev;)o.prev=(n=o.prev).prev,e.call(t,n.data,n,this);i(this)},a.prototype.nextUntil=function(e,t,n){if(null!==e){var o;void 0===n&&(n=this);for(var a=r(this,null,e);null!==a.next&&(a.next=(o=a.next).next,!t.call(n,o.data,o,this)););i(this)}},a.prototype.prevUntil=function(e,t,n){if(null!==e){var o;void 0===n&&(n=this);for(var a=r(this,e,null);null!==a.prev&&(a.prev=(o=a.prev).prev,!t.call(n,o.data,o,this)););i(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,r=this.head;for(void 0===t&&(t=this);null!==r;)n.appendData(e.call(t,r.data,r,this)),r=r.next;return n},a.prototype.filter=function(e,t){var n=new a,r=this.head;for(void 0===t&&(t=this);null!==r;)e.call(t,r.data,r,this)&&n.appendData(r.data),r=r.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 r=n("MGFw"),i=n("WtWf"),o=n("mvVQ"),a=n("/E8u"),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 i,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(r.a)(this,n),(i=t.call(this)).source=e,i.delayTime=o,i.scheduler=a,(!Object(l.a)(o)||o<0)&&(i.delayTime=0),a&&"function"==typeof a.schedule||(i.scheduler=c.a),i}return Object(i.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a;return new n(e,t,r)}},{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 r=n("qCKp");r.Observable.forkJoin=r.forkJoin},OQgR:function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"a",function(){return v});var r=n("t9bE"),i=n("KUzl"),o=n("mvVQ"),a=n("/E8u"),s=n("MGFw"),c=n("WtWf"),l=n("7o/Q"),u=n("quSY"),h=n("HDdC"),d=n("XNiG");function f(e,t,n,r){return function(i){return i.lift(new p(e,t,n,r))}}var p=function(){function e(t,n,r,i){Object(s.a)(this,e),this.keySelector=t,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i}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,r,i,o,a){var c;return Object(s.a)(this,n),(c=t.call(this,e)).keySelector=r,c.elementSelector=i,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 r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(s){this.error(s)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new d.b,n.set(t,i);var o=new v(t,i,this);if(this.destination.next(o),this.durationSelector){var a;try{a=this.durationSelector(new v(t,i))}catch(s){return void this.error(s)}this.add(a.subscribe(new g(t,i,this)))}}i.closed||i.next(r)}},{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(r.a)(Object(i.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,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,r)).key=e,o.group=r,o.parent=i,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,r,i){var o;return Object(s.a)(this,n),(o=t.call(this)).key=e,o.groupSubject=r,o.refCountSubscription=i,o}return Object(c.a)(n,[{key:"_subscribe",value:function(e){var t=new u.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new b(n)),t.add(r.subscribe(e)),t}}]),n}(h.a),b=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this)).parent=e,e.count++,r}return Object(c.a)(n,[{key:"unsubscribe",value:function(){var e=this.parent;e.closed||this.closed||(Object(r.a)(Object(i.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 r(e,t){for(var n=0,r=t.length;n<r;n++)for(var i=t[n],o=Object.getOwnPropertyNames(i.prototype),a=0,s=o.length;a<s;a++){var c=o[a];e.prototype[c]=i.prototype[c]}}n.d(t,"a",function(){return r})},OohF:function(e,t,n){var r=n("vd7W").TYPE,i=r.WhiteSpace,o=r.Comment;e.exports=function(e){var t=this.createList(),n=null,r={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 i:r.ignoreWS?this.scanner.next():r.space=this.WhiteSpace();continue}if(void 0===(n=e.getNode.call(this,r)))break;null!==r.space&&(t.push(r.space),r.space=null),t.push(n),r.ignoreWSAfter?(r.ignoreWSAfter=!1,r.ignoreWS=!0):r.ignoreWS=!1}return t}},OyBZ:function(e,t,n){var r=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(r)}},generate:function(e){this.chunk(e.name)}}},"P+DX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("KxFi");r.Observable.prototype.mergeAll=i.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 r=n("3XNy"),i=r.isDigit,o=r.isHexDigit,a=r.isUppercaseLetter,s=r.isName,c=r.isWhiteSpace,l=r.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 r=e.charCodeAt(t);return a(r)&&(r|=32),r===n}function f(e,t){for(;t<e.length&&i(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 r=u(e,t);c(r)&&(t+=h(e,t,r))}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)),i(n)&&(t=f(e,t+1),n=e.charCodeAt(t)),46===n&&i(e.charCodeAt(t+1))&&(n=e.charCodeAt(t+=2),t=f(e,t)),d(e,t,101)){var r=0;45!==(n=e.charCodeAt(t+1))&&43!==n||(r=1,n=e.charCodeAt(t+2)),i(n)&&(t=f(e,t+1+r+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,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(var i=t;i<n;i++){var o=e.charCodeAt(i),s=r.charCodeAt(i-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 r=n("qCKp"),i=n("kU1M");t.sampleTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.sampleTime(e,t)(this)}},PZgn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("LfHy");r.Observable.prototype.publishReplay=i.publishReplay},Pd0I:function(e,t,n){var r=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===r);)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 r=n("qCKp");r.Observable.bindNodeCallback=r.bindNodeCallback},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=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=i.a),new r.a(function(t){var r=Object(o.a)(e)?e:+e-n.now();return n.schedule(c,r,{index:0,period:s,subscriber:t})})}function c(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},PzWj:function(e,t,n){var r=n("vd7W").TYPE,i=r.Ident,o=r.Function,a=r.Colon,s=r.RightParenthesis;e.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,r=null;return this.eat(a),this.scanner.tokenType===o?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),r=this.pseudo[t].call(this),this.scanner.skipSC()):(r=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(s)):e=this.consume(i),{type:"PseudoClassSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:r}},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 r=n("vd7W").TYPE,i=r.Ident,o=r.Number,a=r.Dimension,s=r.LeftParenthesis,c=r.RightParenthesis,l=r.Colon,u=r.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(i),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 i: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(")")}}},QCnb:function(e,t,n){"use strict";e.exports=n("+wdc")},QIAL:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("kJWO");function i(e){return e&&"function"==typeof e[r.a]}},QJJP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("elu/");r.Observable.prototype.scan=i.scan},QKsE:function(e,t,n){var r=Object.prototype.hasOwnProperty,i=n("KcB0"),o=i.MATCH,a=i.MISMATCH,s=i.DISALLOW_EMPTY,c=n("twQA").TYPE,l="Match",u=0;function h(e){for(var t=null,n=null,r=e;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function d(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=65&&r<=90&&(r|=32),r!==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 i(){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},i(),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(i();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].*$/,"")),r.call(t.map,R))){t=t.map[R];break}t=a;break;case"Generic":var I=M+Math.floor(t.fn(O,h,null!==_?_.opts:null));if(!isNaN(I)&&I>M){for(;M<I;)b();t=o}else t=a;break;case"Type":case"Property":var A="Type"===t.type?"types":"properties",D=r.call(n,A)?n[A][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 N="";for(I=M;I<e.length&&N.length<t.value.length;I++)N+=e[I].value;if(d(N,t.value)){for(;M<I;)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 r=m(e,t,n||{});if(null!==r.match){var i=h(r.match).prev;for(r.match=[];null!==i;){switch(i.type){case 0:break;case 2:case 3:r.match.push({type:i.type,syntax:i.syntax});break;default:r.match.push({token:i.token.value,node:i.token.node})}i=i.prev}}return r},matchAsTree:function(e,t,n){var r=m(e,t,n||{});if(null===r.match)return r;var i=r.match,o=r.match={syntax:t.syntax||null,match:[]},a=[o];for(i=h(i).prev;null!==i;){switch(i.type){case 2:o.match.push(o={syntax:i.syntax,match:[]}),a.push(o);break;case 3:a.pop(),o=a[a.length-1];break;default:o.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r},getTotalIterationCount:function(){return u}}},"QPu+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.reduce=function(e,t){return arguments.length>=2?r.reduce(e,t)(this):r.reduce(e)(this)}},QTCG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.takeWhile=function(e){return r.takeWhile(e)(this)}},QXri:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.throw=r.throwError,r.Observable.throwError=r.throwError},Qbza:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("1gRP");r.Observable.prototype.materialize=i.materialize},QsQ4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.withLatestFrom.apply(void 0,e)(this)}},QtPd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("LOr+");r.Observable.prototype.debounceTime=i.debounceTime},QtvL:function(e,t,n){var r=n("O36p");e.exports=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&e.children instanceof r==0&&(e.children=(new r).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof r&&(e.children=e.children.toArray())}}),t}}}},Qw2J:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("caIW");r.Observable.prototype.concatAll=i.concatAll},R9As:function(e,t,n){self,e.exports=function(){"use strict";var e={775:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0;var n=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;if(0!==e._renderService.dimensions.actualCellWidth&&0!==e._renderService.dimensions.actualCellHeight){var t=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(t.getPropertyValue("height")),r=Math.max(0,parseInt(t.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),o=n-(parseInt(i.getPropertyValue("padding-top"))+parseInt(i.getPropertyValue("padding-bottom"))),a=r-(parseInt(i.getPropertyValue("padding-right"))+parseInt(i.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=n}},t={};return function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(775)}()},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 r=n("qCKp"),i=n("nueD");r.Observable.prototype.isEmpty=i.isEmpty},RFoL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.first=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.first.apply(void 0,e)(this)}},RQB8:function(e,t,n){e.exports=n("ls82")},RT2N:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("eUyF");r.Observable.prototype.concatMapTo=i.concatMapTo},RhlD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.interval=r.interval},Rx26:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var r=n("zNuj"),i=n("BBZ9"),o={nowSeconds:function(){return Date.now()/1e3}},a=Object(i.b)()?function(){try{return Object(i.a)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=Object(r.e)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},c=o.nowSeconds.bind(o);s.nowSeconds.bind(s),function(){var e=Object(r.e)().performance;if(e){var t=36e5;if(e.timeOrigin&&Math.abs(e.timeOrigin+e.now()-Date.now())<t)return e.timeOrigin;var n=e.timing&&e.timing.navigationStart;"number"==typeof n&&Math.abs(n+e.now()-Date.now())<t||Date.now()}}()}).call(this,n("kIY7")(e))},STE7:function(e,t,n){var r=n("vd7W").TYPE.Ident;function i(){this.scanner.tokenType!==r&&!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(),i.call(this)):(i.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),i.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},SUdx:function(e,t,n){"use strict";n("umFS")()||Object.defineProperty(n("fEpb"),"Symbol",{value:n("lO5s"),configurable:!0,enumerable:!1,writable:!0})},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n("ngJS"),i=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(r.a)(e);if(Object(c.a)(e))return Object(i.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 r=n("t9bE"),i=n("KUzl"),o=n("MGFw"),a=n("WtWf"),s=n("mvVQ"),c=n("/E8u"),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 r;Object(o.a)(this,n),r=t.call(this);var i={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(r){}return new l.a.ActiveXObject(e)}catch(r){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)i.url=e;else for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a]);return r.request=i,r}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,r){var i;Object(o.a)(this,n),(i=t.call(this,e)).request=r,i.done=!1;var a=r.headers=r.headers||{};return r.crossDomain||i.getHeader(a,"X-Requested-With")||(a["X-Requested-With"]="XMLHttpRequest"),i.getHeader(a,"Content-Type")||l.a.FormData&&r.body instanceof l.a.FormData||void 0===r.body||(a["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=i.serializeBody(r.body,i.getHeader(r.headers,"Content-Type")),i.send(),i}return Object(a.a)(n,[{key:"next",value:function(e){this.done=!0;var t,n=this.xhr,r=this.request,i=this.destination;try{t=new k(e,n,r)}catch(o){return i.error(o)}i.next(t)}},{key:"send",value:function(){var e=this.request,t=this.request,n=t.user,r=t.method,i=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(r,i,o,n,a):l.open(r,i,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,r,i=t.progressSubscriber;function o(e){var t,n=o.subscriber,r=o.progressSubscriber,i=o.request;r&&r.error(e);try{t=new x(this,i)}catch(a){t=a}n.error(t)}function a(e){}function s(e){var t=s.subscriber,n=s.progressSubscriber,r=s.request;if(4===this.readyState){var i=1223===this.status?204:this.status;if(0===i&&(i=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),i<400)n&&n.complete(),t.next(e),t.complete();else{var o;n&&n.error(e);try{o=new C("ajax error "+i,this,r)}catch(a){o=a}t.error(o)}}}e.ontimeout=o,o.request=t,o.subscriber=this,o.progressSubscriber=i,e.upload&&"withCredentials"in e&&(i&&(n=function(e){n.progressSubscriber.next(e)},l.a.XDomainRequest?e.onprogress=n:e.upload.onprogress=n,n.progressSubscriber=i),e.onerror=r=function(e){var t,n=r.progressSubscriber,i=r.subscriber,o=r.request;n&&n.error(e);try{t=new C("ajax error",this,o)}catch(a){t=a}i.error(t)},r.request=t,r.subscriber=this,r.progressSubscriber=i),e.onreadystatechange=a,a.subscriber=this,a.progressSubscriber=i,a.request=t,e.onload=s,s.subscriber=this,s.progressSubscriber=i,s.request=t}},{key:"unsubscribe",value:function(){var e=this.xhr;!this.done&&e&&4!==e.readyState&&"function"==typeof e.abort&&e.abort(),Object(r.a)(Object(i.a)(n.prototype),"unsubscribe",this).call(this)}}]),n}(h.a),k=function e(t,n,r){Object(o.a)(this,e),this.originalEvent=t,this.xhr=n,this.request=r,this.status=n.status,this.responseType=n.responseType||r.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 r=n("kU1M");t.min=function(e){return r.min(e)(this)}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("sVev"),i=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(i.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 r.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 r in n)e[r]=n[r]}return e}(n("KW4y"),n("oYUb"),n("acmg")))},TMm9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("0c70");r.Observable.prototype.toArray=i.toArray},TSYQ:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}()},TefO:function(e,t,n){e.exports={getNode:n("7GzS")}},Tnl3:function(e,t,n){var r=n("vd7W").isHexDigit,i=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,i=0;n<this.scanner.tokenEnd;n++){var o=this.scanner.source.charCodeAt(n);if(45===o&&t&&0!==i)return 0===u.call(this,e+i+1,!1)&&this.error(),-1;r(o)||this.error(t&&0!==i?"HyphenMinus"+(i<6?" or hex digit":"")+" is expected":i<6?"Hex digit is expected":"Unexpected input",n),++i>6&&this.error("Too many hex digits",n)}return this.scanner.next(),i}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 i(this.scanner.source,e,117)||this.error("U is expected"),i(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 r=n("kU1M");t.windowCount=function(e,t){return void 0===t&&(t=0),r.windowCount(e,t)(this)}},Tpyv:function(e,t,n){var r=n("vd7W").TYPE.WhiteSpace,i=Object.freeze({type:"WhiteSpace",loc:null,value:" "});e.exports={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(r),i},generate:function(e){this.chunk(e.value)}}},TqLU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.find=function(e,t){return r.find(e,t)(this)}},TwXD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("7y2s");r.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},UCR5:function(e,t,n){var r=n("Vywy"),i=n("Cbry"),o=n("KavO").ArraySet,a=n("sQiz").MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.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 r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(r){var o=r;null!==t&&(o=i.relative(t,r)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(r);null!=a&&n.setSourceContent(r,a)}),n},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),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:r,name:o})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=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.');r=e.file}var a=this._sourceRoot;null!=a&&(r=i.relative(a,r));var s=new o,c=new o;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=i.join(n,t.source)),null!=a&&(t.source=i.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 r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=a&&(t=i.relative(a,t)),this.setSourceContent(t,r))},this)},s.prototype._validateMapping=function(e,t,n,r){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||r)&&!(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:r}))},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(!i.compareByGeneratedPositionsInflated(t,f[p-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-h),h=o,e+=r.encode(t.originalLine-1-l),l=t.originalLine-1,e+=r.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.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=i.relative(t,e));var n=i.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 r=n("kU1M");t.sequenceEqual=function(e,t){return r.sequenceEqual(e,t)(this)}},UGdY:function(e,t,n){var r=n("UCR5").SourceMapGenerator,i={Atrule:!0,Selector:!0,Declaration:!0};e.exports=function(e){var t=new r,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&&i.hasOwnProperty(e.type)){var r=e.loc.start.line,d=e.loc.start.column-1;s.line===r&&s.column===d||(s.line=r,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&&i.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 i});var r=n("jtHE");function i(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,o=void 0===i?Number.POSITIVE_INFINITY:i,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 i;u++,!t||h?(h=!1,t=new r.a(o,s,l),i=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()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){u--,i.unsubscribe(),i=void 0,n&&!d&&c&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}},UwDK:function(e,t,n){var r=n("vd7W").TYPE.RightParenthesis;e.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(e,t){var n,i=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(r),{type:"Function",loc:this.getLocation(i,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 r=n("HDdC"),i=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(i.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 r.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 r=n("qCKp"),i=n("l4jP");r.Observable.prototype.share=i.share},Vj1t:function(e,t,n){var r=n("vd7W").TYPE,i=r.LeftParenthesis,o=r.RightParenthesis;e.exports={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart;return this.eat(i),n=e.call(this,t),this.scanner.eof||this.eat(o),{type:"Parentheses",loc:this.getLocation(r,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 r=n("qCKp"),i=n("bKLx");r.Observable.prototype.timeInterval=i.timeInterval},VmLd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=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&&i.isArray(e[0])&&(e=e[0].slice()),this.lift.call(r.of.apply(void 0,[this].concat(e)),new i.CombineLatestOperator(n))}},Vywy:function(e,t,n){var r=n("Jcck");t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,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=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),l+=(o&=31)<<u,u+=5}while(i);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 r=n("qCKp"),i=n("w0v+"),o=n("kU1M");t.throttleTime=function(e,t,n){return void 0===t&&(t=r.asyncScheduler),void 0===n&&(n=i.defaultThrottleConfig),o.throttleTime(e,t,n)(this)}},"W/jz":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("A5T5");r.Observable.prototype.repeatWhen=i.repeatWhen},W5YF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("oXC5");r.Observable.prototype.switchMapTo=i.switchMapTo},WMd4:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var r=n("MGFw"),i=n("WtWf"),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,i){Object(r.a)(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return Object(i.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}()},WbBG:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},WtWf:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return i})},WyKG:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("2QA8"),o=n("gRHU");function a(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}},XC4j:function(e,t){},XDL1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.elementAt=function(e,t){return r.elementAt.apply(void 0,arguments)(this)}},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}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),r=new Error;return n.name=e,n.message=t,Object.defineProperty(n,"stack",{get:function(){return(r.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 r=n("WtWf"),i=n("t9bE"),o=n("KUzl"),a=n("MGFw"),s=n("mvVQ"),c=n("/E8u"),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 r;return Object(a.a)(this,n),(r=t.call(this,e)).destination=e,r}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(r.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,r=t.slice(),i=0;i<n;i++)r[i].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,r=t.slice(),i=0;i<n;i++)r[i].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(),r=0;r<t;r++)n[r].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(i.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,r){var i;return Object(a.a)(this,n),(i=t.call(this)).destination=e,i.source=r,i}return Object(r.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 r=n("qCKp");r.Observable.empty=r.empty},Xh4i:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.window=function(e){return r.window(e)(this)}},Xj2z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.fromEvent=r.fromEvent},Xk39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t._catch=function(e){return r.catchError(e)(this)}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},Xs6s:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("M6P7");r.Observable.prototype.finally=i._finally,r.Observable.prototype._finally=i._finally},Xt1Y:function(e,t,n){"use strict";var r=n("k2qM"),i={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(i,typeof e)}},"Y+H1":function(e,t,n){var r=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(r),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 r=n("MGFw"),i=n("WtWf"),o=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;Object(r.a)(this,e),this.SchedulerAction=t,this.now=n}return Object(i.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 r=n("O36p"),i=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!==i.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 r)}}}else o(n,"Unknown field `"+s+"` for "+e+" node type");c||o(n,"Bad value for `"+e+"."+s+"`")}}for(var s in t)i.call(t,s)&&!1===i.call(n,s)&&o(n,"Field `"+e+"."+s+"` is missed")}}function c(e,t){var n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(var a in n)if(!1!==i.call(n,a)){for(var c=[],l=r[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,r)}}e.exports={getStructureFromConfig:function(e){var t={};if(e.node)for(var n in e.node)if(i.call(e.node,n)){var r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=c(n,r)}return t}}},Y6u4:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=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 r=n("kU1M");t.partition=function(e,t){return r.partition(e,t)(this)}},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DH7j");function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},"YA+d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("cYpg");r.Observable.prototype.bufferWhen=i.bufferWhen},YiA4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.windowWhen=function(e){return r.windowWhen(e)(this)}},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("MGFw"),i=n("WtWf"),o=n("mvVQ"),a=n("/E8u"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,i){var o;return Object(r.a)(this,n),(o=t.call(this)).subject=e,o.subscriber=i,o.closed=!1,o}return Object(i.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)},YsTz:function(e,t,n){"use strict";var r=n("52x2")();e.exports=function(e){return e!==r&&null!==e}},YwoP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("RFoL");r.Observable.prototype.first=i.first},YyF0:function(e,t,n){"use strict";var r=n("kBPl");e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!r(e)}},ZHaO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.multicast=function(e,t){return r.multicast(e,t)(this)}},ZHpM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.take=function(e){return r.take(e)(this)}},ZJsx:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",function(){return r})},ZR4w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.map=function(e,t){return r.map(e,t)(this)}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("51Dv"),i=n("SeVD"),o=n("HDdC");function a(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new r.a(e,n,a);if(!s.closed)return t instanceof o.a?t.subscribe(s):Object(i.a)(t)(s)}},ZVk9:function(e,t,n){var r=n("vd7W").isWhiteSpace,i=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&&r(this.scanner.source.charCodeAt(n));)n++;for(;n<o&&r(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:i(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(")")}}},ZoYo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(e){if(!e||"object"!==(void 0===e?"undefined":r(e)))return'""';var t="",n=!0,i=!1,o=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=a.value;if("string"!=typeof e[c]){if("object"===r(e[c])&&0!==e[c].length){var l=e[c],u=!0,h=!1,d=void 0;try{for(var f,p=Object.keys(l)[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value;if("function"!=typeof l[m]&&l[m]||"function"==typeof l[m]&&l[m]()){t+=c+":"+m+";";break}}}catch(g){h=!0,d=g}finally{try{!u&&p.return&&p.return()}finally{if(h)throw d}}}}else t+=c+":"+e[c]+";"}}catch(g){i=!0,o=g}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return""+t},n("SUdx"),e.exports=t.default},"Zw/6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("BSEn");r.Observable.prototype.bufferToggle=i.bufferToggle},Zy1z:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).hasPrev=!1,r}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)},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 i});var r=n("NJ4a"),i=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,r.a),t}}},aMoL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("jtHT");r.Observable.prototype.publish=i.publish},aP66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.timeout=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.timeout(e,t)(this)}},aUQo:function(e,t,n){var r=n("vd7W").TYPE.CDC;e.exports={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(r),{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},aaBP:function(e,t,n){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,n(u,o),u}function a(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function u(){this.reset()}return s(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,n){var r,i,o,a,s=this.byteLength,c=e(t,s),l=s;return void 0!==n&&(l=e(n,s)),c>l?new ArrayBuffer(0):(r=l-c,i=new ArrayBuffer(r),o=new Uint8Array(i),a=new Uint8Array(this,c,r),o.set(a),i)}}(),u.prototype.append=function(e){return this.appendBinary(c(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=l(n)),this.reset(),n},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(c(e),t)},u.hashBinary=function(e,t){var n=s(o(e));return t?l(n):n},(u.ArrayBuffer=function(){this.reset()}).prototype.append=function(e){var t,r,o,a,s=(r=this._buff.buffer,o=e,!0,(a=new Uint8Array(r.byteLength+o.byteLength)).set(new Uint8Array(r)),a.set(new Uint8Array(o),r.byteLength),a),c=s.length;for(this._length+=e.byteLength,t=64;t<=c;t+=64)n(this._hash,i(s.subarray(t-64,t)));return this._buff=t-64<c?new Uint8Array(s.buffer.slice(t-64)):new Uint8Array(0),this},u.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=l(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e=u.prototype.getState.call(this);return e.buff=String.fromCharCode.apply(null,new Uint8Array(e.buff)),e},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return o}(e.buff),u.prototype.setState.call(this,e)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(e,t){var r=s(function(e){var t,r,o,a,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,n(u,o),u}(new Uint8Array(e)));return t?l(r):r},u}()},acmg:function(e,t,n){e.exports={node:n("585i")}},atJV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.last=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.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 r=n("kU1M");t.skipUntil=function(e){return r.skipUntil(e)(this)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("5+tZ"),i=n("SpAZ");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.b)(i.a,e)}},bHhB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("n6Nf");r.Observable.prototype.windowToggle=i.windowToggle},bKLx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.timeInterval=function(e){return void 0===e&&(e=r.asyncScheduler),i.timeInterval(e)(this)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5+tZ");function i(e,t){return Object(r.b)(e,t,1)}},bUWp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Myac");r.Observable.prototype.race=i.race},"bb3/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.timestamp=function(e){return void 0===e&&(e=r.asyncScheduler),i.timestamp(e)(this)}},bcPL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.onErrorResumeNext.apply(void 0,e)(this)}},bd5T:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.delay=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.delay(e,t)(this)}},bgAe:function(e,t,n){var r=n("O36p");e.exports=function e(t){var n={};for(var i in t){var o=t[i];o&&(Array.isArray(o)||o instanceof r?o=o.map(e):o.constructor===Object&&(o=e(o))),n[i]=o}return n}},bi34:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("laIk");r.Observable.ajax=i.ajax},bxbb:function(e,t,n){var r=n("vd7W").TYPE,i=r.String,o=r.Ident,a=r.Url,s=r.Function,c=r.LeftParenthesis;e.exports={parse:{prelude:function(){var e=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case i: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 r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},c3ME:function(e,t,n){"use strict";var r=n("YsTz"),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},c7jc:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=1,i=function(){return Promise.resolve()}(),o={};function a(e){return e in o&&(delete o[e],!0)}var s={setImmediate:function(e){var t=r++;return o[t]=!0,i.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 r=n("qCKp");r.Observable.timer=r.timer},cLIC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.every=function(e,t){return r.every(e,t)(this)}},cPnI:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("02G1");r.Observable.prototype.merge=i.merge},cRt0:function(e,t,n){"use strict";function r(){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 r})},cYpg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.bufferWhen=function(e){return r.bufferWhen(e)(this)}},caIW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.concatAll=function(){return r.concatAll()(this)}},cf52:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("QsQ4");r.Observable.prototype.withLatestFrom=i.withLatestFrom},ciat:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.audit=function(e){return r.audit(e)(this)}},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("8vcG"),i=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 i=t[0];if(Object(o.a)(i))return u(i,null);if(Object(s.a)(i)&&Object.getPrototypeOf(i)===Object.prototype){var c=Object.keys(i);return u(c.map(function(e){return i[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(r.a)(e))}))}return u(t,null)}function u(e,t){return new i.a(function(n){var r=e.length;if(0!==r)for(var i=new Array(r),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++),i[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==r&&u||(a===r&&n.next(t?t.reduce(function(e,t,n){return e[t]=i[n],e},{}):i),n.complete())}}))},l=0;l<r;l++)s(l);else n.complete()})}},czqU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.using=r.using},"d/Fg":function(e,t){e.exports={parse:function(){return this.createSingleNodeList(this.Selector())}}},dB5I:function(e,t,n){var r=n("vd7W").TYPE.Hash;e.exports={name:"IdSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(r),{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 r=n("kU1M");t.buffer=function(e){return r.buffer(e)(this)}},"dR+g":function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",function(){return r})},dlYL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ciat");r.Observable.prototype.audit=i.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 r=n("vd7W").TYPE,i=n("4njK").mode,o=r.WhiteSpace,a=r.Comment,s=r.Semicolon;function c(e){return this.Raw(e,i.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(";")})}}},e989:function(e,t,n){"use strict";e.exports=n("7PmA")()?Object.keys:n("c3ME")},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 r=n("t9bE"),i=n("KUzl"),o=n("mvVQ"),a=n("/E8u"),s=n("MGFw"),c=n("WtWf"),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,r){return Object(u.a)(e(n,r)).pipe(Object(l.a)(function(e,i){return t(n,e,r,i)}))}))}: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,r){var i;return Object(s.a)(this,n),(i=t.call(this,e)).project=r,i.index=0,i}return Object(c.a)(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new h.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(h.c)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||Object(r.a)(Object(i.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(r.a)(Object(i.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 r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),l=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).scheduler=e,o.work=i,o}return Object(i.a)(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?Object(o.a)(Object(a.a)(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return Object(o.a)(Object(a.a)(n.prototype),"recycleAsyncId",this).call(this,e,t,r);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(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(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 r=n("kU1M");t.concatMapTo=function(e){return r.concatMapTo(e)(this)}},eWth:function(e,t,n){var r=n("q8iP"),i=function(e){this.str=e,this.pos=0};i.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 r(e,this.str,this.pos)}},e.exports=i},eYtX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("NEMR");r.Observable.prototype.retryWhen=i.retryWhen},"elu/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.scan=function(e,t){return arguments.length>=2?r.scan(e,t)(this):r.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 r=n("qCKp"),i=n("mQn8");r.Observable.prototype.mergeScan=i.mergeScan},fElF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("aP66");r.Observable.prototype.timeout=i.timeout},fEpb:function(e,t,n){"use strict";e.exports=n("/1Vs")()?globalThis:n("wsAV")},fUwU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.skip=function(e){return r.skip(e)(this)}},fY5S:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");t.zipProto=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(r.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 r=n("qCKp");r.Observable.from=r.from},ftpp:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("ZJsx");function i(e,t){if(e){if("string"==typeof e)return Object(r.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(r.a)(e,t):void 0}}},g0lY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("SjmF");r.Observable.prototype.min=i.min},gCdt:function(e,t,n){var r=n("vd7W").TYPE,i=r.LeftSquareBracket,o=r.RightSquareBracket;e.exports={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart;return this.eat(i),n=e.call(this,t),this.scanner.eof||this.eat(o),{type:"Brackets",loc:this.getLocation(r,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 r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},gSmF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("LM6Q");r.Observable.prototype.startWith=i.startWith},gTGj:function(e,t,n){var r=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(r)}},generate:function(e){this.chunk("."),this.chunk(e.name)}}},gcYM:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),s=n("7o/Q"),c=n("D0XW"),l=n("yuhW");function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.a;return function(r){return r.lift(new h(e,t,n.leading,n.trailing))}}var h=function(){function e(t,n,r,i){Object(o.a)(this,e),this.duration=t,this.scheduler=n,this.leading=r,this.trailing=i}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),d=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i,a,s){var c;return Object(o.a)(this,n),(c=t.call(this,e)).duration=r,c.scheduler=i,c.leading=a,c.trailing=s,c._hasTrailingValue=!1,c._trailingValue=null,c}return Object(a.a)(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(f,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}(s.a);function f(e){e.subscriber.clearThrottle()}},gzwt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.count=function(e){return r.count(e)(this)}},hf5g:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("9xAK");r.Observable.prototype.bufferTime=i.bufferTime},hswa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ADT6");r.Observable.prototype.filter=i.filter},i8i4:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n("yl30")},iD44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.mergeMap=function(e,t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.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 r=n("t9bE"),i=n("KUzl"),o=n("MGFw"),a=n("WtWf"),s=n("mvVQ"),c=n("/E8u"),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,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return Object(o.a)(this,n),(e=t.call(this,r,function(){return e.frame})).maxFrames=i,e.frame=0,e.index=-1,e}return Object(a.a)(n,[{key:"flush",value:function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(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,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.index+=1;return Object(o.a)(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.index=a,i.active=!0,i.index=e.index=a,i}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(r.a)(Object(i.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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(n.sortActions),!0}},{key:"recycleAsyncId",value:function(e,t){}},{key:"_execute",value:function(e,t){if(!0===this.active)return Object(r.a)(Object(i.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 r;!function(i,o,a){if(i){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();y.prototype.bind=function(e,t,n){var r=this;return r._bindMultiple.call(r,e=e instanceof Array?e:[e],t,n),r},y.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},y.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},y.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(b(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},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[t]=e[t]);s=null},y.init=function(){var e=y(o);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),i.Mousetrap=y,e.exports&&(e.exports=y),void 0===(r=(function(){return y}).call(t,n,t,e))||(e.exports=r)}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,r,i,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i<n.length;++i)h[r=n[i]]&&(r=h[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],o.push("shift")),m(r)&&o.push(r);return{key:r,modifiers:o,action:t=g(r,o,t)}}function b(e,t){return null!==e&&e!==o&&(e===t||b(e.parentNode,t))}function y(e){var t=this;if(e=e||o,!(t instanceof y))return new y(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,a=!1,s=!1;function c(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function l(e,n,i,o,a,s){var c,l,u,h=[],d=i.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||r[l.seq]==l.level)&&d==l.action&&(("keypress"!=d||i.metaKey||i.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,r,i){t.stopCallback(n,n.target||n.srcElement,r,i)||!1===e(n,r)&&(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||i!==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):i=!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,++r[e],clearTimeout(n),n=setTimeout(c,1e3)}}function h(t){u(o,t,e),"keyup"!==a&&(i=p(t)),setTimeout(c,10)}r[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 r,i=l(e,t,n),o={},h=0,d=!1;for(r=0;r<i.length;++r)i[r].seq&&(h=Math.max(h,i[r].level));for(r=0;r<i.length;++r)if(i[r].seq){if(i[r].level!=h)continue;d=!0,o[i[r].seq]=1,u(i[r].callback,n,i[r].combo,i[r].seq)}else d||u(i[r].callback,n,i[r].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 r=0;r<e.length;++r)d(e[r],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 r=n("kU1M");t.bufferCount=function(e,t){return void 0===t&&(t=null),r.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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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 r=void 0,i=void 0;return Object(s.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Object(c.a)(t[0])&&(t=t[0]),Object(h.a)(t,i).lift(new p(r))}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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}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 r=e[n];this.add(Object(u.a)(this,r,void 0,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var r=this.values,i=this.toRespond?r[n]===d?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.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 r=n("qCKp"),i=n("w0v+"),o=n("kU1M");t.windowTime=function(e){var t=r.asyncScheduler,n=null,a=Number.POSITIVE_INFINITY;return i.isScheduler(arguments[3])&&(t=arguments[3]),i.isScheduler(arguments[2])?t=arguments[2]:i.isNumeric(arguments[2])&&(a=Number(arguments[2])),i.isScheduler(arguments[1])?t=arguments[1]:i.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 r=n("qCKp"),i=n("5LO2");r.Observable.prototype.exhaust=i.exhaust},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("quSY");function o(e,t){return new r.a(function(n){var r=new i.a,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jdlx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Mw3v");r.Observable.prototype.pluck=i.pluck},jpu9:function(e,t,n){var r=n("UGdY"),i=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(!i.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 i="",a={children:o,node:t,chunk:function(e){i+=e},result:function(){return i}};return n&&("function"==typeof n.decorator&&(a=n.decorator(a)),n.sourceMap&&(a=r(a))),a.node(e),a.result()}}},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),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,i=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(r.a)(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=o<1?1:o,o===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return Object(i.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,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.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)),i&&e.add(e=new d.a(e,i)),n)for(var a=0;a<o&&!e.closed;a++)e.next(r[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(r[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,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}]),n}(l.b),g=function e(t,n){Object(r.a)(this,e),this.time=t,this.value=n}},jtHT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.publish=function(e){return r.publish(e)(this)}},k2qM:function(e,t,n){"use strict";e.exports=function(e){return null!=e}},kBPl:function(e,t,n){"use strict";var r=n("Xt1Y");e.exports=function(e){if(!r(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}},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 r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},kPWa:function(e,t,n){var r=n("P3uw").consumeNumber,i=n("vd7W").TYPE.Percentage;e.exports={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=r(this.scanner.source,e);return this.eat(i),{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 r.a}),n.d(t,"auditTime",function(){return i.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 A}),n.d(t,"bufferWhen",function(){return L}),n.d(t,"catchError",function(){return B.a}),n.d(t,"combineAll",function(){return H}),n.d(t,"combineLatest",function(){return W}),n.d(t,"concat",function(){return X}),n.d(t,"concatAll",function(){return Y.a}),n.d(t,"concatMap",function(){return K.a}),n.d(t,"concatMapTo",function(){return Q}),n.d(t,"count",function(){return Z.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 re.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 Ie}),n.d(t,"expand",function(){return Re}),n.d(t,"filter",function(){return ye.a}),n.d(t,"finalize",function(){return Fe.a}),n.d(t,"find",function(){return Be}),n.d(t,"findIndex",function(){return Ve}),n.d(t,"first",function(){return Ue.a}),n.d(t,"groupBy",function(){return qe.b}),n.d(t,"ignoreElements",function(){return We}),n.d(t,"isEmpty",function(){return Ye}),n.d(t,"last",function(){return Ze.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 It}),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 Ft}),n.d(t,"repeatWhen",function(){return Ht}),n.d(t,"retry",function(){return qt}),n.d(t,"retryWhen",function(){return Xt}),n.d(t,"refCount",function(){return Qt.a}),n.d(t,"sample",function(){return Zt}),n.d(t,"sampleTime",function(){return en}),n.d(t,"scan",function(){return rt.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 In}),n.d(t,"take",function(){return we.a}),n.d(t,"takeLast",function(){return it.a}),n.d(t,"takeUntil",function(){return An.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 Nn.a}),n.d(t,"throwIfEmpty",function(){return _e.a}),n.d(t,"timeInterval",function(){return Fn.b}),n.d(t,"timeout",function(){return Wn}),n.d(t,"timeoutWith",function(){return Hn}),n.d(t,"timestamp",function(){return Gn.b}),n.d(t,"toArray",function(){return Yn}),n.d(t,"window",function(){return Kn}),n.d(t,"windowCount",function(){return $n}),n.d(t,"windowTime",function(){return nr}),n.d(t,"windowToggle",function(){return lr}),n.d(t,"windowWhen",function(){return dr}),n.d(t,"withLatestFrom",function(){return mr}),n.d(t,"zip",function(){return yr}),n.d(t,"zipAll",function(){return _r});var r=n("tnsW"),i=n("3UWI"),o=n("JL25"),a=n("mvVQ"),s=n("/E8u"),c=n("MGFw"),l=n("WtWf"),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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).buffer=[],i.add(Object(u.c)(r,new u.a(Object(o.a)(i)))),i}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("t9bE"),m=n("KUzl"),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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).bufferSize=r,i.buffer=[],i}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,r,i){var o;return Object(c.a)(this,n),(o=t.call(this,e)).bufferSize=r,o.startBufferEvery=i,o.buffers=[],o.count=0,o}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}}},{key:"_complete",value:function(){for(var e=this.buffers,t=this.destination;e.length>0;){var r=e.shift();r.length>0&&t.next(r)}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 r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new S(e,r,i,n))}}var S=function(){function e(t,n,r,i){Object(c.a)(this,e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=i}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,r,i,a,s){var l;Object(c.a)(this,n),(l=t.call(this,e)).bufferTimeSpan=r,l.bufferCreationInterval=i,l.maxBufferSize=a,l.scheduler=s,l.contexts=[];var u=l.openContext();if(l.timespanOnly=null==i||i<0,l.timespanOnly){var h={subscriber:Object(o.a)(l),context:u,bufferTimeSpan:r};l.add(u.closeAction=s.schedule(M,r,h))}else{var d={subscriber:Object(o.a)(l),context:u},f={bufferTimeSpan:r,bufferCreationInterval:i,subscriber:Object(o.a)(l),scheduler:s};l.add(u.closeAction=s.schedule(E,r,d)),l.add(s.schedule(T,i,f))}return l}return Object(l.a)(n,[{key:"_next",value:function(e){for(var t,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],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 r=e.shift();t.next(r.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,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(E,n,{subscriber:r,context:o})),this.schedule(e,t))}function E(e){e.subscriber.closeContext(e.context)}var P=n("quSY"),j=n("ZUHj"),I=n("l7GE");function A(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,r,i){var a;return Object(c.a)(this,n),(a=t.call(this,e)).closingSelector=i,a.contexts=[],a.add(Object(j.a)(Object(o.a)(a),r)),a}return Object(l.a)(n,[{key:"_next",value:function(e){for(var t=this.contexts,n=t.length,r=0;r<n;r++)t[r].buffer.push(e)}},{key:"_error",value:function(e){for(var t=this.contexts;t.length>0;){var r=t.shift();r.subscription.unsubscribe(),r.buffer=null,r.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,r={buffer:[],subscription:n};t.push(r);var i=Object(j.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}]),n}(I.a);function L(e){return function(t){return t.lift(new N(e))}}var N=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 F(e,this.closingSelector))}}]),e}(),F=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).closingSelector=r,i.subscribing=!1,i.openBuffer(),i}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"),z=n("itXk");function H(e){return function(t){return t.lift(new z.a(e))}}var V=n("8vcG"),U=n("DH7j"),q=n("Cfvw");function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Object(U.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(q.a)([e].concat(Object(V.a)(t))),new z.a(r))}}var G=n("GyhO");function X(){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(G.a.apply(void 0,[e].concat(t)))}}var Y=n("0EUg"),K=n("bOdf");function Q(e,t){return Object(K.a)(function(){return e},t)}var Z=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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).durationSelector=r,i.hasValue=!1,i}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"),re=n("3E0/"),ie=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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).delayDurationSelector=r,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return Object(l.a)(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),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(r){this.destination.error(r)}}},{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}(I.a),ce=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(c.a)(this,n),(i=t.call(this)).source=e,i.subscriptionDelay=r,i}return Object(l.a)(n,[{key:"_subscribe",value:function(e){this.subscriptionDelay.subscribe(new le(e,this.source))}}]),n}(ie.a),le=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(c.a)(this,n),(i=t.call(this)).parent=e,i.source=r,i.sourceSubscribed=!1,i}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,r,i){var a;return Object(c.a)(this,n),(a=t.call(this,e)).keySelector=r,a.values=new Set,i&&a.add(Object(u.c)(i,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(r){return void n.error(r)}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,r){return t?t(n[e],r[e]):n[e]===r[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(r){return r.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(G.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,r){Object(c.a)(this,e),this.predicate=t,this.thisArg=n,this.source=r}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,r,i,a){var s;return Object(c.a)(this,n),(s=t.call(this,e)).predicate=r,s.thisArg=i,s.source=a,s.index=0,s.thisArg=i||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 r;return Object(c.a)(this,n),(r=t.call(this,e)).hasCompleted=!1,r.hasSubscription=!1,r}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 Ie(e,t){return t?function(n){return n.pipe(Ie(function(n,r){return Object(q.a)(e(n,r)).pipe(Object(je.a)(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new Ae(e))}}var Ae=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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).project=r,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}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(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new u.a(this),n=this.destination;n.add(t);var r=Object(u.c)(e,t);r!==t&&n.add(r)}},{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(r){return r.lift(new Le(e,t,n))}}var Le=function(){function e(t,n,r){Object(c.a)(this,e),this.project=t,this.concurrent=n,this.scheduler=r}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Ne(e,this.project,this.concurrent,this.scheduler))}}]),e}(),Ne=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i,o){var a;return Object(c.a)(this,n),(a=t.call(this,e)).project=r,a.concurrent=i,a.scheduler=o,a.index=0,a.active=0,a.hasCompleted=!1,i<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 r=this.index++;if(this.active<this.concurrent){t.next(e);try{var i=(0,this.project)(e,r);this.scheduler?this.destination.add(this.scheduler.schedule(n.dispatch,0,{subscriber:this,result:i,value:e,index:r})):this.subscribeToProjection(i,e,r)}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),Fe=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 ze(e,n,!1,t))}}var ze=function(){function e(t,n,r,i){Object(c.a)(this,e),this.predicate=t,this.source=n,this.yieldIndex=r,this.thisArg=i}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new He(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),e}(),He=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i,o,a){var s;return Object(c.a)(this,n),(s=t.call(this,e)).predicate=r,s.source=i,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,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}}},{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 ze(e,n,!0,t))}}var Ue=n("SxV6"),qe=n("OQgR");function We(){return function(e){return e.lift(new Ge)}}var Ge=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Xe(e))}}]),e}(),Xe=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 Ye(){return function(e){return e.lift(new Ke)}}var Ke=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Qe(e))}}]),e}(),Qe=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),Ze=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),rt=n("Kqap"),it=n("BFxc"),ot=n("mCNh");function at(e,t){return arguments.length>=2?function(n){return Object(ot.a)(Object(rt.a)(e,t),Object(it.a)(1),Object(ne.a)(t))(n)}:function(t){return Object(ot.a)(Object(rt.a)(function(t,n,r){return e(t,n,r+1)}),Object(it.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(r){return r.lift(new pt(e,t,n))}}var pt=function(){function e(t,n,r){Object(c.a)(this,e),this.accumulator=t,this.seed=n,this.concurrent=r}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,r,i,o){var a;return Object(c.a)(this,n),(a=t.call(this,e)).accumulator=r,a.acc=i,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++,r=this.destination;try{t=(0,this.accumulator)(this.acc,e,n)}catch(i){return r.error(i)}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 r=Object(u.c)(e,t);r!==t&&n.add(r)}},{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(U.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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).destination=e,i.nextSources=r,i}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 r=Object(u.c)(e,t);r!==t&&n.add(r)}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 r=t.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(e){return Object(je.a)(Ot(t,r))(e)}}function Ot(e,t){return function(n){for(var r=n,i=0;i<t;i++){var o=null!=r?r[e[i]]:void 0;if(void 0===o)return;r=o}return r}}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 It(){return function(e){return Object(vt.a)(new jt.a)(e)}}var At=n("jtHE");function Dt(e,t,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new At.a(e,t,r);return function(e){return Object(vt.a)(function(){return o},i)(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(U.a)(t[0])&&(t=t[0]),e.lift.call(Rt.a.apply(void 0,[e].concat(Object(V.a)(t))))}}var Nt=n("EY2u");function Ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return 0===e?Object(Nt.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 zt(e,this.count,this.source))}}]),e}(),zt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i){var o;return Object(c.a)(this,n),(o=t.call(this,e)).count=r,o.source=i,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 Ht(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 Ut(e,this.notifier,t))}}]),e}(),Ut=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i){var o;return Object(c.a)(this,n),(o=t.call(this,e)).notifier=r,o.source=i,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 qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new Wt(e,t))}}var Wt=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 Gt(e,this.count,this.source))}}]),e}(),Gt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i){var o;return Object(c.a)(this,n),(o=t.call(this,e)).count=r,o.source=i,o}return Object(l.a)(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.source,r=this.count;if(0===r)return Object(p.a)(Object(m.a)(n.prototype),"error",this).call(this,e);r>-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}}}]),n}(g.a);function Xt(e){return function(t){return t.lift(new Yt(e,t))}}var Yt=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 Kt(e,this.notifier,this.source))}}]),e}(),Kt=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i){var o;return Object(c.a)(this,n),(o=t.call(this,e)).notifier=r,o.source=i,o}return Object(l.a)(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{t=new Mt.b;try{r=(0,this.notifier)(t)}catch(o){return Object(p.a)(Object(m.a)(n.prototype),"error",this).call(this,o)}i=Object(u.c)(r,new u.a(this))}this._unsubscribeAndRecycle(),this.errors=t,this.retries=r,this.retriesSubscription=i,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),Qt=n("x+ZX");function Zt(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),r=t.subscribe(n);return r.add(Object(u.c)(this.notifier,new u.a(n))),r}}]),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,r,i){var a;return Object(c.a)(this,n),(a=t.call(this,e)).period=r,a.scheduler=i,a.hasValue=!1,a.add(i.schedule(rn,r,{subscriber:Object(o.a)(a),period:r})),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,r,i){var a;return Object(c.a)(this,n),(a=t.call(this,e)).compareTo=r,a.comparator=i,a._a=[],a._b=[],a._oneComplete=!1,a.destination.add(r.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 r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).parent=r,i}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,r,i){var o;return Object(c.a)(this,n),(o=t.call(this,e)).predicate=r,o.source=i,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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e))._skipCount=r,i._count=0,i._ring=new Array(r),i}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 r=n%t,i=this._ring,o=i[r];i[r]=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,r){var i;Object(c.a)(this,n),(i=t.call(this,e)).hasValue=!1;var a=new u.a(Object(o.a)(i));i.add(a),i.innerSubscription=a;var s=Object(u.c)(r,a);return s!==a&&(i.add(s),i.innerSubscription=s),i}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,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).predicate=r,i.skipping=!0,i.index=0,i}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 In(e,t){return t?Object(En.a)(function(){return e},t):Object(En.a)(function(){return e})}var An=n("1G5W"),Dn=n("GJmQ"),Rn=n("vkgz"),Ln=n("yuhW"),Nn=n("gcYM"),Fn=n("4hIw"),Bn=n("Y6u4"),zn=n("mlxB");function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.a;return function(r){var i=Object(zn.a)(e),o=i?+e-n.now():Math.abs(e);return r.lift(new Vn(o,i,t,n))}}var Vn=function(){function e(t,n,r,i){Object(c.a)(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=r,this.scheduler=i}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Un(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),Un=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i,o,a){var s;return Object(c.a)(this,n),(s=t.call(this,e)).absoluteTimeout=r,s.waitFor=i,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),qn=n("z6cu");function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.a;return Hn(e,Object(qn.a)(new Bn.a),t)}var Gn=n("r0WS");function Xn(e,t,n){return 0===n?[t]:(e.push(t),e)}function Yn(){return at(Xn,[])}function Kn(e){return function(t){return t.lift(new Qn(e))}}var Qn=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 Zn(e),r=t.subscribe(n);return r.closed||n.add(Object(u.c)(this.windowBoundaries,new u.a(n))),r}}]),e}(),Zn=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(c.a)(this,n),(r=t.call(this,e)).window=new Mt.b,e.next(r.window),r}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 $n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Jn(e,t))}}var Jn=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 er(e,this.windowSize,this.startWindowEvery))}}]),e}(),er=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i){var o;return Object(c.a)(this,n),(o=t.call(this,e)).destination=e,o.windowSize=r,o.startWindowEvery=i,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,r=this.windowSize,i=this.windows,o=i.length,a=0;a<o&&!this.closed;a++)i[a].next(e);var s=this.count-r+1;if(s>=0&&s%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var c=new Mt.b;i.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),tr=n("Y7HM");function nr(e){var t=w.a,n=null,r=Number.POSITIVE_INFINITY;return Object(k.a)(arguments[3])&&(t=arguments[3]),Object(k.a)(arguments[2])?t=arguments[2]:Object(tr.a)(arguments[2])&&(r=Number(arguments[2])),Object(k.a)(arguments[1])?t=arguments[1]:Object(tr.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new rr(e,n,r,t))}}var rr=function(){function e(t,n,r,i){Object(c.a)(this,e),this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=i}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new or(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),e}(),ir=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),or=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i,a,s){var l;Object(c.a)(this,n),(l=t.call(this,e)).destination=e,l.windowTimeSpan=r,l.windowCreationInterval=i,l.maxWindowSize=a,l.scheduler=s,l.windows=[];var u=l.openWindow();if(null!==i&&i>=0){var h={subscriber:Object(o.a)(l),window:u,context:null},d={windowTimeSpan:r,windowCreationInterval:i,subscriber:Object(o.a)(l),scheduler:s};l.add(s.schedule(cr,r,h)),l.add(s.schedule(sr,i,d))}else{var f={subscriber:Object(o.a)(l),window:u,windowTimeSpan:r};l.add(s.schedule(ar,r,f))}return l}return Object(l.a)(n,[{key:"_next",value:function(e){for(var t=this.windows,n=t.length,r=0;r<n;r++){var i=t[r];i.closed||(i.next(e),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}}},{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 ir;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 ar(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function sr(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a=this,s={action:a,subscription:null};s.subscription=r.schedule(cr,t,{subscriber:n,window:o,context:s}),a.add(s.subscription),a.schedule(e,i)}function cr(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function lr(e,t){return function(n){return n.lift(new ur(e,t))}}var ur=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 hr(e,this.openings,this.closingSelector))}}]),e}(),hr=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i){var a;return Object(c.a)(this,n),(a=t.call(this,e)).openings=r,a.closingSelector=i,a.contexts=[],a.add(a.openSubscription=Object(j.a)(Object(o.a)(a),r,r)),a}return Object(l.a)(n,[{key:"_next",value:function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r<n;r++)t[r].window.next(e)}},{key:"_error",value:function(e){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,i=-1;++i<r;){var o=t[i];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,r=-1;++r<t;){var i=e[r];i.window.complete(),i.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 r=e[n];r.window.unsubscribe(),r.subscription.unsubscribe()}}},{key:"notifyNext",value:function(e,t,n,r,i){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],r=n.window,i=n.subscription;t.splice(e,1),r.complete(),i.unsubscribe()}}}]),n}(I.a);function dr(e){return function(t){return t.lift(new fr(e))}}var fr=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 pr(e,this.closingSelector))}}]),e}(),pr=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(c.a)(this,n),(i=t.call(this,e)).destination=e,i.closingSelector=r,i.openWindow(),i}return Object(l.a)(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.openWindow(i)}},{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,r=this.window=new Mt.b;this.destination.next(r);try{var i=this.closingSelector;n=i()}catch(o){return this.destination.error(o),void this.window.error(o)}this.add(this.closingNotification=Object(j.a)(this,n))}}]),n}(I.a);function mr(){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 gr(t,n))}}var gr=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 vr(e,this.observables,this.project))}}]),e}(),vr=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i){var a;Object(c.a)(this,n),(a=t.call(this,e)).observables=r,a.project=i,a.toRespond=[];var s=r.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=r[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 r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,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}(I.a),br=n("1uah");function yr(){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(br.b.apply(void 0,[e].concat(t)))}}function _r(e){return function(t){return t.lift(new br.a(e))}}},kiQV:function(e){e.exports=JSON.parse('{"name":"gns3-web-ui","version":"2.2.20","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-react/core":"^3.0.0","@angular-react/fabric":"^3.0.0","@angular/animations":"^11.2.8","@angular/cdk":"^11.2.7","@angular/common":"^11.2.8","@angular/compiler":"^11.2.8","@angular/core":"^11.2.8","@angular/forms":"^11.2.8","@angular/http":"^7.2.16","@angular/material":"^11.2.7","@angular/platform-browser":"^11.2.8","@angular/platform-browser-dynamic":"^11.2.8","@angular/router":"^11.2.8","@sentry/browser":"^6.2.5","@types/jest":"^26.0.22","@types/mocha":"^8.2.2","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","angular-draggable-droppable":"^4.6.0","angular-persistence":"^1.0.1","angular-resizable-element":"^3.3.5","angular2-draggable":"^2.3.2","angular2-hotkeys":"^2.2.0","angular2-indexeddb":"^1.2.3","bootstrap":"^4.6.0","command-exists":"^1.2.9","core-js":"^3.10.0","d3-ng2-service":"^2.2.0","eev":"^0.1.5","file-saver":"^2.0.5","ini":"^2.0.0","material-design-icons":"^3.0.1","ng-circle-progress":"^1.6.0","ng2-file-upload":"^1.4.0","ngx-childprocess":"^0.0.6","ngx-device-detector":"^2.0.6","ngx-electron":"^2.2.0","node-fetch":"^2.6.1","notosans-fontface":"1.2.2","office-ui-fabric-react":"^7.166.0","react":"^17.0.2","react-bootstrap":"^1.5.2","react-dom":"^17.0.2","rxjs":"^6.6.7","rxjs-compat":"^6.6.7","save-html-as-image":"^1.5.2","save-svg-as-png":"^1.4.17","schematics-scss-migrate":"^1.3.13","snyk":"^1.528.0","spark-md5":"^3.0.1","svg-crowbar":"^0.6.5","tree-kill":"^1.2.2","tslib":"^2.2.0","typeface-roboto":"^1.1.13","xterm":"^4.11.0","xterm-addon-attach":"^0.6.0","xterm-addon-fit":"^0.5.0","yargs":"^16.2.0","zone.js":"^0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"^0.1102.7","@angular/cli":"^11.2.7","@angular/compiler-cli":"^11.2.8","@angular/language-service":"^11.2.8","@sentry/cli":"^1.63.2","@sentry/electron":"^2.4.0","@types/jasmine":"~3.6.9","@types/jasminewd2":"^2.0.8","@types/node":"14.14.37","codelyzer":"^6.0.1","electron":"^12.0.2","electron-builder":"22.10.5","file-loader":"^6.2.0","jasmine-core":"~3.7.1","jasmine-spec-reporter":"~6.0.0","jquery":"^3.6.0","karma":"^6.3.2","karma-chrome-launcher":"~3.1.0","karma-cli":"^2.0.0","karma-coverage-istanbul-reporter":"~3.0.3","karma-jasmine":"~4.0.1","karma-jasmine-html-reporter":"^1.5.4","license-checker":"^25.0.1","popper.js":"^1.16.1","prettier":"^2.2.1","protractor":"^7.0.0","replace":"^1.2.1","rxjs-tslint":"^0.1.8","ts-mockito":"^2.6.1","ts-node":"~9.1.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"4.0.2","webpack":"5.31.0","yarn-upgrade-all":"^0.5.4"},"greenkeeper":{"ignore":["typescript"]},"snyk":true}')},klIg:function(e,t,n){var r=n("P3uw").consumeNumber,i=n("vd7W").TYPE.Dimension;e.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart,t=r(this.scanner.source,e);return this.eat(i),{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 r=n("qCKp"),i=n("JM0U");r.Observable.prototype.auditTime=i.auditTime},l3KV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("CuWV");r.Observable.prototype.publishLast=i.publishLast},l4jP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.share=function(){return r.share()(this)}},l53z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.zipAll=function(e){return r.zipAll(e)(this)}},l5mm:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=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]:i.a;return(!Object(o.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=i.a),new r.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,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("MGFw"),i=n("WtWf"),o=n("mvVQ"),a=n("/E8u"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"notifyNext",value:function(e,t,n,r,i){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 r=n("JL25"),i=n("mvVQ"),o=n("/E8u"),a=n("MGFw"),s=n("WtWf"),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(i.a)(n,e);var t=Object(o.a)(n);function n(e,i,o){var s;return Object(a.a)(this,n),(s=t.call(this,e)).project=i,s.count=0,s.thisArg=o||Object(r.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 r=n("qCKp");r.Observable.defer=r.defer},lO5s:function(e,t,n){"use strict";var r,i,o,a=n("9Qh4"),s=n("s4AO"),c=n("fEpb").Symbol,l=n("lk0t"),u=n("4D8k"),h=n("Jb7g"),d=Object.create,f=Object.defineProperties,p=Object.defineProperty;if("function"==typeof c)try{String(c()),o=!0}catch(m){}else c=null;i=function(e){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return r(e)},e.exports=r=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return o?c(t):(n=d(i.prototype),t=void 0===t?"":String(t),f(n,{__description__:a("",t),__name__:a("",l(t))}))},u(r),h(r),f(i.prototype,{constructor:a(r),toString:a("",function(){return this.__name__})}),f(r.prototype,{toString:a(function(){return"Symbol ("+s(this).__description__+")"}),valueOf:a(function(){return s(this)})}),p(r.prototype,r.toPrimitive,a("",function(){var e=s(this);return"symbol"==typeof e?e:e.toString()})),p(r.prototype,r.toStringTag,a("c","Symbol")),p(i.prototype,r.toStringTag,a("c",r.prototype[r.toStringTag])),p(i.prototype,r.toPrimitive,a("c",r.prototype[r.toPrimitive]))},lXds:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.delayWhen=function(e,t){return r.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 r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),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(r.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,i){var o;return Object(r.a)(this,n),(o=t.call(this,function(e){var t=this,n=t.logSubscribedFrame(),r=new h.a;return r.add(new h.a(function(){t.logUnsubscribedFrame(n)})),t.scheduleMessages(e),r})).messages=e,o.subscriptions=[],o.scheduler=i,o}return Object(i.a)(n,[{key:"scheduleMessages",value:function(e){for(var t=this.messages.length,n=0;n<t;n++){var r=this.messages[n];e.add(this.scheduler.schedule(function(e){e.message.notification.observe(e.subscriber)},r.frame,{message:r,subscriber:e}))}}}]),n}(l.a)),p=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var o;return Object(r.a)(this,n),(o=t.call(this)).messages=e,o.subscriptions=[],o.scheduler=i,o}return Object(i.a)(n,[{key:"_subscribe",value:function(e){var t=this,r=t.logSubscribedFrame(),i=new h.a;return i.add(new h.a(function(){t.logUnsubscribedFrame(r)})),i.add(Object(o.a)(Object(a.a)(n.prototype),"_subscribe",this).call(this,e)),i}},{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 i;return Object(r.a)(this,n),(i=t.call(this,m.a,750)).assertDeepEqual=e,i.hotObservables=[],i.coldObservables=[],i.flushTests=[],i.runMode=!1,i}return Object(i.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,r){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 i=n.parseMarbles(e,t,r,void 0,this.runMode),o=new f(i,this);return this.coldObservables.push(o),o}},{key:"createHotObservable",value:function(e,t,r){if(-1!==e.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var i=n.parseMarbles(e,t,r,void 0,this.runMode),o=new p(i,this);return this.hotObservables.push(o),o}},{key:"materializeInnerObservable",value:function(e,t){var n=this,r=[];return e.subscribe(function(e){r.push({frame:n.frame-t,notification:u.a.createNext(e)})},function(e){r.push({frame:n.frame-t,notification:u.a.createError(e)})},function(){r.push({frame:n.frame-t,notification:u.a.createComplete()})}),r}},{key:"expectObservable",value:function(e){var t,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=[],a={actual:o,ready:!1},s=n.parseMarblesAsSubscriptions(i,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=r.materializeInnerObservable(t,r.frame)),o.push({frame:r.frame,notification:u.a.createNext(t)})},function(e){o.push({frame:r.frame,notification:u.a.createError(e)})},function(){o.push({frame:r.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,r){a.ready=!0,a.expected=n.parseMarbles(e,t,r,!0,d)}}}},{key:"expectSubscriptions",value:function(e){var t={actual:e,ready:!1};this.flushTests.push(t);var r=this.runMode;return{toBe:function(e){var i="string"==typeof e?[e]:e;t.ready=!0,t.expected=i.map(function(e){return n.parseMarblesAsSubscriptions(e,r)})}}}},{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,r=this.maxFrames;n.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,g.a.delegate=this;var i={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(i);return this.flush(),o}finally{n.frameTimeFactor=t,this.maxFrames=r,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 r=e.length,i=-1,o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,s=0,c=0;c<r;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"(":i=s,u(1);break;case")":i=-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=i>-1?i: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=i>-1?i: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 r=this,i=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 i&&t[e]instanceof f?t[e].messages:t[e]},d=-1,p=0;p<a;p++){var m=l,g=function(e){m+=e*r.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 r=n("19/K");n.d(t,"ajax",function(){return r.a});var i=n("Sj+y");n.d(t,"AjaxResponse",function(){return i.c}),n.d(t,"AjaxError",function(){return i.a}),n.d(t,"AjaxTimeoutError",function(){return i.e})},lcII:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("wxn8");function i(e){return new r.a(e)}},lk0t:function(e,t,n){"use strict";var r=n("9Qh4"),i=Object.defineProperty,o=Object.prototype,a=(0,Object.create)(null);e.exports=function(e){for(var t,n,s=0;a[e+(s||"")];)++s;return a[e+=s||""]=!0,i(o,t="@@"+e,r.gs(null,function(e){n||(n=!0,i(this,t,r(e)),n=!1)})),t}},lq5y:function(e,t,n){"use strict";var r=n("YsTz");e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},ls82:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(j){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=Object.create((t&&t.prototype instanceof g?t:g).prototype),o=new T(r||[]);return i._invoke=function(e,t,n){var r=h;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,o),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",m={};function g(){}function v(){}function b(){}var y={};y[o]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&r.call(w,o)&&(y=w);var k=b.prototype=g.prototype=Object.create(y);function C(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(h).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,s)})}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t(function(t,i){n(e,r,t,i)})}return i=i?i.then(o,o):o()}}function x(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function E(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return v.prototype=k.constructor=b,b.constructor=v,v.displayName=c(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},C(S.prototype),S.prototype[a]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(k),c(k,s,"Generator"),k[o]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},m1gp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.zip=r.zip},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("SpAZ");function i(){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?r.a:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},mK1g:function(e,t,n){var r=n("CwTu").SyntaxReferenceError,i=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 r={};for(var i in e)e[i].syntax&&(r[i]=n?e[i].syntax:c(e[i].syntax,{compact:t}));return r}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,r){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")):(r&&(o=d(a,e.valueCommonSyntax,e)),r&&o.match||(o=d(a,t.match,e)).match?y(o.match,null,o.iterations):y(null,new i(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.properties={},this.types={},this.structure=n||m(e),e){if(e.types)for(var r in e.types)this.addType_(r,e.types[r]);if(e.generic)for(var r in this.generic=!0,a)this.addType_(r,a[r]);if(e.properties)for(var r in e.properties)this.addProperty_(r,e.properties[r])}};w.prototype={structure:{},checkStructure:function(e){function t(e,t){r.push({node:e,message:t})}var n=this.structure,r=[];return this.syntax.walk(e,function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")}),!!r.length&&r},createDescriptor:function(e,t,n){var r={type:t,name:n},i={type:t,name:n,syntax:null,match:null};return"function"==typeof e?i.match=h(e,r):("string"==typeof e?Object.defineProperty(i,"syntax",{get:function(){return Object.defineProperty(i,"syntax",{value:s(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get:function(){return Object.defineProperty(i,"match",{value:h(i.syntax,r)}),i.match}})),i},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)},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 i=n.vendor?this.getProperty(n.name)||this.getProperty(n.basename):this.getProperty(n.name);return i?_(this,i,t,!0):y(null,new r("Unknown property",e))},matchType:function(e,t){var n=this.getType(e);return n?_(this,n,t,!1):y(null,new r("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 r("Bad syntax"))},findValueFragments:function(e,t,n,r){return p.matchFragments(this,t,this.matchProperty(e,t),n,r)},findDeclarationValueFragments:function(e,t,n){return p.matchFragments(this,e.value,this.matchDeclaration(e),t,n)},findAllFragments:function(e,t,n){var r=[];return this.syntax.walk(e,{visit:"Declaration",enter:(function(e){r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}).bind(this)}),r},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(r,i,o,a){if(o.hasOwnProperty(i))return o[i];o[i]=!1,null!==a.syntax&&l(a.syntax,function(a){if("Type"===a.type||"Property"===a.type){var s="Type"===a.type?r.types:r.properties,c="Type"===a.type?t:n;s.hasOwnProperty(a.name)&&!e(r,a.name,c,s[a.name])||(o[i]=!0)}},this)}var t={},n={};for(var r in this.types)e(this,r,t,this.types[r]);for(var r in this.properties)e(this,r,n,this.properties[r]);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 r=n("kU1M");t.mergeScan=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeScan(e,t,n)(this)}},mb2m:function(e,t,n){var r=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(r)}},generate:function(e){this.chunk(e.value)}}},mfsk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.defaultIfEmpty=function(e){return void 0===e&&(e=null),r.defaultIfEmpty(e)(this)}},mlxB:function(e,t,n){"use strict";function r(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",function(){return r})},mvVQ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("vQkm");function i(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(r.a)(e,t)}},mx47:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.merge=r.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 r=n("qCKp"),i=n("bd5T");r.Observable.prototype.delay=i.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,r=n,i=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(),i=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(i.children).loc.end.offset)):this.needPositions&&(r=t.loc.end.offset),{type:"Nth",loc:this.getLocation(n,r),nth:t,selector:i}},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 r=n("kU1M");t.windowToggle=function(e,t){return r.windowToggle(e,t)(this)}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},nYR2:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).add(new c.a(r)),i}return n}(s.a)},nZYK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.switchMap=function(e){return r.switchMap(e)(this)}},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},nueD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.isEmpty=function(){return r.isEmpty()(this)}},oB13:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("MGFw"),i=n("WtWf"),o=n("EQ5u");function a(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new s(r,t));var i=Object.create(n,o.b);return i.source=n,i.subjectFactory=r,i}}var s=function(){function e(t,n){Object(r.a)(this,e),this.subjectFactory=t,this.selector=n}return Object(i.a)(e,[{key:"call",value:function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i}}]),e}()},oKp4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ZHpM");r.Observable.prototype.take=i.take},oXC5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.switchMapTo=function(e){return r.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 r=n("qCKp"),i=n("QPu+");r.Observable.prototype.reduce=i.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 r=n("qCKp"),i=n("l53z");r.Observable.prototype.zipAll=i.zipAll},ofj6:function(e,t,n){var r=n("O36p");function i(e){return"node"in e?e.node:i(e.match[0])}function o(e){return"node"in e?e.node:o(e.match[e.match.length-1])}e.exports={matchFragments:function(e,t,n,a,s){var c=[];return null!==n.matched&&function n(l){if(null!==l.syntax&&l.syntax.type===a&&l.syntax.name===s){var u=i(l),h=o(l);e.syntax.walk(t,function(e,t,n){if(e===u){var i=new r;do{if(i.appendData(t.data),t.data===h)break;t=t.next}while(null!==t);c.push({parent:n,nodes:i})}})}Array.isArray(l.match)&&l.match.forEach(n)}(n.matched),c}}},"ojb+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.range=r.range},okVX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("pv6b");r.Observable.prototype.switch=i._switch,r.Observable.prototype._switch=i._switch},omlZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("r+37");r.Observable.prototype.takeUntil=i.takeUntil},ovWV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(r.concat.apply(void 0,[this].concat(e)))}},pBgu:function(e,t,n){var r,i,o=function(){var e=0,t=/[\s,]+/g;function n(e){this.head=new r,this.tail=new r(this.head),this.head.next=this.tail,this.linkConstructor=e,this.reg={}}function r(e,t,n){this.prev=e,this.next=t,this.fn=n||i}function i(){}function o(){this.events={}}return n.prototype={insert:function(e){var t=new r(this.tail.prev,this.tail,e);return t.next.prev=t.prev.next=t,t},remove:function(e){e.prev.next=e.next,e.next.prev=e.prev}},r.prototype.run=function(e){this.fn(e),this.next&&this.next.run(e)},o.prototype={constructor:o,on:function(r,i){var o=this;r.split(t).forEach(function(t){var r=o.events[t]||(o.events[t]=new n),a=i._eev||(i._eev=++e);r.reg[a]||(r.reg[a]=r.insert(i))})},off:function(e,n){var r=this;n&&e.split(t).forEach(function(e){var t=r.events[e];if(t){var i=t.reg[n._eev];t.reg[n._eev]=void 0,t&&i&&t.remove(i)}})},emit:function(e,t){var n=this.events[e];n&&n.head.run(t)}},o}();r=function(){return o},(i=this.define)&&i.amd?i([],r):e.exports&&(e.exports=r())},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this,e)).predicate=r,a.thisArg=i,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 i});var r=n("Lhse"),i=function(e){return function(t){for(var n=e[r.a]();;){var i=void 0;try{i=n.next()}catch(o){return t.error(o),t}if(i.done){t.complete();break}if(t.next(i.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 r=n("qCKp"),i=n("fUwU");r.Observable.prototype.skip=i.skip},pjAE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=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 r=n("kU1M");t._switch=function(){return r.switchAll()(this)}},pvIh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,i,o,a){var s=i||"<<anonymous>>",c=a||r;if(null==n[r])return t?new Error("Required "+o+" `"+c+"` was not specified in `"+s+"`."):null;for(var l=arguments.length,u=Array(l>6?l-6:0),h=6;h<l;h++)u[h-6]=arguments[h];return e.apply(void 0,[n,r,s,o,c].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return h});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Object(o.a)(this,n),(i=t.call(this,e)).scheduler=r,i.delay=a,i}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}},q1tI:function(e,t,n){"use strict";e.exports=n("viRO")},q8iP:function(e,t,n){var r=n("XDwu");e.exports=function(e,t,n){var i=r("SyntaxError",e);return i.input=t,i.offset=n,i.rawMessage=e,i.message=i.rawMessage+"\n "+i.input+"\n--"+new Array((i.offset||i.input.length)+1).join("-")+"^",i}},q8yx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("XDL1");r.Observable.prototype.elementAt=i.elementAt},qCKp:function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",function(){return r.a}),n.d(t,"ConnectableObservable",function(){return i.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 N}),n.d(t,"combineLatest",function(){return H.b}),n.d(t,"concat",function(){return V.a}),n.d(t,"defer",function(){return U.a}),n.d(t,"empty",function(){return q.b}),n.d(t,"forkJoin",function(){return W.a}),n.d(t,"from",function(){return G.a}),n.d(t,"fromEvent",function(){return X.a}),n.d(t,"fromEventPattern",function(){return K}),n.d(t,"generate",function(){return Q}),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 re.a}),n.d(t,"onErrorResumeNext",function(){return ie}),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 q.a}),n.d(t,"NEVER",function(){return te}),n.d(t,"config",function(){return be.a});var r=n("HDdC"),i=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("8vcG"),P=n("lJxs"),j=n("8Qeq"),I=n("DH7j"),A=n("z+Ro");function D(e,t,n){if(t){if(!Object(A.a)(t))return function(){return D(e,n).apply(void 0,arguments).pipe(Object(P.a)(function(e){return Object(I.a)(e)?t.apply(void 0,Object(E.a)(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];var a,s=this,c={context:s,subject:a,callbackFunc:e,scheduler:n};return new r.a(function(t){if(n)return n.schedule(R,0,{args:i,subscriber:t,params:c});if(!a){a=new u.a;try{e.apply(s,[].concat(i,[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(r){Object(j.a)(a)?a.error(r):console.warn(r)}}return a.subscribe(t)})}}function R(e){var t=this,n=e.args,r=e.subscriber,i=e.params,o=i.callbackFunc,a=i.context,s=i.scheduler,c=i.subject;if(!c){c=i.subject=new u.a;try{o.apply(a,[].concat(Object(E.a)(n),[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.add(s.schedule(L,0,{value:n.length<=1?n[0]:n,subject:c}))}]))}catch(l){c.error(l)}}this.add(c.subscribe(r))}function L(e){var t=e.subject;t.next(e.value),t.complete()}function N(e,t,n){if(t){if(!Object(A.a)(t))return function(){return N(e,n).apply(void 0,arguments).pipe(Object(P.a)(function(e){return Object(I.a)(e)?t.apply(void 0,Object(E.a)(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];var a={subject:void 0,args:i,callbackFunc:e,scheduler:n,context:this};return new r.a(function(t){var r=a.context,o=a.subject;if(n)return n.schedule(F,0,{params:a,subscriber:t,context:r});if(!o){o=a.subject=new u.a;try{e.apply(r,[].concat(i,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.shift();r?o.error(r):(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 F(e){var t=this,n=e.params,r=e.subscriber,i=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(i,[].concat(Object(E.a)(a),[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.shift();t.add(i?s.schedule(z,0,{err:i,subject:c}):s.schedule(B,0,{value:n.length<=1?n[0]:n,subject:c}))}]))}catch(l){this.add(s.schedule(z,0,{err:l,subject:c}))}}this.add(c.subscribe(r))}function B(e){var t=e.subject;t.next(e.value),t.complete()}function z(e){e.subject.error(e.err)}var H=n("itXk"),V=n("GyhO"),U=n("NXyV"),q=n("EY2u"),W=n("cp0P"),G=n("Cfvw"),X=n("xgIS"),Y=n("n6bG");function K(e,t,n){return n?K(e,t).pipe(Object(P.a)(function(e){return Object(I.a)(e)?n.apply(void 0,Object(E.a)(e)):n(e)})):new r.a(function(n){var r,i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.next(1===t.length?t[0]:t)};try{r=e(i)}catch(o){return void n.error(o)}if(Object(Y.a)(t))return function(){return t(i,r)}})}function Q(e,t,n,i,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===i||Object(A.a)(i)?(s=e,a=k.a,o=i):(s=e,a=i),new r.a(function(e){var r=s;if(o)return o.schedule(Z,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:r});for(;;){if(t){var i=void 0;try{i=t(r)}catch(l){return void e.error(l)}if(!i){e.complete();break}}var c=void 0;try{c=a(r)}catch(l){return void e.error(l)}if(e.next(c),e.closed)break;try{r=n(r)}catch(l){return void e.error(l)}}})}function Z(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 r;try{r=n(e.state)}catch(o){return void t.error(o)}if(!r)return void t.complete();if(t.closed)return}var i;try{i=e.resultSelector(e.state)}catch(o){return void t.error(o)}if(!t.closed&&(t.next(i),!t.closed))return this.schedule(e)}}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q.a;return Object(U.a)(function(){return e()?t:n})}var J=n("l5mm"),ee=n("VRyK"),te=new r.a(w.a);function ne(){return te}var re=n("LRne");function ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return q.a;var i=t[0],o=t.slice(1);return 1===t.length&&Object(I.a)(i)?ie.apply(void 0,Object(E.a)(i)):new r.a(function(e){var t=function(){return e.add(ie.apply(void 0,Object(E.a)(o)).subscribe(e))};return Object(G.a)(i).subscribe({next:function(t){e.next(t)},error:t,complete:t})})}function oe(e,t){return new r.a(t?function(n){var r=Object.keys(e),i=new v.a;return i.add(t.schedule(ae,0,{keys:r,index:0,subscriber:n,subscription:i,obj:e})),i}:function(t){for(var n=Object.keys(e),r=0;r<n.length&&!t.closed;r++){var i=n[r];e.hasOwnProperty(i)&&t.next([i,e[i]])}t.complete()})}function ae(e){var t=e.keys,n=e.index,r=e.subscriber,i=e.subscription,o=e.obj;if(!r.closed)if(n<t.length){var a=t[n];r.next([a,o[a]]),i.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var se=n("F97/"),ce=n("SeVD"),le=n("pLZG");function ue(e,t,n){return[Object(le.a)(t,n)(new r.a(Object(ce.a)(e))),Object(le.a)(Object(se.a)(t,n))(new r.a(Object(ce.a)(e)))]}var he=n("Nv8m"),de=n("NNCq"),fe=n("z6cu"),pe=n("PqYM");function me(e,t){return new r.a(function(n){var r,i;try{r=e()}catch(a){return void n.error(a)}try{i=t(r)}catch(a){return void n.error(a)}var o=(i?Object(G.a)(i):q.a).subscribe(n);return function(){o.unsubscribe(),r&&r.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 r=n("kU1M");t.pairwise=function(){return r.pairwise()(this)}},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return h});var r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),l=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var o;return Object(r.a)(this,n),(o=t.call(this,e,i)).scheduler=e,o.work=i,o}return Object(i.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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?Object(o.a)(Object(a.a)(n.prototype),"requestAsyncId",this).call(this,e,t,r):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(r.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 r=n("MGFw"),i=n("WtWf"),o=n("DH7j"),a=n("XoHu"),s=n("n6bG"),c=n("pjAE"),l=function(){var e,t=function(){function e(t){Object(r.a)(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return Object(i.a)(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=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)(i)){r&&(this._unsubscribe=void 0);try{i.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 r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{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 r=n("kU1M");t.takeUntil=function(e){return r.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 r=n("MGFw"),i=n("D0XW"),o=n("lJxs");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.a;return Object(o.a)(function(t){return new s(t,e.now())})}var s=function e(t,n){Object(r.a)(this,e),this.value=t,this.timestamp=n}},r1XK:function(e,t,n){var r=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(r)}},generate:function(e){this.chunk(e.value)}}},rSqW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("8LQU");r.Observable.prototype.subscribeOn=i.subscribeOn},rqY6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("zDpS");r.Observable.prototype.timeoutWith=i.timeoutWith},s4AO:function(e,t,n){"use strict";var r=n("ESbf");e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}},sNY3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.combineLatest=r.combineLatest},sQiz:function(e,t,n){var r=n("Cbry");function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,o;(o=(n=e).generatedLine)>(i=(t=this._last).generatedLine)||o==i&&n.generatedColumn>=t.generatedColumn||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},sRqT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("xwTN");r.Observable.prototype.flatMapTo=i.mergeMapTo,r.Observable.prototype.mergeMapTo=i.mergeMapTo},sVev:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=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 r=n("qCKp"),i=n("6mJ0");r.Observable.prototype.findIndex=i.findIndex},t0XI:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.onErrorResumeNext=r.onErrorResumeNext},t1UP:function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.create(null),i=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(r,e))return r[e];var t=e.toLowerCase();if(n.call(r,t))return r[e]=r[t];var i=o(t,0),s=i?"":a(t,0);return r[e]=Object.freeze({basename:t.substr(s.length),name:t,vendor:s,prefix:s,custom:i})},property:function(e){if(n.call(i,e))return i[e];var t=e,r=e[0];"/"===r?r="/"===e[1]?"//":"/":"_"!==r&&"*"!==r&&"$"!==r&&"#"!==r&&"+"!==r&&"&"!==r&&(r="");var s=o(t,r.length);if(!s&&(t=t.toLowerCase(),n.call(i,t)))return i[e]=i[t];var c=s?"":a(t,r.length),l=t.substr(0,r.length+c.length);return i[e]=Object.freeze({basename:t.substr(l.length),name:t.substr(r.length),hack:r,vendor:c,prefix:l,custom:s})},isCustomProperty:o,vendorPrefix:a}},t9bE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("KUzl");function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}},tZmI:function(e,t,n){var r=n("eWth"),i=123,o=function(e){for(var t="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),n=0;n<128;n++)t[n]=(r=String.fromCharCode(n),/[a-zA-Z0-9\-]/.test(r)?1:0);var r;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(i),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()===i?h(e):{min:1,max:0};break;case i: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 r=t.shift(),i=0,o=0;i<e.length;i++){var s=e[i];"Combinator"===s.type&&(s.value===r?(-1===o&&(o=i-1),e.splice(i,1),i--):(-1!==o&&i-o>1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function m(e){for(var t,n=[],r={},i=null,o=e.pos;t=g(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),r[t.value]=!0):null!==i&&"Combinator"!==i.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),i=t,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:p(n,r)||" ",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,r=1;return e.eat(91),45===e.charCode()&&(e.peek(),r=-1),-1==r&&8734===e.charCode()?e.peek():t=r*Number(l(e)),s(e),e.eat(44),s(e),8734===e.charCode()?e.peek():(r=1,45===e.charCode()&&(e.peek(),r=-1),n=r*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 i:if((t=e.nextCharCode())<48||t>57)return f(e);break;default:return f(e)}}function v(e){var t=new r(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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).durationSelector=r,i.hasValue=!1,i}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(r){return this.destination.error(r)}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},r=Object.keys(n).reduce(function(e,t){return e[n[t]]=t,e},{});e.exports={TYPE:n,NAME:r}},twrC:function(e,t,n){e.exports=n("errG")},u5kB:function(e,t,n){var r=n("KjDf"),i=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 r,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(i){if(this.onParseErrorThrow)throw i;var r=t.call(this,n);return this.onParseErrorThrow=!0,this.onParseError(i,r),this.onParseErrorThrow=!1,r}},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 i(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 r=e.atrule[n];r.parse&&(t.atrule[n]=r.parse)}if(e.pseudo)for(var n in e.pseudo){var i=e.pseudo[n];i.parse&&(t.pseudo[n]=i.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 r,i=(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(i))throw new Error("Unknown context `"+i+"`");return r=t.context[i].call(t,n),t.scanner.eof||t.error(),r}}},uARb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.debounce=function(e){return r.debounce(e)(this)}},uGYe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp");r.Observable.if=r.iif},uMcE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.shareReplay=function(e,t,n){return e&&"object"==typeof e?r.shareReplay(e)(this):r.shareReplay(e,t,n)(this)}},uO2z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("3uOa");r.Observable.webSocket=i.webSocket},umFS:function(e,t,n){"use strict";var r=n("fEpb"),i={object:!0,symbol:!0};e.exports=function(){var e,t=r.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(n){return!1}return!!i[typeof t.iterator]&&!!i[typeof t.toPrimitive]&&!!i[typeof t.toStringTag]}},v87U:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.single=function(e){return r.single(e)(this)}},vAVA:function(e,t,n){"use strict";var r;!function(){var n=t||{}||this||window;void 0===(r=(function(){return n}).apply(t,[]))||(e.exports=r),n.default=n;var i="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 r=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==r||isNaN(parseFloat(r))?0:r},d=function(e){for(var t=window.atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0;o<t.length;o++)i[o]=t.charCodeAt(o);return new Blob([r],{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 r=t||{},c=r.left,u=void 0===c?0:c,d=r.top,m=void 0===d?0:d,g=r.width,v=r.height,b=r.scale,y=void 0===b?1:b,_=r.responsive,w=void 0!==_&&_,k=r.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,r){var i=document.createElement("canvas"),o=new Image;o.crossOrigin="anonymous",o.src=n,o.onerror=function(){return r(new Error("Could not load "+n))},o.onload=function(){i.width=o.width,i.height=o.height,i.getContext("2d").drawImage(o,0,0),e.setAttributeNS("http://www.w3.org/1999/xlink","href",i.toDataURL("image/png")),t(!0)}})):Promise.resolve(null)}))}(e).then(function(){var r=e.cloneNode(!0);r.style.backgroundColor=(t||{}).backgroundColor||e.style.backgroundColor;var c=function(e,t,n,r){if("svg"===e.tagName)return{width:n||h(e,t,"width"),height:r||h(e,t,"height")};if(e.getBBox){var i=e.getBBox();return{width:i.x+i.width,height:i.y+i.height}}}(e,r,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!=r.getAttribute("transform")&&r.setAttribute("transform",r.getAttribute("transform").replace(/translate\(.*?\)/,""));var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.appendChild(r),r=b}if(r.setAttribute("version","1.1"),r.setAttribute("viewBox",[u,m,l,d].join(" ")),r.getAttribute("xmlns")||r.setAttributeNS(i,"xmlns",o),r.getAttribute("xmlns:xlink")||r.setAttributeNS(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),w?(r.removeAttribute("width"),r.removeAttribute("height"),r.setAttribute("preserveAspectRatio","xMinYMin meet")):(r.setAttribute("width",l*y),r.setAttribute("height",d*y)),Array.from(r.querySelectorAll("foreignObject > *")).forEach(function(e){e.setAttributeNS(i,"xmlns","svg"===e.tagName?o:"http://www.w3.org/1999/xhtml")}),!C)return function(e,t){var n=t||{},r=n.selectorRemap,i=n.modifyStyle,o=n.fonts,c=n.excludeUnusedCss,l=n.modifyCss||function(e,t){return(r?r(e):e)+"{"+(i?i(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,r=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),r=n&&n[1]||"";if(r&&!r.match(/^data:/)&&"about:blank"!==r){var i,o,c=r.startsWith("../")?t+"/../"+r:r.startsWith("./")?t+"/."+r:r;return{text:e.cssText,format:(i=c,o=Object.keys(s).filter(function(e){return i.indexOf("."+e)>0}).map(function(e){return s[e]}),o?o[0]:(console.error("Unknown font format for "+i+". Fonts may not be working correctly."),"application/octet-stream")),url:c}}}(t,r);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 r=new XMLHttpRequest;r.addEventListener("load",function(){var n=function(e){for(var t="",n=new Uint8Array(e),r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return window.btoa(t)}(r.response),i=e.text.replace(a,'url("data:'+e.format+";base64,"+n+'")')+"\n";f[e.url]=i,t(i)}),r.addEventListener("error",function(n){console.warn("Failed to load font from: "+e.url,n),f[e.url]=null,t(null)}),r.addEventListener("abort",function(n){console.warn("Aborted loading font from: "+e.url,n),t(null)}),r.open("GET",e.url),r.responseType="arraybuffer",r.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 i=document.createElement("defs");i.appendChild(t),r.insertBefore(i,r.firstChild);var o=document.createElement("div");o.appendChild(r);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(r);var k=_.innerHTML;if("function"!=typeof n)return{src:k,width:l,height:d};n(k,l,d)})},n.svgAsDataUri=function(e,t,r){return l(e),n.prepareSvg(e,t).then(function(e){var t=e.width,n=e.height,i="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 " ">]>'+e.src).replace(/%([0-9A-F]{2})/g,function(e,t){var n=String.fromCharCode("0x"+t);return"%"===n?"%25":n})));return"function"==typeof r&&r(i,t,n),i})},n.svgAsPngUri=function(e,t,r){l(e);var i=t||{},o=i.encoderType,a=void 0===o?"image/png":o,s=i.encoderOptions,c=void 0===s?.8:s,u=i.canvg,h=function(e){var t=e.src,n=e.width,i=e.height,o=document.createElement("canvas"),s=o.getContext("2d"),l=window.devicePixelRatio||1;o.width=n*l,o.height=i*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 r&&r(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 r=new Image;r.onload=function(){return t(h({src:r,width:r.width,height:r.height}))},r.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)},r.src=e})})},n.download=function(e,t,n){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(d(t),e);else{var r=document.createElement("a");if("download"in r){r.download=e,r.style.display="none",document.body.appendChild(r);try{var i=d(t),o=URL.createObjectURL(i);r.href=o,r.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."),r.href=t}r.click(),document.body.removeChild(r)}else n&&n.popup&&(n.popup.document.title=e,n.popup.location.replace(t))}},n.saveSvg=function(e,t,r){var i=m();return u(e).then(function(e){return n.svgAsDataUri(e,r||{})}).then(function(e){return n.download(t,e,i)})},n.saveSvgAsPng=function(e,t,r){var i=m();return u(e).then(function(e){return n.svgAsPngUri(e,r||{})}).then(function(e){return n.download(t,e,i)})}}()},vI5D:function(e,t){function n(e){return e}function r(e,t,n,i){var o,a;switch(e.type){case"Group":o=function(e,t,n,i){var o=" "===e.combinator||i?e.combinator:" "+e.combinator+" ",a=e.terms.map(function(e){return r(e,t,n,i)}).join(o);return(e.explicit||n)&&(a=(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]")),a}(e,t,n,i)+(e.disallowEmpty?"!":"");break;case"Multiplier":return r(e.term,t,n,i)+t(0===(a=e).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:"")+"}"),e);case"Type":o="<"+e.name+(e.opts?t(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+"`")}}(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}e.exports=function(e,t){var i=n,o=!1,a=!1;return"function"==typeof t?i=t:t&&(o=Boolean(t.forceBraces),a=Boolean(t.compact),"function"==typeof t.decorate&&(i=t.decorate)),r(e,i,o,a)}},vQc4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("itJ+");r.Observable.prototype.bufferCount=i.bufferCount},vQkm:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",function(){return r})},vTln:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.distinct=function(e,t){return r.distinct(e,t)(this)}},vd7W:function(e,t,n){var r=n("8wsT"),i=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 r=e.charCodeAt(P);switch(f(r)){case t:return void P++;case f.Eof:return;case f.WhiteSpace:if(c(r))return P+=v(e,P,r),void(R=a.BadString);break;case 92:if(P===e.length-1)break;var i=n(P+1);c(i)?P+=v(e,P+1,i):u(r,i)&&(P=y(e,P)-1)}}}t||(t=new r);for(var x=(e=String(e||"")).length,O=i(t.offsetAndType,x+1),M=i(t.balance,x+1),T=0,E=p(n(0)),P=E,j=0,I=0,A=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=(I=M[A=I&C])>>S,M[T]=A,M[A++]=T;A<T;A++)M[A]===x&&(M[A]=T);break;case a.LeftParenthesis:case a.Function:M[T]=I,I=(j=a.RightParenthesis)<<S|T;break;case a.LeftSquareBracket:M[T]=I,I=(j=a.RightSquareBracket)<<S|T;break;case a.LeftCurlyBracket:M[T]=I,I=(j=a.RightCurlyBracket)<<S|T}O[T++]=R<<S|P}for(O[T]=a.EOF<<S|P,M[T]=x,M[x]=x;0!==I;)I=M[A=I&C],M[A]=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},viRO:function(e,t,n){"use strict";var r=n("MgzW"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,c=60112;t.Suspense=60113;var l=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;i=h("react.element"),o=h("react.portal"),t.Fragment=h("react.fragment"),t.StrictMode=h("react.strict_mode"),t.Profiler=h("react.profiler"),a=h("react.provider"),s=h("react.context"),c=h("react.forward_ref"),t.Suspense=h("react.suspense"),l=h("react.memo"),u=h("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var y=b.prototype=new v;y.constructor=b,r(y,g.prototype),y.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function M(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case o:c=!0}}if(c)return a=a(c=e),e=""===r?"."+O(c,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),M(a,t,n,"",function(e){return e})):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=r+O(s=e[l],l);c+=M(s,t,n,u,a)}else if("function"==typeof(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=u.call(e),l=0;!(s=e.next()).done;)c+=M(s=s.value,t,n,u=r+O(s,l++),a);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function T(e,t,n){if(null==e)return e;var r=[],i=0;return M(e,r,"","",function(e){return t.call(n,e,i++)}),r}function E(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var P={current:null};function j(){var e=P.current;if(null===e)throw Error(f(321));return e}var I={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error(f(143));return e}},t.Component=g,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(f(267,e));var o=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var h=0;h<u;h++)l[h]=arguments[h+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:E}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="17.0.2"},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("JL25"),i=n("mvVQ"),o=n("/E8u"),a=n("MGFw"),s=n("WtWf"),c=n("7o/Q"),l=n("KqfI"),u=n("n6bG");function h(e,t,n){return function(r){return r.lift(new d(e,t,n))}}var d=function(){function e(t,n,r){Object(a.a)(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}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(i.a)(n,e);var t=Object(o.a)(n);function n(e,i,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)(i)?(c._context=Object(r.a)(c),c._tapNext=i):i&&(c._context=i,c._tapNext=i.next||l.a,c._tapError=i.error||l.a,c._tapComplete=i.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)},"w0v+":function(e,t,n){"use strict";n.r(t),n.d(t,"config",function(){return r.a}),n.d(t,"InnerSubscriber",function(){return i.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 I.a}),n.d(t,"EmptyError",function(){return A.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 N.a}),n.d(t,"applyMixins",function(){return F.a}),n.d(t,"errorObject",function(){return B}),n.d(t,"hostReportError",function(){return z.a}),n.d(t,"identity",function(){return H.a}),n.d(t,"isArray",function(){return V.a}),n.d(t,"isArrayLike",function(){return U.a}),n.d(t,"isDate",function(){return q.a}),n.d(t,"isFunction",function(){return W.a}),n.d(t,"isIterable",function(){return G.a}),n.d(t,"isNumeric",function(){return X.a}),n.d(t,"isObject",function(){return Y.a}),n.d(t,"isObservable",function(){return K.a}),n.d(t,"isPromise",function(){return Q.a}),n.d(t,"isScheduler",function(){return Z.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 re.a}),n.d(t,"subscribeToIterable",function(){return p.a}),n.d(t,"subscribeToObservable",function(){return ie.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 r=n("2fFW"),i=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"),I=n("4I5i"),A=n("sVev"),D=n("c7jc"),R=n("9ppp"),L=n("Y6u4"),N=n("pjAE"),F=n("Of7M"),B={e:{}},z=n("NJ4a"),H=n("SpAZ"),V=n("DH7j"),U=n("I55L"),q=n("mlxB"),W=n("n6bG"),G=n("CMyj"),X=n("Y7HM"),Y=n("XoHu"),K=n("QIAL"),Q=n("c2HN"),Z=n("z+Ro"),$=n("KqfI"),J=n("F97/"),ee=n("mCNh"),te=n("xJj7"),ne=n("SeVD"),re=n("ngJS"),ie=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 r=n("oB13"),i=n("x+ZX"),o=n("XNiG");function a(){return new o.b}function s(){return function(e){return Object(i.a)()(Object(r.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 r=n("qCKp"),i=n("iD44");r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},wWu8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("Lsvf");r.Observable.prototype.ignoreElements=i.ignoreElements},wfyD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("lXds");r.Observable.prototype.delayWhen=i.delayWhen},wsAV:function(e,t){var n=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},wxn8:function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n("MGFw"),i=n("WtWf"),o=n("t9bE"),a=n("KUzl"),s=n("mvVQ"),c=n("/E8u"),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,i){var o;if(Object(r.a)(this,n),o=t.call(this),e instanceof h.a)o.destination=i,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(i.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 r=this;return new h.a(function(i){try{r.next(e())}catch(a){i.error(a)}var o=r.subscribe(function(e){try{n(e)&&i.next(e)}catch(a){i.error(a)}},function(e){return i.error(e)},function(){return i.complete()});return function(){try{r.next(t())}catch(a){i.error(a)}o.unsubscribe()}})}},{key:"_connectSocket",value:function(){var e=this,t=this._config,n=t.WebSocketCtor,r=t.protocol,i=t.url,o=t.binaryType,a=this._output,s=null;try{s=r?new n(i,r):new n(i),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 r=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()}),r&&r instanceof f.a&&c.add(r.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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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 r=new u(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),u=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).connectable=r,i}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,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(s.a)},xDdU:function(e,t,n){var r,i,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||r,d=void 0!==e.clockseq?e.clockseq:i;if(null==h||null==d){var f=o();null==h&&(h=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=i=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,i=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 r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o="undefined"!=typeof global&&global,a=r||o||i},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 r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}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 r=n("8vcG"),i=n("HDdC"),o=n("DH7j"),a=n("n6bG"),s=n("lJxs");function c(e,t,n,u){return Object(a.a)(n)&&(u=n,n=void 0),u?c(e,t,n).pipe(Object(s.a)(function(e){return Object(o.a)(e)?u.apply(void 0,Object(r.a)(e)):u(e)})):new i.a(function(r){l(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function l(e,t,n,r,i){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,i),o=function(){return a.removeEventListener(t,n,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var c=e;e.addListener(t,n),o=function(){return c.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,h=e.length;u<h;u++)l(e[u],t,n,r,i)}r.add(o)}},xk4V:function(e,t,n){var r=n("4fRq"),i=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||r)();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||i(a)}},xwTN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.mergeMapTo=function(e,t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeMapTo(e,t)(this)}},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},yJif:function(e,t,n){e.exports=n("errG")},yTw5:function(e,t,n){var r=n("vd7W").TYPE,i=n("4njK").mode,o=r.LeftCurlyBracket;function a(e){return this.Raw(e,i.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,r=this.scanner.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(s,a):a.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.scanner.tokenStart),prelude:e,block:t}},generate:function(e){this.node(e.prelude),this.node(e.block)},walkContext:"rule"}},yl30:function(e,t,n){"use strict";var r=n("q1tI"),i=n("MgzW"),o=n("QCnb");function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,c={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(c[e]=t,e=0;e<t.length;e++)s.add(t[e])}var h=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,p={},m={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new g(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new g(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new g(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new g(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new g(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(m,e)||!f.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,C=60106,S=60107,x=60108,O=60114,M=60109,T=60110,E=60112,P=60113,j=60120,I=60115,A=60116,D=60121,R=60128,L=60129,N=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;k=B("react.element"),C=B("react.portal"),S=B("react.fragment"),x=B("react.strict_mode"),O=B("react.profiler"),M=B("react.provider"),T=B("react.context"),E=B("react.forward_ref"),P=B("react.suspense"),j=B("react.suspense_list"),I=B("react.memo"),A=B("react.lazy"),D=B("react.block"),B("react.scope"),R=B("react.opaque.id"),L=B("react.debug_trace_mode"),N=B("react.offscreen"),F=B("react.legacy_hidden")}var z,H="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function U(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function W(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function G(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case C:return"Portal";case O:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return X(e.type);case D:return X(e._render);case A:t=e._payload,e=e._init;try{return X(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function le(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var he="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,me,ge=(me=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return me(e,t)})}:me);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach(function(e){ye.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]})});var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Me=null,Te=null;function Ee(e){if(e=Jr(e)){if("function"!=typeof Oe)throw Error(a(280));var t=e.stateNode;t&&(t=ti(t),Oe(e.stateNode,e.type,t))}}function Pe(e){Me?Te?Te.push(e):Te=[e]:Me=e}function je(){if(Me){var e=Me,t=Te;if(Te=Me=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ie(e,t){return e(t)}function Ae(e,t,n,r,i){return e(t,n,r,i)}function De(){}var Re=Ie,Le=!1,Ne=!1;function Fe(){null===Me&&null===Te||(De(),je())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=ti(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var ze=!1;if(h)try{var He={};Object.defineProperty(He,"passive",{get:function(){ze=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(me){ze=!1}function Ve(e,t,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(u){this.onError(u)}}var Ue=!1,qe=null,We=!1,Ge=null,Xe={onError:function(e){Ue=!0,qe=e}};function Ye(e,t,n,r,i,o,a,s,c){Ue=!1,qe=null,Ve.apply(Xe,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ze(e){if(Ke(e)!==e)throw Error(a(188))}function $e(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ze(i),e;if(o===r)return Ze(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,ct=null,lt=new Map,ut=new Map,ht=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ft(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ft(t,n,r,i,o),null!==t&&null!==(t=Jr(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=$r(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void rt(e.lanePriority,function(){o.unstable_runWithPriority(e.priority,function(){nt(n)})})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){vt(e)&&n.delete(t)}function yt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==ct&&vt(ct)&&(ct=null),lt.forEach(bt),ut.forEach(bt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,yt)))}function wt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==st&&_t(st,e),null!==ct&&_t(ct,e),lt.forEach(t),ut.forEach(t),n=0;n<ht.length;n++)(r=ht[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ht.length&&null===(n=ht[0]).blockedOn;)gt(n),null===n.blockedOn&&ht.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},xt={};function Ot(e){if(St[e])return St[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}h&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var Mt=Ot("animationend"),Tt=Ot("animationiteration"),Et=Ot("animationstart"),Pt=Ot("transitionend"),jt=new Map,It=new Map,At=["abort","abort",Mt,"animationEnd",Tt,"animationIteration",Et,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),It.set(r,t),jt.set(r,i),l(i,[r])}}(0,o.unstable_now)();var Rt=8;function Lt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!=(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!=(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!=(t=4186112&e)?(Rt=6,t):0!=(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!=(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Nt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Rt=15;else if(0!=(o=134217727&n)){var c=o&~a;0!==c?(r=Lt(c),i=Rt):0!=(s&=o)&&(r=Lt(s),i=Rt)}else 0!=(o=n&~a)?(r=Lt(o),i=Rt):0!==s&&(r=Lt(s),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Lt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)r|=e[n=31-Ut(t)],t&=~(i=1<<n);return r}function Ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Bt(10,t):e;case 10:return 0===(e=zt(192&~t))?Bt(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function zt(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Wt|0)|0},qt=Math.log,Wt=Math.LN2,Gt=o.unstable_UserBlockingPriority,Xt=o.unstable_runWithPriority,Yt=!0;function Kt(e,t,n,r){Le||De();var i=Zt,o=Le;Le=!0;try{Ae(i,e,t,n,r)}finally{(Le=o)||Fe()}}function Qt(e,t,n,r){Xt(Gt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var i;if(Yt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=ft(null,e,t,n,r),ot.push(e);else{var o=$t(e,t,n,r);if(null===o)i&&pt(e,r);else{if(i){if(-1<dt.indexOf(e))return e=ft(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return ct=mt(ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return lt.set(o,mt(lt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return ut.set(o=i.pointerId,mt(ut.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;pt(e,r)}jr(e,t,r,null,n)}}}function $t(e,t,n,r){var i=xe(r);if(null!==(i=$r(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Qe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return jr(e,t,r,i,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(this[a]=(t=e[a])?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var cn,ln,un,hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(hn),fn=i({},hn,{view:0,detail:0}),pn=sn(fn),mn=i({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(cn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=cn=0,un=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=sn(mn),vn=sn(i({},mn,{dataTransfer:0})),bn=sn(i({},fn,{relatedTarget:0})),yn=sn(i({},hn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=sn(i({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=sn(i({},hn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return xn}var Mn=sn(i({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=sn(i({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Pn=sn(i({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=sn(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=[9,13,27,32],An=h&&"CompositionEvent"in window,Dn=null;h&&"documentMode"in document&&(Dn=document.documentMode);var Rn=h&&"TextEvent"in window&&!Dn,Ln=h&&(!An||Dn&&8<Dn&&11>=Dn),Nn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function qn(e,t,n,r){Pe(r),0<(t=Ar(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Gn=null;function Xn(e){xr(e,0)}function Yn(e){if(Z(ei(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(h){var Zn;if(h){var $n="oninput"in document;if(!$n){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),$n="function"==typeof Jn.oninput}Zn=$n}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function er(){Wn&&(Wn.detachEvent("onpropertychange",tr),Gn=Wn=null)}function tr(e){if("value"===e.propertyName&&Yn(Gn)){var t=[];if(qn(t,Gn,e,xe(e)),e=Xn,Le)e(t);else{Le=!0;try{Ie(e,t)}finally{Le=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),Gn=n,(Wn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Gn)}function ir(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},sr=Object.prototype.hasOwnProperty;function cr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=h&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,vr=null,br=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==$(r)||(r="selectionStart"in(r=mr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&cr(vr,r)||(vr=r,0<(r=Ar(gr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(At,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<_r.length;wr++)It.set(_r[wr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,c,l){if(Ye.apply(this,arguments),Ue){if(!Ue)throw Error(a(198));var u=qe;Ue=!1,qe=null,We||(We=!0,Ge=u)}}(r,t,void 0,e),e.currentTarget=null}function xr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;Sr(i,s,l),o=c}else for(a=0;a<r.length;a++){if(c=(s=r[a]).instance,l=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;Sr(i,s,l),o=c}}}if(We)throw e=Ge,We=!1,Ge=null,e}function Or(e,t){var n=ni(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Mr]||(e[Mr]=!0,s.forEach(function(t){Cr.has(t)||Er(t,!1,e,null),Er(t,!0,e,null)}))}function Er(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ni(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Pr(o,e,i,t),a.add(s))}function Pr(e,t,n,r){var i=It.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Zt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),e.addEventListener(t,n,r?void 0===i||{capture:!0,passive:i}:void 0!==i&&{passive:i})}function jr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===i||8===c.nodeType&&c.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=$r(s)))return;if(5===(c=a.tag)||6===c){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ne)return e();Ne=!0;try{Re(e,void 0,void 0)}finally{Ne=!1,Fe()}}(function(){var r=o,i=xe(n),a=[];e:{var s=jt.get(e);if(void 0!==s){var c=dn,l=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":c=Mn;break;case"focusin":l="focus",c=bn;break;case"focusout":l="blur",c=bn;break;case"beforeblur":case"afterblur":c=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=En;break;case Mt:case Tt:case Et:c=yn;break;case Pt:c=Pn;break;case"scroll":c=pn;break;case"wheel":c=jn;break;case"copy":case"cut":case"paste":c=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Tn}var u=0!=(4&t),h=!u&&"scroll"===e,d=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==d&&null!=(m=Be(p,d))&&u.push(Ir(p,m,f))),h)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!$r(l)&&!l[Qr])&&(c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?$r(l):null)&&(l!==(h=Ke(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=gn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",d="onPointerEnter",p="pointer"),h=null==c?s:ei(c),f=null==l?s:ei(l),(s=new u(m,p+"leave",c,n,i)).target=h,s.relatedTarget=f,m=null,$r(i)===r&&((u=new u(d,p+"enter",l,n,i)).target=f,u.relatedTarget=h,m=u),h=m,c&&l)e:{for(d=l,p=0,f=u=c;f;f=Dr(f))p++;for(f=0,m=d;m;m=Dr(m))f++;for(;0<p-f;)u=Dr(u),p--;for(;0<f-p;)d=Dr(d),f--;for(;p--;){if(u===d||null!==d&&u===d.alternate)break e;u=Dr(u),d=Dr(d)}u=null}else u=null;null!==c&&Rr(a,s,c,u,!1),null!==l&&null!==h&&Rr(a,h,l,u,!0)}if("select"===(c=(s=r?ei(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var g=Kn;else if(Un(s))if(Qn)g=or;else{g=rr;var v=nr}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?qn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ei(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(mr=v,gr=r,vr=null);break;case"focusout":vr=gr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,yr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(a,n,i)}var b;if(An)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=nn()):(en="value"in(Jt=i)?Jt.value:Jt.textContent,Hn=!0)),0<(v=Ar(r,y)).length&&(y=new wn(y,e,null,n,i),a.push({event:y,listeners:v}),(b||null!==(b=zn(n)))&&(y.data=b))),(b=Rn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!An&&Bn(e,t)?(e=nn(),tn=en=Jt=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Ar(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=b)}xr(a,t)})}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ar(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Be(e,n))&&r.unshift(Ir(e,o,i)),null!=(o=Be(e,t))&&r.push(Ir(e,o,i))),e=e.return}return r}function Dr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(c=Be(n,o))&&a.unshift(Ir(n,c,s)):i||null!=(c=Be(n,o))&&a.push(Ir(n,c,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Lr(){}var Nr=null,Fr=null;function Br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Vr="function"==typeof clearTimeout?clearTimeout:void 0;function Ur(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Gr=0,Xr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+Xr,Kr="__reactProps$"+Xr,Qr="__reactContainer$"+Xr,Zr="__reactEvents$"+Xr;function $r(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Wr(e);null!==e;){if(n=e[Yr])return n;e=Wr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Yr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ei(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ti(e){return e[Kr]||null}function ni(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var ri=[],ii=-1;function oi(e){return{current:e}}function ai(e){0>ii||(e.current=ri[ii],ri[ii]=null,ii--)}function si(e,t){ii++,ri[ii]=e.current,e.current=t}var ci={},li=oi(ci),ui=oi(!1),hi=ci;function di(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function fi(e){return null!=e.childContextTypes}function pi(){ai(ui),ai(li)}function mi(e,t,n){if(li.current!==ci)throw Error(a(168));si(li,t),si(ui,n)}function gi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,X(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,hi=li.current,si(li,e),si(ui,ui.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=gi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ai(ui),ai(li),si(li,e)):ai(ui),si(ui,n)}var yi=null,_i=null,wi=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Si=o.unstable_shouldYield,xi=o.unstable_requestPaint,Oi=o.unstable_now,Mi=o.unstable_getCurrentPriorityLevel,Ti=o.unstable_ImmediatePriority,Ei=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,ji=o.unstable_LowPriority,Ii=o.unstable_IdlePriority,Ai={},Di=void 0!==xi?xi:function(){},Ri=null,Li=null,Ni=!1,Fi=Oi(),Bi=1e4>Fi?Oi:function(){return Oi()-Fi};function zi(){switch(Mi()){case Ti:return 99;case Ei:return 98;case Pi:return 97;case ji:return 96;case Ii:return 95;default:throw Error(a(332))}}function Hi(e){switch(e){case 99:return Ti;case 98:return Ei;case 97:return Pi;case 96:return ji;case 95:return Ii;default:throw Error(a(332))}}function Vi(e,t){return e=Hi(e),wi(e,t)}function Ui(e,t,n){return e=Hi(e),ki(e,t,n)}function qi(){if(null!==Li){var e=Li;Li=null,Ci(e)}Wi()}function Wi(){if(!Ni&&null!==Ri){Ni=!0;var e=0;try{var t=Ri;Vi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Ri=null}catch(n){throw null!==Ri&&(Ri=Ri.slice(e+1)),ki(Ti,qi),n}finally{Ni=!1}}}var Gi=w.ReactCurrentBatchConfig;function Xi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yi=oi(null),Ki=null,Qi=null,Zi=null;function $i(){Zi=Qi=Ki=null}function Ji(e){var t=Yi.current;ai(Yi),e.type._context._currentValue=t}function eo(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function to(e,t){Ki=e,Zi=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Aa=!0),e.firstContext=null)}function no(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Ki)throw Error(a(308));Qi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var ro=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oo(e,t){t.updateQueue===(e=e.updateQueue)&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function so(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(null===r||n!==(r=r.updateQueue))null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t;else{var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;e.updateQueue=n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects}}}function lo(e,t,n,r){var o=e.updateQueue;ro=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,c=o.shared.pending;if(null!==c){o.shared.pending=null;var l=c,u=l.next;l.next=null,null===s?a=u:s.next=u,s=l;var h=e.alternate;if(null!==h){var d=(h=h.updateQueue).lastBaseUpdate;d!==s&&(null===d?h.firstBaseUpdate=u:d.next=u,h.lastBaseUpdate=l)}}if(null!==a){for(d=o.baseState,s=0,h=u=l=null;;){var f=a.eventTime;if((r&(c=a.lane))===c){null!==h&&(h=h.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(c=t,f=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,c);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(c="function"==typeof(p=m.payload)?p.call(f,d,c):p))break e;d=i({},d,c);break e;case 2:ro=!0}}null!==a.callback&&(e.flags|=32,null===(c=o.effects)?o.effects=[a]:c.push(a))}else f={eventTime:f,lane:c,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===h?(u=h=f,l=d):h=h.next=f,s|=c;if(null===(a=a.next)){if(null===(c=o.shared.pending))break;a=c.next,c.next=null,o.lastBaseUpdate=c,o.shared.pending=null}}null===h&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=h,Rs|=s,e.lanes=s,e.memoizedState=d}}function uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var ho=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ac(),i=sc(e),o=ao(r,i);o.payload=t,null!=n&&(o.callback=n),so(e,o),cc(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ac(),i=sc(e),o=ao(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),so(e,o),cc(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ac(),r=sc(e),i=ao(n,r);i.tag=2,null!=t&&(i.callback=t),so(e,i),cc(e,r,n)}};function mo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,o))}function go(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"==typeof o&&null!==o?o=no(o):(i=fi(t)?hi:li.current,o=(r=null!=(r=t.contextTypes))?di(e,i):ci),t=new t(n,o),e.memoizedState=null!=t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function bo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,io(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=no(o):(o=fi(t)?hi:li.current,i.context=di(e,o)),lo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),lo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var yo=Array.isArray;function _o(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function wo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ko(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)e.set(null!==t.key?t.key:t.index,t),t=t.sibling;return e}function i(e,t){return(e=zc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=qc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=_o(e,t,n),r.return=e,r):((r=Hc(n.type,n.key,n.props,null,e.mode,r)).ref=_o(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,o){return null===t||7!==t.tag?((t=Vc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Hc(t.type,t.key,t.props,null,e.mode,n)).ref=_o(e,null,t),n.return=e,n;case C:return(t=Wc(t,e.mode,n)).return=e,t}if(yo(t)||V(t))return(t=Vc(t,e.mode,n,null)).return=e,t;wo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?h(e,t,n.props.children,r,i):l(e,t,n,r):null;case C:return n.key===i?u(e,t,n,r):null}if(yo(n)||V(n))return null!==i?null:h(e,t,n,r,null);wo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?h(t,e,r.props.children,i,r.key):l(t,e,r,i);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(yo(r)||V(r))return h(t,e=e.get(n)||null,r,i,null);wo(t,r)}return null}function m(i,a,s,c){for(var l=null,u=null,h=a,m=a=0,g=null;null!==h&&m<s.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=f(i,h,s[m],c);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(i,h),a=o(v,a,m),null===u?l=v:u.sibling=v,u=v,h=g}if(m===s.length)return n(i,h),l;if(null===h){for(;m<s.length;m++)null!==(h=d(i,s[m],c))&&(a=o(h,a,m),null===u?l=h:u.sibling=h,u=h);return l}for(h=r(i,h);m<s.length;m++)null!==(g=p(h,i,m,s[m],c))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?l=g:u.sibling=g,u=g);return e&&h.forEach(function(e){return t(i,e)}),l}function g(i,s,c,l){var u=V(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var h=u=null,m=s,g=s=0,v=null,b=c.next();null!==m&&!b.done;g++,b=c.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(i,m,b.value,l);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(i,m),s=o(y,s,g),null===h?u=y:h.sibling=y,h=y,m=v}if(b.done)return n(i,m),u;if(null===m){for(;!b.done;g++,b=c.next())null!==(b=d(i,b.value,l))&&(s=o(b,s,g),null===h?u=b:h.sibling=b,h=b);return u}for(m=r(i,m);!b.done;g++,b=c.next())null!==(b=p(m,i,g,b.value,l))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=o(b,s,g),null===h?u=b:h.sibling=b,h=b);return e&&m.forEach(function(e){return t(i,e)}),u}return function(e,r,o,c){var l="object"==typeof o&&null!==o&&o.type===S&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case k:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){switch(l.tag){case 7:if(o.type===S){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}break;default:if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=_o(e,l,o),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}o.type===S?((r=Vc(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=Hc(o.type,o.key,o.props,null,e.mode,c)).ref=_o(e,r,o),c.return=e,e=c)}return s(e);case C:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Wc(o,e.mode,c)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=qc(o,e.mode,c)).return=e,e=r),s(e);if(yo(o))return m(e,r,o,c);if(V(o))return g(e,r,o,c);if(u&&wo(e,o),void 0===o&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,X(e.type)||"Component"))}return n(e,r)}}var Co=ko(!0),So=ko(!1),xo={},Oo=oi(xo),Mo=oi(xo),To=oi(xo);function Eo(e){if(e===xo)throw Error(a(174));return e}function Po(e,t){switch(si(To,t),si(Mo,e),si(Oo,xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(Oo),si(Oo,t)}function jo(){ai(Oo),ai(Mo),ai(To)}function Io(e){Eo(To.current);var t=Eo(Oo.current),n=fe(t,e.type);t!==n&&(si(Mo,e),si(Oo,n))}function Ao(e){Mo.current===e&&(ai(Oo),ai(Mo))}var Do=oi(0);function Ro(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lo=null,No=null,Fo=!1;function Bo(e,t){var n=Fc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function zo(e,t){switch(e.tag){case 5:return null!==(t=1!==t.nodeType||e.type.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ho(e){if(Fo){var t=No;if(t){var n=t;if(!zo(e,t)){if(!(t=qr(n.nextSibling))||!zo(e,t))return e.flags=-1025&e.flags|2,Fo=!1,void(Lo=e);Bo(Lo,n)}Lo=e,No=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Fo=!1,Lo=e}}function Vo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Lo=e}function Uo(e){if(e!==Lo)return!1;if(!Fo)return Vo(e),Fo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=No;t;)Bo(e,t),t=qr(t.nextSibling);if(Vo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){No=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}No=null}}else No=Lo?qr(e.stateNode.nextSibling):null;return!0}function qo(){No=Lo=null,Fo=!1}var Wo=[];function Go(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var Xo=w.ReactCurrentDispatcher,Yo=w.ReactCurrentBatchConfig,Ko=0,Qo=null,Zo=null,$o=null,Jo=!1,ea=!1;function ta(){throw Error(a(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,i,o){if(Ko=o,Qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xo.current=null===e||null===e.memoizedState?Ea:Pa,e=n(r,i),ea){o=0;do{if(ea=!1,!(25>o))throw Error(a(301));o+=1,$o=Zo=null,t.updateQueue=null,Xo.current=ja,e=n(r,i)}while(ea)}if(Xo.current=Ta,t=null!==Zo&&null!==Zo.next,Ko=0,$o=Zo=Qo=null,Jo=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$o?Qo.memoizedState=$o=e:$o=$o.next=e,$o}function oa(){if(null===Zo){var e=Qo.alternate;e=null!==e?e.memoizedState:null}else e=Zo.next;var t=null===$o?Qo.memoizedState:$o.next;if(null!==t)$o=t,Zo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Zo=e).memoizedState,baseState:Zo.baseState,baseQueue:Zo.baseQueue,queue:Zo.queue,next:null},null===$o?Qo.memoizedState=$o=e:$o=$o.next=e}return $o}function aa(e,t){return"function"==typeof t?t(e):t}function sa(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Zo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){r=r.baseState;var c=s=o=null,l=i=i.next;do{var u=l.lane;if((Ko&u)===u)null!==c&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var h={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=h,o=r):c=c.next=h,Qo.lanes|=u,Rs|=u}l=l.next}while(null!==l&&l!==i);null===c?o=r:c.next=s,ar(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ca(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ar(o,t.memoizedState)||(Aa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function la(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=(Ko&(e=e.mutableReadLanes))===e)&&(t._workInProgressVersionPrimary=r,Wo.push(t)),e)return n(t._source);throw Wo.push(t),Error(a(350))}function ua(e,t,n,r){var i=Ms;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),c=Xo.current,l=c.useState(function(){return la(i,t,n)}),u=l[1],h=l[0];l=$o;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,m=d.source;d=d.subscribe;var g=Qo;return e.memoizedState={refs:f,source:t,subscribe:r},c.useEffect(function(){f.getSnapshot=n,f.setSnapshot=u;var e=o(t._source);if(!ar(s,e)){e=n(t._source),ar(h,e)||(u(e),e=sc(g),i.mutableReadLanes|=e&i.pendingLanes),i.entangledLanes|=e=i.mutableReadLanes;for(var r=i.entanglements,a=e;0<a;){var c=31-Ut(a),l=1<<c;r[c]|=e,a&=~l}}},[n,t,r]),c.useEffect(function(){return r(t._source,function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var r=sc(g);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n(function(){throw o})}})},[t,r]),ar(p,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:h}).dispatch=u=Ma.bind(null,Qo,e),l.queue=e,l.baseQueue=null,h=la(i,t,n),l.memoizedState=l.baseState=h),h}function ha(e,t,n){return ua(oa(),e,t,n)}function da(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e}).dispatch=Ma.bind(null,Qo,e),[t.memoizedState,e]}function fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qo.updateQueue)?(Qo.updateQueue=t={lastEffect:null},t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return ia().memoizedState={current:e}}function ma(){return oa().memoizedState}function ga(e,t,n,r){var i=ia();Qo.flags|=e,i.memoizedState=fa(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=oa();r=void 0===r?null:r;var o=void 0;if(null!==Zo){var a=Zo.memoizedState;if(o=a.destroy,null!==r&&na(r,a.deps))return void fa(t,n,o,r)}Qo.flags|=e,i.memoizedState=fa(1|t,n,o,r)}function ba(e,t){return ga(516,4,e,t)}function ya(e,t){return va(516,4,e,t)}function _a(e,t){return va(4,2,e,t)}function wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ka(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,wa.bind(null,t,e),n)}function Ca(){}function Sa(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xa(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t){var n=zi();Vi(98>n?98:n,function(){e(!0)}),Vi(97<n?97:n,function(){var n=Yo.transition;Yo.transition=1;try{e(!1),t()}finally{Yo.transition=n}})}function Ma(e,t,n){var r=ac(),i=sc(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Qo||null!==a&&a===Qo)ea=Jo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,c=a(s,n);if(o.eagerReducer=a,o.eagerState=c,ar(c,s))return}catch(l){}cc(e,i,r)}}var Ta={readContext:no,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useMutableSource:ta,useOpaqueIdentifier:ta,unstable_isNewReconciler:!1},Ea={readContext:no,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:no,useEffect:ba,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ma.bind(null,Qo,e),[r.memoizedState,e]},useRef:pa,useState:da,useDebugValue:Ca,useDeferredValue:function(e){var t=da(e),n=t[0],r=t[1];return ba(function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}},[e]),n},useTransition:function(){var e=da(!1),t=e[0];return pa(e=Oa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ua(r,e,t,n)},useOpaqueIdentifier:function(){if(Fo){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(Gr++).toString(36))),Error(a(355))}),n=da(t)[1];return 0==(2&Qo.mode)&&(Qo.flags|=516,fa(5,function(){n("r:"+(Gr++).toString(36))},void 0,null)),t}return da(t="r:"+(Gr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:no,useCallback:Sa,useContext:no,useEffect:ya,useImperativeHandle:ka,useLayoutEffect:_a,useMemo:xa,useReducer:sa,useRef:ma,useState:function(){return sa(aa)},useDebugValue:Ca,useDeferredValue:function(e){var t=sa(aa),n=t[0],r=t[1];return ya(function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}},[e]),n},useTransition:function(){var e=sa(aa)[0];return[ma().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return sa(aa)[0]},unstable_isNewReconciler:!1},ja={readContext:no,useCallback:Sa,useContext:no,useEffect:ya,useImperativeHandle:ka,useLayoutEffect:_a,useMemo:xa,useReducer:ca,useRef:ma,useState:function(){return ca(aa)},useDebugValue:Ca,useDeferredValue:function(e){var t=ca(aa),n=t[0],r=t[1];return ya(function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}},[e]),n},useTransition:function(){var e=ca(aa)[0];return[ma().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return ca(aa)[0]},unstable_isNewReconciler:!1},Ia=w.ReactCurrentOwner,Aa=!1;function Da(e,t,n,r){t.child=null===e?So(t,null,n,r):Co(t,e.child,n,r)}function Ra(e,t,n,r,i){n=n.render;var o=t.ref;return to(t,i),r=ra(e,t,n,r,o,i),null===e||Aa?(t.flags|=1,Da(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ja(e,t,i))}function La(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Bc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Na(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(n=null!==(n=n.compare)?n:cr)(i=a.memoizedProps,r)&&e.ref===t.ref?Ja(e,t,o):(t.flags|=1,(e=zc(a,r)).ref=t.ref,e.return=t,t.child=e)}function Na(e,t,n,r,i,o){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Aa=!1,0==(o&i))return t.lanes=e.lanes,Ja(e,t,o);0!=(16384&e.flags)&&(Aa=!0)}return za(e,t,n,r,o)}function Fa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},gc(0,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},gc(0,e),null;t.memoizedState={baseLanes:0},gc(0,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,gc(0,r);return Da(e,t,i,n),t.child}function Ba(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function za(e,t,n,r,i){var o=fi(n)?hi:li.current;return o=di(t,o),to(t,i),n=ra(e,t,n,r,o,i),null===e||Aa?(t.flags|=1,Da(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ja(e,t,i))}function Ha(e,t,n,r,i){if(fi(n)){var o=!0;vi(t)}else o=!1;if(to(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),go(t,n,r),bo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;l="object"==typeof l&&null!==l?no(l):di(t,l=fi(n)?hi:li.current);var u=n.getDerivedStateFromProps,h="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;h||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&vo(t,a,r,l),ro=!1;var d=t.memoizedState;a.state=d,lo(t,r,a,i),c=t.memoizedState,s!==r||d!==c||ui.current||ro?("function"==typeof u&&(fo(t,n,u,r),c=t.memoizedState),(s=ro||mo(t,n,s,r,d,c,l))?(h||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,oo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Xi(t.type,s),a.props=l,h=t.pendingProps,d=a.context,c="object"==typeof(c=n.contextType)&&null!==c?no(c):di(t,c=fi(n)?hi:li.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==h||d!==c)&&vo(t,a,r,c),ro=!1,a.state=d=t.memoizedState,lo(t,r,a,i);var p=t.memoizedState;s!==h||d!==p||ui.current||ro?("function"==typeof f&&(fo(t,n,f,r),p=t.memoizedState),(l=ro||mo(t,n,l,r,d,p,c))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Va(e,t,n,r,o,i)}function Va(e,t,n,r,i,o){Ba(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&bi(t,n,!1),Ja(e,t,o);r=t.stateNode,Ia.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Da(e,t,s,o),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mi(0,t.context,!1),Po(e,t.containerInfo)}var qa,Wa,Ga,Xa={dehydrated:null,retryLane:0};function Ya(e,t,n){var r,i=t.pendingProps,o=Do.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),si(Do,1&o),null===e?(void 0!==i.fallback&&Ho(t),e=i.children,o=i.fallback,a?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Uc({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=zc(a,s),null!==e?r=zc(e,r):(r=Vc(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),(a=t.child).memoizedState=null===(o=e.child.memoizedState)?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=zc(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n)}function Ka(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Uc(t,i,0,null),n=Vc(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Qa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),eo(e.return,t)}function Za(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function $a(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Da(e,t,r.children,n),0!=(2&(r=Do.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,n);else if(19===e.tag)Qa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(si(Do,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ro(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Za(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ro(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Za(t,!0,n,null,o,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ja(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=zc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=zc(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function es(e,t){if(!Fo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ts(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return fi(t.type)&&pi(),null;case 3:return jo(),ai(ui),ai(li),Go(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Uo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ao(t);var o=Eo(To.current);if(n=t.type,null!==e&&null!=t.stateNode)Wa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Eo(Oo.current),Uo(t)){n=t.type;var s=t.memoizedProps;switch((r=t.stateNode)[Yr]=t,r[Kr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Or(kr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":ce(r,s),Or("invalid",r)}for(var l in Ce(n,s),e=null,s)s.hasOwnProperty(l)&&(o=s[l],"children"===l?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):c.hasOwnProperty(l)&&null!=o&&"onScroll"===l&&Or("scroll",r));switch(n){case"input":Q(r),re(r,s,!0);break;case"textarea":Q(r),ue(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Lr)}t.updateQueue=r=e,null!==r&&(t.flags|=4)}else{switch(l=9===o.nodeType?o:o.ownerDocument,e===he&&(e=de(n)),e===he?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Yr]=t,e[Kr]=r,qa(e,t),t.stateNode=e,l=Se(n,r),n){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<kr.length;o++)Or(kr[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":ee(e,r),o=J(e,r),Or("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Or("invalid",e);break;case"textarea":ce(e,r),o=se(e,r),Or("invalid",e);break;default:o=r}Ce(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var h=u[s];"style"===s?we(e,h):"dangerouslySetInnerHTML"===s?null!=(h=h?h.__html:void 0)&&ge(e,h):"children"===s?"string"==typeof h?("textarea"!==n||""!==h)&&ve(e,h):"number"==typeof h&&ve(e,""+h):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(c.hasOwnProperty(s)?null!=h&&"onScroll"===s&&Or("scroll",e):null!=h&&_(e,s,h,l))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Lr)}Br(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Eo(To.current),Eo(Oo.current),Uo(t)?(n=t.memoizedProps,(r=t.stateNode)[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return ai(Do),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Uo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Do.current)?0===Is&&(Is=3):(0!==Is&&3!==Is||(Is=4),null===Ms||0==(134217727&Rs)&&0==(134217727&Ls)||dc(Ms,Es))),(r||n)&&(t.flags|=4),null);case 4:return jo(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return fi(t.type)&&pi(),null;case 19:if(ai(Do),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(l=r.rendering))if(s)es(r,!1);else{if(0!==Is||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Ro(e))){for(t.flags|=64,es(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,s.dependencies=null===(e=l.dependencies)?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return si(Do,1&Do.current|2),t.child}e=e.sibling}null!==r.tail&&Bi()>zs&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Ro(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),es(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Fo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bi()-r.renderingStartTime>zs&&1073741824!==n&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(r.rendering=n=r.tail,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bi(),n.sibling=null,t=Do.current,si(Do,s?1&t|2:1&t),n):null;case 23:case 24:return vc(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ns(e){switch(e.tag){case 1:fi(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(jo(),ai(ui),ai(li),Go(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ao(e),null;case 13:return ai(Do),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(Do),null;case 4:return jo(),null;case 10:return Ji(e),null;case 23:case 24:return vc(),null;default:return null}}function rs(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function is(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Eo(Oo.current);var a,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Lr)}for(h in Ce(n,r),n=null,o)if(!r.hasOwnProperty(h)&&o.hasOwnProperty(h)&&null!=o[h])if("style"===h){var l=o[h];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==h&&"children"!==h&&"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(c.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in r){var u=r[h];if(l=null!=o?o[h]:void 0,r.hasOwnProperty(h)&&u!==l&&(null!=u||null!=l))if("style"===h)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(h,n)),n=u;else"dangerouslySetInnerHTML"===h?(l=l?l.__html:void 0,null!=(u=u?u.__html:void 0)&&l!==u&&(s=s||[]).push(h,u)):"children"===h?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(h,""+u):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&(c.hasOwnProperty(h)?(null!=u&&"onScroll"===h&&Or("scroll",e),s||l===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===R?u.toString():(s=s||[]).push(h,u))}n&&(s=s||[]).push("style",n);var h=s;(t.updateQueue=h)&&(t.flags|=4)}},Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};var os="function"==typeof WeakMap?WeakMap:Map;function as(e,t,n){(n=ao(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Ws=r),is(0,t)},n}function ss(e,t,n){(n=ao(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return is(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this),is(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var cs="function"==typeof WeakSet?WeakSet:Set;function ls(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){Dc(e,n)}else t.current=null}function us(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Ur(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(jc(n,e),Pc(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&uo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}uo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Br(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ds(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function fs(e,t){if(_i&&"function"==typeof _i.onCommitFiberUnmount)try{_i.onCommitFiberUnmount(yi,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))jc(t,n);else{r=t;try{i()}catch(o){Dc(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ls(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Dc(t,o)}break;case 5:ls(t);break;case 4:ys(e,t)}}function ps(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ms(e){return 5===e.tag||3===e.tag||4===e.tag}function gs(e){e:{for(var t=e.return;null!==t;){if(ms(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ms(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?vs(e,n,t):bs(e,n,t)}function vs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lr));else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function bs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(bs(e,t,n),e=e.sibling;null!==e;)bs(e,t,n),e=e.sibling}function ys(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,l=c;;)if(fs(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break e;for(;null===l.sibling;){if(null===l.return||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(c=i.stateNode,8===(s=n).nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(fs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function _s(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?we(n,c):"dangerouslySetInnerHTML"===s?ge(n,c):"children"===s?ve(n,c):_(n,s,c,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Bs=Bi(),ds(t.child,!0)),void ws(t);case 19:return void ws(t);case 17:return;case 23:case 24:return void ds(t,null!==t.memoizedState)}throw Error(a(163))}function ws(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new cs),t.forEach(function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ks(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Cs=Math.ceil,Ss=w.ReactCurrentDispatcher,xs=w.ReactCurrentOwner,Os=0,Ms=null,Ts=null,Es=0,Ps=0,js=oi(0),Is=0,As=null,Ds=0,Rs=0,Ls=0,Ns=0,Fs=null,Bs=0,zs=1/0;function Hs(){zs=Bi()+500}var Vs,Us=null,qs=!1,Ws=null,Gs=null,Xs=!1,Ys=null,Ks=90,Qs=[],Zs=[],$s=null,Js=0,ec=null,tc=-1,nc=0,rc=0,ic=null,oc=!1;function ac(){return 0!=(48&Os)?Bi():-1!==tc?tc:tc=Bi()}function sc(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zi()?1:2;if(0===nc&&(nc=Ds),0!==Gi.transition){0!==rc&&(rc=null!==Fs?Fs.pendingLanes:0),e=nc;var t=4186112&~rc;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=zi(),Bt(0!=(4&Os)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),nc)}function cc(e,t,n){if(50<Js)throw Js=0,ec=null,Error(a(185));if(null===(e=lc(e,t)))return null;Vt(e,t,n),e===Ms&&(Ls|=t,4===Is&&dc(e,Es));var r=zi();1===t?0!=(8&Os)&&0==(48&Os)?fc(e):(uc(e,n),0===Os&&(Hs(),qi())):(0==(4&Os)||98!==r&&99!==r||(null===$s?$s=new Set([e]):$s.add(e)),uc(e,n)),Fs=e}function lc(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function uc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-Ut(s),l=1<<c,u=o[c];-1===u?0!=(l&r)&&0==(l&i)||(u=t,Lt(l),o[c]=10<=Rt?u+250:6<=Rt?u+5e3:-1):u<=t&&(e.expiredLanes|=l),s&=~l}if(r=Nt(e,e===Ms?Es:0),t=Rt,0===r)null!==n&&(n!==Ai&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ai&&Ci(n)}15===t?(n=fc.bind(null,e),null===Ri?(Ri=[n],Li=ki(Ti,Wi)):Ri.push(n),n=Ai):n=14===t?Ui(99,fc.bind(null,e)):Ui(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),hc.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hc(e){if(tc=-1,rc=nc=0,0!=(48&Os))throw Error(a(327));var t=e.callbackNode;if(Ec()&&e.callbackNode!==t)return null;var n=Nt(e,e===Ms?Es:0);if(0===n)return null;var r=n,i=Os;Os|=16;var o=_c();for(Ms===e&&Es===r||(Hs(),bc(e,r));;)try{Cc();break}catch(c){yc(e,c)}if($i(),Ss.current=o,Os=i,null!==Ts?r=0:(Ms=null,Es=0,r=Is),0!=(Ds&Ls))bc(e,0);else if(0!==r){if(2===r&&(Os|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(n=Ft(e))&&(r=wc(e,n))),1===r)throw t=As,bc(e,0),dc(e,n),uc(e,Bi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Oc(e);break;case 3:if(dc(e,n),(62914560&n)===n&&10<(r=Bs+500-Bi())){if(0!==Nt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ac(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hr(Oc.bind(null,e),r);break}Oc(e);break;case 4:if(dc(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ut(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Bi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=Hr(Oc.bind(null,e),n);break}Oc(e);break;case 5:Oc(e);break;default:throw Error(a(329))}}return uc(e,Bi()),e.callbackNode===t?hc.bind(null,e):null}function dc(e,t){for(t&=~Ns,e.suspendedLanes|=t&=~Ls,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function fc(e){if(0!=(48&Os))throw Error(a(327));if(Ec(),e===Ms&&0!=(e.expiredLanes&Es)){var t=Es,n=wc(e,t);0!=(Ds&Ls)&&(n=wc(e,t=Nt(e,t)))}else n=wc(e,t=Nt(e,0));if(0!==e.tag&&2===n&&(Os|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(t=Ft(e))&&(n=wc(e,t))),1===n)throw n=As,bc(e,0),dc(e,t),uc(e,Bi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Oc(e),uc(e,Bi()),null}function pc(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Hs(),qi())}}function mc(e,t){var n=Os;Os&=-2,Os|=8;try{return e(t)}finally{0===(Os=n)&&(Hs(),qi())}}function gc(e,t){si(js,Ps),Ps|=t,Ds|=t}function vc(){Ps=js.current,ai(js)}function bc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Vr(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:jo(),ai(ui),ai(li),Go();break;case 5:Ao(r);break;case 4:jo();break;case 13:case 19:ai(Do);break;case 10:Ji(r);break;case 23:case 24:vc()}n=n.return}Ms=e,Ts=zc(e.current,null),Es=Ps=Ds=t,Is=0,As=null,Ns=Ls=Rs=0}function yc(e,t){for(;;){var n=Ts;try{if($i(),Xo.current=Ta,Jo){for(var r=Qo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Jo=!1}if(Ko=0,$o=Zo=Qo=null,ea=!1,xs.current=null,null===n||null===n.return){Is=1,As=t,Ts=null;break}e:{var o=e,a=n.return,s=n,c=t;if(t=Es,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var l=c;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var h=0!=(1&Do.current),d=a;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var m=d.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!h)}}if(f){var g=d.updateQueue;if(null===g){var v=new Set;v.add(l),d.updateQueue=v}else g.add(l);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var b=ao(-1,1);b.tag=2,so(s,b)}s.lanes|=1;break e}c=void 0,s=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new os,c=new Set,y.set(l,c)):void 0===(c=y.get(l))&&(c=new Set,y.set(l,c)),!c.has(s)){c.add(s);var _=Rc.bind(null,o,l,s);l.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);c=Error((X(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Is&&(Is=2),c=rs(c,s),d=a;do{switch(d.tag){case 3:o=c,d.flags|=4096,d.lanes|=t&=-t,co(d,as(0,o,t));break e;case 1:o=c;var w=d.stateNode;if(0==(64&d.flags)&&("function"==typeof d.type.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Gs||!Gs.has(w)))){d.flags|=4096,d.lanes|=t&=-t,co(d,ss(d,o,t));break e}}d=d.return}while(null!==d)}xc(n)}catch(k){t=k,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function _c(){var e=Ss.current;return Ss.current=Ta,null===e?Ta:e}function wc(e,t){var n=Os;Os|=16;var r=_c();for(Ms===e&&Es===t||bc(e,t);;)try{kc();break}catch(i){yc(e,i)}if($i(),Os=n,Ss.current=r,null!==Ts)throw Error(a(261));return Ms=null,Es=0,Is}function kc(){for(;null!==Ts;)Sc(Ts)}function Cc(){for(;null!==Ts&&!Si();)Sc(Ts)}function Sc(e){var t=Vs(e.alternate,e,Ps);e.memoizedProps=e.pendingProps,null===t?xc(e):Ts=t,xs.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ts(n,t,Ps)))return void(Ts=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ps)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ns(t)))return n.flags&=2047,void(Ts=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Is&&(Is=5)}function Oc(e){var t=zi();return Vi(99,Mc.bind(null,e,t)),null}function Mc(e,t){do{Ec()}while(null!==Ys);if(0!=(48&Os))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var l=31-Ut(o),u=1<<l;i[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(null!==$s&&0==(24&r)&&$s.has(e)&&$s.delete(e),e===Ms&&(Ts=Ms=null,Es=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Os,Os|=32,xs.current=null,Nr=Yt,fr(s=dr())){if("selectionStart"in s)c={start:s.selectionStart,end:s.selectionEnd};else if((u=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection())&&0!==u.rangeCount){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;var h=0,d=-1,f=-1,p=0,m=0,g=s,v=null;e:for(;;){for(var b;g!==c||0!==o&&3!==g.nodeType||(d=h+o),g!==l||0!==u&&3!==g.nodeType||(f=h+u),3===g.nodeType&&(h+=g.nodeValue.length),null!==(b=g.firstChild);)v=g,g=b;for(;;){if(g===s)break e;if(v===c&&++p===o&&(d=h),v===l&&++m===u&&(f=h),null!==(b=g.nextSibling))break;v=(g=v).parentNode}g=b}c=-1===d||-1===f?null:{start:d,end:f}}else c=null;c=c||{start:0,end:0}}else c=null;Fr={focusedElem:s,selectionRange:c},Yt=!1,ic=null,oc=!1,Us=r;do{try{Tc()}catch(O){if(null===Us)throw Error(a(330));Dc(Us,O),Us=Us.nextEffect}}while(null!==Us);ic=null,Us=r;do{try{for(s=e;null!==Us;){var y=Us.flags;if(16&y&&ve(Us.stateNode,""),128&y){var _=Us.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&y){case 2:gs(Us),Us.flags&=-3;break;case 6:gs(Us),Us.flags&=-3,_s(Us.alternate,Us);break;case 1024:Us.flags&=-1025;break;case 1028:Us.flags&=-1025,_s(Us.alternate,Us);break;case 4:_s(Us.alternate,Us);break;case 8:ys(s,c=Us);var k=c.alternate;ps(c),null!==k&&ps(k)}Us=Us.nextEffect}}catch(O){if(null===Us)throw Error(a(330));Dc(Us,O),Us=Us.nextEffect}}while(null!==Us);if(w=Fr,_=dr(),s=w.selectionRange,_!==(y=w.focusedElem)&&y&&y.ownerDocument&&hr(y.ownerDocument.documentElement,y)){null!==s&&fr(y)&&(_=s.start,void 0===(w=s.end)&&(w=_),"selectionStart"in y?(y.selectionStart=_,y.selectionEnd=Math.min(w,y.value.length)):(w=(_=y.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),c=y.textContent.length,k=Math.min(s.start,c),s=void 0===s.end?k:Math.min(s.end,c),!w.extend&&k>s&&(c=s,s=k,k=c),c=ur(y,k),o=ur(y,s),c&&o&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(c.node,c.offset),w.removeAllRanges(),k>s?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=y;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<_.length;y++)(w=_[y]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Yt=!!Nr,Fr=Nr=null,e.current=n,Us=r;do{try{for(y=e;null!==Us;){var C=Us.flags;if(36&C&&hs(y,Us.alternate,Us),128&C){_=void 0;var S=Us.ref;if(null!==S){var x=Us.stateNode;switch(Us.tag){case 5:_=x;break;default:_=x}"function"==typeof S?S(_):S.current=_}}Us=Us.nextEffect}}catch(O){if(null===Us)throw Error(a(330));Dc(Us,O),Us=Us.nextEffect}}while(null!==Us);Us=null,Di(),Os=i}else e.current=n;if(Xs)Xs=!1,Ys=e,Ks=t;else for(Us=r;null!==Us;)t=Us.nextEffect,Us.nextEffect=null,8&Us.flags&&((C=Us).sibling=null,C.stateNode=null),Us=t;if(0===(r=e.pendingLanes)&&(Gs=null),1===r?e===ec?Js++:(Js=0,ec=e):Js=0,n=n.stateNode,_i&&"function"==typeof _i.onCommitFiberRoot)try{_i.onCommitFiberRoot(yi,n,void 0,64==(64&n.current.flags))}catch(O){}if(uc(e,Bi()),qs)throw qs=!1,e=Ws,Ws=null,e;return 0!=(8&Os)||qi(),null}function Tc(){for(;null!==Us;){var e=Us.alternate;oc||null===ic||(0!=(8&Us.flags)?Je(Us,ic)&&(oc=!0):13===Us.tag&&ks(e,Us)&&Je(Us,ic)&&(oc=!0));var t=Us.flags;0!=(256&t)&&us(e,Us),0==(512&t)||Xs||(Xs=!0,Ui(97,function(){return Ec(),null})),Us=Us.nextEffect}}function Ec(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Vi(e,Ic)}return!1}function Pc(e,t){Qs.push(t,e),Xs||(Xs=!0,Ui(97,function(){return Ec(),null}))}function jc(e,t){Zs.push(t,e),Xs||(Xs=!0,Ui(97,function(){return Ec(),null}))}function Ic(){if(null===Ys)return!1;var e=Ys;if(Ys=null,0!=(48&Os))throw Error(a(331));var t=Os;Os|=32;var n=Zs;Zs=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(l){if(null===o)throw Error(a(330));Dc(o,l)}}for(n=Qs,Qs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var c=i.create;i.destroy=c()}catch(l){if(null===o)throw Error(a(330));Dc(o,l)}}for(c=e.current.firstEffect;null!==c;)e=c.nextEffect,c.nextEffect=null,8&c.flags&&(c.sibling=null,c.stateNode=null),c=e;return Os=t,qi(),!0}function Ac(e,t,n){so(e,t=as(0,t=rs(n,t),1)),t=ac(),null!==(e=lc(e,1))&&(Vt(e,1,t),uc(e,t))}function Dc(e,t){if(3===e.tag)Ac(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ac(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){var i=ss(n,e=rs(t,e),1);if(so(n,i),i=ac(),null!==(n=lc(n,1)))Vt(n,1,i),uc(n,i);else if("function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Rc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ac(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&(Es&n)===n&&(4===Is||3===Is&&(62914560&Es)===Es&&500>Bi()-Bs?bc(e,0):Ns|=n),uc(e,t)}function Lc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zi()?1:2:(0===nc&&(nc=Ds),0===(t=zt(62914560&~nc))&&(t=4194304))),n=ac(),null!==(e=lc(e,t))&&(Vt(e,t,n),uc(e,n))}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fc(e,t,n,r){return new Nc(e,t,n,r)}function Bc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zc(e,t){var n=e.alternate;return null===n?((n=Fc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hc(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Bc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Vc(n.children,i,o,t);case L:s=8,i|=16;break;case x:s=8,i|=1;break;case O:return(e=Fc(12,n,t,8|i)).elementType=O,e.type=O,e.lanes=o,e;case P:return(e=Fc(13,n,t,i)).type=P,e.elementType=P,e.lanes=o,e;case j:return(e=Fc(19,n,t,i)).elementType=j,e.lanes=o,e;case N:return Uc(n,i,o,t);case F:return(e=Fc(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case M:s=10;break e;case T:s=9;break e;case E:s=11;break e;case I:s=14;break e;case A:s=16,r=null;break e;case D:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Fc(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Vc(e,t,n,r){return(e=Fc(7,e,r,t)).lanes=n,e}function Uc(e,t,n,r){return(e=Fc(23,e,r,t)).elementType=N,e.lanes=n,e}function qc(e,t,n){return(e=Fc(6,e,null,t)).lanes=n,e}function Wc(e,t,n){return(t=Fc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gc(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Xc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Yc(e,t,n,r){var i=t.current,o=ac(),s=sc(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(fi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(fi(l)){n=gi(n,l,c);break e}}n=c}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=ao(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),so(i,t),cc(i,s,o),s}function Kc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zc(e,t){Qc(e,t),(e=e.alternate)&&Qc(e,t)}function $c(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Gc(e,t,null!=n&&!0===n.hydrate),t=Fc(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,io(t),e[Qr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function el(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Kc(a);s.call(e)}}Yc(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new $c(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var e=Kc(a);c.call(e)}}mc(function(){Yc(t,a,e,i)})}return Kc(a)}function tl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jc(t))throw Error(a(200));return Xc(e,t,null,n)}Vs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)Aa=!0;else{if(0==(n&r)){switch(Aa=!1,t.tag){case 3:Ua(t),qo();break;case 5:Io(t);break;case 1:fi(t.type)&&vi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;si(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ya(e,t,n):(si(Do,1&Do.current),null!==(t=Ja(e,t,n))?t.sibling:null);si(Do,1&Do.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return $a(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),si(Do,Do.current),r)break;return null;case 23:case 24:return t.lanes=0,Fa(e,t,n)}return Ja(e,t,n)}Aa=0!=(16384&e.flags)}else Aa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=di(t,li.current),to(t,n),i=ra(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fi(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!=i.state?i.state:null,io(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&fo(t,r,s,e),i.updater=po,t.stateNode=i,i._reactInternals=t,bo(t,r,e,n),t=Va(null,t,r,!0,o,n)}else t.tag=0,Da(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Bc(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===I)return 14}return 2}(i),e=Xi(i,e),o){case 0:t=za(null,t,i,e,n);break e;case 1:t=Ha(null,t,i,e,n);break e;case 11:t=Ra(null,t,i,e,n);break e;case 14:t=La(null,t,i,Xi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return i=t.pendingProps,za(e,t,r=t.type,i=t.elementType===r?i:Xi(r,i),n);case 1:return i=t.pendingProps,Ha(e,t,r=t.type,i=t.elementType===r?i:Xi(r,i),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oo(e,t),lo(t,r,null,n),(r=t.memoizedState.element)===i)qo(),t=Ja(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(No=qr(t.stateNode.containerInfo.firstChild),Lo=t,o=Fo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Wo.push(o);for(n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Da(e,t,r,n),qo();t=t.child}return t;case 5:return Io(t),null===e&&Ho(t),o=null!==e?e.memoizedProps:null,s=(i=t.pendingProps).children,zr(r=t.type,i)?s=null:null!==o&&zr(r,o)&&(t.flags|=16),Ba(e,t),Da(e,t,s,n),t.child;case 6:return null===e&&Ho(t),null;case 13:return Ya(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Da(e,t,r,n),t.child;case 11:return i=t.pendingProps,Ra(e,t,r=t.type,i=t.elementType===r?i:Xi(r,i),n);case 7:return Da(e,t,t.pendingProps,n),t.child;case 8:case 12:return Da(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.memoizedProps,o=(i=t.pendingProps).value;var c=t.type._context;if(si(Yi,c._currentValue),c._currentValue=o,null!==s)if(0==(o=ar(c=s.value,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!ui.current){t=Ja(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===c.tag&&((u=ao(-1,n&-n)).tag=2,so(c,u)),c.lanes|=n,null!==(u=c.alternate)&&(u.lanes|=n),eo(c.return,n),l.lanes|=n;break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Da(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,to(t,n),r=r(i=no(i,o.unstable_observedBits)),t.flags|=1,Da(e,t,r,n),t.child;case 14:return o=Xi(i=t.type,t.pendingProps),La(e,t,i,o=Xi(i.type,o),r,n);case 15:return Na(e,t,t.type,t.pendingProps,r,n);case 17:return i=t.pendingProps,i=t.elementType===(r=t.type)?i:Xi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,fi(r)?(e=!0,vi(t)):e=!1,to(t,n),go(t,r,i),bo(t,r,i,n),Va(null,t,r,!0,e,n);case 19:return $a(e,t,n);case 23:case 24:return Fa(e,t,n)}throw Error(a(156,t.tag))},$c.prototype.render=function(e){Yc(e,this._internalRoot,null,null)},$c.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yc(null,e,null,function(){t[Qr]=null})},et=function(e){13===e.tag&&(cc(e,4,ac()),Zc(e,4))},tt=function(e){13===e.tag&&(cc(e,67108864,ac()),Zc(e,67108864))},nt=function(e){if(13===e.tag){var t=ac(),n=sc(e);cc(e,n,t),Zc(e,n)}},rt=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ti(r);if(!i)throw Error(a(90));Z(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ie=pc,Ae=function(e,t,n,r,i){var o=Os;Os|=4;try{return Vi(98,e.bind(null,t,n,r,i))}finally{0===(Os=o)&&(Hs(),qi())}},De=function(){0==(49&Os)&&(function(){if(null!==$s){var e=$s;$s=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,uc(e,Bi())})}qi()}(),Ec())},Re=function(e,t){var n=Os;Os|=2;try{return e(t)}finally{0===(Os=n)&&(Hs(),qi())}};var nl={Events:[Jr,ei,ti,Pe,je,Ec,{current:!1}]},rl={findFiberByHostInstance:$r,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},il={bundleType:rl.bundleType,version:rl.version,rendererPackageName:rl.rendererPackageName,rendererConfig:rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:rl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{yi=ol.inject(il),_i=ol}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nl,t.createPortal=tl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Os;if(0!=(48&n))return e(t);Os|=1;try{if(e)return Vi(99,e.bind(null,t))}finally{Os=n,qi()}},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(a(200));return el(null,e,t,!0,n)},t.render=function(e,t,n){if(!Jc(t))throw Error(a(200));return el(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(mc(function(){el(null,null,e,!1,function(){e._reactRootContainer=null,e[Qr]=null})}),!0)},t.unstable_batchedUpdates=pc,t.unstable_createPortal=function(e,t){return tl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return el(e,t,n,!1,r)},t.version="17.0.2"},yuhW:function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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,r){Object(o.a)(this,e),this.durationSelector=t,this.leading=n,this.trailing=r}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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i,a){var s;return Object(o.a)(this,n),(s=t.call(this,e)).destination=e,s.durationSelector=r,s._leading=i,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 r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.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 r=n("qCKp"),i=n("kU1M");t.timeoutWith=function(e,t,n){return void 0===n&&(n=r.asyncScheduler),i.timeoutWith(e,t,n)(this)}},zNuj:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"i",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,"g",function(){return f});var r=n("BBZ9"),i=(n("7Ki+"),{});function o(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}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 r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(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,r={};["debug","info","warn","error","log","assert"].forEach(function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)});var i=e();return Object.keys(r).forEach(function(e){n[e]=r[e]}),i}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""}}function f(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},zP0r:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mvVQ"),i=n("/E8u"),o=n("MGFw"),a=n("WtWf"),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(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).total=r,i.count=0,i}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 r={};n.r(r),n.d(r,"bisect",function(){return zb}),n.d(r,"bisectRight",function(){return Fb}),n.d(r,"bisectLeft",function(){return Bb}),n.d(r,"ascending",function(){return Rb}),n.d(r,"bisector",function(){return Lb}),n.d(r,"cross",function(){return Ub}),n.d(r,"descending",function(){return qb}),n.d(r,"deviation",function(){return Xb}),n.d(r,"extent",function(){return Yb}),n.d(r,"histogram",function(){return cy}),n.d(r,"thresholdFreedmanDiaconis",function(){return uy}),n.d(r,"thresholdScott",function(){return hy}),n.d(r,"thresholdSturges",function(){return sy}),n.d(r,"max",function(){return dy}),n.d(r,"mean",function(){return fy}),n.d(r,"median",function(){return py}),n.d(r,"merge",function(){return my}),n.d(r,"min",function(){return gy}),n.d(r,"pairs",function(){return Hb}),n.d(r,"permute",function(){return vy}),n.d(r,"quantile",function(){return ly}),n.d(r,"range",function(){return ey}),n.d(r,"scan",function(){return by}),n.d(r,"shuffle",function(){return yy}),n.d(r,"sum",function(){return _y}),n.d(r,"ticks",function(){return iy}),n.d(r,"tickIncrement",function(){return oy}),n.d(r,"tickStep",function(){return ay}),n.d(r,"transpose",function(){return wy}),n.d(r,"variance",function(){return Gb}),n.d(r,"zip",function(){return Cy}),n.d(r,"axisTop",function(){return Ay}),n.d(r,"axisRight",function(){return Dy}),n.d(r,"axisBottom",function(){return Ry}),n.d(r,"axisLeft",function(){return Ly}),n.d(r,"brush",function(){return WC}),n.d(r,"brushX",function(){return UC}),n.d(r,"brushY",function(){return qC}),n.d(r,"brushSelection",function(){return VC}),n.d(r,"chord",function(){return eS}),n.d(r,"ribbon",function(){return mS}),n.d(r,"nest",function(){return _S}),n.d(r,"set",function(){return TS}),n.d(r,"map",function(){return yS}),n.d(r,"keys",function(){return ES}),n.d(r,"values",function(){return PS}),n.d(r,"entries",function(){return jS}),n.d(r,"color",function(){return KS}),n.d(r,"rgb",function(){return JS}),n.d(r,"hsl",function(){return rx}),n.d(r,"lab",function(){return px}),n.d(r,"hcl",function(){return wx}),n.d(r,"cubehelix",function(){return Px}),n.d(r,"contours",function(){return zx}),n.d(r,"contourDensity",function(){return Wx}),n.d(r,"dispatch",function(){return Uy}),n.d(r,"drag",function(){return Jx}),n.d(r,"dragDisable",function(){return iw}),n.d(r,"dragEnable",function(){return ow}),n.d(r,"dsvFormat",function(){return rO}),n.d(r,"csvParse",function(){return oO}),n.d(r,"csvParseRows",function(){return aO}),n.d(r,"csvFormat",function(){return sO}),n.d(r,"csvFormatRows",function(){return cO}),n.d(r,"tsvParse",function(){return uO}),n.d(r,"tsvParseRows",function(){return hO}),n.d(r,"tsvFormat",function(){return dO}),n.d(r,"tsvFormatRows",function(){return fO}),n.d(r,"easeLinear",function(){return pO}),n.d(r,"easeQuad",function(){return vO}),n.d(r,"easeQuadIn",function(){return mO}),n.d(r,"easeQuadOut",function(){return gO}),n.d(r,"easeQuadInOut",function(){return vO}),n.d(r,"easeCubic",function(){return bC}),n.d(r,"easeCubicIn",function(){return gC}),n.d(r,"easeCubicOut",function(){return vC}),n.d(r,"easeCubicInOut",function(){return bC}),n.d(r,"easePoly",function(){return _O}),n.d(r,"easePolyIn",function(){return bO}),n.d(r,"easePolyOut",function(){return yO}),n.d(r,"easePolyInOut",function(){return _O}),n.d(r,"easeSin",function(){return xO}),n.d(r,"easeSinIn",function(){return CO}),n.d(r,"easeSinOut",function(){return SO}),n.d(r,"easeSinInOut",function(){return xO}),n.d(r,"easeExp",function(){return EO}),n.d(r,"easeExpIn",function(){return MO}),n.d(r,"easeExpOut",function(){return TO}),n.d(r,"easeExpInOut",function(){return EO}),n.d(r,"easeCircle",function(){return IO}),n.d(r,"easeCircleIn",function(){return PO}),n.d(r,"easeCircleOut",function(){return jO}),n.d(r,"easeCircleInOut",function(){return IO}),n.d(r,"easeBounce",function(){return RO}),n.d(r,"easeBounceIn",function(){return DO}),n.d(r,"easeBounceOut",function(){return RO}),n.d(r,"easeBounceInOut",function(){return LO}),n.d(r,"easeBack",function(){return zO}),n.d(r,"easeBackIn",function(){return FO}),n.d(r,"easeBackOut",function(){return BO}),n.d(r,"easeBackInOut",function(){return zO}),n.d(r,"easeElastic",function(){return UO}),n.d(r,"easeElasticIn",function(){return VO}),n.d(r,"easeElasticOut",function(){return UO}),n.d(r,"easeElasticInOut",function(){return qO}),n.d(r,"forceCenter",function(){return WO}),n.d(r,"forceCollide",function(){return iM}),n.d(r,"forceLink",function(){return sM}),n.d(r,"forceManyBody",function(){return fM}),n.d(r,"forceRadial",function(){return pM}),n.d(r,"forceSimulation",function(){return dM}),n.d(r,"forceX",function(){return mM}),n.d(r,"forceY",function(){return gM}),n.d(r,"formatDefaultLocale",function(){return PM}),n.d(r,"format",function(){return xM}),n.d(r,"formatPrefix",function(){return OM}),n.d(r,"formatLocale",function(){return EM}),n.d(r,"formatSpecifier",function(){return kM}),n.d(r,"precisionFixed",function(){return jM}),n.d(r,"precisionPrefix",function(){return IM}),n.d(r,"precisionRound",function(){return AM}),n.d(r,"geoArea",function(){return xT}),n.d(r,"geoBounds",function(){return vE}),n.d(r,"geoCentroid",function(){return EE}),n.d(r,"geoCircle",function(){return zE}),n.d(r,"geoClipAntimeridian",function(){return ZE}),n.d(r,"geoClipCircle",function(){return $E}),n.d(r,"geoClipExtent",function(){return oP}),n.d(r,"geoClipRectangle",function(){return tP}),n.d(r,"geoContains",function(){return CP}),n.d(r,"geoDistance",function(){return pP}),n.d(r,"geoGraticule",function(){return OP}),n.d(r,"geoGraticule10",function(){return MP}),n.d(r,"geoInterpolate",function(){return IP}),n.d(r,"geoLength",function(){return hP}),n.d(r,"geoPath",function(){return Pj}),n.d(r,"geoAlbers",function(){return Kj}),n.d(r,"geoAlbersUsa",function(){return Qj}),n.d(r,"geoAzimuthalEqualArea",function(){return eI}),n.d(r,"geoAzimuthalEqualAreaRaw",function(){return Jj}),n.d(r,"geoAzimuthalEquidistant",function(){return nI}),n.d(r,"geoAzimuthalEquidistantRaw",function(){return tI}),n.d(r,"geoConicConformal",function(){return cI}),n.d(r,"geoConicConformalRaw",function(){return sI}),n.d(r,"geoConicEqualArea",function(){return Yj}),n.d(r,"geoConicEqualAreaRaw",function(){return Xj}),n.d(r,"geoConicEquidistant",function(){return dI}),n.d(r,"geoConicEquidistantRaw",function(){return hI}),n.d(r,"geoEquirectangular",function(){return uI}),n.d(r,"geoEquirectangularRaw",function(){return lI}),n.d(r,"geoGnomonic",function(){return pI}),n.d(r,"geoGnomonicRaw",function(){return fI}),n.d(r,"geoIdentity",function(){return gI}),n.d(r,"geoProjection",function(){return qj}),n.d(r,"geoProjectionMutator",function(){return Wj}),n.d(r,"geoMercator",function(){return iI}),n.d(r,"geoMercatorRaw",function(){return rI}),n.d(r,"geoNaturalEarth1",function(){return bI}),n.d(r,"geoNaturalEarth1Raw",function(){return vI}),n.d(r,"geoOrthographic",function(){return _I}),n.d(r,"geoOrthographicRaw",function(){return yI}),n.d(r,"geoStereographic",function(){return kI}),n.d(r,"geoStereographicRaw",function(){return wI}),n.d(r,"geoTransverseMercator",function(){return SI}),n.d(r,"geoTransverseMercatorRaw",function(){return CI}),n.d(r,"geoRotation",function(){return NE}),n.d(r,"geoStream",function(){return vT}),n.d(r,"geoTransform",function(){return jj}),n.d(r,"cluster",function(){return TI}),n.d(r,"hierarchy",function(){return PI}),n.d(r,"pack",function(){return tA}),n.d(r,"packSiblings",function(){return KI}),n.d(r,"packEnclose",function(){return LI}),n.d(r,"partition",function(){return sA}),n.d(r,"stratify",function(){return dA}),n.d(r,"tree",function(){return yA}),n.d(r,"treemap",function(){return SA}),n.d(r,"treemapBinary",function(){return xA}),n.d(r,"treemapDice",function(){return aA}),n.d(r,"treemapSlice",function(){return _A}),n.d(r,"treemapSliceDice",function(){return OA}),n.d(r,"treemapSquarify",function(){return CA}),n.d(r,"treemapResquarify",function(){return MA}),n.d(r,"interpolate",function(){return QA}),n.d(r,"interpolateArray",function(){return UA}),n.d(r,"interpolateBasis",function(){return EA}),n.d(r,"interpolateBasisClosed",function(){return PA}),n.d(r,"interpolateDate",function(){return qA}),n.d(r,"interpolateNumber",function(){return WA}),n.d(r,"interpolateObject",function(){return GA}),n.d(r,"interpolateRound",function(){return ZA}),n.d(r,"interpolateString",function(){return KA}),n.d(r,"interpolateTransformCss",function(){return nD}),n.d(r,"interpolateTransformSvg",function(){return rD}),n.d(r,"interpolateZoom",function(){return aD}),n.d(r,"interpolateRgb",function(){return RA}),n.d(r,"interpolateRgbBasis",function(){return HA}),n.d(r,"interpolateRgbBasisClosed",function(){return VA}),n.d(r,"interpolateHsl",function(){return cD}),n.d(r,"interpolateHslLong",function(){return lD}),n.d(r,"interpolateLab",function(){return MD}),n.d(r,"interpolateHcl",function(){return ED}),n.d(r,"interpolateHclLong",function(){return PD}),n.d(r,"interpolateCubehelix",function(){return FD}),n.d(r,"interpolateCubehelixLong",function(){return BD}),n.d(r,"quantize",function(){return zD}),n.d(r,"path",function(){return lS}),n.d(r,"polygonArea",function(){return HD}),n.d(r,"polygonCentroid",function(){return VD}),n.d(r,"polygonHull",function(){return WD}),n.d(r,"polygonContains",function(){return GD}),n.d(r,"polygonLength",function(){return XD}),n.d(r,"quadtree",function(){return $O}),n.d(r,"randomUniform",function(){return KD}),n.d(r,"randomNormal",function(){return QD}),n.d(r,"randomLogNormal",function(){return ZD}),n.d(r,"randomBates",function(){return JD}),n.d(r,"randomIrwinHall",function(){return $D}),n.d(r,"randomExponential",function(){return eR}),n.d(r,"scaleBand",function(){return aR}),n.d(r,"scalePoint",function(){return cR}),n.d(r,"scaleIdentity",function(){return DR}),n.d(r,"scaleLinear",function(){return AR}),n.d(r,"scaleLog",function(){return VR}),n.d(r,"scaleOrdinal",function(){return oR}),n.d(r,"scaleImplicit",function(){return iR}),n.d(r,"scalePow",function(){return qR}),n.d(r,"scaleSqrt",function(){return WR}),n.d(r,"scaleQuantile",function(){return GR}),n.d(r,"scaleQuantize",function(){return XR}),n.d(r,"scaleThreshold",function(){return YR}),n.d(r,"scaleTime",function(){return QN}),n.d(r,"scaleUtc",function(){return eF}),n.d(r,"scaleSequential",function(){return tF}),n.d(r,"schemeCategory10",function(){return rF}),n.d(r,"schemeAccent",function(){return iF}),n.d(r,"schemeDark2",function(){return oF}),n.d(r,"schemePaired",function(){return aF}),n.d(r,"schemePastel1",function(){return sF}),n.d(r,"schemePastel2",function(){return cF}),n.d(r,"schemeSet1",function(){return lF}),n.d(r,"schemeSet2",function(){return uF}),n.d(r,"schemeSet3",function(){return hF}),n.d(r,"interpolateBrBG",function(){return pF}),n.d(r,"schemeBrBG",function(){return fF}),n.d(r,"interpolatePRGn",function(){return gF}),n.d(r,"schemePRGn",function(){return mF}),n.d(r,"interpolatePiYG",function(){return bF}),n.d(r,"schemePiYG",function(){return vF}),n.d(r,"interpolatePuOr",function(){return _F}),n.d(r,"schemePuOr",function(){return yF}),n.d(r,"interpolateRdBu",function(){return kF}),n.d(r,"schemeRdBu",function(){return wF}),n.d(r,"interpolateRdGy",function(){return SF}),n.d(r,"schemeRdGy",function(){return CF}),n.d(r,"interpolateRdYlBu",function(){return OF}),n.d(r,"schemeRdYlBu",function(){return xF}),n.d(r,"interpolateRdYlGn",function(){return TF}),n.d(r,"schemeRdYlGn",function(){return MF}),n.d(r,"interpolateSpectral",function(){return PF}),n.d(r,"schemeSpectral",function(){return EF}),n.d(r,"interpolateBuGn",function(){return IF}),n.d(r,"schemeBuGn",function(){return jF}),n.d(r,"interpolateBuPu",function(){return DF}),n.d(r,"schemeBuPu",function(){return AF}),n.d(r,"interpolateGnBu",function(){return LF}),n.d(r,"schemeGnBu",function(){return RF}),n.d(r,"interpolateOrRd",function(){return FF}),n.d(r,"schemeOrRd",function(){return NF}),n.d(r,"interpolatePuBuGn",function(){return zF}),n.d(r,"schemePuBuGn",function(){return BF}),n.d(r,"interpolatePuBu",function(){return VF}),n.d(r,"schemePuBu",function(){return HF}),n.d(r,"interpolatePuRd",function(){return qF}),n.d(r,"schemePuRd",function(){return UF}),n.d(r,"interpolateRdPu",function(){return GF}),n.d(r,"schemeRdPu",function(){return WF}),n.d(r,"interpolateYlGnBu",function(){return YF}),n.d(r,"schemeYlGnBu",function(){return XF}),n.d(r,"interpolateYlGn",function(){return QF}),n.d(r,"schemeYlGn",function(){return KF}),n.d(r,"interpolateYlOrBr",function(){return $F}),n.d(r,"schemeYlOrBr",function(){return ZF}),n.d(r,"interpolateYlOrRd",function(){return eB}),n.d(r,"schemeYlOrRd",function(){return JF}),n.d(r,"interpolateBlues",function(){return nB}),n.d(r,"schemeBlues",function(){return tB}),n.d(r,"interpolateGreens",function(){return iB}),n.d(r,"schemeGreens",function(){return rB}),n.d(r,"interpolateGreys",function(){return aB}),n.d(r,"schemeGreys",function(){return oB}),n.d(r,"interpolatePurples",function(){return cB}),n.d(r,"schemePurples",function(){return sB}),n.d(r,"interpolateReds",function(){return uB}),n.d(r,"schemeReds",function(){return lB}),n.d(r,"interpolateOranges",function(){return dB}),n.d(r,"schemeOranges",function(){return hB}),n.d(r,"interpolateCubehelixDefault",function(){return mB}),n.d(r,"interpolateRainbow",function(){return yB}),n.d(r,"interpolateWarm",function(){return gB}),n.d(r,"interpolateCool",function(){return vB}),n.d(r,"interpolateViridis",function(){return wB}),n.d(r,"interpolateMagma",function(){return kB}),n.d(r,"interpolateInferno",function(){return CB}),n.d(r,"interpolatePlasma",function(){return SB}),n.d(r,"create",function(){return zz}),n.d(r,"creator",function(){return PB}),n.d(r,"local",function(){return Vz}),n.d(r,"matcher",function(){return FB}),n.d(r,"mouse",function(){return Gz}),n.d(r,"namespace",function(){return MB}),n.d(r,"namespaces",function(){return OB}),n.d(r,"clientPoint",function(){return Wz}),n.d(r,"select",function(){return Bz}),n.d(r,"selectAll",function(){return Xz}),n.d(r,"selection",function(){return Fz}),n.d(r,"selector",function(){return IB}),n.d(r,"selectorAll",function(){return DB}),n.d(r,"style",function(){return ez}),n.d(r,"touch",function(){return Yz}),n.d(r,"touches",function(){return Kz}),n.d(r,"window",function(){return QB}),n.d(r,"event",function(){return xz}),n.d(r,"customEvent",function(){return jz}),n.d(r,"arc",function(){return MH}),n.d(r,"area",function(){return AH}),n.d(r,"line",function(){return IH}),n.d(r,"pie",function(){return LH}),n.d(r,"areaRadial",function(){return VH}),n.d(r,"radialArea",function(){return VH}),n.d(r,"lineRadial",function(){return HH}),n.d(r,"radialLine",function(){return HH}),n.d(r,"pointRadial",function(){return UH}),n.d(r,"linkHorizontal",function(){return ZH}),n.d(r,"linkVertical",function(){return $H}),n.d(r,"linkRadial",function(){return JH}),n.d(r,"symbol",function(){return bV}),n.d(r,"symbols",function(){return vV}),n.d(r,"symbolCircle",function(){return eV}),n.d(r,"symbolCross",function(){return tV}),n.d(r,"symbolDiamond",function(){return iV}),n.d(r,"symbolSquare",function(){return lV}),n.d(r,"symbolStar",function(){return cV}),n.d(r,"symbolTriangle",function(){return hV}),n.d(r,"symbolWye",function(){return gV}),n.d(r,"curveBasisClosed",function(){return SV}),n.d(r,"curveBasisOpen",function(){return OV}),n.d(r,"curveBasis",function(){return kV}),n.d(r,"curveBundle",function(){return TV}),n.d(r,"curveCardinalClosed",function(){return AV}),n.d(r,"curveCardinalOpen",function(){return RV}),n.d(r,"curveCardinal",function(){return jV}),n.d(r,"curveCatmullRomClosed",function(){return zV}),n.d(r,"curveCatmullRomOpen",function(){return VV}),n.d(r,"curveCatmullRom",function(){return FV}),n.d(r,"curveLinearClosed",function(){return qV}),n.d(r,"curveLinear",function(){return EH}),n.d(r,"curveMonotoneX",function(){return $V}),n.d(r,"curveMonotoneY",function(){return JV}),n.d(r,"curveNatural",function(){return nU}),n.d(r,"curveStep",function(){return iU}),n.d(r,"curveStepAfter",function(){return aU}),n.d(r,"curveStepBefore",function(){return oU}),n.d(r,"stack",function(){return uU}),n.d(r,"stackOffsetExpand",function(){return hU}),n.d(r,"stackOffsetDiverging",function(){return dU}),n.d(r,"stackOffsetNone",function(){return sU}),n.d(r,"stackOffsetSilhouette",function(){return fU}),n.d(r,"stackOffsetWiggle",function(){return pU}),n.d(r,"stackOrderAscending",function(){return mU}),n.d(r,"stackOrderDescending",function(){return vU}),n.d(r,"stackOrderInsideOut",function(){return bU}),n.d(r,"stackOrderNone",function(){return cU}),n.d(r,"stackOrderReverse",function(){return yU}),n.d(r,"timeInterval",function(){return kU}),n.d(r,"timeMillisecond",function(){return SU}),n.d(r,"timeMilliseconds",function(){return xU}),n.d(r,"utcMillisecond",function(){return SU}),n.d(r,"utcMilliseconds",function(){return xU}),n.d(r,"timeSecond",function(){return IU}),n.d(r,"timeSeconds",function(){return AU}),n.d(r,"utcSecond",function(){return IU}),n.d(r,"utcSeconds",function(){return AU}),n.d(r,"timeMinute",function(){return RU}),n.d(r,"timeMinutes",function(){return LU}),n.d(r,"timeHour",function(){return FU}),n.d(r,"timeHours",function(){return BU}),n.d(r,"timeDay",function(){return HU}),n.d(r,"timeDays",function(){return VU}),n.d(r,"timeWeek",function(){return qU}),n.d(r,"timeWeeks",function(){return ZU}),n.d(r,"timeSunday",function(){return qU}),n.d(r,"timeSundays",function(){return ZU}),n.d(r,"timeMonday",function(){return WU}),n.d(r,"timeMondays",function(){return $U}),n.d(r,"timeTuesday",function(){return GU}),n.d(r,"timeTuesdays",function(){return JU}),n.d(r,"timeWednesday",function(){return XU}),n.d(r,"timeWednesdays",function(){return eq}),n.d(r,"timeThursday",function(){return YU}),n.d(r,"timeThursdays",function(){return tq}),n.d(r,"timeFriday",function(){return KU}),n.d(r,"timeFridays",function(){return nq}),n.d(r,"timeSaturday",function(){return QU}),n.d(r,"timeSaturdays",function(){return rq}),n.d(r,"timeMonth",function(){return oq}),n.d(r,"timeMonths",function(){return aq}),n.d(r,"timeYear",function(){return cq}),n.d(r,"timeYears",function(){return lq}),n.d(r,"utcMinute",function(){return hq}),n.d(r,"utcMinutes",function(){return dq}),n.d(r,"utcHour",function(){return pq}),n.d(r,"utcHours",function(){return mq}),n.d(r,"utcDay",function(){return vq}),n.d(r,"utcDays",function(){return bq}),n.d(r,"utcWeek",function(){return _q}),n.d(r,"utcWeeks",function(){return Mq}),n.d(r,"utcSunday",function(){return _q}),n.d(r,"utcSundays",function(){return Mq}),n.d(r,"utcMonday",function(){return wq}),n.d(r,"utcMondays",function(){return Tq}),n.d(r,"utcTuesday",function(){return kq}),n.d(r,"utcTuesdays",function(){return Eq}),n.d(r,"utcWednesday",function(){return Cq}),n.d(r,"utcWednesdays",function(){return Pq}),n.d(r,"utcThursday",function(){return Sq}),n.d(r,"utcThursdays",function(){return jq}),n.d(r,"utcFriday",function(){return xq}),n.d(r,"utcFridays",function(){return Iq}),n.d(r,"utcSaturday",function(){return Oq}),n.d(r,"utcSaturdays",function(){return Aq}),n.d(r,"utcMonth",function(){return Rq}),n.d(r,"utcMonths",function(){return Lq}),n.d(r,"utcYear",function(){return Fq}),n.d(r,"utcYears",function(){return Bq}),n.d(r,"timeFormatDefaultLocale",function(){return oG}),n.d(r,"timeFormat",function(){return Wq}),n.d(r,"timeParse",function(){return Gq}),n.d(r,"utcFormat",function(){return Xq}),n.d(r,"utcParse",function(){return Yq}),n.d(r,"timeFormatLocale",function(){return Uq}),n.d(r,"isoFormat",function(){return sG}),n.d(r,"isoParse",function(){return cG}),n.d(r,"now",function(){return fk}),n.d(r,"timer",function(){return gk}),n.d(r,"timerFlush",function(){return vk}),n.d(r,"timeout",function(){return wk}),n.d(r,"interval",function(){return lG}),n.d(r,"transition",function(){return BG}),n.d(r,"active",function(){return WG}),n.d(r,"interrupt",function(){return gG}),n.d(r,"voronoi",function(){return PX}),n.d(r,"zoom",function(){return XX}),n.d(r,"zoomTransform",function(){return FX}),n.d(r,"zoomIdentity",function(){return NX});var i={};n.r(i),n.d(i,"FunctionToString",function(){return qwe}),n.d(i,"InboundFilters",function(){return Gwe});var o=n("t9bE"),a=n("KUzl"),s=n("MGFw"),c=n("WtWf"),l=n("mvVQ"),u=n("/E8u"),h=n("ftpp");function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(h.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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}}}}function f(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=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(h.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 p=n("JL25");function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("dR+g");var g=n("8vcG"),v=n("vQkm"),b=n("cRt0");function y(e,t,n){return(y=Object(b.a)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Object(v.a)(i,n.prototype),i}).apply(null,arguments)}function _(e){var t="function"==typeof Map?new Map:void 0;return(_=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return y(e,arguments,Object(a.a)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(v.a)(n,e)})(e)}var w=n("quSY"),k=n("XNiG"),C=n("HDdC"),S=n("VRyK"),x=n("w1tV");function O(e){for(var t in e)if(e[t]===O)return t;throw Error("Could not find renamed property on target object.")}function M(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function T(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(T).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 E(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var P=O({__forward_ref__:O});function j(e){return e.__forward_ref__=j,e.toString=function(){return T(this())},e}function I(e){return A(e)?e():e}function A(e){return"function"==typeof e&&e.hasOwnProperty(P)&&e.__forward_ref__===j}var D=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,r))).code=e,i}return n}(_(Error));function R(e){return"string"==typeof e?e:null==e?"":String(e)}function L(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():R(e)}function N(e,t){var n=t?" in ".concat(t):"";throw new D("201","No provider for ".concat(L(e)," found").concat(n))}function F(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var B=F;function z(e){return{providers:e.providers||[],imports:e.imports||[]}}function H(e){return V(e,W)||V(e,X)}function V(e,t){return e.hasOwnProperty(t)?e[t]:null}function U(e){return e&&(e.hasOwnProperty(G)||e.hasOwnProperty(Y))?e[G]:null}var q,W=O({"\u0275prov":O}),G=O({"\u0275inj":O}),X=O({ngInjectableDef:O}),Y=O({ngInjectorDef:O}),K=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 Q(){return q}function Z(e){var t=q;return q=e,t}function $(e,t,n){var r=H(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&K.Optional?null:void 0!==t?t:void N(T(e),"Injector")}function J(e){return{toString:e}.toString()}var ee=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),te=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),ne="undefined"!=typeof globalThis&&globalThis,re="undefined"!=typeof window&&window,ie="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,oe="undefined"!=typeof global&&global,ae=ne||oe||re||ie,se={},ce=[],le=[],ue=O({"\u0275cmp":O}),he=O({"\u0275dir":O}),de=O({"\u0275pipe":O}),fe=O({"\u0275mod":O}),pe=O({"\u0275loc":O}),me=O({"\u0275fac":O}),ge=O({__NG_ELEMENT_ID__:O}),ve=0;function be(e){return J(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===ee.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||le,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||te.Emulated,id:"c",styles:e.styles||le,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=ve++,n.inputs=Ce(e.inputs,t),n.outputs=Ce(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(ye)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(_e)}:null,n})}function ye(e){return Oe(e)||function(e){return e[he]||null}(e)}function _e(e){return function(e){return e[de]||null}(e)}var we={};function ke(e){var t={type:e.type,bootstrap:e.bootstrap||le,declarations:e.declarations||le,imports:e.imports||le,exports:e.exports||le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&J(function(){we[e.id]=e.type}),t}function Ce(e,t){if(null==e)return se;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Se=be;function xe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Oe(e){return e[ue]||null}function Me(e,t){var n=e[fe]||null;if(!n&&!0===t)throw new Error("Type ".concat(T(e)," does not have '\u0275mod' property."));return n}var Te=20,Ee=10;function Pe(e){return Array.isArray(e)&&"object"==typeof e[1]}function je(e){return Array.isArray(e)&&!0===e[1]}function Ie(e){return 0!=(8&e.flags)}function Ae(e){return 2==(2&e.flags)}function De(e){return 1==(1&e.flags)}function Re(e){return null!==e.template}function Le(e,t){return e.hasOwnProperty(me)?e[me]:null}var Ne=function(){function e(t,n,r){Object(s.a)(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return Object(c.a)(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Fe(){return Be}function Be(e){return e.type.prototype.ngOnChanges&&(e.setInput=He),ze}function ze(){var e=Ve(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===se)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function He(e,t,n,r){var i=Ve(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:se,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],c=a[s];o[s]=new Ne(c&&c.currentValue,t,a===se),e[r]=t}function Ve(e){return e.__ngSimpleChanges__||null}Fe.ngInherit=!0;var Ue="http://www.w3.org/2000/svg",qe=void 0;function We(){return void 0!==qe?qe:"undefined"!=typeof document?document:void 0}function Ge(e){return!!e.listen}var Xe={createRenderer:function(e,t){return We()}};function Ye(e){for(;Array.isArray(e);)e=e[0];return e}function Ke(e,t){return Ye(t[e])}function Qe(e,t){return Ye(t[e.index])}function Ze(e,t){return e.data[t]}function $e(e,t){return e[t]}function Je(e,t){var n=t[e];return Pe(n)?n:n[0]}function et(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function tt(e){return 4==(4&e[2])}function nt(e){return 128==(128&e[2])}function rt(e,t){return null==t?null:e[t]}function it(e){e[18]=0}function ot(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var at={lFrame:Pt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function st(){return at.bindingsEnabled}function ct(){return at.lFrame.lView}function lt(){return at.lFrame.tView}function ut(e){at.lFrame.contextLView=e}function ht(){for(var e=dt();null!==e&&64===e.type;)e=e.parent;return e}function dt(){return at.lFrame.currentTNode}function ft(e,t){var n=at.lFrame;n.currentTNode=e,n.isParent=t}function pt(){return at.lFrame.isParent}function mt(){at.lFrame.isParent=!1}function gt(){return at.isInCheckNoChangesMode}function vt(e){at.isInCheckNoChangesMode=e}function bt(){var e=at.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yt(){return at.lFrame.bindingIndex}function _t(){return at.lFrame.bindingIndex++}function wt(e){var t=at.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function kt(e){at.lFrame.currentDirectiveIndex=e}function Ct(e){var t=at.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function St(){return at.lFrame.currentQueryIndex}function xt(e){at.lFrame.currentQueryIndex=e}function Ot(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Mt(e,t,n){if(n&K.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&K.Host||null===(r=Ot(i))||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var o=at.lFrame=Et();return o.currentTNode=t,o.lView=e,!0}function Tt(e){var t=Et(),n=e[1];at.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Et(){var e=at.lFrame,t=null===e?null:e.child;return null===t?Pt(e):t}function Pt(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function jt(){var e=at.lFrame;return at.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var It=jt;function At(){var e=jt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Dt(e){return(at.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,at.lFrame.contextLView))[8]}function Rt(){return at.lFrame.selectedIndex}function Lt(e){at.lFrame.selectedIndex=e}function Nt(){var e=at.lFrame;return Ze(e.tView,e.selectedIndex)}function Ft(){at.lFrame.currentNamespace=Ue}function Bt(){at.lFrame.currentNamespace=null}function zt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n].type.prototype,o=i.ngAfterContentInit,a=i.ngAfterContentChecked,s=i.ngAfterViewInit,c=i.ngAfterViewChecked,l=i.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 Ht(e,t,n){qt(e,t,3,n)}function Vt(e,t,n,r){(3&e[2])===n&&qt(e,t,n,r)}function Ut(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function qt(e,t,n,r){for(var i=null!=r?r:-1,o=t.length-1,a=0,s=void 0!==r?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=r&&a>=r)break}else t[s]<0&&(e[18]+=65536),(a<i||-1==i)&&(Wt(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Wt(e,t,n,r){var i=n[r]<0,o=n[r+1],a=e[i?-n[r]:n[r]];i?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Gt=-1,Xt=function e(t,n,r){Object(s.a)(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Yt(e,t,n){for(var r=Ge(e),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var a=n[i++],s=n[i++],c=n[i++];r?e.setAttribute(t,s,c,a):t.setAttributeNS(a,s,c)}else{var l=o,u=n[++i];Qt(l)?r&&e.setProperty(t,l,u):r?e.setAttribute(t,l,u):t.setAttribute(l,u),i++}}return i}function Kt(e){return 3===e||4===e||6===e}function Qt(e){return 64===e.charCodeAt(0)}function Zt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var i=t[r];"number"==typeof i?n=i:0===n||$t(e,n,i,null,-1===n||2===n?t[++r]:null)}return e}function $t(e,t,n,r,i){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===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Jt(e){return e!==Gt}function en(e){return 32767&e}function tn(e,t){for(var n=e>>16,r=t;n>0;)r=r[15],n--;return r}var nn=!0;function rn(e){var t=nn;return nn=e,t}var on=0;function an(e,t){var n=cn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,sn(r.data,e),sn(t,null),sn(r.blueprint,null));var i=ln(e,t),o=e.injectorIndex;if(Jt(i))for(var a=en(i),s=tn(i,t),c=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|c[a+l];return t[o+8]=i,o}function sn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ln(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return Gt;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Gt}function un(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ge)&&(r=n[ge]),null==r&&(r=n[ge]=on++);var i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function hn(e,t,n){if(n&K.Optional)return e;N(t,"NodeInjector")}function dn(e,t,n,r){if(n&K.Optional&&void 0===r&&(r=null),0==(n&(K.Self|K.Host))){var i=e[9],o=Z(void 0);try{return i?i.get(t,r,n&K.Optional):$(t,r,n&K.Optional)}finally{Z(o)}}return hn(r,t,n)}function fn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=yn(n);if("function"==typeof o){if(!Mt(t,e,r))return r&K.Host?hn(i,n,r):dn(t,n,r,i);try{var a=o();if(null!=a||r&K.Optional)return a;N(n)}finally{It()}}else if("number"==typeof o){var s=null,c=cn(e,t),l=Gt,u=r&K.Host?t[16][6]:null;for((-1===c||r&K.SkipSelf)&&((l=-1===c?ln(e,t):t[c+8])!==Gt&&wn(r,!1)?(s=t[1],c=en(l),t=tn(l,t)):c=-1);-1!==c;){var h=t[1];if(_n(o,c,h.data)){var d=gn(c,t,n,s,r,u);if(d!==pn)return d}(l=t[c+8])!==Gt&&wn(r,t[1].data[c+8]===u)&&_n(o,c,t)?(s=h,c=en(l),t=tn(l,t)):c=-1}}}return dn(t,n,r,i)}var pn={};function mn(){return new kn(ht(),ct())}function gn(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],c=vn(s,a,n,null==r?Ae(s)&&nn:r!=a&&0!=(3&s.type),i&K.Host&&o===s);return null!==c?bn(t,a,c,s):pn}function vn(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,c=e.directiveStart,l=o>>20,u=i?s+l:e.directiveEnd,h=r?s:s+l;h<u;h++){var d=a[h];if(h<c&&n===d||h>=c&&d.type===n)return h}if(i){var f=a[c];if(f&&Re(f)&&f.type===n)return c}return null}function bn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Xt){var a=i;a.resolving&&function(e,t){throw new D("200","Circular dependency in DI detected for ".concat(e).concat(""))}(L(o[n]));var s=rn(a.canSeeViewProviders);a.resolving=!0;var c=a.injectImpl?Z(a.injectImpl):null;Mt(e,r,K.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnInit,o=r.ngDoCheck;if(r.ngOnChanges){var a=Be(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==c&&Z(c),rn(s),a.resolving=!1,It()}}return i}function yn(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ge)?e[ge]:void 0;return"number"==typeof t?t>=0?255&t:mn:t}function _n(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function wn(e,t){return!(e&K.Self||e&K.Host&&t)}var kn=function(){function e(t,n){Object(s.a)(this,e),this._tNode=t,this._lView=n}return Object(c.a)(e,[{key:"get",value:function(e,t){return fn(this._tNode,this._lView,e,void 0,t)}}]),e}();function Cn(e){return J(function(){for(var t=e.prototype.constructor,n=t[me]||Sn(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;i&&i!==r;){var o=i[me]||Sn(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return function(e){return new e}})}function Sn(e){return A(e)?function(){var t=Sn(I(e));return t&&t()}:Le(e)}function xn(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 r=n.length,i=0;i<r;){var o=n[i];if(Kt(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===t)return n[i+1];i+=2}}return null}(ht(),e)}var On="__parameters__";function Mn(e,t,n){return J(function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=y(i,t);return a.annotation=o,a;function a(e,t,n){for(var r=e.hasOwnProperty(On)?e[On]:Object.defineProperty(e,On,{value:[]})[On];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var Tn=function(){function e(t,n){Object(s.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=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return Object(c.a)(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),En=new Tn("AnalyzeForEntryComponents"),Pn=Function;function jn(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),jn(r,t)):t!==e&&t.push(r)}return t}function In(e,t){e.forEach(function(e){return Array.isArray(e)?In(e,t):t(e)})}function An(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Dn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Rn(e,t){for(var n=[],r=0;r<e;r++)n.push(t);return n}function Ln(e,t,n){var r=Fn(e,t);return r>=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Nn(e,t){var n=Fn(e,t);if(n>=0)return e[1|n]}function Fn(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var Bn={},zn=/\n/gm,Hn="__source",Vn=O({provide:String,useValue:O}),Un=void 0;function qn(e){var t=Un;return Un=e,t}function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default;if(void 0===Un)throw new Error("inject() must be called from an injection context");return null===Un?$(e,void 0,t):Un.get(e,t&K.Optional?null:void 0,t)}function Gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default;return(Q()||Wn)(I(e),t)}var Xn=Gn;function Yn(e){for(var t=[],n=0;n<e.length;n++){var r=I(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=K.Default,a=0;a<r.length;a++){var s=r[a],c=s.__NG_DI_FLAG__;"number"==typeof c?-1===c?i=s.token:o|=c:i=s}t.push(Gn(i,o))}else t.push(Gn(r))}return t}function Kn(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function Qn(e,t,n,r){var i=e.ngTempTokenPath;throw t[Hn]&&i.unshift(t[Hn]),e.message=function(e,t,n){var r=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 i=T(t);if(Array.isArray(t))i=t.map(T).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):T(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(zn,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}var Zn,$n,Jn=Kn(Mn("Inject",function(e){return{token:e}}),-1),er=Kn(Mn("Optional"),8),tr=Kn(Mn("SkipSelf"),4);function nr(e){var t;return(null===(t=function(){if(void 0===Zn&&(Zn=null,ae.trustedTypes))try{Zn=ae.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Zn}())||void 0===t?void 0:t.createHTML(e))||e}function rr(e){var t;return(null===(t=function(){if(void 0===$n&&($n=null,ae.trustedTypes))try{$n=ae.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return $n}())||void 0===t?void 0:t.createHTML(e))||e}var ir=function(){function e(t){Object(s.a)(this,e),this.changingThisBreaksApplicationSecurity=t}return Object(c.a)(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),or=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(ir),ar=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(ir),sr=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(ir),cr=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(ir),lr=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(ir);function ur(e){return e instanceof ir?e.changingThisBreaksApplicationSecurity:e}function hr(e,t){var n=dr(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 https://g.co/ng/security#xss)"))}return n===t}function dr(e){return e instanceof ir&&e.getTypeName()||null}var fr=function(){function e(t){Object(s.a)(this,e),this.inertDocumentHelper=t}return Object(c.a)(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(nr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),pr=function(){function e(t){if(Object(s.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 r=this.inertDocument.createElement("body");n.appendChild(r)}}return Object(c.a)(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=nr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=nr(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 r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}]),e}(),mr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,gr=/^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 vr(e){return(e=String(e)).match(mr)||e.match(gr)?e:"unsafe:"+e}function br(e){var t,n={},r=d(e.split(","));try{for(r.s();!(t=r.n()).done;)n[t.value]=!0}catch(i){r.e(i)}finally{r.f()}return n}function yr(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var _r,wr=br("area,br,col,hr,img,wbr"),kr=br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Cr=br("rp,rt"),Sr=yr(Cr,kr),xr=yr(wr,yr(kr,br("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")),yr(Cr,br("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")),Sr),Or=br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Mr=br("srcset"),Tr=yr(Or,Mr,br("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"),br("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")),Er=br("script,style,template"),Pr=function(){function e(){Object(s.a)(this,e),this.sanitizedSomething=!1,this.buf=[]}return Object(c.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 r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!xr.hasOwnProperty(n))return this.sanitizedSomething=!0,!Er.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var r=e.attributes,i=0;i<r.length;i++){var o=r.item(i),a=o.name,s=a.toLowerCase();if(Tr.hasOwnProperty(s)){var c=o.value;Or[s]&&(c=vr(c)),Mr[s]&&(t=c,c=(t=String(t)).split(",").map(function(e){return vr(e.trim())}).join(", ")),this.buf.push(" ",a,'="',Ar(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();xr.hasOwnProperty(t)&&!wr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Ar(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}(),jr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ir=/([^\#-~ |!])/g;function Ar(e){return e.replace(/&/g,"&").replace(jr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ir,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function Dr(e,t){var n=null;try{_r=_r||function(e){var t=new pr(e);return function(){try{return!!(new window.DOMParser).parseFromString(nr(""),"text/html")}catch(e){return!1}}()?new fr(t):t}(e);var r=t?String(t):"";n=_r.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=_r.getInertBodyElement(r)}while(r!==o);return nr((new Pr).sanitizeChildren(Rr(n)||n))}finally{if(n)for(var a=Rr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Rr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Lr=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 Nr(e){var t=zr();return t?rr(t.sanitize(Lr.HTML,e)||""):hr(e,"HTML")?rr(ur(e)):Dr(We(),R(e))}function Fr(e){var t=zr();return t?t.sanitize(Lr.STYLE,e)||"":hr(e,"Style")?ur(e):R(e)}function Br(e){var t=zr();return t?t.sanitize(Lr.URL,e)||"":hr(e,"URL")?ur(e):vr(R(e))}function zr(){var e=ct();return e&&e[12]}function Hr(e){return e.ngDebugContext}function Vr(e){return e.ngOriginalError}function Ur(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var qr=function(){function e(){Object(s.a)(this,e),this._console=console}return Object(c.a)(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Ur}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Hr(e)?Hr(e):this._findContext(Vr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Vr(e);t&&Vr(t);)t=Vr(t);return t}}]),e}();function Wr(e,t){e.__ngContext__=t}var Gr=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ae)}();function Xr(e){return{name:"window",target:e.ownerDocument.defaultView}}function Yr(e){return{name:"document",target:e.ownerDocument}}function Kr(e){return{name:"body",target:e.ownerDocument.body}}function Qr(e){return e instanceof Function?e():e}var Zr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function $r(e,t){return(void 0)(e,t)}function Jr(e){var t=e[3];return je(t)?t[3]:t}function ei(e){return ni(e[13])}function ti(e){return ni(e[4])}function ni(e){for(;null!==e&&!je(e);)e=e[4];return e}function ri(e,t,n,r,i){if(null!=r){var o,a=!1;je(r)?o=r:Pe(r)&&(a=!0,r=r[0]);var s=Ye(r);0===e&&null!==n?null==i?di(t,n,s):hi(t,n,s,i||null,!0):1===e&&null!==n?hi(t,n,s,i||null,!0):2===e?function(e,t,n){var r=pi(e,t);r&&function(e,t,n,r){Ge(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,r,i){var o=n[7];o!==Ye(n)&&ri(t,e,r,o,i);for(var a=Ee;a<n.length;a++){var s=n[a];ki(s[1],s,e,t,r,o)}}(t,e,o,n,i)}}function ii(e,t){return Ge(e)?e.createText(t):e.createTextNode(t)}function oi(e,t,n){return Ge(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function ai(e,t){var n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ot(i,-1)),n.splice(r,1)}function si(e,t){if(!(e.length<=Ee)){var n,r=Ee+t,i=e[r];if(i){var o=i[17];null!==o&&o!==e&&ai(o,i),t>0&&(e[r-1][4]=i[4]);var a=Dn(e,Ee+t);ki(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function ci(e,t){if(!(256&t[2])){var n=t[11];Ge(n)&&n.destroyNode&&ki(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return li(e[1],e);for(;t;){var n=null;if(Pe(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Pe(t)&&li(t[1],t),t=t[3];null===t&&(t=e),Pe(t)&&li(t[1],t),n=t&&t[4]}t=n}}(t)}}function li(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 r=0;r<n.length;r+=2){var i=t[n[r]];if(!(i instanceof Xt)){var o=n[r+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(i[o[a]]);else o.call(i)}}}(e,t),function(e,t){var n=e.cleanup,r=t[7],i=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):Ye(t[a]),c=r[i=n[o+2]],l=n[o+3];"boolean"==typeof l?s.removeEventListener(n[o],c,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var u=r[i=n[o+1]];n[o].call(u)}if(null!==r){for(var h=i+1;h<r.length;h++)(0,r[h])();t[7]=null}}(e,t),1===t[1].type&&Ge(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&je(t[3])){n!==t[3]&&ai(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function ui(e,t,n){return function(e,t,n){for(var r=t;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){var i=e.data[r.directiveStart].encapsulation;if(i===te.None||i===te.Emulated)return null}return Qe(r,n)}(e,t.parent,n)}function hi(e,t,n,r,i){Ge(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function di(e,t,n){Ge(e)?e.appendChild(t,n):t.appendChild(n)}function fi(e,t,n,r,i){null!==r?hi(e,t,n,r,i):di(e,t,n)}function pi(e,t){return Ge(e)?e.parentNode(t):t.parentNode}function mi(e,t,n){return gi(e,t,n)}var gi=function(e,t,n){return 40&e.type?Qe(e,n):null};function vi(e,t,n,r){var i=ui(e,r,t),o=t[11],a=mi(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(var s=0;s<n.length;s++)fi(o,i,n[s],a,!1);else fi(o,i,n,a,!1)}function bi(e,t){if(null!==t){var n=t.type;if(3&n)return Qe(t,e);if(4&n)return _i(-1,e[t.index]);if(8&n){var r=t.child;if(null!==r)return bi(e,r);var i=e[t.index];return je(i)?_i(-1,i):Ye(i)}if(32&n)return $r(t,e)()||Ye(e[t.index]);var o=yi(e,t);return null!==o?Array.isArray(o)?o[0]:bi(Jr(e[16]),o):bi(e,t.next)}return null}function yi(e,t){return null!==t?e[16][6].projection[t.projection]:null}function _i(e,t){var n=Ee+e+1;if(n<t.length){var r=t[n],i=r[1].firstChild;if(null!==i)return bi(r,i)}return t[7]}function wi(e,t,n,r,i,o,a){for(;null!=n;){var s=r[n.index],c=n.type;if(a&&0===t&&(s&&Wr(Ye(s),r),n.flags|=4),64!=(64&n.flags))if(8&c)wi(e,t,n.child,r,i,o,!1),ri(t,e,i,s,o);else if(32&c){for(var l=$r(n,r),u=void 0;u=l();)ri(t,e,i,u,o);ri(t,e,i,s,o)}else 16&c?Si(e,t,r,n,i,o):ri(t,e,i,s,o);n=a?n.projectionNext:n.next}}function ki(e,t,n,r,i,o){wi(n,r,e.firstChild,t,i,o,!1)}function Ci(e,t,n){Si(t[11],0,t,n,ui(e,n,t),mi(n.parent||t[6],n,t))}function Si(e,t,n,r,i,o){var a=n[16],s=a[6].projection[r.projection];if(Array.isArray(s))for(var c=0;c<s.length;c++)ri(t,e,i,s[c],o);else wi(e,t,s,a[3],i,o,!0)}function xi(e,t,n){Ge(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Oi(e,t,n){Ge(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Mi(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Ti="ng-template";function Ei(e,t,n){for(var r=0;r<e.length;){var i=e[r++];if(n&&"class"===i){if(-1!==Mi((i=e[r]).toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Pi(e){return 4===e.type&&e.value!==Ti}function ji(e,t,n){return t===(4!==e.type||n?e.value:Ti)}function Ii(e,t,n){for(var r=4,i=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Kt(e[t]))return t;return e.length}(i),a=!1,s=0;s<t.length;s++){var c=t[s];if("number"!=typeof c){if(!a)if(4&r){if(r=2|1&r,""!==c&&!ji(e,c,n)||""===c&&1===t.length){if(Ai(r))return!1;a=!0}}else{var l=8&r?c:t[++s];if(8&r&&null!==e.attrs){if(!Ei(e.attrs,l,n)){if(Ai(r))return!1;a=!0}continue}var u=Di(8&r?"class":c,i,Pi(e),n);if(-1===u){if(Ai(r))return!1;a=!0;continue}if(""!==l){var h;h=u>o?"":i[u+1].toLowerCase();var d=8&r?h:null;if(d&&-1!==Mi(d,l,0)||2&r&&l!==h){if(Ai(r))return!1;a=!0}}}}else{if(!a&&!Ai(r)&&!Ai(c))return!1;if(a&&Ai(c))continue;a=!1,r=c|1&r}}return Ai(r)||a}function Ai(e){return 0==(1&e)}function Di(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i<t.length;){var a=t[i];if(a===e)return i;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++i];"string"==typeof s;)s=t[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Ri(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(Ii(e,t[r],n))return!0;return!1}function Li(e,t){e:for(var n=0;n<t.length;n++){var r=t[n];if(e.length===r.length){for(var i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function Ni(e,t){return e?":not("+t.trim()+")":t}function Fi(e){for(var t=e[0],n=1,r=2,i="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&r){var s=e[++n];i+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Ai(a)||(t+=Ni(o,i),i=""),r=a,o=o||!Ai(r);n++}return""!==i&&(t+=Ni(o,i)),t}var Bi={};function zi(e){Hi(lt(),ct(),Rt()+e,gt())}function Hi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Ht(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Vt(t,o,0,n)}Lt(n)}function Vi(e,t){return e<<17|t<<2}function Ui(e){return e>>17&32767}function qi(e){return 2|e}function Wi(e){return(131068&e)>>2}function Gi(e,t){return-131069&e|t<<2}function Xi(e){return 1|e}function Yi(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r+1];if(-1!==i){var o=e.data[i];xt(n[r]),o.contentQueries(2,t[i],i)}}}function Ki(e,t,n,r,i,o,a,s,c,l){var u=t.blueprint.slice();return u[0]=i,u[2]=140|r,it(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 Qi(e,t,n,r,i){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,r,i){var o=dt(),a=pt(),s=e.data[t]=function(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,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}}(0,a?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,r,i),at.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;var c=(a=(o=at.lFrame).currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===c?-1:c.injectorIndex}return ft(s,!0),s}function Zi(e,t,n,r){if(0===n)return-1;for(var i=t.length,o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function $i(e,t,n){Tt(t);try{var r=e.viewQuery;null!==r&&Po(1,r,n);var i=e.template;null!==i&&to(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Yi(e,t),e.staticViewQueries&&Po(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)xo(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,At()}}function Ji(e,t,n,r){var i=t[2];if(256!=(256&i)){Tt(t);var o=gt();try{it(t),at.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&to(e,t,n,2,r);var a=3==(3&i);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&Ht(t,s,null)}else{var c=e.preOrderHooks;null!==c&&Vt(t,c,0,null),Ut(t,0)}if(function(e){for(var t=ei(e);null!==t;t=ti(t))if(t[2])for(var n=t[9],r=0;r<n.length;r++){var i=n[r];0==(1024&i[2])&&ot(i[3],1),i[2]|=1024}}(t),function(e){for(var t=ei(e);null!==t;t=ti(t))for(var n=Ee;n<t.length;n++){var r=t[n],i=r[1];nt(r)&&Ji(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&Yi(e,t),!o)if(a){var l=e.contentCheckHooks;null!==l&&Ht(t,l)}else{var u=e.contentHooks;null!==u&&Vt(t,u,1),Ut(t,1)}!function(e,t){var n,r,i=e.hostBindingOpCodes;if(null!==i)try{for(var o=0;o<i.length;o++){var a=i[o];if(a<0)Lt(~a);else{var s=a,c=i[++o],l=i[++o];n=s,r=void 0,(r=at.lFrame).bindingIndex=r.bindingRootIndex=c,kt(n),l(2,t[s])}}}finally{Lt(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)Co(e,t[n])}(t,h);var d=e.viewQuery;if(null!==d&&Po(2,d,r),!o)if(a){var f=e.viewCheckHooks;null!==f&&Ht(t,f)}else{var p=e.viewHooks;null!==p&&Vt(t,p,2),Ut(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ot(t[3],-1))}finally{At()}}}function eo(e,t,n,r){var i=t[10],o=!gt(),a=tt(t);try{o&&!a&&i.begin&&i.begin(),a&&$i(e,t,r),Ji(e,t,n,r)}finally{o&&!a&&i.end&&i.end()}}function to(e,t,n,r,i){var o=Rt();try{Lt(-1),2&r&&t.length>Te&&Hi(e,t,Te,gt()),n(r,i)}finally{Lt(o)}}function no(e,t,n){if(Ie(t))for(var r=t.directiveEnd,i=t.directiveStart;i<r;i++){var o=e.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}function ro(e,t,n){st()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||an(n,t),Wr(r,t);for(var a=n.initialInputs,s=i;s<o;s++){var c=e.data[s],l=Re(c);l&&bo(t,n,c);var u=bn(t,e,s,n);Wr(u,t),null!==a&&_o(0,s-i,u,c,0,a),l&&(Je(n.index,t)[8]=u)}}(e,t,n,Qe(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,i=n.directiveEnd,o=n.index,a=at.lFrame.currentDirectiveIndex;try{Lt(o);for(var s=r;s<i;s++){var c=e.data[s],l=t[s];kt(s),null===c.hostBindings&&0===c.hostVars&&null===c.hostAttrs||fo(c,l)}}finally{Lt(-1),kt(a)}}(e,t,n))}function io(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qe,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o<r.length;o+=2){var a=r[o+1],s=-1===a?n(t,e):e[a];e[i++]=s}}function oo(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ao(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ao(e,t,n,r,i,o,a,s,c,l){var u=Te+r,h=u+i,d=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:Bi);return n}(u,h),f="function"==typeof l?l():l;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:s,declTNode:t,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes: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 so(e,t,n,r){var i=Io(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Ao(e).push(r,i.length-1))}function co(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function lo(e,t,n,r,i,o,a,s){var c,l,u=Qe(t,n),h=t.inputs;!s&&null!=h&&(c=h[r])?(Lo(e,n,c,r,i),Ae(t)&&function(e,t){var n=Je(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=a?a(i,t.value||"",r):i,Ge(o)?o.setProperty(u,r,i):Qt(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}function uo(e,t,n,r){var i=!1;if(st()){var o=function(e,t,n){var r=e.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var a=r[o];Ri(n,a.selectors,!1)&&(i||(i=[]),un(an(n,t),e,a.type),Re(a)?(po(e,n),i.unshift(a)):i.push(a))}return i}(e,t,n),a=null===r?null:{"":-1};if(null!==o){i=!0,go(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var c=o[s];c.providersResolver&&c.providersResolver(c)}for(var l=!1,u=!1,h=Zi(e,t,o.length,null),d=0;d<o.length;d++){var f=o[d];n.mergedAttrs=Zt(n.mergedAttrs,f.hostAttrs),vo(e,n,t,h,f),mo(h,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;!l&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),l=!0),u||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),u=!0),h++}!function(e,t){for(var n=t.directiveEnd,r=e.data,i=t.attrs,o=[],a=null,s=null,c=t.directiveStart;c<n;c++){var l=r[c],u=l.inputs,h=null===i||Pi(t)?null:wo(u,i);o.push(h),a=co(u,c,a),s=co(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)}a&&function(e,t,n){if(t)for(var r=e.localNames=[],i=0;i<t.length;i+=2){var o=n[t[i+1]];if(null==o)throw new D("301","Export of name '".concat(t[i+1],"' not found!"));r.push(t[i],o)}}(n,r,a)}return n.mergedAttrs=Zt(n.mergedAttrs,n.attrs),i}function ho(e,t,n,r,i,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var c=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(r,i,a)}}function fo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function po(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function mo(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Re(t)&&(n[""]=e)}}function go(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function vo(e,t,n,r,i){e.data[r]=i;var o=i.factory||(i.factory=Le(i.type)),a=new Xt(o,Re(i),null);e.blueprint[r]=a,n[r]=a,ho(e,t,0,r,Zi(e,n,i.hostVars,Bi),i)}function bo(e,t,n){var r=Qe(t,e),i=oo(n),o=e[10],a=Oo(e,Ki(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n),null,null));e[t.index]=a}function yo(e,t,n,r,i,o){var a=Qe(e,t);!function(e,t,n,r,i,o,a){if(null==o)Ge(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{var s=null==a?R(o):a(o,r||"",i);Ge(e)?e.setAttribute(t,i,s,n):n?t.setAttributeNS(n,i,s):t.setAttribute(i,s)}}(t[11],a,o,e.value,n,r,i)}function _o(e,t,n,r,i,o){var a=o[t];if(null!==a)for(var s=r.setInput,c=0;c<a.length;){var l=a[c++],u=a[c++],h=a[c++];null!==s?r.setInput(n,h,l,u):n[u]=h}}function wo(e,t){for(var n=null,r=0;r<t.length;){var i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function ko(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Co(e,t){var n=Je(t,e);if(nt(n)){var r=n[1];80&n[2]?Ji(r,n,r.template,n[8]):n[5]>0&&So(n)}}function So(e){for(var t=ei(e);null!==t;t=ti(t))for(var n=Ee;n<t.length;n++){var r=t[n];if(1024&r[2]){var i=r[1];Ji(i,r,i.template,r[8])}else r[5]>0&&So(r)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Je(o[a],e);nt(s)&&s[5]>0&&So(s)}}function xo(e,t){var n=Je(t,e),r=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),$i(r,n,n[8])}function Oo(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Mo(e){for(;e;){e[2]|=64;var t=Jr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function To(e,t,n){var r=t[10];r.begin&&r.begin();try{Ji(e,t,e.template,n)}catch(i){throw Ro(t,i),i}finally{r.end&&r.end()}}function Eo(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=et(n),i=r[1];eo(i,r,i.template,n)}}(e[8])}function Po(e,t,n){xt(0),t(e,n)}var jo=function(){return Promise.resolve(null)}();function Io(e){return e[7]||(e[7]=[])}function Ao(e){return e.cleanup||(e.cleanup=[])}function Do(e,t,n){return(null===e||Re(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 Ro(e,t){var n=e[9],r=n?n.get(qr,null):null;r&&r.handleError(t)}function Lo(e,t,n,r,i){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,i,r,s):c[s]=i}}function No(e,t,n){var r=Ke(t,e);!function(e,t,n){Ge(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function Fo(e,t,n){var r=n?e.styles:null,i=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?i=E(i,s):2==o&&(r=E(r,s+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var Bo=new Tn("INJECTOR",-1),zo=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bn;if(t===Bn){var n=new Error("NullInjectorError: No provider for ".concat(T(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Ho=new Tn("Set Injector scope."),Vo={},Uo={},qo=[],Wo=void 0;function Go(){return void 0===Wo&&(Wo=new zo),Wo}function Xo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Yo(e,n,t||Go(),r)}var Yo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Object(s.a)(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&In(n,function(e){return i.processProvider(e,t,n)}),In([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(Bo,Zo(void 0,this));var c=this.records.get(Ho);this.scope=null!=c?c.value:null,this.source=o||("object"==typeof t?null:T(t))}return Object(c.a)(e,[{key:"destroyed",get:function(){return this._destroyed}},{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]:Bn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K.Default;this.assertNotDestroyed();var r=qn(this);try{if(!(n&K.SkipSelf)){var i=this.records.get(e);if(void 0===i){var o=ea(e)&&H(e);i=o&&this.injectableDefInScope(o)?Zo(Ko(e),Vo):null,this.records.set(e,i)}if(null!=i)return this.hydrate(e,i)}var a=n&K.Self?Go():this.parent;return a.get(e,t=n&K.Optional&&t===Bn?null:t)}catch(c){if("NullInjectorError"===c.name){var s=c.ngTempTokenPath=c.ngTempTokenPath||[];if(s.unshift(T(e)),r)throw c;return Qn(c,e,"R3InjectorError",this.source)}throw c}finally{qn(r)}}},{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(T(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 r=this;if(!(e=I(e)))return!1;var i=U(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=U(o)),null==i)return!1;if(null!=i.imports&&!s){var c;n.push(a);try{In(i.imports,function(e){r.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,i=t.providers;In(i,function(e){return r.processProvider(e,n,i||qo)})},u=0;u<c.length;u++)l(u)}this.injectorDefTypes.add(a);var h=Le(a)||function(){return new a};this.records.set(a,Zo(h,Vo));var d=i.providers;if(null!=d&&!s){var f=e;In(d,function(e){return r.processProvider(e,f,d)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r=Jo(e=I(e))?e:I(e&&e.provide),i=function(e,t,n){return $o(e)?Zo(void 0,e.useValue):Zo(Qo(e),Vo)}(e);if(Jo(e)||!0!==e.multi)this.records.get(r);else{var o=this.records.get(r);o||((o=Zo(void 0,Vo,!0)).factory=function(){return Yn(o.multi)},this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,i)}},{key:"hydrate",value:function(e,t){var n;return t.value===Vo&&(t.value=Uo,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))}}]),e}();function Ko(e){var t=H(e),n=null!==t?t.factory:Le(e);if(null!==n)return n;if(e instanceof Tn)throw new Error("Token ".concat(T(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Rn(t,"?");throw new Error("Can't resolve all parameters for ".concat(T(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[W]||e[X]);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!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Qo(e,t,n){var r,i=void 0;if(Jo(e)){var o=I(e);return Le(o)||Ko(o)}if($o(e))i=function(){return I(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,Object(g.a)(Yn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Gn(I(e.useExisting))};else{var a=I(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Le(a)||Ko(a);i=function(){return y(a,Object(g.a)(Yn(e.deps)))}}return i}function Zo(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&&Vn in e}function Jo(e){return"function"==typeof e}function ea(e){return"function"==typeof e||"object"==typeof e&&e instanceof Tn}var ta=function(e,t,n){return function(e){var t=Xo(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(s.a)(this,e)}return Object(c.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=Bn,e.NULL=new zo,e.\u0275prov=F({token:e,providedIn:"any",factory:function(){return Gn(Bo)}}),e.__NG_ELEMENT_ID__=-1,e}();function ra(e,t){zt(et(e)[1],ht())}function ia(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(Re(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=oa(e.inputs),o.declaredInputs=oa(e.declaredInputs),o.outputs=oa(e.outputs);var a=i.hostBindings;a&&ca(e,a);var s=i.viewQuery,c=i.contentQueries;if(s&&aa(e,s),c&&sa(e,c),M(e.inputs,i.inputs),M(e.declaredInputs,i.declaredInputs),M(e.outputs,i.outputs),Re(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var u=i.features;if(u)for(var h=0;h<u.length;h++){var d=u[h];d&&d.ngInherit&&d(e),d===ia&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,r=e.length-1;r>=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Zt(i.hostAttrs,n=Zt(n,i.hostAttrs))}}(r)}function oa(e){return e===se?{}:e===le?[]:e}function aa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function sa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ca(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var la=null;function ua(){if(!la){var e=ae.Symbol;if(e&&e.iterator)la=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(la=r)}}return la}var ha=function(){function e(t){Object(s.a)(this,e),this.wrapped=t}return Object(c.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 da(e){return!!fa(e)&&(Array.isArray(e)||!(e instanceof Map)&&ua()in e)}function fa(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function pa(e,t,n){return e[t]=n}function ma(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ga(e,t,n,r){var i=ma(e,t,n);return ma(e,t+1,r)||i}function va(e,t,n,r){var i=ct();return ma(i,_t(),t)&&(lt(),yo(Nt(),i,e,t,n,r)),va}function ba(e,t,n,r){return ma(e,_t(),n)?t+R(n)+r:Bi}function ya(e,t,n,r,i,o){var a=ga(e,yt(),n,i);return wt(2),a?t+R(n)+r+R(i)+o:Bi}function _a(e,t,n,r,i,o){var a=ct(),s=ba(a,t,n,r);return s!==Bi&&yo(Nt(),a,e,s,i,o),_a}function wa(e,t,n,r,i,o,a,s){var c=ct(),l=ya(c,t,n,r,i,o);return l!==Bi&&yo(Nt(),c,e,l,a,s),wa}function ka(e,t,n,r,i,o,a,s){var c=ct(),l=lt(),u=e+Te,h=l.firstCreatePass?function(e,t,n,r,i,o,a,s,c){var l=t.consts,u=Qi(t,e,4,a||null,rt(l,s));uo(t,n,u,rt(l,c)),zt(t,u);var h=u.tViews=ao(2,u,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,u),h.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,n,r,i,o,a):l.data[u];ft(h,!1);var d=c[11].createComment("");vi(l,c,d,h),Wr(d,c),Oo(c,c[u]=ko(d,c,d,h)),De(h)&&ro(l,c,h),null!=a&&io(c,h,s)}function Ca(e){return $e(at.lFrame.contextLView,Te+e)}function Sa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default,n=ct();if(null===n)return Gn(e,t);var r=ht();return fn(r,n,I(e),t)}function xa(e,t,n){var r=ct();return ma(r,_t(),t)&&lo(lt(),Nt(),r,e,t,r[11],n,!1),xa}function Oa(e,t,n,r,i){var o=i?"class":"style";Lo(e,n,t.inputs[o],o,r)}function Ma(e,t,n,r){var i=ct(),o=lt(),a=Te+e,s=i[11],c=i[a]=oi(s,t,at.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,c=Qi(t,e,2,i,rt(s,o));return uo(t,n,c,rt(s,a)),null!==c.attrs&&Fo(c,c.attrs,!1),null!==c.mergedAttrs&&Fo(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(a,o,i,0,t,n,r):o.data[a];ft(l,!0);var u=l.mergedAttrs;null!==u&&Yt(s,c,u);var h=l.classes;null!==h&&Oi(s,c,h);var d=l.styles;null!==d&&xi(s,c,d),64!=(64&l.flags)&&vi(o,i,c,l),0===at.lFrame.elementDepthCount&&Wr(c,i),at.lFrame.elementDepthCount++,De(l)&&(ro(o,i,l),no(o,l,i)),null!==r&&io(i,l)}function Ta(){var e=ht();pt()?mt():ft(e=e.parent,!1);var t=e;at.lFrame.elementDepthCount--;var n=lt();n.firstCreatePass&&(zt(n,e),Ie(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Oa(n,t,ct(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Oa(n,t,ct(),t.stylesWithoutHost,!1)}function Ea(e,t,n,r){Ma(e,t,n,r),Ta()}function Pa(e,t,n){var r=ct(),i=lt(),o=e+Te,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=rt(o,r),s=Qi(t,e,8,"ng-container",a);return null!==a&&Fo(s,a,!0),uo(t,n,s,rt(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,i,r,t,n):i.data[o];ft(a,!0);var s=r[o]=r[11].createComment("");vi(i,r,s,a),Wr(s,r),De(a)&&(ro(i,r,a),no(i,a,r)),null!=n&&io(r,a)}function ja(){var e=ht(),t=lt();pt()?mt():ft(e=e.parent,!1),t.firstCreatePass&&(zt(t,e),Ie(e)&&t.queries.elementEnd(e))}function Ia(e,t,n){Pa(e,t,n),ja()}function Aa(){return ct()}function Da(e){return!!e&&"function"==typeof e.then}function Ra(e){return!!e&&"function"==typeof e.subscribe}var La=Ra;function Na(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ct(),o=lt(),a=ht();return za(o,i,i[11],a,e,t,n,r),Na}function Fa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ht(),o=ct(),a=lt(),s=Ct(a.data),c=Do(s,i,o);return za(a,o,c,i,e,t,n,r),Fa}function Ba(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var a=i[o];if(a===n&&i[o+1]===r){var s=t[7],c=i[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}function za(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=De(r),l=e.firstCreatePass,u=l&&Ao(e),h=Io(t),d=!0;if(3&r.type){var f=Qe(r,t),p=s?s(f):se,m=p.target||f,g=h.length,v=s?function(e){return s(Ye(e[r.index])).target}:r.index;if(Ge(n)){var b=null;if(!s&&c&&(b=Ba(e,t,i,r.index)),null!==b){var y=b.__ngLastListenerFn__||b;y.__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,d=!1}else{o=Va(r,t,o,!1);var _=n.listen(p.name||m,i,o);h.push(o,_),u&&u.push(i,v,g,g+1)}}else o=Va(r,t,o,!0),m.addEventListener(i,o,a),h.push(o),u&&u.push(i,v,g,a)}else o=Va(r,t,o,!1);var w,k=r.outputs;if(d&&null!==k&&(w=k[i])){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(i,r.index,P,-(P+1))}}}function Ha(e,t,n){try{return!1!==t(n)}catch(r){return Ro(e,r),!1}}function Va(e,t,n,r){return function i(o){if(o===Function)return n;var a=2&e.flags?Je(e.index,t):t;0==(32&t[2])&&Mo(a);for(var s=Ha(t,n,o),c=i.__ngNextListenerFn__;c;)s=Ha(t,c,o)&&s,c=c.__ngNextListenerFn__;return r&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Ua(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Dt(e)}function qa(e,t){for(var n=null,r=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),i=0;i<t.length;i++){var o=t[i];if("*"!==o){if(null===r?Ri(e,o,!0):Li(r,o))return i}else n=i}return n}function Wa(e){var t=ct()[16][6];if(!t.projection)for(var n=t.projection=Rn(e?e.length:1,null),r=n.slice(),i=t.child;null!==i;){var o=e?qa(i,e):0;null!==o&&(r[o]?r[o].projectionNext=i:n[o]=i,r[o]=i),i=i.next}}function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=ct(),i=lt(),o=Qi(i,Te+e,16,null,n||null);null===o.projection&&(o.projection=t),mt(),64!=(64&o.flags)&&Ci(i,r,o)}function Xa(e,t,n){return Ya(e,"",t,"",n),Xa}function Ya(e,t,n,r,i){var o=ct(),a=ba(o,t,n,r);return a!==Bi&&lo(lt(),Nt(),o,e,a,o[11],i,!1),Ya}function Ka(e,t,n,r,i,o,a){var s=ct(),c=ya(s,t,n,r,i,o);return c!==Bi&&lo(lt(),Nt(),s,e,c,s[11],a,!1),Ka}function Qa(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?Ui(o):Wi(o),c=!1;0!==s&&(!1===c||a);){var l=e[s+1];Za(e[s],t)&&(c=!0,e[s+1]=r?Xi(l):qi(l)),s=r?Ui(l):Wi(l)}c&&(e[n+1]=r?qi(o):Xi(o))}function Za(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Fn(e,t)>=0}var $a={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ja(e){return e.substring($a.key,$a.keyEnd)}function es(e){return e.substring($a.value,$a.valueEnd)}function ts(e,t){var n=$a.textEnd;return n===t?-1:(t=$a.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,$a.key=t,n),is(e,t,n))}function ns(e,t){var n=$a.textEnd,r=$a.key=is(e,t,n);return n===r?-1:(r=$a.keyEnd=function(e,t,n){for(var r;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=os(e,r,n),r=$a.value=is(e,r,n),r=$a.valueEnd=function(e,t,n){for(var r=-1,i=-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=as(e,c,a,n):t===a-4&&85===o&&82===i&&76===r&&40===c?s=a=as(e,41,a,n):c>32&&(s=a),o=i,i=r,r=-33&c}return s}(e,r,n),os(e,r,n))}function rs(e){$a.key=0,$a.keyEnd=0,$a.value=0,$a.valueEnd=0,$a.textEnd=e.length}function is(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function os(e,t,n,r){return(t=is(e,t,n))<n&&t++,t}function as(e,t,n,r){for(var i=-1,o=n;o<r;){var a=e.charCodeAt(o++);if(a==t&&92!==i)return o;i=92==a&&92===i?0:a}throw new Error}function ss(e,t,n){return ds(e,t,n,!1),ss}function cs(e,t){return ds(e,t,null,!0),cs}function ls(e){fs(bs,us,e,!1)}function us(e,t){for(var n=function(e){return rs(e),ns(e,is(e,0,$a.textEnd))}(t);n>=0;n=ns(t,n))bs(e,Ja(t),es(t))}function hs(e,t){for(var n=function(e){return rs(e),ts(e,is(e,0,$a.textEnd))}(t);n>=0;n=ts(t,n))Ln(e,Ja(t),!0)}function ds(e,t,n,r){var i=ct(),o=lt(),a=wt(2);o.firstUpdatePass&&ms(o,e,a,r),t!==Bi&&ma(i,a,t)&&ys(o,o.data[Rt()],i,i[11],e,i[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=T(ur(e)))),e}(t,n),r,a)}function fs(e,t,n,r){var i=lt(),o=wt(2);i.firstUpdatePass&&ms(i,null,o,r);var a=ct();if(n!==Bi&&ma(a,o,n)){var s=i.data[Rt()];if(ks(s,r)&&!ps(i,o)){var c=r?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=E(c,n||"")),Oa(i,s,a,n,r)}else!function(e,t,n,r,i,o,a,s){i===Bi&&(i=ce);for(var c=0,l=0,u=0<i.length?i[0]:null,h=0<o.length?o[0]:null;null!==u||null!==h;){var d=c<i.length?i[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&&ys(e,t,n,r,p,m,a,s),u=c<i.length?i[c]:null,h=l<o.length?o[l]:null}}(i,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return ce;var r=[],i=ur(n);if(Array.isArray(i))for(var o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(var a in i)i.hasOwnProperty(a)&&e(r,a,i[a]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,o)}}function ps(e,t){return t>=e.expandoStartIndex}function ms(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Rt()],a=ps(e,n);ks(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=Ct(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=vs(n=gs(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=gs(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Wi(r))return e[Ui(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[Ui(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=vs(s=gs(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o<i;o++)r=vs(r,e[o].hostAttrs,n);return vs(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){var a=o?t.classBindings:t.styleBindings,s=Ui(a),c=Wi(a);e[r]=n;var l,u=!1;if(Array.isArray(n)?(null===(l=n[1])||Fn(n,l)>0)&&(u=!0):l=n,i)if(0!==c){var h=Ui(e[s+1]);e[r+1]=Vi(h,s),0!==h&&(e[h+1]=Gi(e[h+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=Vi(s,0),0!==s&&(e[s+1]=Gi(e[s+1],r)),s=r;else e[r+1]=Vi(c,0),0===s?s=r:e[c+1]=Gi(e[c+1],r),c=r;u&&(e[r+1]=qi(e[r+1])),Qa(e,l,r,!0),Qa(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Fn(o,t)>=0&&(n[r+1]=Xi(n[r+1]))}(t,l,e,r,o),a=Vi(s,c),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function gs(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(r=vs(r,(o=t[s]).hostAttrs,i),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),r}function vs(e,t,n){var r=n?1:2,i=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?i=a:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ln(e,a,!!n||t[++o]))}return void 0===e?null:e}function bs(e,t,n){Ln(e,t,ur(n))}function ys(e,t,n,r,i,o,a,s){if(3&t.type){var c=e.data,l=c[s+1];ws(1==(1&l)?_s(c,t,n,i,Wi(l),a):void 0)||(ws(o)||2==(2&l)&&(o=_s(c,null,n,i,s,a)),function(e,t,n,r,i){var o=Ge(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{var a=-1===r.indexOf("-")?void 0:Zr.DashCase;if(null==i)o?e.removeStyle(n,r,a):n.style.removeProperty(r);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),a|=Zr.Important),o?e.setStyle(n,r,i,a):n.style.setProperty(r,i,s?"important":"")}}}(r,a,Ke(Rt(),n),i,o))}}function _s(e,t,n,r,i,o){for(var a=null===t,s=void 0;i>0;){var c=e[i],l=Array.isArray(c),u=l?c[1]:c,h=null===u,d=n[i+1];d===Bi&&(d=h?ce:void 0);var f=h?Nn(d,r):u===r?d:void 0;if(l&&!ws(f)&&(f=Nn(c,r)),ws(f)&&(s=f,a))return s;var p=e[i+1];i=a?Ui(p):Wi(p)}if(null!==t){var m=o?t.residualClasses:t.residualStyles;null!=m&&(s=Nn(m,r))}return s}function ws(e){return void 0!==e}function ks(e,t){return 0!=(e.flags&(t?16:32))}function Cs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ct(),r=lt(),i=e+Te,o=r.firstCreatePass?Qi(r,i,1,t,null):r.data[i],a=n[i]=ii(n[11],t);vi(r,n,a,o),ft(o,!1)}function Ss(e){return xs("",e,""),Ss}function xs(e,t,n){var r=ct(),i=ba(r,e,t,n);return i!==Bi&&No(r,Rt(),i),xs}function Os(e,t,n,r,i){var o=ct(),a=ya(o,e,t,n,r,i);return a!==Bi&&No(o,Rt(),a),Os}function Ms(e,t,n,r,i,o,a){var s=ct(),c=function(e,t,n,r,i,o,a,s){var c=function(e,t,n,r,i){var o=ga(e,t,n,r);return ma(e,t+2,i)||o}(e,yt(),n,i,a);return wt(3),c?t+R(n)+r+R(i)+o+R(a)+s:Bi}(s,e,t,n,r,i,o,a);return c!==Bi&&No(s,Rt(),c),Ms}function Ts(e,t,n){fs(Ln,hs,ba(ct(),e,t,n),!0)}function Es(e,t,n){var r=ct();return ma(r,_t(),t)&&lo(lt(),Nt(),r,e,t,r[11],n,!0),Es}function Ps(e,t,n){var r=ct();if(ma(r,_t(),t)){var i=lt(),o=Nt();lo(i,o,r,e,t,Do(Ct(i.data),o,r),n,!0)}return Ps}var js=void 0,Is=["en",[["a","p"],["AM","PM"],js],[["AM","PM"],js,js],[["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"]],js,[["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"]],js,[["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}",js,"{1} 'at' {0}",js],[".",",",";","%","+","-","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}],As={};function Ds(e){return e in As||(As[e]=ae.ng&&ae.ng.common&&ae.ng.common.locales&&ae.ng.common.locales[e]),As[e]}var Rs=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}({}),Ls="en-US";function Ns(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Fs(e,t,n){var r=lt();if(r.firstCreatePass){var i=Re(e);Bs(n,r.data,r.blueprint,i,!0),Bs(t,r.data,r.blueprint,i,!1)}}function Bs(e,t,n,r,i){if(e=I(e),Array.isArray(e))for(var o=0;o<e.length;o++)Bs(e[o],t,n,r,i);else{var a=lt(),s=ct(),c=Jo(e)?e:I(e.provide),l=Qo(e),u=ht(),h=1048575&u.providerIndexes,d=u.directiveStart,f=u.providerIndexes>>20;if(Jo(e)||!e.multi){var p=new Xt(l,i,Sa),m=Vs(c,t,i?h:h+f,d);-1===m?(un(an(u,s),a,c),zs(a,e,t.length),t.push(c),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var g=Vs(c,t,h+f,d),v=Vs(c,t,h,h+f),b=v>=0&&n[v];if(i&&!b||!i&&!(g>=0&&n[g])){un(an(u,s),a,c);var y=function(e,t,n,r,i){var o=new Xt(e,n,Sa);return o.multi=[],o.index=t,o.componentProviders=0,Hs(o,i,r&&!n),o}(i?qs:Us,n.length,i,r,l);!i&&b&&(n[v].providerFactory=y),zs(a,e,t.length,0),t.push(c),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(y),s.push(y)}else zs(a,e,g>-1?g:v,Hs(n[i?v:g],l,!i&&r));!i&&r&&b&&n[v].componentProviders++}}}function zs(e,t,n,r){var i=Jo(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function Hs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Vs(e,t,n,r){for(var i=n;i<r;i++)if(t[i]===e)return i;return-1}function Us(e,t,n,r){return Ws(this.multi,[])}function qs(e,t,n,r){var i,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=bn(n,n[1],this.providerFactory.index,r);Ws(o,i=s.slice(0,a));for(var c=a;c<s.length;c++)i.push(s[c])}else Ws(o,i=[]);return i}function Ws(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function Gs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return Fs(n,r?r(e):e,t)}}}var Xs=function e(){Object(s.a)(this,e)},Ys=function e(){Object(s.a)(this,e)},Ks=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(T(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Qs=function(){var e=function e(){Object(s.a)(this,e)};return e.NULL=new Ks,e}();function Zs(){}function $s(e,t){return new ec(Qe(e,t))}var Js=function(){return $s(ht(),ct())},ec=function(){var e=function e(t){Object(s.a)(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Js,e}();function tc(e){return e instanceof ec?e.nativeElement:e}var nc=function e(){Object(s.a)(this,e)},rc=function(){var e=function e(){Object(s.a)(this,e)};return e.__NG_ELEMENT_ID__=function(){return ic()},e}(),ic=function(){var e=ct(),t=Je(ht().index,e);return function(e){return e[11]}(Pe(t)?t:e)},oc=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275prov=F({token:e,providedIn:"root",factory:function(){return null}}),e}(),ac=function e(t){Object(s.a)(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},sc=new ac("11.2.8"),cc=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"supports",value:function(e){return da(e)}},{key:"create",value:function(e){return new uc(e)}}]),e}(),lc=function(e,t){return t},uc=function(){function e(t){Object(s.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||lc}return Object(c.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,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<pc(n,r,i)?t:n,a=pc(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var c=a-r,l=s-r;if(c!=l){for(var u=0;u<c;u++){var h=u<i.length?i[u]:i[u]=0,d=h+u;l<=d&&d<c&&(i[u]=h+1)}i[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=[]),!da(e))throw new Error("Error trying to diff '".concat(T(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,r,i,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=this._trackByFn(s,r=e[s]),null!==o&&Object.is(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Object.is(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,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 r,i=e[ua()]();!(r=i.next()).done;)t(r.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,i)?(a&&(o=t._verifyReinsertion(o,e,i,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{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,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new hc(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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 r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,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 r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new fc),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 fc),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}}]),e}(),hc=function e(t,n){Object(s.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},dc=function(){function e(){Object(s.a)(this,e),this._head=null,this._tail=null}return Object(c.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}(),fc=function(){function e(){Object(s.a)(this,e),this.map=new Map}return Object(c.a)(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new dc,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:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function pc(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var mc=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"supports",value:function(e){return e instanceof Map||fa(e)}},{key:"create",value:function(){return new gc}}]),e}(),gc=function(){function e(){Object(s.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(c.a)(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{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||fa(e)))throw new Error("Error trying to diff '".concat(T(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,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._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 r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new vc(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)})}}]),e}(),vc=function e(t){Object(s.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};function bc(){return new yc([new cc])}var yc=function(){var e=function(){function e(t){Object(s.a)(this,e),this.factories=t}return Object(c.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 r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||bc())},deps:[[e,new tr,new er]]}}}]),e}();return e.\u0275prov=F({token:e,providedIn:"root",factory:bc}),e}();function _c(){return new wc([new mc])}var wc=function(){var e=function(){function e(t){Object(s.a)(this,e),this.factories=t}return Object(c.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 r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||_c())},deps:[[e,new tr,new er]]}}}]),e}();return e.\u0275prov=F({token:e,providedIn:"root",factory:_c}),e}();function kc(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&r.push(Ye(o)),je(o))for(var a=Ee;a<o.length;a++){var s=o[a],c=s[1].firstChild;null!==c&&kc(s[1],s,c,r)}var l=n.type;if(8&l)kc(e,t,n.child,r);else if(32&l)for(var u=$r(n,t),h=void 0;h=u();)r.push(h);else if(16&l){var d=yi(t,n);if(Array.isArray(d))r.push.apply(r,Object(g.a)(d));else{var f=Jr(t[16]);kc(f[1],f,d,r,!0)}}n=i?n.projectionNext:n.next}return r}var Cc=function(){function e(t,n){Object(s.a)(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return Object(c.a)(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return kc(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(je(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(si(e,n),Dn(t,n))}this._attachedToViewContainer=!1}ci(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){so(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Mo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){To(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){vt(!0);try{To(e,t,n)}finally{vt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,ki(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Sc=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this,e))._view=e,r}return Object(c.a)(n,[{key:"detectChanges",value:function(){Eo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){vt(!0);try{Eo(e)}finally{vt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Cc),xc=Mc,Oc=function(){var e=function e(){Object(s.a)(this,e)};return e.__NG_ELEMENT_ID__=xc,e.__ChangeDetectorRef__=!0,e}();function Mc(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Tc(ht(),ct(),e)}function Tc(e,t,n){if(!n&&Ae(e)){var r=Je(e.index,t);return new Cc(r,r)}return 47&e.type?new Cc(t[16],t):null}var Ec=[new mc],Pc=new yc([new cc]),jc=new wc(Ec),Ic=function(){return Rc(ht(),ct())},Ac=function(){var e=function e(){Object(s.a)(this,e)};return e.__NG_ELEMENT_ID__=Ic,e}(),Dc=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return Object(c.a)(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ki(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),$i(t,n,e),new Cc(n)}}]),n}(Ac);function Rc(e,t){return 4&e.type?new Dc(t,e,$s(e,t)):null}var Lc=function e(){Object(s.a)(this,e)},Nc=function e(){Object(s.a)(this,e)},Fc=function(){return Uc(ht(),ct())},Bc=function(){var e=function e(){Object(s.a)(this,e)};return e.__NG_ELEMENT_ID__=Fc,e}(),zc=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return Object(c.a)(n,[{key:"element",get:function(){return $s(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new kn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ln(this._hostTNode,this._hostLView);if(Jt(e)){var t=tn(e,this._hostLView),n=en(e);return new kn(t[1].data[n+8],t)}return new kn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Hc(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-Ee}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(Lc,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(je(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new zc(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,r){var i=Ee+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-Ee?(t[4]=n[i],An(n,Ee+r,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}(r,n,c,s);var l=_i(s,c),u=n[11],h=pi(u,c[7]);return null!==h&&function(e,t,n,r,i,o){r[0]=i,r[6]=t,ki(e,r,n,1,i,o)}(r,c[6],u,n,h,l),e.attachToViewContainerRef(),An(Vc(c),s,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=Hc(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=si(this._lContainer,t);n&&(Dn(Vc(this._lContainer),t),ci(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=si(this._lContainer,t);return n&&null!=Dn(Vc(this._lContainer),t)?new Cc(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}}]),n}(Bc);function Hc(e){return e[8]}function Vc(e){return e[8]||(e[8]=[])}function Uc(e,t){var n,r=t[e.index];if(je(r))n=r;else{var i;if(8&e.type)i=Ye(r);else{var o=t[11];i=o.createComment("");var a=Qe(e,t);hi(o,pi(o,a),i,function(e,t){return Ge(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=ko(r,t,i,e),Oo(t,n)}return new zc(n,e,t)}var qc={},Wc=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this)).ngModule=e,r}return Object(c.a)(n,[{key:"resolveComponentFactory",value:function(e){var t=Oe(e);return new Yc(t,this.ngModule)}}]),n}(Qs);function Gc(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Xc=new Tn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Gr}}),Yc=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(Fi).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return Object(c.a)(n,[{key:"inputs",get:function(){return Gc(this.componentDef.inputs)}},{key:"outputs",get:function(){return Gc(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,qc,i);return o!==qc||r===qc?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get(nc,Xe),c=a.get(oc,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Ge(e))return e.selectRootElement(t,n===te.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):oi(s.createRenderer(null,this.componentDef),u,function(e){var t=e.toLowerCase();return"svg"===t?Ue:"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Gr,clean:jo,playerHandler:null,flags:0},p=ao(0,null,null,1,0,null,null,null,null,null),m=Ki(null,p,f,d,null,null,s,l,c,a);Tt(m);try{var g=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=Qi(a,20,2,"#host",null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(Fo(s,c,!0),null!==e&&(Yt(i,e,c),null!==s.classes&&Oi(i,e,s.classes),null!==s.styles&&xi(i,e,s.styles)));var l=r.createRenderer(e,t),u=Ki(n,oo(t),null,t.onPush?64:16,n[20],s,r,l,null,null);return a.firstCreatePass&&(un(an(s,n),a,t.type),po(a,s),go(s,n.length,1)),Oo(n,u),n[20]=u}(h,this.componentDef,m,s,l);if(h)if(n)Yt(l,h,["ng-version",sc.full]);else{var v=function(e){for(var t=[],n=[],r=1,i=2;r<e.length;){var o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!Ai(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),b=v.attrs,y=v.classes;b&&Yt(l,h,b),y&&y.length>0&&Oi(l,h,y.join(" "))}if(o=Ze(p,Te),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)}i=function(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=ht();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),vo(e,r,t,Zi(e,t,1,null),n));var i=bn(t,e,r.directiveStart,r);Wr(i,t);var o=Qe(r,t);return o&&Wr(o,t),i}(o,n,t);if(r.components.push(a),e[8]=a,i&&i.forEach(function(e){return e(a,t)}),t.contentQueries){var s=ht();t.contentQueries(1,a,s.directiveStart)}var c=ht();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Lt(c.index),ho(n[1],c,0,c.directiveStart,c.directiveEnd,t),fo(t,a)),a}(g,this.componentDef,m,f,[ra]),$i(p,m,null)}finally{At()}return new Kc(this.componentType,i,$s(o,m),m,o)}}]),n}(Ys),Kc=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a){var c;return Object(s.a)(this,n),(c=t.call(this)).location=i,c._rootLView=o,c._tNode=a,c.instance=r,c.hostView=c.changeDetectorRef=new Sc(o),c.componentType=e,c}return Object(c.a)(n,[{key:"injector",get:function(){return new kn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(Xs),Qc=new Map,Zc=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;Object(s.a)(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=Object(p.a)(i),i.destroyCbs=[],i.componentFactoryResolver=new Wc(Object(p.a)(i));var o=Me(e),a=e[pe]||null;return a&&Ns(a),i._bootstrapComponents=Qr(o.bootstrap),i._r3Injector=Xo(e,r,[{provide:Lc,useValue:Object(p.a)(i)},{provide:Qs,useValue:i.componentFactoryResolver}],T(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return Object(c.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]:K.Default;return e===na||e===Lc||e===Bo?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}(Lc),$c=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r,i,o;return Object(s.a)(this,n),(r=t.call(this)).moduleType=e,null!==Me(e)&&(i=e,o=new Set,function e(t){var n=Me(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(T(t)," vs ").concat(T(t.name)))}(r,Qc.get(r),t),Qc.set(r,t));var i,a=d(Qr(n.imports));try{for(a.s();!(i=a.n()).done;){var s=i.value;o.has(s)||(o.add(s),e(s))}}catch(c){a.e(c)}finally{a.f()}}(i)),r}return Object(c.a)(n,[{key:"create",value:function(e){return new Zc(this.moduleType,e)}}]),n}(Nc);function Jc(e,t,n){var r=bt()+e,i=ct();return i[r]===Bi?pa(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function el(e,t,n,r){return rl(ct(),bt(),e,t,n,r)}function tl(e,t,n,r,i){return il(ct(),bt(),e,t,n,r,i)}function nl(e,t){var n=e[t];return n===Bi?void 0:n}function rl(e,t,n,r,i,o){var a=t+n;return ma(e,a,i)?pa(e,a+1,o?r.call(o,i):r(i)):nl(e,a+1)}function il(e,t,n,r,i,o,a){var s=t+n;return ga(e,s,i,o)?pa(e,s+2,a?r.call(a,i,o):r(i,o)):nl(e,s+2)}function ol(e,t){var n,r=lt(),i=e+Te;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new D("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Le(n.type)),a=Z(Sa);try{var s=rn(!1),c=o();return rn(s),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(r,ct(),i,c),c}finally{Z(a)}}function al(e,t,n){var r=e+Te,i=ct(),o=$e(i,r);return ll(i,cl(i,r)?rl(i,bt(),t,o.transform,n,o):o.transform(n))}function sl(e,t,n,r){var i=e+Te,o=ct(),a=$e(o,i);return ll(o,cl(o,i)?il(o,bt(),t,a.transform,n,r,a):a.transform(n,r))}function cl(e,t){return e[1].data[t].pure}function ll(e,t){return ha.isWrapped(t)&&(t=ha.unwrap(t),e[yt()]=Bi),t}var ul=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(s.a)(this,n),(e=t.call(this)).__isAsync=r,e}return Object(c.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,r){var i,s=function(e){return null},c=function(){return null};e&&"object"==typeof e?(i=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()})):(i=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)}),r&&(c=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var l=Object(o.a)(Object(a.a)(n.prototype),"subscribe",this).call(this,i,s,c);return e instanceof w.a&&e.add(l),l}}]),n}(k.b);function hl(){return this._results[ua()]()}var dl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object(s.a)(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ua(),r=e.prototype;r[n]||(r[n]=hl)}return Object(c.a)(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ul)}},{key:"get",value:function(e){return this._results[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,t){var n=this;n.dirty=!1;var r=jn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(n._results,r,t))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),fl=function(){function e(t){Object(s.a)(this,e),this.queryList=t,this.matches=null}return Object(c.a)(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),pl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(s.a)(this,e),this.queries=t}return Object(c.a)(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o<r;o++){var a=n.getByIndex(o);i.push(this.queries[a.indexInDeclarationView].clone())}return new e(i)}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!==Tl(e,t).matches&&this.queries[t].setDirty()}}]),e}(),ml=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object(s.a)(this,e),this.predicate=t,this.flags=n,this.read=r},gl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(s.a)(this,e),this.queries=t}return Object(c.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,r=0;r<this.length;r++){var i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,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:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),vl=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;Object(s.a)(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return Object(c.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!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&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 r=0;r<n.length;r++){var i=n[r];this.matchTNodeWithReadOption(e,t,bl(t,i)),this.matchTNodeWithReadOption(e,t,vn(t,e,i,!1,!1))}else n===Ac?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,vn(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===ec||r===Bc||r===Ac&&4&t.type)this.addMatch(t.index,-2);else{var i=vn(t,e,r,!1,!1);null!==i&&this.addMatch(t.index,i)}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 bl(e,t){var n=e.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function yl(e,t,n,r){return-1===n?function(e,t){return 11&e.type?$s(e,t):4&e.type?Rc(e,t):null}(t,e):-2===n?function(e,t,n){return n===ec?$s(t,e):n===Ac?Rc(t,e):n===Bc?Uc(t,e):void 0}(e,t,r):bn(e,e[1],n,t)}function _l(e,t,n,r){var i=t[19].queries[r];if(null===i.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:yl(t,o[l],a[c+1],n.metadata.read))}i.matches=s}return i.matches}function wl(e,t,n,r){var i=e.queries.getByIndex(n),o=i.matches;if(null!==o)for(var a=_l(e,t,i,n),s=0;s<o.length;s+=2){var c=o[s];if(c>0)r.push(a[s/2]);else{for(var l=o[s+1],u=t[-c],h=Ee;h<u.length;h++){var d=u[h];d[17]===d[3]&&wl(d[1],d,l,r)}if(null!==u[9])for(var f=u[9],p=0;p<f.length;p++){var m=f[p];wl(m[1],m,l,r)}}}return r}function kl(e){var t=ct(),n=lt(),r=St();xt(r+1);var i=Tl(n,r);if(e.dirty&&tt(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{var o=i.crossesNgTemplate?wl(n,t,r,[]):_l(n,t,i,r);e.reset(o,tc),e.notifyOnChanges()}return!0}return!1}function Cl(e,t,n){var r=lt();r.firstCreatePass&&(Ml(r,new ml(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Ol(r,ct(),t)}function Sl(e,t,n,r){var i=lt();if(i.firstCreatePass){var o=ht();Ml(i,new ml(t,n,r),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}Ol(i,ct(),n)}function xl(){return e=ct(),t=St(),e[19].queries[t].queryList;var e,t}function Ol(e,t,n){var r=new dl(4==(4&n));so(e,t,r,r.destroy),null===t[19]&&(t[19]=new pl),t[19].queries.push(new fl(r))}function Ml(e,t,n){null===e.queries&&(e.queries=new gl),e.queries.track(new vl(t,n))}function Tl(e,t){return e.queries.getByIndex(t)}var El=new Tn("Application Initializer"),Pl=function(){var e=function(){function e(t){var n=this;Object(s.a)(this,e),this.appInits=t,this.resolve=Zs,this.reject=Zs,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return Object(c.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 r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Da(i)&&t.push(i)}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)(Gn(El,8))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),jl=new Tn("AppId"),Il={provide:jl,useFactory:function(){return"".concat(Al()).concat(Al()).concat(Al())},deps:[]};function Al(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Dl=new Tn("Platform Initializer"),Rl=new Tn("Platform ID"),Ll=new Tn("appBootstrapListener"),Nl=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.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=F({token:e,factory:e.\u0275fac}),e}(),Fl=new Tn("LocaleId"),Bl=new Tn("DefaultCurrencyCode"),zl=function e(t,n){Object(s.a)(this,e),this.ngModuleFactory=t,this.componentFactories=n},Hl=function(e){return new $c(e)},Vl=Hl,Ul=function(e){return Promise.resolve(Hl(e))},ql=function(e){var t=Hl(e),n=Qr(Me(e).declarations).reduce(function(e,t){var n=Oe(t);return n&&e.push(new Yc(n)),e},[]);return new zl(t,n)},Wl=ql,Gl=function(e){return Promise.resolve(ql(e))},Xl=function(){var e=function(){function e(){Object(s.a)(this,e),this.compileModuleSync=Vl,this.compileModuleAsync=Ul,this.compileModuleAndAllComponentsSync=Wl,this.compileModuleAndAllComponentsAsync=Gl}return Object(c.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=F({token:e,factory:e.\u0275fac}),e}(),Yl=function(){return Promise.resolve(0)}();function Kl(e){"undefined"==typeof Zone?Yl.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Ql=function(){function e(t){var n=t.enableLongStackTrace,r=void 0!==n&&n,i=t.shouldCoalesceEventChangeDetection,o=void 0!==i&&i,a=t.shouldCoalesceRunChangeDetection,c=void 0!==a&&a;if(Object(s.a)(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ul(!1),this.onMicrotaskEmpty=new ul(!1),this.onStable=new ul(!1),this.onError=new ul(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var l,u,h=this;h._nesting=0,h._outer=h._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(h._inner=h._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(h._inner=h._inner.fork(Zone.longStackTraceZoneSpec)),h.shouldCoalesceEventChangeDetection=!c&&o,h.shouldCoalesceRunChangeDetection=c,h.lastRequestAnimationFrameId=-1,h.nativeRequestAnimationFrame=function(){var e=ae.requestAnimationFrame,t=ae.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,u=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ae,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Jl(e),$l(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Jl(e))}(l)},(l=h)._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,r,i,o){try{return eu(l),e.invokeTask(n,r,i,o)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||l.shouldCoalesceRunChangeDetection)&&u(),tu(l)}},onInvoke:function(e,t,n,r,i,o,a){try{return eu(l),e.invoke(n,r,i,o,a)}finally{l.shouldCoalesceRunChangeDetection&&u(),tu(l)}},onHasTask:function(e,t,n,r){e.hasTask(n,r),t===n&&("microTask"==r.change?(l._hasPendingMicrotasks=r.microTask,Jl(l),$l(l)):"macroTask"==r.change&&(l.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,n,r){return e.handleError(n,r),l.runOutsideAngular(function(){return l.onError.emit(r)}),!1}})}return Object(c.a)(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Zl,Zs,Zs);try{return i.runTask(o,t,n)}finally{i.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}(),Zl={};function $l(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 Jl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function eu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tu(e){e._nesting--,$l(e)}var nu,ru=function(){function e(){Object(s.a)(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ul,this.onMicrotaskEmpty=new ul,this.onStable=new ul,this.onError=new ul}return Object(c.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,r){return e.apply(t,n)}}]),e}(),iu=function(){var e=function(){function e(t){var n=this;Object(s.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(c.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(){Ql.assertNotInAngularZone(),Kl(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())Kl(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 r=this,i=-1;t&&t>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,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)(Gn(Ql))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),ou=function(){var e=function(){function e(){Object(s.a)(this,e),this._applications=new Map,au.addToWindow(this)}return Object(c.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 au.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),au=new(function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),su=!0,cu=!1;function lu(){return cu=!0,su}var uu=function(e,t,n){var r=new $c(n);return Promise.resolve(r)},hu=new Tn("AllowMultipleToken"),du=function e(t,n){Object(s.a)(this,e),this.name=t,this.token=n};function fu(e){if(nu&&!nu.destroyed&&!nu.injector.get(hu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nu=e.get(vu);var t=e.get(Dl,null);return t&&t.forEach(function(e){return e()}),nu}function pu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new Tn(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=gu();if(!o||o.injector.get(hu,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Ho,useValue:"platform"});fu(na.create({providers:a,name:r}))}return mu(i)}}function mu(e){var t=gu();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 gu(){return nu&&!nu.destroyed?nu:null}var vu=function(){var e=function(){function e(t){Object(s.a)(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return Object(c.a)(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(r={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new ru:("zone.js"===n?void 0:n)||new Ql({enableLongStackTrace:lu(),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:Ql,useValue:o}];return o.run(function(){var t=na.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(qr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){_u(i._modules,n),e.unsubscribe()})}),function(e,t,r){try{var o=((a=n.injector.get(Pl)).runInitializers(),a.donePromise.then(function(){return Ns(n.injector.get(Fl,Ls)||Ls),i._moduleDoBootstrap(n),n}));return Da(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}(r,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=bu({},n);return uu(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(yu);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(T(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:"injector",get:function(){return this._injector}},{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:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(na))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function bu(e,t){return Array.isArray(t)?t.reduce(bu,e):Object.assign(Object.assign({},e),t)}var yu=function(){var e=function(){function e(t,n,r,i,o){var a=this;Object(s.a)(this,e),this._zone=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var c=new C.a(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),l=new C.a(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Ql.assertNotInAngularZone(),Kl(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Ql.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(S.a)(c,l.pipe(Object(x.a)()))}return Object(c.a)(e,[{key:"bootstrap",value:function(e,t){var n,r=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 Ys?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(Lc),o=n.create(na.NULL,[],t||n.selector,i),a=o.location.nativeElement,s=o.injector.get(iu,null),c=s&&o.injector.get(ou);return s&&c&&c.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),_u(r.components,o),c&&c.unregisterApplication(a)}),this._loadComponent(o),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(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}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;_u(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ll,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Ql),Gn(na),Gn(qr),Gn(Qs),Gn(Pl))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function _u(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var wu=function e(){Object(s.a)(this,e)},ku=function e(){Object(s.a)(this,e)},Cu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Su=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._compiler=t,this._config=n||Cu}return Object(c.a)(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=f(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("zn8P")(i).then(function(e){return e[o]}).then(function(e){return xu(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=f(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return xu(e,r,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Xl),Gn(ku,8))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function xu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Ou=pu(null,"core",[{provide:Rl,useValue:"unknown"},{provide:vu,deps:[na]},{provide:ou,deps:[]},{provide:Nl,deps:[]}]),Mu=[{provide:yu,useClass:yu,deps:[Ql,na,qr,Qs,Pl]},{provide:Xc,deps:[Ql],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Pl,useClass:Pl,deps:[[new er,El]]},{provide:Xl,useClass:Xl,deps:[]},Il,{provide:yc,useFactory:function(){return Pc},deps:[]},{provide:wc,useFactory:function(){return jc},deps:[]},{provide:Fl,useFactory:function(e){return Ns(e=e||"undefined"!=typeof $localize&&$localize.locale||Ls),e},deps:[[new Jn(Fl),new er,new tr]]},{provide:Bl,useValue:"USD"}],Tu=function(){var e=function e(t){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)(Gn(yu))},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:Mu}),e}(),Eu=null;function Pu(){return Eu}var ju=function e(){Object(s.a)(this,e)},Iu=new Tn("DocumentToken"),Au=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({factory:Du,token:e,providedIn:"platform"}),e}();function Du(){return Gn(Lu)}var Ru=new Tn("Location Initialized"),Lu=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this))._doc=e,r._init(),r}return Object(c.a)(n,[{key:"_init",value:function(){this.location=Pu().getLocation(),this._history=Pu().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Pu().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Pu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Pu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{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}},{key:"pushState",value:function(e,t,n){Nu()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Nu()?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}}]),n}(Au);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu))},e.\u0275prov=F({factory:Fu,token:e,providedIn:"platform"}),e}();function Nu(){return!!window.history.pushState}function Fu(){return new Lu(Gn(Iu))}function Bu(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 zu(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 Hu(e){return e&&"?"!==e[0]?"?"+e:e}var Vu=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({factory:Uu,token:e,providedIn:"root"}),e}();function Uu(e){var t=Gn(Iu).location;return new Wu(Gn(Au),t&&t.origin||"")}var qu=new Tn("appBaseHref"),Wu=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;if(Object(s.a)(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)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 i._baseHref=r,i}return Object(c.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 Bu(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Hu(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Hu(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Hu(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Vu);return e.\u0275fac=function(t){return new(t||e)(Gn(Au),Gn(qu,8))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Gu=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return Object(c.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=Bu(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Hu(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Hu(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Vu);return e.\u0275fac=function(t){return new(t||e)(Gn(Au),Gn(qu,8))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Xu=function(){var e=function(){function e(t,n){var r=this;Object(s.a)(this,e),this._subject=new ul,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=zu(Ku(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return Object(c.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+Hu(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ku(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+Hu(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+Hu(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)(Gn(Vu),Gn(Au))},e.normalizeQueryParams=Hu,e.joinWithSlash=Bu,e.stripTrailingSlash=zu,e.\u0275prov=F({factory:Yu,token:e,providedIn:"root"}),e}();function Yu(){return new Xu(Gn(Vu),Gn(Au))}function Ku(e){return e.replace(/\/index.html$/,"")}var Qu=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}({}),Zu=function e(){Object(s.a)(this,e)},$u=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this)).locale=e,r}return Object(c.a)(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ds(t);if(n)return n;var r=t.split("-")[0];if(n=Ds(r))return n;if("en"===r)return Is;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Rs.PluralCase]}(t||this.locale)(e)){case Qu.Zero:return"zero";case Qu.One:return"one";case Qu.Two:return"two";case Qu.Few:return"few";case Qu.Many:return"many";default:return"other"}}}]),n}(Zu);return e.\u0275fac=function(t){return new(t||e)(Gn(Fl))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function Ju(e,t){t=encodeURIComponent(t);var n,r=d(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=f(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(c){r.e(c)}finally{r.f()}return null}var eh=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object(c.a)(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&&(da(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{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(T(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)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(yc),Sa(wc),Sa(ec),Sa(rc))},e.\u0275dir=Se({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),th=function(){function e(t,n,r,i){Object(s.a)(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return Object(c.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,r){Object(s.a)(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object(c.a)(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=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(r){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,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new th(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new rh(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var c=new rh(e,s);n.push(c)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);a.context.index=i,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:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(Ac),Sa(yc))},e.\u0275dir=Se({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),rh=function e(t,n){Object(s.a)(this,e),this.record=t,this.view=n},ih=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._viewContainer=t,this._context=new oh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return Object(c.a)(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){ah("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){ah("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{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:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),oh=function e(){Object(s.a)(this,e),this.$implicit=null,this.ngIf=null};function ah(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(T(t),"'."))}var sh=function(){function e(t,n){Object(s.a)(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return Object(c.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}(),ch=function(){var e=function(){function e(){Object(s.a)(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object(c.a)(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{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)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),lh=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this.ngSwitch=r,r._addCase(),this._view=new sh(t,n)}return Object(c.a)(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(Ac),Sa(ch,1))},e.\u0275dir=Se({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),uh=function(){var e=function e(t,n,r){Object(s.a)(this,e),r._addDefault(new sh(t,n))};return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(Ac),Sa(ch,1))},e.\u0275dir=Se({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),hh=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._ngEl=t,this._differs=n,this._renderer=r,this._ngStyle=null,this._differ=null}return Object(c.a)(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{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=f(e.split("."),2),r=n[0],i=n[1];null!=(t=null!=t&&i?"".concat(t).concat(i):t)?this._renderer.setStyle(this._ngEl.nativeElement,r,t):this._renderer.removeStyle(this._ngEl.nativeElement,r)}},{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)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(wc),Sa(rc))},e.\u0275dir=Se({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),dh=function(){var e=function(){function e(t){Object(s.a)(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return Object(c.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 r,i=d(n);try{for(i.s();!(r=i.n()).done;)if(-1===t.indexOf(r.value))return!0}catch(o){i.e(o)}finally{i.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this._viewRef.context[r]=this.ngTemplateOutletContext[r]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Bc))},e.\u0275dir=Se({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Fe]}),e}(),fh=function(){function e(){Object(s.a)(this,e)}return Object(c.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}(),ph=new(function(){function e(){Object(s.a)(this,e)}return Object(c.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}()),mh=new fh,gh=function(){var e=function(){function e(t){Object(s.a)(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return Object(c.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(Da(t))return ph;if(Ra(t))return mh;throw n=e,Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(T(n),"'"));var n}},{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)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K.Default,t=Mc(!0);if(null!=t||e&K.Optional)return t;N("ChangeDetectorRef")}())},e.\u0275pipe=xe({name:"async",type:e,pure:!1}),e}(),vh=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[{provide:Zu,useClass:$u}]}),e}();function bh(e){return"browser"===e}var yh=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275prov=F({token:e,providedIn:"root",factory:function(){return new _h(Gn(Iu),window)}}),e}(),_h=function(){function e(t,n){Object(s.a)(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return Object(c.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.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){var t;if(this.supportsScrolling()){var n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}}},{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,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=wh(this.window.history)||wh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function wh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var kh,Ch=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.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=Sh||(Sh=document.querySelector("base"))?Sh.getAttribute("href"):null;return null==n?null:(t=n,kh||(kh=document.createElement("a")),kh.setAttribute("href",t),"/"===kh.pathname.charAt(0)?kh.pathname:"/"+kh.pathname)}},{key:"resetBaseElement",value:function(){Sh=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 Ju(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Eu||(Eu=e)}}]),n}(function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.call(this)}return Object(c.a)(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(ju)),Sh=null,xh=new Tn("TRANSITION_ID"),Oh=[{provide:El,useFactory:function(e,t,n){return function(){n.get(Pl).donePromise.then(function(){var n=Pu();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:[xh,Iu,na],multi:!0}],Mh=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"addToWindow",value:function(e){ae.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},ae.getAllAngularTestabilities=function(){return e.getAllTestabilities()},ae.getAllAngularRootElements=function(){return e.getAllRootElements()},ae.frameworkStabilizers||(ae.frameworkStabilizers=[]),ae.frameworkStabilizers.push(function(e){var t=ae.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Pu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,au=t}}]),e}(),Th=new Tn("EventManagerPlugins"),Eh=function(){var e=function(){function e(t,n){var r=this;Object(s.a)(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return Object(c.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,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Th),Gn(Ql))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Ph=function(){function e(t){Object(s.a)(this,e),this._doc=t}return Object(c.a)(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=Pu().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),jh=function(){var e=function(){function e(){Object(s.a)(this,e),this._stylesSet=new Set}return Object(c.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=F({token:e,factory:e.\u0275fac}),e}(),Ih=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return Object(c.a)(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})}},{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 Pu().remove(e)})}}]),n}(jh);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Ah={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/"},Dh=/%COMP%/g,Rh="%COMP%",Lh="_nghost-".concat(Rh),Nh="_ngcontent-".concat(Rh);function Fh(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?Fh(e,i,n):(i=i.replace(Dh,e),n.push(i))}return n}function Bh(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var zh=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Hh(t)}return Object(c.a)(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case te.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Vh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case te.ShadowDom:return new Uh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=Fh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),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)(Gn(Eh),Gn(Ih),Gn(jl))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Hh=function(){function e(t){Object(s.a)(this,e),this.eventManager=t,this.data=Object.create(null)}return Object(c.a)(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Ah[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,r){if(r){t=r+":"+t;var i=Ah[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=Ah[n];r?e.removeAttributeNS(r,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,r){r&(Zr.DashCase|Zr.Important)?e.style.setProperty(t,n,r&Zr.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Zr.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,Bh(n)):this.eventManager.addEventListener(e,t,Bh(n))}}]),e}(),Vh=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;Object(s.a)(this,n),(a=t.call(this,e)).component=i;var c=Fh(o+"-"+i.id,i.styles,[]);return r.addStyles(c),a.contentAttr=Nh.replace(Dh,o+"-"+i.id),a.hostAttr=Lh.replace(Dh,o+"-"+i.id),a}return Object(c.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 r=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,r,this.contentAttr,""),r}}]),n}(Hh),Uh=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;Object(s.a)(this,n),(a=t.call(this,e)).sharedStylesHost=r,a.hostEl=i,a.shadowRoot=i.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var c=Fh(o.id,o.styles,[]),l=0;l<c.length;l++){var u=document.createElement("style");u.textContent=c[l],a.shadowRoot.appendChild(u)}return a}return Object(c.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,r){return Object(o.a)(Object(a.a)(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{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}(Hh),qh=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){return Object(s.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Ph);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Wh=["alt","control","meta","shift"],Gh={"\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"},Xh={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"},Yh={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Kh=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){return Object(s.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Pu().onAndCancel(e,i.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(Wh.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,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&&Xh.hasOwnProperty(t)&&(t=Xh[t]))}return Gh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Wh.forEach(function(r){r!=n&&(0,Yh[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Ph);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Qh=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({factory:function(){return Gn(Zh)},token:e,providedIn:"root"}),e}(),Zh=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this))._doc=e,r}return Object(c.a)(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Lr.NONE:return t;case Lr.HTML:return hr(t,"HTML")?ur(t):Dr(this._doc,String(t)).toString();case Lr.STYLE:return hr(t,"Style")?ur(t):t;case Lr.SCRIPT:if(hr(t,"Script"))return ur(t);throw new Error("unsafe value used in a script context");case Lr.URL:return dr(t),hr(t,"URL")?ur(t):vr(String(t));case Lr.RESOURCE_URL:if(hr(t,"ResourceURL"))return ur(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new or(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new ar(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new sr(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new cr(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new lr(e)}}]),n}(Qh);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu))},e.\u0275prov=F({factory:function(){return e=Gn(Bo),new Zh(e.get(Iu));var e},token:e,providedIn:"root"}),e}(),$h=pu(Ou,"browser",[{provide:Rl,useValue:"browser"},{provide:Dl,useValue:function(){Ch.makeCurrent(),Mh.init()},multi:!0},{provide:Iu,useFactory:function(){return function(e){qe=e}(document),document},deps:[]}]),Jh=[[],{provide:Ho,useValue:"root"},{provide:qr,useFactory:function(){return new qr},deps:[]},{provide:Th,useClass:qh,multi:!0,deps:[Iu,Ql,Rl]},{provide:Th,useClass:Kh,multi:!0,deps:[Iu]},[],{provide:zh,useClass:zh,deps:[Eh,Ih,jl]},{provide:nc,useExisting:zh},{provide:jh,useExisting:Ih},{provide:Ih,useClass:Ih,deps:[Iu]},{provide:iu,useClass:iu,deps:[Ql]},{provide:Eh,useClass:Eh,deps:[Th,Ql]},[]],ed=function(){var e=function(){function e(t){if(Object(s.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(c.a)(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:jl,useValue:t.appId},{provide:xh,useExisting:jl},Oh]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(e,12))},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:Jh,imports:[vh,Tu]}),e}();function td(){return new nd(Gn(Iu))}var nd=function(){var e=function(){function e(t){Object(s.a)(this,e),this._doc=t}return Object(c.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)(Gn(Iu))},e.\u0275prov=F({factory:td,token:e,providedIn:"root"}),e}(),rd="undefined"!=typeof window&&window||{},id=function e(t,n){Object(s.a)(this,e),this.msPerTick=t,this.numTicks=n},od=function(){function e(t){Object(s.a)(this,e),this.appRef=t.injector.get(yu)}return Object(c.a)(e,[{key:"timeChangeDetection",value:function(e){var t=e&&e.record,n="Change Detection",r=null!=rd.console.profile;t&&r&&rd.console.profile(n);for(var i=Pu().performanceNow(),o=0;o<5||Pu().performanceNow()-i<500;)this.appRef.tick(),o++;var a=Pu().performanceNow();t&&r&&rd.console.profileEnd(n);var s=(a-i)/o;return rd.console.log("ran ".concat(o," change detection cycles")),rd.console.log("".concat(s.toFixed(2)," ms per check")),new id(s,o)}}]),e}(),ad=n("Cfvw"),sd=n("cp0P"),cd=n("lJxs"),ld=function e(){Object(s.a)(this,e)},ud=new Tn("NgValueAccessor"),hd={provide:ud,useExisting:j(function(){return fd}),multi:!0},dd=new Tn("CompositionEventMode"),fd=function(){var e=function(){function e(t,n,r){var i;Object(s.a)(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=r,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Pu()?Pu().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return Object(c.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)(Sa(rc),Sa(ec),Sa(dd,8))},e.\u0275dir=Se({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&&Na("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:[Gs([hd])]}),e}();function pd(e){return null==e||0===e.length}function md(e){return null!=e&&"number"==typeof e.length}var gd=new Tn("NgValidators"),vd=new Tn("NgAsyncValidators"),bd=/^(?=.{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])?)*$/,yd=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,null,[{key:"min",value:function(e){return t=e,function(e){if(pd(e.value)||pd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null};var t}},{key:"max",value:function(e){return t=e,function(e){if(pd(e.value)||pd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null};var t}},{key:"required",value:function(e){return function(e){return pd(e.value)?{required:!0}:null}(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return pd(e.value)||bd.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return t=e,function(e){return pd(e.value)||!md(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"maxLength",value:function(e){return t=e,function(e){return md(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"pattern",value:function(e){return(t=e)?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(pd(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):_d;var t,n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Od(e)}},{key:"composeAsync",value:function(e){return Td(e)}}]),e}();function _d(e){return null}function wd(e){return null!=e}function kd(e){var t=Da(e)?Object(ad.a)(e):e;return La(t),t}function Cd(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 Sd(e,t){return t.map(function(t){return t(e)})}function xd(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Od(e){if(!e)return null;var t=e.filter(wd);return 0==t.length?null:function(e){return Cd(Sd(e,t))}}function Md(e){return null!=e?Od(xd(e)):null}function Td(e){if(!e)return null;var t=e.filter(wd);return 0==t.length?null:function(e){var n=Sd(e,t).map(kd);return Object(sd.a)(n).pipe(Object(cd.a)(Cd))}}function Ed(e){return null!=e?Td(xd(e)):null}function Pd(e,t){return null===e?[t]:Array.isArray(e)?[].concat(Object(g.a)(e),[t]):[e,t]}function jd(e){return e._rawValidators}function Id(e){return e._rawAsyncValidators}var Ad=function(){var e=function(){function e(){Object(s.a)(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return Object(c.a)(e,[{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}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Md(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ed(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{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}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e}),e}(),Dd=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Ad);return e.\u0275fac=function(t){return Rd(t||e)},e.\u0275dir=Se({type:e,features:[ia]}),e}(),Rd=Cn(Dd),Ld=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Ad),Nd=function(){function e(t){Object(s.a)(this,e),this._cd=t}return Object(c.a)(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Fd=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){return Object(s.a)(this,n),t.call(this,e)}return n}(Nd);return e.\u0275fac=function(t){return new(t||e)(Sa(Ld,2))},e.\u0275dir=Se({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&cs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[ia]}),e}(),Bd=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){return Object(s.a)(this,n),t.call(this,e)}return n}(Nd);return e.\u0275fac=function(t){return new(t||e)(Sa(Dd,10))},e.\u0275dir=Se({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&cs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[ia]}),e}();function zd(e,t){return[].concat(Object(g.a)(t.path),[e])}function Hd(e,t){qd(e,t,!0),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&&Gd(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Gd(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function Vd(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Wd(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function Ud(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function qd(e,t,n){var r=jd(e);null!==t.validator?e.setValidators(Pd(r,t.validator)):"function"==typeof r&&e.setValidators([r]);var i=Id(e);if(null!==t.asyncValidator?e.setAsyncValidators(Pd(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]),n){var o=function(){return e.updateValueAndValidity()};Ud(t._rawValidators,o),Ud(t._rawAsyncValidators,o)}}function Wd(e,t,n){var r=!1;if(null!==e){if(null!==t.validator){var i=jd(e);if(Array.isArray(i)&&i.length>0){var o=i.filter(function(e){return e!==t.validator});o.length!==i.length&&(r=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=Id(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(r=!0,e.setAsyncValidators(s))}}}if(n){var c=function(){};Ud(t._rawValidators,c),Ud(t._rawAsyncValidators,c)}return r}function Gd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Xd(e,t){qd(e,t,!1)}function Yd(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function Kd(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 Qd(e,t){if(!t)return null;Array.isArray(t);var n=void 0,r=void 0,i=void 0;return t.forEach(function(e){e.constructor===fd?n=e:Object.getPrototypeOf(e.constructor)===ld?r=e:i=e}),i||r||n||null}function Zd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $d="VALID",Jd="INVALID",ef="PENDING",tf="DISABLED";function nf(e){return(sf(e)?e.validators:e)||null}function rf(e){return Array.isArray(e)?Md(e):e||null}function of(e,t){return(sf(t)?t.asyncValidators:e)||null}function af(e){return Array.isArray(e)?Ed(e):e||null}function sf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var cf=function(){function e(t,n){Object(s.a)(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=rf(this._rawValidators),this._composedAsyncValidatorFn=af(this._rawAsyncValidators)}return Object(c.a)(e,[{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===$d}},{key:"invalid",get:function(){return this.status===Jd}},{key:"pending",get:function(){return this.status==ef}},{key:"disabled",get:function(){return this.status===tf}},{key:"enabled",get:function(){return this.status!==tf}},{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:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=rf(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=af(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=ef,!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=tf,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=$d,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!==$d&&this.status!==ef||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()?tf:$d}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=ef,this._hasOwnPendingAsyncValidator=!0;var n=kd(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 r=e;return t.forEach(function(e){r=r instanceof uf?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof hf&&r.at(e)||null}),r}(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:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{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 ul,this.statusChanges=new ul}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?tf:this.errors?Jd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ef)?ef:this._anyControlsHaveStatus(Jd)?Jd:$d}},{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){sf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),lf=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return Object(s.a)(this,n),(e=t.call(this,nf(i),of(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return Object(c.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:"_unregisterOnChange",value:function(e){Zd(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Zd(this._onDisabledChange,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}(cf),uf=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,nf(r),of(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return Object(c.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(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{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]:{};null!=e&&(Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{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,r){n.reset(e[r],{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 lf?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){var r=t.controls[n];r&&e(r,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 r=n[t],i=this.controls[r];if(this.contains(r)&&e(i))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),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}(cf),hf=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,nf(r),of(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return Object(c.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:"length",get:function(){return this.controls.length}},{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,r){t._throwIfControlMissing(r),t.at(r).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]:{};null!=e&&(e.forEach(function(e,r){t.at(r)&&t.at(r).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,r){n.reset(e[r],{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 lf?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)}}]),n}(cf),df={provide:Dd,useExisting:j(function(){return pf})},ff=function(){return Promise.resolve(null)}(),pf=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new ul,i.form=new uf({},Md(e),Ed(r)),i}return Object(c.a)(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{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}},{key:"addControl",value:function(e){var t=this;ff.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Hd(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;ff.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Zd(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;ff.then(function(){var n=t._findContainer(e.path),r=new uf({});Xd(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;ff.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;ff.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,Kd(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}}]),n}(Dd);return e.\u0275fac=function(t){return new(t||e)(Sa(gd,10),Sa(vd,10))},e.\u0275dir=Se({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Na("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gs([df]),ia]}),e}(),mf={provide:Ld,useExisting:j(function(){return vf})},gf=function(){return Promise.resolve(null)}(),vf=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this)).control=new lf,a._registered=!1,a.update=new ul,a._parent=e,a._setValidators(r),a._setAsyncValidators(i),a.valueAccessor=Qd(Object(p.a)(a),o),a}return Object(c.a)(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Yd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?zd(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{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(){Hd(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;gf.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;gf.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}}]),n}(Ld);return e.\u0275fac=function(t){return new(t||e)(Sa(Dd,9),Sa(gd,10),Sa(vd,10),Sa(ud,10))},e.\u0275dir=Se({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:[Gs([mf]),ia,Fe]}),e}(),bf=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),yf={provide:ud,useExisting:j(function(){return _f}),multi:!0},_f=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this))._renderer=e,i._elementRef=r,i.onChange=function(e){},i.onTouched=function(){},i}return Object(c.a)(n,[{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)}}]),n}(ld);return e.\u0275fac=function(t){return new(t||e)(Sa(rc),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Na("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Gs([yf]),ia]}),e}(),wf=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),kf=new Tn("NgModelWithFormControlWarning"),Cf={provide:Dd,useExisting:j(function(){return Sf})},Sf=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this)).validators=e,i.asyncValidators=r,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new ul,i._setValidators(e),i._setAsyncValidators(r),i}return Object(c.a)(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Wd(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Hd(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){Vd(e.control||null,e),Zd(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(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,Kd(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=t.control,r=e.form.get(t.path);n!==r&&(Vd(n||null,t),r instanceof lf&&(Hd(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);Xd(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return Wd(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){qd(this.form,this,!1),this._oldForm&&Wd(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(Dd);return e.\u0275fac=function(t){return new(t||e)(Sa(gd,10),Sa(vd,10))},e.\u0275dir=Se({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Na("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gs([Cf]),ia,Fe]}),e}(),xf={provide:Ld,useExisting:j(function(){return Of})},Of=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a){var c;return Object(s.a)(this,n),(c=t.call(this))._ngModelWarningConfig=a,c._added=!1,c.update=new ul,c._ngModelWarningSent=!1,c._parent=e,c._setValidators(r),c._setAsyncValidators(i),c.valueAccessor=Qd(Object(p.a)(c),o),c}return Object(c.a)(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),Yd(e,this.viewModel)&&(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:"path",get:function(){return zd(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{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}}]),n}(Ld);return e.\u0275fac=function(t){return new(t||e)(Sa(Dd,13),Sa(gd,10),Sa(vd,10),Sa(ud,10),Sa(kf,8))},e.\u0275dir=Se({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Gs([xf]),ia,Fe]}),e._ngModelWarningSentOnce=!1,e}(),Mf=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[wf]]}),e}(),Tf=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[Mf]}),e}(),Ef=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:kf,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[Mf]}),e}();function Pf(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var jf=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(Pf(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new uf(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new lf(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new hf(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){return e instanceof lf||e instanceof uf||e instanceof hf?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=F({factory:function(){return new e},token:e,providedIn:Ef}),e}();function If(e){return null!=e&&"false"!=="".concat(e)}function Af(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Df(e)?Number(e):t}function Df(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Rf(e){return Array.isArray(e)?e:[e]}function Lf(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Nf(e){return e instanceof ec?e.nativeElement:e}var Ff=n("7+OI"),Bf=n("LRne"),zf=function e(){Object(s.a)(this,e)};function Hf(e){return e&&"function"==typeof e.connect}var Vf,Uf=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"applyChanges",value:function(e,t,n,r,i){e.forEachOperation(function(e,r,o){var a,s;if(null==e.previousIndex){var c=n(e,r,o);a=t.createEmbeddedView(c.templateRef,c.context,c.index),s=1}else null==o?(t.remove(r),s=3):(a=t.get(r),t.move(a,o),s=2);i&&i({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),qf=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object(s.a)(this,e),this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new k.b,r&&r.length&&(n?r.forEach(function(e){return t._markSelected(e)}):this._markSelected(r[0]),this._selectedToEmit.length=0)}return Object(c.a)(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];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),r=0;r<t;r++)n[r]=arguments[r];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){}}]),e}(),Wf=function(){var e=function(){function e(){Object(s.a)(this,e),this._listeners=[]}return Object(c.a)(e,[{key:"notify",value:function(e,t){var n,r=d(this._listeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e,t)}catch(i){r.e(i)}finally{r.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=F({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Gf=new Tn("_ViewRepeater"),Xf=new Tn("cdk-dir-doc",{providedIn:"root",factory:function(){return Xn(Iu)}}),Yf=function(){var e=function(){function e(t){if(Object(s.a)(this,e),this.value="ltr",this.change=new ul,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(c.a)(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Xf,8))},e.\u0275prov=F({factory:function(){return new e(Gn(Xf,8))},token:e,providedIn:"root"}),e}(),Kf=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}();try{Vf="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(vSe){Vf=!1}var Qf,Zf,$f,Jf,ep=function(){var e=function e(t){Object(s.a)(this,e),this._platformId=t,this.isBrowser=this._platformId?bh(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&&!Vf)&&"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)(Gn(Rl))},e.\u0275prov=F({factory:function(){return new e(Gn(Rl))},token:e,providedIn:"root"}),e}(),tp=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),np=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rp(){if(Qf)return Qf;if("object"!=typeof document||!document)return Qf=new Set(np);var e=document.createElement("input");return Qf=new Set(np.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function ip(e){return function(){if(null==Zf&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Zf=!0}}))}finally{Zf=Zf||!1}return Zf}()?e:!!e.capture}function op(){if(null==$f){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return $f=!1;if("scrollBehavior"in document.documentElement.style)$f=!0;else{var e=Element.prototype.scrollTo;$f=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return $f}function ap(e){if(function(){if(null==Jf){var e="undefined"!=typeof document?document.head:null;Jf=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Jf}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var sp=n("xgIS"),cp=n("eNwd"),lp=n("7Hc7"),up=n("/uUt"),hp=n("3UWI"),dp=n("pLZG"),fp=n("1G5W"),pp=n("JX91"),mp=n("Zy1z"),gp=n("eIep"),vp=n("UXun"),bp=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._ngZone=t,this._platform=n,this._scrolled=new k.b,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return Object(c.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 C.a(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(Object(hp.a)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Object(Bf.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(dp.a)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=Nf(t),r=e.getElementRef().nativeElement;do{if(n==r)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(sp.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)(Gn(Ql),Gn(ep),Gn(Iu,8))},e.\u0275prov=F({factory:function(){return new e(Gn(Ql),Gn(ep),Gn(Iu,8))},token:e,providedIn:"root"}),e}(),yp=function(){var e=function(){function e(t,n,r){var i=this;Object(s.a)(this,e),this._platform=t,this._change=new k.b,this._changeListener=function(e){i._change.next(e)},this._document=r,n.runOutsideAngular(function(){if(t.isBrowser){var e=i._getWindow();e.addEventListener("resize",i._changeListener),e.addEventListener("orientationchange",i._changeListener)}i.change().subscribe(function(){return i._updateViewportSize()})})}return Object(c.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,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-r.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(hp.a)(e)):this._change}},{key:"_getWindow",value:function(){return this._document.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)(Gn(ep),Gn(Ql),Gn(Iu,8))},e.\u0275prov=F({factory:function(){return new e(Gn(ep),Gn(Ql),Gn(Iu,8))},token:e,providedIn:"root"}),e}(),_p=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),wp=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[Kf,tp,_p],Kf,_p]}),e}(),kp=n("2Vo4"),Cp=n("IzEk"),Sp=[[["caption"]],[["colgroup"],["col"]]],xp=["caption","colgroup, col"];function Op(e){return function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i)))._sticky=!1,e._hasStickyChanged=!1,e}return Object(c.a)(n,[{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=If(e),this._hasStickyChanged=t!==this._sticky}},{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),n}(e)}var Mp=new Tn("CDK_TABLE"),Tp=function(){var e=function e(t){Object(s.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["","cdkCellDef",""]]}),e}(),Ep=function(){var e=function e(t){Object(s.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e}(),Pp=function(){var e=function e(t){Object(s.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["","cdkFooterCellDef",""]]}),e}(),jp=Op(function e(){Object(s.a)(this,e)}),Ip=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this))._table=e,r._stickyEnd=!1,r}return Object(c.a)(n,[{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=If(e),this._hasStickyChanged=t!==this._stickyEnd}},{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())}}]),n}(jp);return e.\u0275fac=function(t){return new(t||e)(Sa(Mp,8))},e.\u0275dir=Se({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,Tp,1),Sl(n,Ep,1),Sl(n,Pp,1)),2&e&&(kl(r=xl())&&(t.cell=r.first),kl(r=xl())&&(t.headerCell=r.first),kl(r=xl())&&(t.footerCell=r.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Gs([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ia]}),e}(),Ap=function e(t,n){Object(s.a)(this,e);var r,i=n.nativeElement.classList,o=d(t._columnCssClassName);try{for(o.s();!(r=o.n()).done;)i.add(r.value)}catch(a){o.e(a)}finally{o.f()}},Dp=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){return Object(s.a)(this,n),t.call(this,e,r)}return n}(Ap);return e.\u0275fac=function(t){return new(t||e)(Sa(Ip),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ia]}),e}(),Rp=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){return Object(s.a)(this,n),t.call(this,e,r)}return n}(Ap);return e.\u0275fac=function(t){return new(t||e)(Sa(Ip),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[ia]}),e}(),Lp=function e(){Object(s.a)(this,e),this.tasks=[],this.endTasks=[]},Np=new Tn("_COALESCED_STYLE_SCHEDULER"),Fp=function(){var e=function(){function e(t){Object(s.a)(this,e),this._ngZone=t,this._currentSchedule=null,this._destroyed=new k.b}return Object(c.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 Lp,this._getScheduleObservable().pipe(Object(fp.a)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var t=e._currentSchedule;e._currentSchedule=new Lp;var n,r=d(t.tasks);try{for(r.s();!(n=r.n()).done;)(0,n.value)()}catch(a){r.e(a)}finally{r.f()}var i,o=d(t.endTasks);try{for(o.s();!(i=o.n()).done;)(0,i.value)()}catch(a){o.e(a)}finally{o.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?Object(ad.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(Cp.a)(1))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Ql))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Bp=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this.template=t,this._differs=n}return Object(c.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 Hp?e.headerCell.template:this instanceof Up?e.footerCell.template:e.cell.template}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Ac),Sa(yc))},e.\u0275dir=Se({type:e,features:[Fe]}),e}(),zp=Op(function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Bp)),Hp=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e,r))._table=i,o}return Object(c.a)(n,[{key:"ngOnChanges",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(zp);return e.\u0275fac=function(t){return new(t||e)(Sa(Ac),Sa(yc),Sa(Mp,8))},e.\u0275dir=Se({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ia,Fe]}),e}(),Vp=Op(function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Bp)),Up=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e,r))._table=i,o}return Object(c.a)(n,[{key:"ngOnChanges",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Vp);return e.\u0275fac=function(t){return new(t||e)(Sa(Ac),Sa(yc),Sa(Mp,8))},e.\u0275dir=Se({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ia,Fe]}),e}(),qp=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e,r))._table=i,o}return n}(Bp);return e.\u0275fac=function(t){return new(t||e)(Sa(Ac),Sa(yc),Sa(Mp,8))},e.\u0275dir=Se({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ia]}),e}(),Wp=function(){var e=function(){function e(t){Object(s.a)(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return Object(c.a)(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Bc))},e.\u0275dir=Se({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e}(),Gp=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=be({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&&Ia(0,0)},directives:[Wp],encapsulation:2}),e}(),Xp=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=be({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&&Ia(0,0)},directives:[Wp],encapsulation:2}),e}(),Yp=function(){var e=function e(t){Object(s.a)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e}(),Kp=["top","bottom","left","right"],Qp=function(){function e(t,n,r,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6?arguments[6]:void 0;Object(s.a)(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=r,this._coalescedStyleScheduler=i,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return Object(c.a)(e,[{key:"clearStickyPositioning",value:function(e,t){var n,r=this,i=[],o=d(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){i.push(a);for(var s=0;s<a.children.length;s++)i.push(a.children[s])}}}catch(c){o.e(c)}finally{o.f()}this._scheduleStyleChanges(function(){var e,n=d(i);try{for(n.s();!(e=n.n()).done;)r._removeStickyStyle(e.value,t)}catch(c){n.e(c)}finally{n.f()}})}},{key:"updateStickyColumns",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var o=e[0],a=o.children.length,s=this._getCellWidths(o,i),c=this._getStickyStartColumnPositions(s,t),l=this._getStickyEndColumnPositions(s,n),u=t.lastIndexOf(!0),h=n.indexOf(!0);this._scheduleStyleChanges(function(){var i,o="rtl"===r.direction,f=o?"right":"left",p=o?"left":"right",m=d(e);try{for(m.s();!(i=m.n()).done;)for(var g=i.value,v=0;v<a;v++){var b=g.children[v];t[v]&&r._addStickyStyle(b,f,c[v],v===u),n[v]&&r._addStickyStyle(b,p,l[v],v===h)}}catch(y){m.e(y)}finally{m.f()}r._positionListener&&(r._positionListener.stickyColumnsUpdated({sizes:-1===u?[]:s.slice(0,u+1).map(function(e,n){return t[n]?e:null})}),r._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map(function(e,t){return n[t+h]?e:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(e,t,n){var r=this;if(this._isBrowser){for(var i="bottom"===n?e.slice().reverse():e,o="bottom"===n?t.slice().reverse():t,a=[],s=[],c=[],l=0,u=0;l<i.length;l++)if(a[l]=u,o[l]){var h=i[l];c[l]=this._isNativeHtmlTable?Array.from(h.children):[h];var f=h.getBoundingClientRect().height;u+=f,s[l]=f}var p=o.lastIndexOf(!0);this._scheduleStyleChanges(function(){for(var e,t,l=0;l<i.length;l++)if(o[l]){var u,h=a[l],f=l===p,m=d(c[l]);try{for(m.s();!(u=m.n()).done;)r._addStickyStyle(u.value,n,h,f)}catch(g){m.e(g)}finally{m.f()}}"top"===n?null===(e=r._positionListener)||void 0===e||e.stickyHeaderRowsUpdated({sizes:s,elements:c}):null===(t=r._positionListener)||void 0===t||t.stickyFooterRowsUpdated({sizes:s,elements:c})})}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var r=e.querySelector("tfoot");this._scheduleStyleChanges(function(){t.some(function(e){return!e})?n._removeStickyStyle(r,["bottom"]):n._addStickyStyle(r,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,t){var n,r=d(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.style[i]="",e.classList.remove(this._borderCellCss[i])}}catch(o){r.e(o)}finally{r.f()}Kp.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,r){e.classList.add(this._stickCellCss),r&&e.classList.add(this._borderCellCss[t]),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},r=0,i=d(Kp);try{for(i.s();!(t=i.n()).done;){var o=t.value;e.style[o]&&(r+=n[o])}}catch(a){i.e(a)}finally{i.f()}return r?"".concat(r):""}},{key:"_getCellWidths",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],r=e.children,i=0;i<r.length;i++){var o=r[i];n.push(o.getBoundingClientRect().width)}return this._cachedCellWidths=n,n}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],r=0,i=0;i<e.length;i++)t[i]&&(n[i]=r,r+=e[i]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],r=0,i=e.length;i>0;i--)t[i]&&(n[i]=r,r+=e[i]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),Zp=new Tn("CDK_SPL"),$p=function(){var e=function e(t,n){Object(s.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","rowOutlet",""]]}),e}(),Jp=function(){var e=function e(t,n){Object(s.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),em=function(){var e=function e(t,n){Object(s.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),tm=function(){var e=function e(t,n){Object(s.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),nm=function(){var e=function(){function e(t,n,r,i,o,a,c,l,u,h,d){Object(s.a)(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=r,this._dir=o,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=u,this._stickyPositioningListener=h,this._viewportRuler=d,this._onDestroy=new k.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._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new kp.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object(c.a)(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=If(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=If(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{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}),this._viewportRuler&&this._viewportRuler.change().pipe(Object(fp.a)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&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(),Hf(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,r){return e._getEmbeddedViewArgs(t.item,r)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=t.item;e._renderRow(e._rowOutlet,o.rowDef,i,{$implicit:o.data})}else if(null==i)n.remove(r);else{var a=n.get(r);n.move(a,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.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:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{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),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(Object(g.a)(t),Object(g.a)(n),Object(g.a)(r)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var r=[],i=0;i<n.length;i++)e._renderRows[i].rowDef===t&&r.push(n[i]);e._addStickyColumnStyles(r,t)}),r.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 r=this._data[n],i=this._getRenderRowsForData(r,n,t.get(r));this._cachedRenderRowsMap.has(r)||this._cachedRenderRowsMap.set(r,new WeakMap);for(var o=0;o<i.length;o++){var a=i[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(r){var i=n&&n.has(r)?n.get(r):[];if(i.length){var o=i.shift();return o.dataIndex=t,o}return{data:e,rowDef:r,dataIndex:t}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),rm(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=rm(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=rm(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=rm(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 r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),t||n||r}},{key:"_switchDataSource",value:function(e){this._data=[],Hf(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&&(Hf(this.dataSource)?e=this.dataSource.connect(this):Object(Ff.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(Bf.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(fp.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,r=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),i=r.map(function(e){return e.sticky}),o=r.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,i,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var r=e.viewContainer.get(n);t.push(r.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 r=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;r&&n.push(r)}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 r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.viewContainer.createEmbeddedView(t.template,r,n);return this._renderCellTemplateForItem(t,r),i}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,r=d(this._getCellTemplates(e));try{for(r.s();!(n=r.n()).done;)Wp.mostRecentCellOutlet&&Wp.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,t)}catch(i){r.e(i)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var r=e.get(t).context;r.count=n,r.first=0===t,r.last=t===n-1,r.even=t%2==0,r.odd=!r.even,this.multiTemplateDataRows?(r.dataIndex=this._renderRows[t].dataIndex,r.renderIndex=t):r.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var r=t._columnDefsByName.get(n);return e.extractCellTemplate(r)}):[]}},{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 r=n[t],i=this._document.createElement(r.tag);i.setAttribute("role","rowgroup");var o,a=d(r.outlets);try{for(a.s();!(o=a.n()).done;)i.appendChild(o.value.elementRef.nativeElement)}catch(s){a.e(s)}finally{a.f()}e.appendChild(i)}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._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new Qp(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Object(Bf.a)()).pipe(Object(fp.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(){var e=this._customNoDataRow||this._noDataRow;if(e){var t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){var n=this._noDataRowOutlet.viewContainer;t?n.createEmbeddedView(e.templateRef):n.clear(),this._isShowingNoDataRow=t}}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(yc),Sa(Oc),Sa(ec),xn("role"),Sa(Yf,8),Sa(Iu),Sa(ep),Sa(Gf,8),Sa(Np,8),Sa(Zp,12),Sa(yp,8))},e.\u0275cmp=be({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,Yp,1),Sl(n,Ip,1),Sl(n,qp,1),Sl(n,Hp,1),Sl(n,Up,1)),2&e&&(kl(r=xl())&&(t._noDataRow=r.first),kl(r=xl())&&(t._contentColumnDefs=r),kl(r=xl())&&(t._contentRowDefs=r),kl(r=xl())&&(t._contentHeaderRowDefs=r),kl(r=xl())&&(t._contentFooterRowDefs=r))},viewQuery:function(e,t){var n;1&e&&(Cl($p,3),Cl(Jp,3),Cl(em,3),Cl(tm,3)),2&e&&(kl(n=xl())&&(t._rowOutlet=n.first),kl(n=xl())&&(t._headerRowOutlet=n.first),kl(n=xl())&&(t._footerRowOutlet=n.first),kl(n=xl())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&cs("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Gs([{provide:Mp,useExisting:e},{provide:Gf,useClass:Uf},{provide:Np,useClass:Fp},{provide:Zp,useValue:null}])],ngContentSelectors:xp,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(Wa(Sp),Ga(0),Ga(1,1),Ia(2,0),Ia(3,1),Ia(4,2),Ia(5,3))},directives:[Jp,$p,tm,em],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),e}();function rm(e,t){return e.concat(Array.from(t))}var im=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[wp]]}),e}(),om=n("bOdf"),am=function e(){Object(s.a)(this,e)},sm=function e(){Object(s.a)(this,e)},cm=function(){function e(t){var n=this;Object(s.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 r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return Object(c.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 r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,Object(g.a)(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.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}(),lm=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"encodeKey",value:function(e){return hm(e)}},{key:"encodeValue",value:function(e){return hm(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function um(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var r=e.indexOf("="),i=f(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=i[0],a=i[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}function hm(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 dm=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(s.a)(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new lm,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=um(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var r=n.fromObject[e];t.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}return Object(c.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:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];Array.isArray(r)?r.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}},{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 r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function fm(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function pm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function mm(e){return"undefined"!=typeof FormData&&e instanceof FormData}var gm=function(){function e(t,n,r,i){var o;if(Object(s.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)||i?(this.body=void 0!==r?r:null,o=i):o=r,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 cm),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var c=n.indexOf("?");this.urlWithParams=n+(-1===c?"?":c<n.length-1?"&":"")+a}}else this.params=new dm,this.urlWithParams=n}return Object(c.a)(e,[{key:"serializeBody",value:function(){return null===this.body?null:fm(this.body)||pm(this.body)||mm(this.body)||"string"==typeof this.body?this.body:this.body instanceof dm?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||mm(this.body)?null:pm(this.body)?this.body.type||null:fm(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof dm?"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,r=t.url||this.url,i=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,r,o,{params:l,headers:c,reportProgress:s,responseType:i,withCredentials:a})}}]),e}(),vm=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}({}),bm=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";Object(s.a)(this,e),this.headers=t.headers||new cm,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},ym=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.a)(this,n),(e=t.call(this,r)).type=vm.ResponseHeader,e}return Object(c.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}(bm),_m=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.a)(this,n),(e=t.call(this,r)).type=vm.Response,e.body=void 0!==r.body?r.body:null,e}return Object(c.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}(bm),wm=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.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),r.error=e.error||null,r}return n}(bm);function km(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Cm=function(){var e=function(){function e(t){Object(s.a)(this,e),this.handler=t}return Object(c.a)(e,[{key:"request",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof gm)n=e;else{var o=void 0;o=i.headers instanceof cm?i.headers:new cm(i.headers);var a=void 0;i.params&&(a=i.params instanceof dm?i.params:new dm({fromObject:i.params})),n=new gm(e,t,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var s=Object(Bf.a)(n).pipe(Object(om.a)(function(e){return r.handler.handle(e)}));if(e instanceof gm||"events"===i.observe)return s;var c=s.pipe(Object(dp.a)(function(e){return e instanceof _m}));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(cd.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(cd.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(cd.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(cd.a)(function(e){return e.body}))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(i.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 dm).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,km(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,km(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,km(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(am))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Sm=function(){function e(t,n){Object(s.a)(this,e),this.next=t,this.interceptor=n}return Object(c.a)(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),xm=new Tn("HTTP_INTERCEPTORS"),Om=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Mm=/^\)\]\}',?\n/,Tm=function e(){Object(s.a)(this,e)},Em=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Pm=function(){var e=function(){function e(t){Object(s.a)(this,e),this.xhrFactory=t}return Object(c.a)(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new cm(r.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}(r)||e.url;return s=new ym({headers:i,status:t,statusText:n,url:o})},l=function(){var t=c(),i=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.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(Mm,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=h,u&&(u=!1,l={error:d,text:l})}}u?(n.next(new _m({body:l,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new wm({error:l,headers:i,status:o,statusText:a,url:s||void 0}))},u=function(e){var t=c(),i=new wm({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t.url||void 0});n.error(i)},h=!1,d=function(t){h||(n.next(c()),h=!0);var i={type:vm.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(e){var t={type:vm.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",l),r.addEventListener("error",u),r.addEventListener("timeout",u),r.addEventListener("abort",u),e.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:vm.Sent}),function(){r.removeEventListener("error",u),r.removeEventListener("abort",u),r.removeEventListener("load",l),r.removeEventListener("timeout",u),e.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.readyState!==r.DONE&&r.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Tm))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),jm=new Tn("XSRF_COOKIE_NAME"),Im=new Tn("XSRF_HEADER_NAME"),Am=function e(){Object(s.a)(this,e)},Dm=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return Object(c.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=Ju(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Iu),Gn(Rl),Gn(jm))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Rm=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this.tokenService=t,this.headerName=n}return Object(c.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 r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Am),Gn(Im))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Lm=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this.backend=t,this.injector=n,this.chain=null}return Object(c.a)(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(xm,[]);this.chain=t.reduceRight(function(e,t){return new Sm(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(sm),Gn(na))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Nm=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Rm,useClass:Om}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:jm,useValue:t.cookieName}:[],t.headerName?{provide:Im,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[Rm,{provide:xm,useExisting:Rm,multi:!0},{provide:Am,useClass:Dm},{provide:jm,useValue:"XSRF-TOKEN"},{provide:Im,useValue:"X-XSRF-TOKEN"}]}),e}(),Fm=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[Cm,{provide:am,useClass:Lm},Pm,{provide:sm,useExisting:Pm},Em,{provide:Tm,useExisting:Em}],imports:[[Nm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Bm=function e(){Object(s.a)(this,e)},zm=function e(){Object(s.a)(this,e)},Hm="*";function Vm(e,t){return{type:7,name:e,definitions:t,options:{}}}function Um(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function qm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Wm(e){return{type:6,styles:e,offset:null}}function Gm(e,t,n){return{type:0,name:e,styles:t,options:n}}function Xm(e){return{type:5,steps:e}}function Ym(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Km(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Qm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Zm(e){Promise.resolve(null).then(e)}var $m=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(s.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return Object(c.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;Zm(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){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Jm=function(){function e(t){var n=this;Object(s.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 r=0,i=0,o=0,a=this.players.length;0==a?Zm(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++r==a&&n._onFinish()}),e.onDestroy(function(){++i==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(c.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=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{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}(),eg="!";function tg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ng(e){switch(e.length){case 0:return new $m;case 1:return e[0];default:return new Jm(e)}}function rg(e,t,n,r){var i=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(r.forEach(function(e){var n=e.offset,r=n==c,u=r&&l||{};Object.keys(e).forEach(function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),s){case eg:s=i[n];break;case Hm:s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,a)}u[r]=s}),r||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 ig(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&og(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&og(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&og(n,"destroy",e))})}}function og(e,t,n){var r=n.totalTime,i=ag(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function ag(e,t,n,r){var i=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:r,phaseName:i,totalTime:o,disabled:!!a}}function sg(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function cg(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var lg=function(e,t){return!1},ug=function(e,t){return!1},hg=function(e,t,n){return[]},dg=tg();(dg||"undefined"!=typeof Element)&&(lg=function(e,t){return e.contains(t)},ug=function(){if(dg||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])}:ug}(),hg=function(e,t,n){var r=[];if(n)for(var i=e.querySelectorAll(t),o=0;o<i.length;o++)r.push(i[o]);else{var a=e.querySelector(t);a&&r.push(a)}return r});var fg=null,pg=!1;function mg(e){fg||(fg=("undefined"!=typeof document?document.body:null)||{},pg=!!fg.style&&"WebkitAppearance"in fg.style);var t=!0;return fg.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in fg.style)&&pg&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in fg.style),t}var gg=ug,vg=lg,bg=hg;function yg(e){var t={};return Object.keys(e).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}var _g=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"validateStyleProperty",value:function(e){return mg(e)}},{key:"matchesElement",value:function(e,t){return gg(e,t)}},{key:"containsElement",value:function(e,t){return vg(e,t)}},{key:"query",value:function(e,t,n){return bg(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return new $m(n,r)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),wg=function(){var e=function e(){Object(s.a)(this,e)};return e.NOOP=new _g,e}(),kg="ng-enter",Cg="ng-leave",Sg="ng-trigger",xg=".ng-trigger",Og="ng-animating",Mg=".ng-animating";function Tg(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Eg(parseFloat(t[1]),t[2])}function Eg(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Pg(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=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:""};r=Eg(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=Eg(parseFloat(s),a[4]));var c=a[5];c&&(o=c)}else r=e;if(!n){var l=!1,u=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),i<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:r,delay:i,easing:o}}(e,t,n)}function jg(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 Ig(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else jg(e,n);return n}function Ag(e,t,n){return n?t+":"+n+";":""}function Dg(e){for(var t="",n=0;n<e.style.length;n++){var r=e.style.item(n);t+=Ag(0,r,e.style.getPropertyValue(r))}for(var i in e.style)e.style.hasOwnProperty(i)&&!i.startsWith("_")&&(t+=Ag(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[i]));e.setAttribute("style",t)}function Rg(e,t,n){e.style&&(Object.keys(t).forEach(function(r){var i=Ug(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]}),tg()&&Dg(e))}function Lg(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=Ug(t);e.style[n]=""}),tg()&&Dg(e))}function Ng(e){return Array.isArray(e)?1==e.length?e[0]:qm(e):e}var Fg=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Bg(e){var t=[];if("string"==typeof e){for(var n;n=Fg.exec(e);)t.push(n[1]);Fg.lastIndex=0}return t}function zg(e,t,n){var r=e.toString(),i=r.replace(Fg,function(e,r){var i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param ".concat(r)),i=""),i.toString()});return i==r?e:i}function Hg(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Vg=/-+([a-z0-9])/g;function Ug(e){return e.replace(Vg,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function qg(e,t){return 0===e||0===t}function Wg(e,t,n){var r=Object.keys(n);if(r.length&&t.length){var i=t[0],o=[];if(r.forEach(function(e){i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=Xg(e,t)})},s=1;s<t.length;s++)a()}return t}function Gg(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 Xg(e,t){return window.getComputedStyle(e)[t]}var Yg="*",Kg=new Set(["true","1"]),Qg=new Set(["false","0"]);function Zg(e,t){var n=Kg.has(e)||Qg.has(e),r=Kg.has(t)||Qg.has(t);return function(i,o){var a=e==Yg||e==i,s=t==Yg||t==o;return!a&&n&&"boolean"==typeof i&&(a=i?Kg.has(e):Qg.has(e)),!s&&r&&"boolean"==typeof o&&(s=o?Kg.has(t):Qg.has(t)),a&&s}}var $g=":self",Jg=new RegExp("s*".concat($g,"s*,?"),"g");function ev(e,t,n){return new tv(e).build(t,n)}var tv=function(){function e(t){Object(s.a)(this,e),this._driver=t}return Object(c.a)(e,[{key:"build",value:function(e,t){var n=new nv(t);return this._resetContextStyleTimingState(n),Gg(this,Ng(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,r=t.queryCount=0,i=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);r+=l.queryCount,i+=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:r,depCount:i,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(e){if(rv(e)){var t=e;Object.keys(t).forEach(function(e){Bg(t[e]).forEach(function(e){o.hasOwnProperty(e)||i.add(e)})})}}),i.size){var a=Hg(i.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:r?{params:r}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,r,i,o=Gg(this,Ng(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var r=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 r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],a=i[2],s=i[3];t.push(Zg(o,s)),"<"!=a[0]||o==Yg&&s==Yg||t.push(Zg(s,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:iv(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Gg(n,e,t)}),options:iv(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=Gg(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:iv(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ov(Pg(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=ov(0,0,"");return i.dynamic=!0,i.strValue=r,i}return ov((n=n||Pg(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Wm({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Wm(s)}t.currentTime+=r.duration+r.delay;var c=this.visitStyle(o,t);c.isEmptyStep=a,n=c}return t.currentAnimateTimings=null,{type:4,timings:r,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==Hm?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(rv(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,c,l=t.collectedStyles[t.currentQuerySelector],u=l[r],h=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(t.errors.push('The CSS property "'.concat(r,'" 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(i,'ms"')),h=!1),o=u.startTime),h&&(l[r]={startTime:o,endTime:i}),t.options&&(a=t.errors,s=t.options.params||{},(c=Bg(e[r])).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(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,c=0,l=e.steps.map(function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(rv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(rv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),u=0;return null!=l&&(i++,u=r.offset=l),s=s||u<0||u>1,a=a||u<c,c=u,o.push(u),r});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;i>0&&i<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(u-1));var d=u-1,f=t.currentTime,p=t.currentAnimateTimings,m=p.duration;return l.forEach(function(e,i){var a=h>0?i==d?1:h*i:o[i],s=a*m;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)}),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:Gg(this,Ng(e.animation),t),options:iv(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:iv(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:iv(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=f(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==$g});return t&&(e=e.replace(Jg,"")),[e=e.replace(/@\*/g,xg).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,Mg),t]}(e.selector),2),o=i[0],a=i[1];t.currentQuerySelector=n.length?n+" "+o:o,sg(t.collectedStyles,t.currentQuerySelector,{});var s=Gg(this,Ng(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:iv(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"}:Pg(e.timings,t.errors,!0);return{type:12,animation:Gg(this,Ng(e.animation),t),timings:n,options:null}}}]),e}(),nv=function e(t){Object(s.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 rv(e){return!Array.isArray(e)&&"object"==typeof e}function iv(e){var t;return e?(e=jg(e)).params&&(e.params=(t=e.params)?jg(t):null):e={},e}function ov(e,t,n){return{duration:e,delay:t,easing:n}}function av(e,t,n,r,i,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:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var sv=function(){function e(){Object(s.a)(this,e),this._map=new Map}return Object(c.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,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,Object(g.a)(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),cv=new RegExp(":enter","g"),lv=new RegExp(":leave","g");function uv(e,t,n,r,i){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 hv).buildKeyframes(e,t,n,r,i,o,a,s,c,l)}var hv=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,a,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new sv;var u=new fv(e,t,c,r,i,l,[]);u.options=s,u.currentTimeline.setStyles([o],null,u.errors,s),Gg(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()}):[av(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 r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=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 r=t.currentTimeline.currentTime,i=null!=n.duration?Tg(n.duration):null,o=null!=n.delay?Tg(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Gg(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=dv);var a=Tg(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return Gg(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Tg(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),Gg(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Pg(t.params?zg(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),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?Tg(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=dv);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach(function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);o&&s.delayNextStep(o),r===t.element&&(c=s.currentTimeline),Gg(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,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;Gg(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}]),e}(),dv={},fv=function(){function e(t,n,r,i,o,a,c,l){Object(s.a)(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pv(this._driver,n,0),c.push(this.currentTimeline)}return Object(c.a)(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=Tg(r.duration)),null!=r.delay&&(i.delay=Tg(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=zg(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,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||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=dv,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new mv(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{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,r,i,o){var a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(cv,"."+this._enterClassName)).replace(lv,"."+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(g.a)(s))}return i||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),pv=function(){function e(t,n,r,i){Object(s.a)(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(c.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:"currentTime",get:function(){return this.startTime+this.duration}},{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]||Hm,t._currentKeyframe[e]=Hm}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Hm}):Ig(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=zg(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Hm),i._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:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=Ig(o,!0);Object.keys(s).forEach(function(e){var r=s[e];r==eg?t.add(e):r==Hm&&n.add(e)}),r||(s.offset=a/e.duration),i.push(s)});var o=t.size?Hg(t.values()):[],a=n.size?Hg(n.values()):[];if(r){var s=i[0],c=jg(s);s.offset=0,c.offset=1,i=[s,c]}return av(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),mv=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Object(s.a)(this,n),(l=t.call(this,e,r,c.delay)).element=r,l.keyframes=i,l.preStyleProps=o,l.postStyleProps=a,l._stretchStartingKeyframe=u,l.timings={duration:c.duration,delay:c.delay,easing:c.easing},l}return Object(c.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,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,c=Ig(e[0],!1);c.offset=0,o.push(c);var l=Ig(e[0],!1);l.offset=gv(s),o.push(l);for(var u=e.length-1,h=1;h<=u;h++){var d=Ig(e[h],!1);d.offset=gv((n+d.offset*r)/a),o.push(d)}r=a,n=0,i="",e=o}return av(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(pv);function gv(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 vv=function e(){Object(s.a)(this,e)},bv=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"normalizePropertyName",value:function(e,t){return Ug(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(yv[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}]),n}(vv),yv=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 _v(e,t,n,r,i,o,a,s,c,l,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}var wv={},kv=function(){function e(t,n,r){Object(s.a)(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return Object(c.a)(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,a,s,c,l){var u=[],h=this.ast.options&&this.ast.options.params||wv,d=this.buildStyles(n,a&&a.params||wv,u),f=s&&s.params||wv,p=this.buildStyles(r,f,u),m=new Set,g=new Map,v=new Map,b="void"===r,y={params:Object.assign(Object.assign({},h),f)},_=l?[]:uv(e,t,this.ast.animation,i,o,d,p,y,c,u),w=0;if(_.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),u.length)return _v(t,this._triggerName,n,r,b,d,p,[],[],g,v,w,u);_.forEach(function(e){var n=e.element,r=sg(g,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=sg(v,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&m.add(n)});var k=Hg(m.values());return _v(t,this._triggerName,n,r,b,d,p,_,k,g,v,w)}}]),e}(),Cv=function(){function e(t,n){Object(s.a)(this,e),this.styles=t,this.defaultParams=n}return Object(c.a)(e,[{key:"buildStyles",value:function(e,t){var n={},r=jg(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=zg(o,r,t)),n[e]=o})}}),n}}]),e}(),Sv=function(){function e(t,n){var r=this;Object(s.a)(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Cv(e.style,e.options&&e.options.params||{})}),xv(this.states,"true","1"),xv(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new kv(t,e,r.states))}),this.fallbackTransition=new kv(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(c.a)(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function xv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Ov=new sv,Mv=function(){function e(t,n,r){Object(s.a)(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return Object(c.a)(e,[{key:"register",value:function(e,t){var n=[],r=ev(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]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=rg(this._driver,this._normalizer,r,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=uv(this._driver,t,a,kg,Cg,{},{},i,Ov,o)).forEach(function(e){var t=sg(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]=r._driver.computeStyle(t,n,Hm)})});var c=n.map(function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)}),l=ng(c);return this._playersById[e]=l,l.onDestroy(function(){return r.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,r){var i=ag(t,"","","");return ig(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),Tv="ng-animate-queued",Ev="ng-animate-disabled",Pv=".ng-animate-disabled",jv="ng-star-inserted",Iv=[],Av={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Dv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Rv=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object(s.a)(this,e),this.namespaceId=n;var r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=Hv(i),r){var o=jg(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object(c.a)(e,[{key:"params",get:function(){return this.options.params}},{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])})}}}]),e}(),Lv="void",Nv=new Rv(Lv),Fv=function(){function e(t,n,r){Object(s.a)(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Gv(n,this._hostClassName)}return Object(c.a)(e,[{key:"listen",value:function(e,t,n,r){var i,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"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=sg(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};a.push(s);var c=sg(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Gv(e,Sg),Gv(e,"ng-trigger-"+t),c[t]=Nv),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 r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new zv(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Gv(e,Sg),Gv(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],l=new Rv(n,this.id),u=n&&n.hasOwnProperty("value");!u&&c&&l.absorbOptions(c.options),s[t]=l,c||(c=Nv);var h=l.value===Lv;if(h||c.value!==l.value){var d=sg(this._engine.playersByElement,e,[]);d.forEach(function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()});var f=o.matchTransition(c.value,l.value,e,l.params),p=!1;if(!f){if(!i)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||(Gv(e,Tv),a.onStart(function(){Xv(e,Tv)})),a.onDone(function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),d.push(a),a}if(!Qv(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(){Lg(e,g),Rg(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,r){t._elementListeners.set(r,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,r=this._engine.driver.query(e,xg,!0);r.forEach(function(e){if(!e.__ng_removed){var r=n._engine.fetchNamespacesByElement(e);r.size?r.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return r.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,r){var i=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(i._triggers[t]){var n=i.trigger(e,t,Lv,r);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&ng(a).onDone(function(){return i._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){var i=new Set;n.forEach(function(n){var o=n.name;if(!i.has(o)){i.add(o);var a=t._triggers[o].fallbackTransition,s=r[o]||Nv,c=new Rv(Lv),l=new zv(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:c,player:l,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else for(var a=e;a=a.parentNode;)if(r.statesByElement.get(a)){i=!0;break}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Av||(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Gv(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==r.triggerName){var n=ag(o,r.triggerName,r.fromState.value,r.toState.value);n._data=e,ig(r.player,t.phase,n,t.callback)}}),i.markedForDestroy?t._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i: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}(),Bv=function(){function e(t,n,r){Object(s.a)(this,e),this.bodyNode=t,this.driver=n,this._normalizer=r,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(c.a)(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new Fv(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 r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||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 r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.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 r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,r){if(Vv(t)){var i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1}},{key:"insertNode",value:function(e,t,n,r){if(Vv(t)){var i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.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)}r&&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),Gv(e,Ev)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Xv(e,Ev))}},{key:"removeNode",value:function(e,t,n,r){if(Vv(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return Vv(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,xg,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Mg,!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 ng(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=Av,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Pv)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Pv,!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 r=0;r<this.collectedEnterElements.length;r++){var i=this.collectedEnterElements[r];Gv(i,jv)}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?ng(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,r=new sv,i=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(function(e){u.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)u.add(t[r])});var h=this.bodyNode,d=Array.from(this.statesByElement.keys()),f=Wv(d,this.collectedEnterElements),p=new Map,m=0;f.forEach(function(e,t){var n=kg+m++;p.set(t,n),e.forEach(function(e){return Gv(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=Wv(d,Array.from(b));S.forEach(function(e,t){var n=Cg+m++;C.set(t,n),e.forEach(function(e){return Gv(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return Xv(e,n)})}),S.forEach(function(e,t){var n=C.get(t);e.forEach(function(e){return Xv(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 d=!h||!n.driver.containsElement(h,o),f=C.get(o),m=p.get(o),g=n._buildInstruction(e,r,m,f,d);if(g.errors&&g.errors.length)O.push(g);else{if(d)return t.onStart(function(){return Lg(o,g.fromStyles)}),t.onDestroy(function(){return Rg(o,g.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Lg(o,g.fromStyles)}),t.onDestroy(function(){return Rg(o,g.toStyles)}),void i.push(t);g.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,g.timelines),a.push({instruction:g,player:t,element:o}),g.queriedElements.forEach(function(e){return sg(s,e,[]).push(t)}),g.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=c.get(t);r||c.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),g.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.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;r.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,E))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){sg(E,t,[]).push(e),e.destroy()})});var j=v.filter(function(e){return Zv(e,c,l)}),I=new Map;qv(I,this.driver,y,l,Hm).forEach(function(e){Zv(e,c,l)&&j.push(e)});var A=new Map;f.forEach(function(e,t){qv(A,n.driver,new Set(e),c,eg)}),j.forEach(function(e){var t=I.get(e),n=A.get(e);I.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(r.has(t)){if(u.has(t))return a.onDestroy(function(){return Rg(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var c=L;if(P.size>1){for(var l=t,h=[];l=l.parentNode;){var d=P.get(l);if(d){c=d;break}h.push(l)}h.forEach(function(e){return P.set(e,c)})}var f=n._buildAnimation(a.namespaceId,s,E,o,A,I);if(a.setRealPlayer(f),c===L)D.push(a);else{var p=n.playersByElement.get(c);p&&p.length&&(a.parentPlayer=ng(p)),i.push(a)}}else Lg(t,s.fromStyles),a.onDestroy(function(){return Rg(t,s.toStyles)}),R.push(a),u.has(t)&&i.push(a)}),R.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=ng(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N<v.length;N++){var F=v[N],B=F.__ng_removed;if(Xv(F,Cg),!B||!B.hasAnimation){var z=[];if(s.size){var H=s.get(F);H&&H.length&&z.push.apply(z,Object(g.a)(H));for(var V=this.driver.query(F,Mg,!0),U=0;U<V.length;U++){var q=s.get(V[U]);q&&q.length&&z.push.apply(z,Object(g.a)(q))}}var W=z.filter(function(e){return!e.destroyed});W.length?Yv(this,F,W):this.processLeaveNode(F)}}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,r=t.__ng_removed;return r&&r.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,r,i){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var c=!i||i==Lv;s.forEach(function(e){e.queued||(c||e.triggerName==r)&&o.push(e)})}}return(n||r)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var r,i=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=r.value.element,c=e!==o,l=sg(n,e,[]);i._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();!(r=c.n()).done;)l()}catch(u){c.e(u)}finally{c.f()}Lg(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,r,i,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 $m(t.duration,t.delay);var p,m,g=d!==c,v=(p=(n.get(d)||Iv).map(function(e){return e.getRealPlayer()}),m=[],Kv(p,m),m).filter(function(e){return!!e.element&&e.element===d}),b=i.get(d),y=o.get(d),_=rg(a.driver,a._normalizer,d,t.keyframes,b,y),w=a._buildPlayer(t,_,v);if(t.subTimeline&&r&&h.add(d),g){var k=new zv(e,s,d);k.setRealPlayer(w),l.push(k)}return w});l.forEach(function(e){sg(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&delete e[t]}return r}(a.playersByQueriedElement,e.element,e)})}),u.forEach(function(e){return Gv(e,Og)});var f=ng(d);return f.onDestroy(function(){u.forEach(function(e){return Xv(e,Og)}),Rg(c,t.toStyles)}),h.forEach(function(e){sg(r,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 $m(e.duration,e.delay)}}]),e}(),zv=function(){function e(t,n,r){Object(s.a)(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new $m,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return Object(c.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 ig(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){sg(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 Hv(e){return null!=e?e:null}function Vv(e){return e&&1===e.nodeType}function Uv(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function qv(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(Uv(e))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Dv,a.push(r))}),e.set(r,o)});var s=0;return n.forEach(function(e){return Uv(e,o[s++])}),a}function Wv(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;function o(e){if(!e)return 1;var t=i.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:r.has(a)?1:o(a),i.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function Gv(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Xv(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Yv(e,t,n){ng(n).onDone(function(){return e.processLeaveNode(t)})}function Kv(e,t){for(var n=0;n<e.length;n++){var r=e[n];r instanceof Jm?Kv(r.players,t):t.push(r)}}function Qv(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}function Zv(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var $v=function(){function e(t,n,r){var i=this;Object(s.a)(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Bv(t,n,r),this._timelineEngine=new Mv(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return Object(c.a)(e,[{key:"registerTrigger",value:function(e,t,n,r,i){var o=e+"-"+r,a=this._triggerCache[o];if(!a){var s=[],c=ev(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Sv(e,t)}(r,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,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,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var i=f(cg(n),2);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,i){if("@"==n.charAt(0)){var o=f(cg(n),2);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,i)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function Jv(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=tb(t[0]),t.length>1&&(r=tb(t[t.length-1]))):t&&(n=tb(t)),n||r?new eb(e,n,r):null}var eb=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return Object(c.a)(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Rg(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Rg(this._element,this._initialStyles),this._endStyles&&(Rg(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&&(Lg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lg(this._element,this._endStyles),this._endStyles=null),Rg(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function tb(e){for(var t=null,n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];nb(i)&&((t=t||{})[i]=e[i])}return t}function nb(e){return"display"===e||"position"===e}var rb="animation",ib="animationend",ob=function(){function e(t,n,r,i,o,a,c){var l=this;Object(s.a)(this,e),this._element=t,this._name=n,this._duration=r,this._delay=i,this._easing=o,this._fillMode=a,this._onDoneFn=c,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return Object(c.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=hb(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),ub(e,"",t),lb(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){ab(this._element,this._name,"paused")}},{key:"resume",value:function(){ab(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=sb(this._element,this._name);this._position=e*this._duration,ub(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(),lb(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=cb(n=hb(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),ub(e,"",n.join(","))))}}]),e}();function ab(e,t,n){ub(e,"PlayState",n,sb(e,t))}function sb(e,t){var n=hb(e,"");return n.indexOf(",")>0?cb(n.split(","),t):cb([n],t)}function cb(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function lb(e,t,n){n?e.removeEventListener(ib,t):e.addEventListener(ib,t)}function ub(e,t,n,r){var i=rb+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function hb(e,t){return e.style[rb+t]||""}var db=function(){function e(t,n,r,i,o,a,c,l){Object(s.a)(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=c,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return Object(c.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 ob(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(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:Xg(e.element,r))})}this.currentSnapshot=t}}]),e}(),fb=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=yg(r),i}return Object(c.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}($m),pb="gen_css_kf_",mb=function(){function e(){Object(s.a)(this,e),this._count=0,this._head=document.querySelector("head")}return Object(c.a)(e,[{key:"validateStyleProperty",value:function(e){return mg(e)}},{key:"matchesElement",value:function(e,t){return gg(e,t)}},{key:"containsElement",value:function(e,t){return vg(e,t)}},{key:"query",value:function(e,t,n){return bg(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 yg(e)});var r="@keyframes ".concat(t," {\n"),i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}}),r+="".concat(i,"}\n")}),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof db}),s={};qg(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var c=gb(t=Wg(e,t,s));if(0==n)return new fb(e,c);var l="".concat(pb).concat(this._count++),u=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(u);var h=Jv(e,t),d=new db(e,t,l,n,r,i,c,h);return d.onDestroy(function(){return vb(u)}),d}}]),e}();function gb(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 vb(e){e.parentNode.removeChild(e)}var bb=function(){function e(t,n,r,i){Object(s.a)(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return Object(c.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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{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]:Xg(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}}]),e}(),yb=function(){function e(){Object(s.a)(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_b().toString()),this._cssKeyframesDriver=new mb}return Object(c.a)(e,[{key:"validateStyleProperty",value:function(e){return mg(e)}},{key:"matchesElement",value:function(e,t){return gg(e,t)}},{key:"containsElement",value:function(e,t){return vg(e,t)}},{key:"query",value:function(e,t,n){return bg(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,r,i){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,r,i,o);var c=0==r?"both":"forwards",l={duration:n,delay:r,fill:c};i&&(l.easing=i);var u={},h=o.filter(function(e){return e instanceof bb});qg(n,r)&&h.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var d=Jv(e,t=Wg(e,t=t.map(function(e){return Ig(e,!1)}),u));return new bb(e,t,l,d)}}]),e}();function _b(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var wb=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:te.None,styles:[],data:{animation:[]}}),i}return Object(c.a)(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?qm(e):e;return Sb(this._renderer,null,t,"register",[n]),new kb(t,this._renderer)}}]),n}(Bm);return e.\u0275fac=function(t){return new(t||e)(Gn(nc),Gn(Iu))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),kb=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return Object(c.a)(n,[{key:"create",value:function(e,t){return new Cb(this._id,e,t||{},this._renderer)}}]),n}(zm),Cb=function(){function e(t,n,r,i){Object(s.a)(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return Object(c.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),r=1;r<t;r++)n[r-1]=arguments[r];return Sb(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(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Sb(e,t,n,r,i){return e.setProperty(t,"@@".concat(n,":").concat(r),i)}var xb="@",Ob="@.disabled",Mb=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this.delegate=t,this.engine=n,this._zone=r,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(c.a)(e,[{key:"createRenderer",value:function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(r);return i||(i=new Tb("",r,this.engine),this._rendererCache.set(r,i)),i}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(r){Array.isArray(r)?r.forEach(t):n.engine.registerTrigger(o,a,e,r.name,r)}),new Eb(this,a,r,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 r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){var t=f(e,2);(0,t[0])(t[1])}),r._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)(Gn(nc),Gn($v),Gn(Ql))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Tb=function(){function e(t,n,r){Object(s.a)(this,e),this.namespaceId=t,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return Object(c.a)(e,[{key:"data",get:function(){return this.delegate.data}},{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){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}},{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,r){this.delegate.setAttribute(e,t,n,r)}},{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,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==xb&&t==Ob?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)}}]),e}(),Eb=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,r,i,o)).factory=e,a.namespaceId=r,a}return Object(c.a)(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==xb?"."==t.charAt(1)&&t==Ob?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 r,i,o=this;if(t.charAt(0)==xb){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)!=xb){var l=f((i=(r=s).indexOf("."),[r.substring(0,i),r.substr(i+1)]),2);s=l[0],c=l[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}(Tb),Pb=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){return Object(s.a)(this,n),t.call(this,e.body,r,i)}return n}($v);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu),Gn(wg),Gn(vv))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),jb=new Tn("AnimationModuleType"),Ib=[{provide:Bm,useClass:wb},{provide:vv,useFactory:function(){return new bv}},{provide:$v,useClass:Pb},{provide:nc,useFactory:function(e,t,n){return new Mb(e,t,n)},deps:[zh,$v,Ql]}],Ab=[{provide:wg,useFactory:function(){return"function"==typeof _b()?new yb:new mb}},{provide:jb,useValue:"BrowserAnimations"}].concat(Ib),Db=([{provide:wg,useClass:_g},{provide:jb,useValue:"NoopAnimations"}].concat(Ib),function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:Ab,imports:[ed]}),e}()),Rb=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},Lb=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Rb(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}},Nb=Lb(Rb),Fb=Nb.right,Bb=Nb.left,zb=Fb,Hb=function(e,t){null==t&&(t=Vb);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return o};function Vb(e,t){return[e,t]}var Ub=function(e,t,n){var r,i,o,a,s=e.length,c=t.length,l=new Array(s*c);for(null==n&&(n=Vb),r=o=0;r<s;++r)for(a=e[r],i=0;i<c;++i,++o)l[o]=n(a,t[i]);return l},qb=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Wb=function(e){return null===e?NaN:+e},Gb=function(e,t){var n,r,i=e.length,o=0,a=-1,s=0,c=0;if(null==t)for(;++a<i;)isNaN(n=Wb(e[a]))||(c+=(r=n-s)*(n-(s+=r/++o)));else for(;++a<i;)isNaN(n=Wb(t(e[a],a,e)))||(c+=(r=n-s)*(n-(s+=r/++o)));if(o>1)return c/(o-1)},Xb=function(e,t){var n=Gb(e,t);return n?Math.sqrt(n):n},Yb=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},Kb=Array.prototype,Qb=Kb.slice,Zb=Kb.map,$b=function(e){return function(){return e}},Jb=function(e){return e},ey=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o},ty=Math.sqrt(50),ny=Math.sqrt(10),ry=Math.sqrt(2),iy=function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=oy(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o};function oy(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=ty?10:o>=ny?5:o>=ry?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ty?10:o>=ny?5:o>=ry?2:1)}function ay(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ty?i*=10:o>=ny?i*=5:o>=ry&&(i*=2),t<e?-i:i}var sy=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},cy=function(){var e=Jb,t=Yb,n=sy;function r(r){var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=e(r[i],i,r);var c=t(s),l=c[0],u=c[1],h=n(s,l,u);Array.isArray(h)||(h=ay(l,u,h),h=ey(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(i=0;i<=d;++i)(f=p[i]=[]).x0=i>0?h[i-1]:l,f.x1=i<d?h[i]:u;for(i=0;i<a;++i)l<=(o=s[i])&&o<=u&&p[zb(h,o,0,d)].push(r[i]);return p}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:$b(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:$b([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?$b(Qb.call(e)):$b(e),r):n},r},ly=function(e,t,n){if(null==n&&(n=Wb),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}},uy=function(e,t,n){return e=Zb.call(e,Wb).sort(Rb),Math.ceil((n-t)/(2*(ly(e,.75)-ly(e,.25))*Math.pow(e.length,-1/3)))},hy=function(e,t,n){return Math.ceil((n-t)/(3.5*Xb(e)*Math.pow(e.length,-1/3)))},dy=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r},fy=function(e,t){var n,r=e.length,i=r,o=-1,a=0;if(null==t)for(;++o<r;)isNaN(n=Wb(e[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=Wb(t(e[o],o,e)))?--i:a+=n;if(i)return a/i},py=function(e,t){var n,r=e.length,i=-1,o=[];if(null==t)for(;++i<r;)isNaN(n=Wb(e[i]))||o.push(n);else for(;++i<r;)isNaN(n=Wb(t(e[i],i,e)))||o.push(n);return ly(o.sort(Rb),.5)},my=function(e){for(var t,n,r,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(n=new Array(a);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n},gy=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r},vy=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},by=function(e,t){if(n=e.length){var n,r,i=0,o=0,a=e[o];for(null==t&&(t=Rb);++i<n;)(t(r=e[i],a)<0||0!==t(a,a))&&(a=r,o=i);return 0===t(a,a)?o:void 0}},yy=function(e,t,n){for(var r,i,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},_y=function(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o},wy=function(e){if(!(i=e.length))return[];for(var t=-1,n=gy(e,ky),r=new Array(n);++t<n;)for(var i,o=-1,a=r[t]=new Array(i);++o<i;)a[o]=e[o][t];return r};function ky(e){return e.length}var Cy=function(){return wy(arguments)},Sy=Array.prototype.slice,xy=function(e){return e},Oy=1e-6;function My(e){return"translate("+(e+.5)+",0)"}function Ty(e){return"translate(0,"+(e+.5)+")"}function Ey(e){return function(t){return+e(t)}}function Py(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function jy(){return!this.__axis}function Iy(e,t){var n=[],r=null,i=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?My:Ty;function h(h){var d=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,f=null==i?t.tickFormat?t.tickFormat.apply(t,n):xy:i,p=Math.max(o,0)+s,m=t.range(),g=+m[0]+.5,v=+m[m.length-1]+.5,b=(t.bandwidth?Py:Ey)(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",Oy).attr("transform",function(e){return isFinite(e=b(e))?u(e):this.getAttribute("transform")}),C.attr("opacity",Oy).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(jy).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=Sy.call(arguments),h},h.tickArguments=function(e){return arguments.length?(n=null==e?[]:Sy.call(e),h):n.slice()},h.tickValues=function(e){return arguments.length?(r=null==e?null:Sy.call(e),h):r&&r.slice()},h.tickFormat=function(e){return arguments.length?(i=e,h):i},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 Ay(e){return Iy(1,e)}function Dy(e){return Iy(2,e)}function Ry(e){return Iy(3,e)}function Ly(e){return Iy(4,e)}var Ny={value:function(){}};function Fy(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new By(r)}function By(e){this._=e}function zy(e,t){return e.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function Hy(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function Vy(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ny,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}By.prototype=Fy.prototype={constructor:By,on:function(e,t){var n,r=this._,i=zy(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=Vy(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Vy(r[n],e.name,null);return this}for(;++o<a;)if((n=(e=i[o]).type)&&(n=Hy(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new By(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var Uy=Fy;function qy(){}var Wy=function(e){return null==e?qy:function(){return this.querySelector(e)}};function Gy(){return[]}var Xy=function(e){return null==e?Gy:function(){return this.querySelectorAll(e)}},Yy=function(e){return function(){return this.matches(e)}},Ky=function(e){return new Array(e.length)};function Qy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Zy(e,t,n,r,i,o){for(var a,s=0,c=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Qy(e,o[s]);for(;s<c;++s)(a=t[s])&&(i[s]=a)}function $y(e,t,n,r,i,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?i[s]=c:u[l]=c);for(s=0;s<d;++s)(c=u[l="$"+a.call(e,o[s],s,o)])?(r[s]=c,c.__data__=o[s],u[l]=null):n[s]=new Qy(e,o[s]);for(s=0;s<h;++s)(c=t[s])&&u[f[s]]===c&&(i[s]=c)}function Jy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Qy.prototype={constructor:Qy,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 e_="http://www.w3.org/1999/xhtml",t_={svg:"http://www.w3.org/2000/svg",xhtml:e_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},n_=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),t_.hasOwnProperty(t)?{space:t_[t],local:e}:e};function r_(e){return function(){this.removeAttribute(e)}}function i_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function o_(e,t){return function(){this.setAttribute(e,t)}}function a_(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function s_(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function c_(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)}}var l_=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function u_(e){return function(){this.style.removeProperty(e)}}function h_(e,t,n){return function(){this.style.setProperty(e,t,n)}}function d_(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function f_(e,t){return e.style.getPropertyValue(t)||l_(e).getComputedStyle(e,null).getPropertyValue(t)}function p_(e){return function(){delete this[e]}}function m_(e,t){return function(){this[e]=t}}function g_(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function v_(e){return e.trim().split(/^|\s+/)}function b_(e){return e.classList||new y_(e)}function y_(e){this._node=e,this._names=v_(e.getAttribute("class")||"")}function __(e,t){for(var n=b_(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function w_(e,t){for(var n=b_(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function k_(e){return function(){__(this,e)}}function C_(e){return function(){w_(this,e)}}function S_(e,t){return function(){(t.apply(this,arguments)?__:w_)(this,e)}}function x_(){this.textContent=""}function O_(e){return function(){this.textContent=e}}function M_(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function T_(){this.innerHTML=""}function E_(e){return function(){this.innerHTML=e}}function P_(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function j_(){this.nextSibling&&this.parentNode.appendChild(this)}function I_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function A_(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===e_&&t.documentElement.namespaceURI===e_?t.createElement(e):t.createElementNS(n,e)}}function D_(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}y_.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 R_=function(e){var t=n_(e);return(t.local?D_:A_)(t)};function L_(){return null}function N_(){var e=this.parentNode;e&&e.removeChild(this)}function F_(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function B_(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var z_={},H_=null;function V_(e,t,n){return e=U_(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function U_(e,t,n){return function(r){var i=H_;H_=r;try{e.call(this,this.__data__,t,n)}finally{H_=i}}}function q_(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 W_(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function G_(e,t,n){var r=z_.hasOwnProperty(e.type)?V_:U_;return function(i,o,a){var s,c=this.__on,l=r(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 X_(e,t,n,r){var i=H_;e.sourceEvent=H_,H_=e;try{return t.apply(n,r)}finally{H_=i}}function Y_(e,t,n){var r=l_(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function K_(e,t){return function(){return Y_(this,e,t)}}function Q_(e,t){return function(){return Y_(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(z_={mouseenter:"mouseover",mouseleave:"mouseout"}));var Z_=[null];function $_(e,t){this._groups=e,this._parents=t}function J_(){return new $_([[document.documentElement]],Z_)}$_.prototype=J_.prototype={constructor:$_,select:function(e){"function"!=typeof e&&(e=Wy(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],c=s.length,l=r[i]=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 $_(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=Xy(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],c=s.length,l=0;l<c;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new $_(r,i)},filter:function(e){"function"!=typeof e&&(e=Yy(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,c=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&c.push(o);return new $_(r,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,r=t?$y:Zy,i=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=i[u],d=o[u],f=d.length,p=e.call(h,h&&h.__data__,u,i),m=p.length,g=c[u]=new Array(m),v=s[u]=new Array(m);r(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 $_(s,i))._enter=c,s._exit=l,s},enter:function(){return new $_(this._enter||this._groups.map(Ky),this._parents)},exit:function(){return new $_(this._exit||this._groups.map(Ky),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=Math.min(r,n.length),o=new Array(r),a=0;a<i;++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<r;++a)o[a]=t[a];return new $_(o,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Jy);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],c=s.length,l=i[o]=new Array(c),u=0;u<c;++u)(a=s[u])&&(l[u]=a);l.sort(t)}return new $_(i,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 r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];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,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=n_(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?i_:r_:"function"==typeof t?n.local?c_:s_:n.local?a_:o_)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?u_:"function"==typeof t?d_:h_)(e,t,null==n?"":n)):f_(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?p_:"function"==typeof t?g_:m_)(e,t)):this.node()[e]},classed:function(e,t){var n=v_(e+"");if(arguments.length<2){for(var r=b_(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?S_:t?k_:C_)(n,t))},text:function(e){return arguments.length?this.each(null==e?x_:("function"==typeof e?M_:O_)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?T_:("function"==typeof e?P_:E_)(e)):this.node().innerHTML},raise:function(){return this.each(j_)},lower:function(){return this.each(I_)},append:function(e){var t="function"==typeof e?e:R_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:R_(e),r=null==t?L_:"function"==typeof t?t:Wy(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(N_)},clone:function(e){return this.select(e?B_:F_)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=q_(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?G_:W_,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(r=0,c=s[l];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(e,t){return this.each(("function"==typeof t?Q_:K_)(e,t))}};var ew=J_,tw=function(e){return"string"==typeof e?new $_([[document.querySelector(e)]],[document.documentElement]):new $_([[e]],Z_)};function nw(){H_.stopImmediatePropagation()}var rw=function(){H_.preventDefault(),H_.stopImmediatePropagation()},iw=function(e){var t=e.document.documentElement,n=tw(e).on("dragstart.drag",rw,!0);"onselectstart"in t?n.on("selectstart.drag",rw,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")};function ow(e,t){var n=e.document.documentElement,r=tw(e).on("dragstart.drag",null);t&&(r.on("click.drag",rw,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var aw=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function sw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cw(){}var lw=.7,uw=1/lw,hw="\\s*([+-]?\\d+)\\s*",dw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",fw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pw=/^#([0-9a-f]{3,8})$/,mw=new RegExp("^rgb\\("+[hw,hw,hw]+"\\)$"),gw=new RegExp("^rgb\\("+[fw,fw,fw]+"\\)$"),vw=new RegExp("^rgba\\("+[hw,hw,hw,dw]+"\\)$"),bw=new RegExp("^rgba\\("+[fw,fw,fw,dw]+"\\)$"),yw=new RegExp("^hsl\\("+[dw,fw,fw]+"\\)$"),_w=new RegExp("^hsla\\("+[dw,fw,fw,dw]+"\\)$"),ww={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 kw(){return this.rgb().formatHex()}function Cw(){return this.rgb().formatRgb()}function Sw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xw(t):3===n?new Ew(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ow(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ow(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=mw.exec(e))?new Ew(t[1],t[2],t[3],1):(t=gw.exec(e))?new Ew(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vw.exec(e))?Ow(t[1],t[2],t[3],t[4]):(t=bw.exec(e))?Ow(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yw.exec(e))?Aw(t[1],t[2]/100,t[3]/100,1):(t=_w.exec(e))?Aw(t[1],t[2]/100,t[3]/100,t[4]):ww.hasOwnProperty(e)?xw(ww[e]):"transparent"===e?new Ew(NaN,NaN,NaN,0):null}function xw(e){return new Ew(e>>16&255,e>>8&255,255&e,1)}function Ow(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ew(e,t,n,r)}function Mw(e){return e instanceof cw||(e=Sw(e)),e?new Ew((e=e.rgb()).r,e.g,e.b,e.opacity):new Ew}function Tw(e,t,n,r){return 1===arguments.length?Mw(e):new Ew(e,t,n,null==r?1:r)}function Ew(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Pw(){return"#"+Iw(this.r)+Iw(this.g)+Iw(this.b)}function jw(){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+")")}function Iw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Aw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lw(e,t,n,r)}function Dw(e){if(e instanceof Lw)return new Lw(e.h,e.s,e.l,e.opacity);if(e instanceof cw||(e=Sw(e)),!e)return new Lw;if(e instanceof Lw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Lw(a,s,c,e.opacity)}function Rw(e,t,n,r){return 1===arguments.length?Dw(e):new Lw(e,t,n,null==r?1:r)}function Lw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Nw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Fw(e,t,n,r,i){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)*r+a*i)/6}aw(cw,Sw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:kw,formatHex:kw,formatHsl:function(){return Dw(this).formatHsl()},formatRgb:Cw,toString:Cw}),aw(Ew,Tw,sw(cw,{brighter:function(e){return e=null==e?uw:Math.pow(uw,e),new Ew(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?lw:Math.pow(lw,e),new Ew(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pw,formatHex:Pw,formatRgb:jw,toString:jw})),aw(Lw,Rw,sw(cw,{brighter:function(e){return e=null==e?uw:Math.pow(uw,e),new Lw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?lw:Math.pow(lw,e),new Lw(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,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ew(Nw(e>=240?e-240:e+120,i,r),Nw(e,i,r),Nw(e<120?e+240:e-120,i,r),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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Bw=function(e){return function(){return e}};function zw(e,t){return function(n){return e+n*t}}function Hw(e,t){var n=t-e;return n?zw(e,n):Bw(isNaN(e)?t:e)}var Vw=function e(t){var n=function(e){return 1==(e=+e)?Hw: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(r){return Math.pow(e+r*t,n)}}(t,n,e):Bw(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Tw(e)).r,(t=Tw(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Hw(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Uw(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Tw(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var qw=Uw(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1];return Fw((n-r/t)*t,r>0?e[r-1]:2*i-o,i,o,r<t-1?e[r+2]:2*o-i)}}),Ww=(Uw(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t);return Fw((n-r/t)*t,e[(r+t-1)%t],e[r%t],e[(r+1)%t],e[(r+2)%t])}}),function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}});function Gw(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=tk(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}var Xw,Yw,Kw=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},Qw=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},Zw=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=tk(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},$w=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jw=new RegExp($w.source,"g"),ek=function(e,t){var n,r,i,o=$w.lastIndex=Jw.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=$w.exec(e))&&(r=Jw.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:Qw(n,r)})),o=Jw.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),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,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})},tk=function(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?Bw(t):("number"===i?Qw:"string"===i?(n=Sw(t))?(t=n,Vw):ek:t instanceof Sw?Vw:t instanceof Date?Kw:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Gw:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Zw:Qw:Ww))(e,t)},nk=function(){for(var e,t=H_;e=t.sourceEvent;)t=e;return t},rk=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},ik=function(e){var t=nk();return t.changedTouches&&(t=t.changedTouches[0]),rk(e,t)},ok=0,ak=0,sk=0,ck=0,lk=0,uk=0,hk="object"==typeof performance&&performance.now?performance:Date,dk="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function fk(){return lk||(dk(pk),lk=hk.now()+uk)}function pk(){lk=0}function mk(){this._call=this._time=this._next=null}function gk(e,t,n){var r=new mk;return r.restart(e,t,n),r}function vk(){fk(),++ok;for(var e,t=Xw;t;)(e=lk-t._time)>=0&&t._call.call(null,e),t=t._next;--ok}function bk(){lk=(ck=hk.now())+uk,ok=ak=0;try{vk()}finally{ok=0,function(){for(var e,t,n=Xw,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Xw=t);Yw=e,_k(r)}(),lk=0}}function yk(){var e=hk.now(),t=e-ck;t>1e3&&(uk-=t,ck=e)}function _k(e){ok||(ak&&(ak=clearTimeout(ak)),e-lk>24?(e<1/0&&(ak=setTimeout(bk,e-hk.now()-uk)),sk&&(sk=clearInterval(sk))):(sk||(ck=hk.now(),sk=setInterval(yk,1e3)),ok=1,dk(bk)))}mk.prototype=gk.prototype={constructor:mk,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?fk():+n)+(null==t?0:+t),this._next||Yw===this||(Yw?Yw._next=this:Xw=this,Yw=this),this._call=e,this._time=n,_k()},stop:function(){this._call&&(this._call=null,this._time=1/0,_k())}};var wk=function(e,t,n){var r=new mk;return r.restart(function(n){r.stop(),e(n+t)},t=null==t?0:+t,n),r},kk=Uy("start","end","cancel","interrupt"),Ck=[],Sk=function(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(c){var l,u,h,d;if(1!==n.state)return s();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return wk(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(wk(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,r=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))&&(r[++u]=d);r.length=u+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=gk(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:r,group:i,on:kk,tween:Ck,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function xk(e,t){var n=Mk(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ok(e,t){var n=Mk(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Mk(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var Tk,Ek,Pk,jk,Ik=function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}},Ak=180/Math.PI,Dk={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Rk=function(e,t,n,r,i,o){var a,s,c;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Ak,skewX:Math.atan(c)*Ak,scaleX:a,scaleY:s}};function Lk(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],c=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var c=a.push("translate(",null,t,null,n);s.push({i:c-4,x:Qw(e,i)},{i:c-2,x:Qw(r,o)})}else(i||o)&&a.push("translate("+i+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(i(n)+"rotate(",null,r)-2,x:Qw(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,c),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Qw(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,c),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Qw(e,n)},{i:s-2,x:Qw(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,c),o=a=null,function(e){for(var t,n=-1,r=c.length;++n<r;)s[(t=c[n]).i]=t.x(e);return s.join("")}}}var Nk=Lk(function(e){return"none"===e?Dk:(Tk||(Tk=document.createElement("DIV"),Ek=document.documentElement,Pk=document.defaultView),Tk.style.transform=e,e=Pk.getComputedStyle(Ek.appendChild(Tk),null).getPropertyValue("transform"),Ek.removeChild(Tk),e=e.slice(7,-1).split(","),Rk(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),Fk=Lk(function(e){return null==e?Dk:(jk||(jk=document.createElementNS("http://www.w3.org/2000/svg","g")),jk.setAttribute("transform",e),(e=jk.transform.baseVal.consolidate())?Rk((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Dk)},", ",")",")");function Bk(e,t){var n,r;return function(){var i=Ok(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function zk(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Ok(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}o.tween=i}}function Hk(e,t,n){var r=e._id;return e.each(function(){var e=Ok(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return Mk(e,r).value[t]}}var Vk=function(e,t){var n;return("number"==typeof t?Qw:t instanceof Sw?Vw:(n=Sw(t))?(t=n,Vw):ek)(e,t)};function Uk(e){return function(){this.removeAttribute(e)}}function qk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wk(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function Gk(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function Xk(e,t,n){var r,i,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttribute(e))===(s=c+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,c));this.removeAttribute(e)}}function Yk(e,t,n){var r,i,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttributeNS(e.space,e.local))===(s=c+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,c));this.removeAttributeNS(e.space,e.local)}}function Kk(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Qk(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Zk(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Qk(e,i)),n}return i._value=t,i}function $k(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Kk(e,i)),n}return i._value=t,i}function Jk(e,t){return function(){xk(this,e).delay=+t.apply(this,arguments)}}function eC(e,t){return t=+t,function(){xk(this,e).delay=t}}function tC(e,t){return function(){Ok(this,e).duration=+t.apply(this,arguments)}}function nC(e,t){return t=+t,function(){Ok(this,e).duration=t}}function rC(e,t){if("function"!=typeof t)throw new Error;return function(){Ok(this,e).ease=t}}function iC(e,t,n){var r,i,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)?xk:Ok;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var oC=ew.prototype.constructor;function aC(e){return function(){this.style.removeProperty(e)}}function sC(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function cC(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&sC(e,o,n)),r}return o._value=t,o}function lC(e){return function(t){this.textContent=e.call(this,t)}}function uC(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&lC(r)),t}return r._value=e,r}var hC=0;function dC(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function fC(e){return ew().transition(e)}function pC(){return++hC}var mC=ew.prototype;function gC(e){return e*e*e}function vC(e){return--e*e*e+1}function bC(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}dC.prototype=fC.prototype={constructor:dC,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Wy(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,c,l=r[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,Sk(h[d],t,n,d,h,Mk(s,n)));return new dC(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Xy(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c,l=r[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=Mk(c,n),m=0,g=f.length;m<g;++m)(d=f[m])&&Sk(d,t,n,m,f,p);o.push(f),a.push(c)}return new dC(o,a,t,n)},filter:function(e){"function"!=typeof e&&(e=Yy(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,c=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&c.push(o);return new dC(r,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,r=t.length,i=Math.min(r,n.length),o=new Array(r),a=0;a<i;++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<r;++a)o[a]=t[a];return new dC(o,this._parents,this._name,this._id)},selection:function(){return new oC(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=pC(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,l=0;l<c;++l)if(a=s[l]){var u=Mk(a,t);Sk(a,e,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new dC(r,this._parents,e,n)},call:mC.call,nodes:mC.nodes,node:mC.node,size:mC.size,empty:mC.empty,each:mC.each,on:function(e,t){var n=this._id;return arguments.length<2?Mk(this.node(),n).on.on(e):this.each(iC(n,e,t))},attr:function(e,t){var n=n_(e),r="transform"===n?Fk:Vk;return this.attrTween(e,"function"==typeof t?(n.local?Yk:Xk)(n,r,Hk(this,"attr."+e,t)):null==t?(n.local?qk:Uk)(n):(n.local?Gk:Wk)(n,r,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 r=n_(e);return this.tween(n,(r.local?Zk:$k)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Nk:Vk;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=f_(this,e),a=(this.style.removeProperty(e),f_(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,aC(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=f_(this,e),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(e),c=s=f_(this,e)),a===c?null:a===r&&c===i?o:(i=c,o=t(r=a,s))}}(e,r,Hk(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var c=Ok(this,e),l=c.on,u=null==c.value[a]?o||(o=aC(t)):void 0;l===n&&i===u||(r=(n=l).copy()).on(s,i=u),c.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=f_(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,cC(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}}(Hk(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,uC(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 r,i=Mk(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?Bk:zk)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Jk:eC)(t,e)):Mk(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?tC:nC)(t,e)):Mk(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(rC(t,e)):Mk(this.node(),t).ease},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},c={value:function(){0==--i&&o()}};n.each(function(){var n=Ok(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t})})}};var yC={time:null,delay:0,duration:250,ease:bC};function _C(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return yC.time=fk(),yC;return n}ew.prototype.interrupt=function(e){return this.each(function(){Ik(this,e)})},ew.prototype.transition=function(e){var t,n;e instanceof dC?(t=e._id,e=e._name):(t=pC(),(n=yC).time=fk(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,l=0;l<c;++l)(a=s[l])&&Sk(a,e,t,l,s,n||_C(a,t));return new dC(r,this._parents,e,t)};var wC=function(e){return function(){return e}},kC=function(e,t,n){this.target=e,this.type=t,this.selection=n};function CC(){H_.stopImmediatePropagation()}var SC=function(){H_.preventDefault(),H_.stopImmediatePropagation()},xC={name:"drag"},OC={name:"space"},MC={name:"handle"},TC={name:"center"},EC={name:"x",handles:["e","w"].map(NC),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]]}},PC={name:"y",handles:["n","s"].map(NC),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]]}},jC={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(NC),input:function(e){return e},output:function(e){return e}},IC={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"},AC={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},DC={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},RC={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},LC={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function NC(e){return{type:e}}function FC(){return!H_.button}function BC(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function zC(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function HC(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function VC(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function UC(){return GC(EC)}function qC(){return GC(PC)}var WC=function(){return GC(jC)};function GC(e){var t,n=BC,r=FC,i=Uy(a,"start","brush","end"),o=6;function a(t){var n=t.property("__brush",h).selectAll(".overlay").data([NC("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",IC.overlay).merge(n).each(function(){var e=zC(this).extent;tw(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([NC("selection")]).enter().append("rect").attr("class","selection").attr("cursor",IC.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return IC[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=tw(this),t=zC(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(H_.touches){if(H_.changedTouches.length<H_.touches.length)return SC()}else if(t)return;if(r.apply(this,arguments)){var n,i,o,a,l,u,h,d,f,p,m,g,v,b=this,y=H_.target.__data__.type,_="selection"===(H_.metaKey?y="overlay":y)?xC:H_.altKey?TC:MC,w=e===PC?null:RC[y],k=e===EC?null:LC[y],C=zC(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&&H_.shiftKey,j=ik(b),I=j,A=c(b,arguments).beforestart();"overlay"===y?C.selection=x=[[n=e===PC?O:j[0],o=e===EC?M:j[1]],[l=e===PC?T:n,h=e===EC?E:o]]:(n=x[0][0],o=x[0][1],l=x[1][0],h=x[1][1]),i=n,a=o,u=l,d=h;var D=tw(b).attr("pointer-events","none"),R=D.selectAll(".overlay").attr("cursor",IC[y]);if(H_.touches)D.on("touchmove.brush",N,!0).on("touchend.brush touchcancel.brush",B,!0);else{var L=tw(H_.view).on("keydown.brush",z,!0).on("keyup.brush",H,!0).on("mousemove.brush",N,!0).on("mouseup.brush",B,!0);iw(H_.view)}CC(),Ik(b),s.call(b),A.start()}function N(){var e=ik(b);!P||g||v||(Math.abs(e[0]-I[0])>Math.abs(e[1]-I[1])?v=!0:g=!0),I=e,m=!0,SC(),F()}function F(){var e;switch(f=I[0]-j[0],p=I[1]-j[1],_){case OC:case xC:w&&(f=Math.max(O-n,Math.min(T-l,f)),i=n+f,u=l+f),k&&(p=Math.max(M-o,Math.min(E-h,p)),a=o+p,d=h+p);break;case MC:w<0?(f=Math.max(O-n,Math.min(T-n,f)),i=n+f,u=l):w>0&&(f=Math.max(O-l,Math.min(T-l,f)),i=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 TC:w&&(i=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<i&&(w*=-1,e=n,n=l,l=e,e=i,i=u,u=e,y in AC&&R.attr("cursor",IC[y=AC[y]])),d<a&&(k*=-1,e=o,o=h,h=e,e=a,a=d,d=e,y in DC&&R.attr("cursor",IC[y=DC[y]])),C.selection&&(x=C.selection),g&&(i=x[0][0],u=x[1][0]),v&&(a=x[0][1],d=x[1][1]),x[0][0]===i&&x[0][1]===a&&x[1][0]===u&&x[1][1]===d||(C.selection=[[i,a],[u,d]],s.call(b),A.brush())}function B(){if(CC(),H_.touches){if(H_.touches.length)return;t&&clearTimeout(t),t=setTimeout(function(){t=null},500),D.on("touchmove.brush touchend.brush touchcancel.brush",null)}else ow(H_.view,m),L.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),R.attr("cursor",IC.overlay),C.selection&&(x=C.selection),HC(x)&&(C.selection=null,s.call(b)),A.end()}function z(){switch(H_.keyCode){case 16:P=w&&k;break;case 18:_===MC&&(w&&(l=u-f*w,n=i+f*w),k&&(h=d-p*k,o=a+p*k),_=TC,F());break;case 32:_!==MC&&_!==TC||(w<0?l=u-f:w>0&&(n=i-f),k<0?h=d-p:k>0&&(o=a-p),_=OC,R.attr("cursor",IC.selection),F());break;default:return}SC()}function H(){switch(H_.keyCode){case 16:P&&(g=v=P=!1,F());break;case 18:_===TC&&(w<0?l=u:w>0&&(n=i),k<0?h=d:k>0&&(o=a),_=MC,F());break;case 32:_===OC&&(H_.altKey?(w&&(l=u-f*w,n=i+f*w),k&&(h=d-p*k,o=a+p*k),_=TC):(w<0?l=u:w>0&&(n=i),k<0?h=d:k>0&&(o=a),_=MC),R.attr("cursor",IC[y]),F());break;default:return}SC()}}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,r=t.__brush,i=c(t,arguments),o=r.selection,a=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),l=tk(o,a);function u(e){r.selection=1===e&&HC(a)?null:l(e),s.call(t),i.brush()}return o&&a?u:u(1)}):t.each(function(){var t=this,r=arguments,i=t.__brush,o=e.input("function"==typeof n?n.apply(t,r):n,i.extent),a=c(t,r).beforestart();Ik(t),i.selection=null==o||HC(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){X_(new kC(a,t,e.output(this.state.selection)),i.apply,i,[t,this.that,this.args])}},a.extent=function(e){return arguments.length?(n="function"==typeof e?e:wC([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),a):n},a.filter=function(e){return arguments.length?(r="function"==typeof e?e:wC(!!e),a):r},a.handleSize=function(e){return arguments.length?(o=+e,a):o},a.on=function(){var e=i.on.apply(i,arguments);return e===i?a:e},a}var XC=Math.cos,YC=Math.sin,KC=Math.PI,QC=KC/2,ZC=2*KC,$C=Math.max;function JC(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}var eS=function(){var e=0,t=null,n=null,r=null;function i(i){var o,a,s,c,l,u,h=i.length,d=[],f=ey(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+=i[l][u];d.push(a),p.push(ey(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,r){return n(i[t][e],i[t][r])})}),c=(o=$C(0,ZC-e*h)/o)?e:ZC/h,a=0,l=-1;++l<h;){for(s=a,u=-1;++u<h;){var b=f[l],y=p[b][u],_=i[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 r?m.sort(r):m}return i.padAngle=function(t){return arguments.length?(e=$C(0,t),i):e},i.sortGroups=function(e){return arguments.length?(t=e,i):t},i.sortSubgroups=function(e){return arguments.length?(n=e,i):n},i.sortChords=function(e){return arguments.length?(null==e?r=null:(r=JC(e))._=e,i):r&&r._},i},tS=Array.prototype.slice,nS=function(e){return function(){return e}},rS=Math.PI,iS=2*rS,oS=1e-6,aS=iS-oS;function sS(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function cS(){return new sS}sS.prototype=cS.prototype={constructor:sS,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,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){var o=this._x1,a=this._y1,s=(n=+n)-(e=+e),c=(r=+r)-(t=+t),l=o-e,u=a-t,h=l*l+u*u;if((i=+i)<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>oS)if(Math.abs(u*s-c*l)>oS&&i){var d=n-o,f=r-a,p=s*s+c*c,m=d*d+f*f,g=Math.sqrt(p),v=Math.sqrt(h),b=i*Math.tan((rS-Math.acos((p+h-m)/(2*g*v)))/2),y=b/v,_=b/g;Math.abs(y-1)>oS&&(this._+="L"+(e+y*l)+","+(t+y*u)),this._+="A"+i+","+i+",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,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=e+a,l=t+s,u=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>oS||Math.abs(this._y1-l)>oS)&&(this._+="L"+c+","+l),n&&(h<0&&(h=h%iS+iS),h>aS?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=c)+","+(this._y1=l):h>oS&&(this._+="A"+n+","+n+",0,"+ +(h>=rS)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var lS=cS;function uS(e){return e.source}function hS(e){return e.target}function dS(e){return e.radius}function fS(e){return e.startAngle}function pS(e){return e.endAngle}var mS=function(){var e=uS,t=hS,n=dS,r=fS,i=pS,o=null;function a(){var a,s=tS.call(arguments),c=e.apply(this,s),l=t.apply(this,s),u=+n.apply(this,(s[0]=c,s)),h=r.apply(this,s)-QC,d=i.apply(this,s)-QC,f=u*XC(h),p=u*YC(h),m=+n.apply(this,(s[0]=l,s)),g=r.apply(this,s)-QC,v=i.apply(this,s)-QC;if(o||(o=a=lS()),o.moveTo(f,p),o.arc(0,0,u,h,d),h===g&&d===v||(o.quadraticCurveTo(0,0,m*XC(g),m*YC(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:nS(+e),a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:nS(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:nS(+e),a):i},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},gS="$";function vS(){}function bS(e,t){var n=new vS;if(e instanceof vS)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}vS.prototype=bS.prototype={constructor:vS,has:function(e){return gS+e in this},get:function(e){return this[gS+e]},set:function(e,t){return this[gS+e]=t,this},remove:function(e){var t=gS+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===gS&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===gS&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===gS&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===gS&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===gS&&++e;return e},empty:function(){for(var e in this)if(e[0]===gS)return!1;return!0},each:function(e){for(var t in this)t[0]===gS&&e(this[t],t.slice(1),this)}};var yS=bS,_S=function(){var e,t,n,r=[],i=[];function o(n,i,a,s){if(i>=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var c,l,u,h=-1,d=n.length,f=r[i++],p=yS(),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,i,a,s))}),m}function a(e,n){if(++n>r.length)return e;var o,s=i[n-1];return null!=t&&n>=r.length?o=e.entries():(o=[],e.each(function(e,t){o.push({key:t,values:a(e,n)})})),null!=s?o.sort(function(e,t){return s(e.key,t.key)}):o}return n={object:function(e){return o(e,0,wS,kS)},map:function(e){return o(e,0,CS,SS)},entries:function(e){return a(o(e,0,CS,SS),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function wS(){return{}}function kS(e,t,n){e[t]=n}function CS(){return yS()}function SS(e,t,n){e.set(t,n)}function xS(){}var OS=yS.prototype;function MS(e,t){var n=new xS;if(e instanceof xS)e.each(function(e){n.add(e)});else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}xS.prototype=MS.prototype={constructor:xS,has:OS.has,add:function(e){return this[gS+(e+="")]=e,this},remove:OS.remove,clear:OS.clear,values:OS.keys,size:OS.size,empty:OS.empty,each:OS.each};var TS=MS,ES=function(e){var t=[];for(var n in e)t.push(n);return t},PS=function(e){var t=[];for(var n in e)t.push(e[n]);return t},jS=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},IS=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function AS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function DS(){}var RS=.7,LS=1/RS,NS="\\s*([+-]?\\d+)\\s*",FS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",BS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zS=/^#([0-9a-f]{3})$/,HS=/^#([0-9a-f]{6})$/,VS=new RegExp("^rgb\\("+[NS,NS,NS]+"\\)$"),US=new RegExp("^rgb\\("+[BS,BS,BS]+"\\)$"),qS=new RegExp("^rgba\\("+[NS,NS,NS,FS]+"\\)$"),WS=new RegExp("^rgba\\("+[BS,BS,BS,FS]+"\\)$"),GS=new RegExp("^hsl\\("+[FS,BS,BS]+"\\)$"),XS=new RegExp("^hsla\\("+[FS,BS,BS,FS]+"\\)$"),YS={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 KS(e){var t;return e=(e+"").trim().toLowerCase(),(t=zS.exec(e))?new ex((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=HS.exec(e))?QS(parseInt(t[1],16)):(t=VS.exec(e))?new ex(t[1],t[2],t[3],1):(t=US.exec(e))?new ex(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qS.exec(e))?ZS(t[1],t[2],t[3],t[4]):(t=WS.exec(e))?ZS(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=GS.exec(e))?tx(t[1],t[2]/100,t[3]/100,1):(t=XS.exec(e))?tx(t[1],t[2]/100,t[3]/100,t[4]):YS.hasOwnProperty(e)?QS(YS[e]):"transparent"===e?new ex(NaN,NaN,NaN,0):null}function QS(e){return new ex(e>>16&255,e>>8&255,255&e,1)}function ZS(e,t,n,r){return r<=0&&(e=t=n=NaN),new ex(e,t,n,r)}function $S(e){return e instanceof DS||(e=KS(e)),e?new ex((e=e.rgb()).r,e.g,e.b,e.opacity):new ex}function JS(e,t,n,r){return 1===arguments.length?$S(e):new ex(e,t,n,null==r?1:r)}function ex(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ix(e,t,n,r)}function nx(e){if(e instanceof ix)return new ix(e.h,e.s,e.l,e.opacity);if(e instanceof DS||(e=KS(e)),!e)return new ix;if(e instanceof ix)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new ix(a,s,c,e.opacity)}function rx(e,t,n,r){return 1===arguments.length?nx(e):new ix(e,t,n,null==r?1:r)}function ix(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ox(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}IS(DS,KS,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),IS(ex,JS,AS(DS,{brighter:function(e){return e=null==e?LS:Math.pow(LS,e),new ex(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?RS:Math.pow(RS,e),new ex(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+")")}})),IS(ix,rx,AS(DS,{brighter:function(e){return e=null==e?LS:Math.pow(LS,e),new ix(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?RS:Math.pow(RS,e),new ix(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,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ex(ox(e>=240?e-240:e+120,i,r),ox(e,i,r),ox(e<120?e+240:e-120,i,r),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 ax=Math.PI/180,sx=180/Math.PI,cx=.96422,lx=.82521,ux=4/29,hx=6/29,dx=3*hx*hx;function fx(e){if(e instanceof mx)return new mx(e.l,e.a,e.b,e.opacity);if(e instanceof kx){if(isNaN(e.h))return new mx(e.l,0,0,e.opacity);var t=e.h*ax;return new mx(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof ex||(e=$S(e));var n,r,i=yx(e.r),o=yx(e.g),a=yx(e.b),s=gx((.2225045*i+.7168786*o+.0606169*a)/1);return i===o&&o===a?n=r=s:(n=gx((.4360747*i+.3850649*o+.1430804*a)/cx),r=gx((.0139322*i+.0971045*o+.7141733*a)/lx)),new mx(116*s-16,500*(n-s),200*(s-r),e.opacity)}function px(e,t,n,r){return 1===arguments.length?fx(e):new mx(e,t,n,null==r?1:r)}function mx(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function gx(e){return e>.008856451679035631?Math.pow(e,1/3):e/dx+ux}function vx(e){return e>hx?e*e*e:dx*(e-ux)}function bx(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _x(e){if(e instanceof kx)return new kx(e.h,e.c,e.l,e.opacity);if(e instanceof mx||(e=fx(e)),0===e.a&&0===e.b)return new kx(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sx;return new kx(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function wx(e,t,n,r){return 1===arguments.length?_x(e):new kx(e,t,n,null==r?1:r)}function kx(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}IS(mx,px,AS(DS,{brighter:function(e){return new mx(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new mx(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 ex(bx(3.1338561*(t=cx*vx(t))-1.6168667*(e=1*vx(e))-.4906146*(n=lx*vx(n))),bx(-.9787684*t+1.9161415*e+.033454*n),bx(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),IS(kx,wx,AS(DS,{brighter:function(e){return new kx(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new kx(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return fx(this).rgb()}}));var Cx=-.29227,Sx=-.90649,xx=1.97294,Ox=-1.7884503806,Mx=3.5172982438,Tx=-.6557636667999999;function Ex(e){if(e instanceof jx)return new jx(e.h,e.s,e.l,e.opacity);e instanceof ex||(e=$S(e));var t=e.g/255,n=e.b/255,r=(Tx*n+Ox*(e.r/255)-Mx*t)/(Tx+Ox-Mx),i=n-r,o=(xx*(t-r)-Cx*i)/Sx,a=Math.sqrt(o*o+i*i)/(xx*r*(1-r)),s=a?Math.atan2(o,i)*sx-120:NaN;return new jx(s<0?s+360:s,a,r,e.opacity)}function Px(e,t,n,r){return 1===arguments.length?Ex(e):new jx(e,t,n,null==r?1:r)}function jx(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}IS(jx,Px,AS(DS,{brighter:function(e){return e=null==e?LS:Math.pow(LS,e),new jx(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?RS:Math.pow(RS,e),new jx(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ax,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new ex(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(Cx*r+Sx*i)),255*(t+n*(xx*r)),this.opacity)}}));var Ix=Array.prototype.slice,Ax=function(e,t){return e-t},Dx=function(e){return function(){return e}},Rx=function(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=Lx(e,t[r]))return n;return 0};function Lx(e,t){for(var n=t[0],r=t[1],i=-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(Nx(c,h,t))return 0;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(i=-i)}return i}function Nx(e,t,n){var r,i,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)&&(i=e[r=+(e[0]===t[0])],a=t[r],i<=(o=n[r])&&o<=a||a<=o&&o<=i)}var Fx=function(){},Bx=[[],[[[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]]],[]],zx=function(){var e=1,t=1,n=sy,r=s;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Ax);else{var r=Yb(e),i=r[0],a=r[1];t=ay(i,a,t),t=ey(Math.floor(i/t)*t,Math.floor(a/t)*t,t)}return t.map(function(t){return o(e,t)})}function o(n,i){var o=[],s=[];return function(n,r,i){var o,s,c,l,u,h=new Array,d=new Array;for(o=s=-1,Bx[(c=n[0]>=r)<<1].forEach(f);++o<e-1;)Bx[c|(c=n[o+1]>=r)<<1].forEach(f);for(Bx[c<<0].forEach(f);++s<t-1;){for(o=-1,Bx[(c=n[s*e+e]>=r)<<1|(l=n[s*e]>=r)<<2].forEach(f);++o<e-1;)u=l,Bx[c|(c=n[s*e+e+o+1]>=r)<<1|(l=n[s*e+o+1]>=r)<<2|u<<3].forEach(f);Bx[c|l<<3].forEach(f)}for(o=-1,Bx[(l=n[s*e]>=r)<<2].forEach(f);++o<e-1;)u=l,Bx[(l=n[s*e+o+1]>=r)<<2|u<<3].forEach(f);function f(e){var t,n,r=[e[0][0]+o,e[0][1]+s],c=[e[1][0]+o,e[1][1]+s],l=a(r),u=a(c);(t=d[l])?(n=h[u])?(delete d[t.end],delete h[n.start],t===n?(t.ring.push(c),i(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),i(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(r),h[t.start=l]=t):h[l]=d[u]={start:l,end:u,ring:[r,c]}}Bx[l<<3].forEach(f)}(n,i,function(e){r(e,n,i),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}(e)>0?o.push([e]):s.push(e)}),s.forEach(function(e){for(var t,n=0,r=o.length;n<r;++n)if(-1!==Rx((t=o[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:i,coordinates:o}}function a(t){return 2*t[0]+t[1]*(e+1)*4}function s(n,r,i){n.forEach(function(n){var o,a=n[0],s=n[1],c=0|a,l=0|s,u=r[l*e+c];a>0&&a<e&&c===a&&(n[0]=a+(i-(o=r[l*e+c-1]))/(u-o)-.5),s>0&&s<t&&l===s&&(n[1]=s+(i-(o=r[(l-1)*e+c]))/(u-o)-.5)})}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(r>0&&o>0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?Dx(Ix.call(e)):Dx(e),i):n},i.smooth=function(e){return arguments.length?(r=e?s:Fx,i):r===s},i};function Hx(e,t,n){for(var r=e.width,i=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[s+a*r]),s>=n&&(s>=o&&(c-=e.data[s-o+a*r]),t.data[s-n+a*r]=c/Math.min(s+1,r-1+o-s,o))}function Vx(e,t,n){for(var r=e.width,i=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[a+s*r]),s>=n&&(s>=o&&(c-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=c/Math.min(s+1,i-1+o-s,o))}function Ux(e){return e[0]}function qx(e){return e[1]}var Wx=function(){var e=Ux,t=qx,n=960,r=500,i=20,o=2,a=3*i,s=n+2*a>>o,c=r+2*a>>o,l=Dx(20);function u(n){var r=new Float32Array(s*c),u=new Float32Array(s*c);n.forEach(function(n,i,l){var u=e(n,i,l)+a>>o,h=t(n,i,l)+a>>o;u>=0&&u<s&&h>=0&&h<c&&++r[u+h*s]}),Hx({width:s,height:c,data:r},{width:s,height:c,data:u},i>>o),Vx({width:s,height:c,data:u},{width:s,height:c,data:r},i>>o),Hx({width:s,height:c,data:r},{width:s,height:c,data:u},i>>o),Vx({width:s,height:c,data:u},{width:s,height:c,data:r},i>>o),Hx({width:s,height:c,data:r},{width:s,height:c,data:u},i>>o),Vx({width:s,height:c,data:u},{width:s,height:c,data:r},i>>o);var d=l(r);if(!Array.isArray(d)){var f=dy(r);d=ay(0,f,d),(d=ey(0,Math.floor(f/d)*d,d)).shift()}return zx().thresholds(d).size([s,c])(r).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*i)>>o,c=r+2*a>>o,u}return u.x=function(t){return arguments.length?(e="function"==typeof t?t:Dx(+t),u):e},u.y=function(e){return arguments.length?(t="function"==typeof e?e:Dx(+e),u):t},u.size=function(e){if(!arguments.length)return[n,r];var t=Math.ceil(e[0]),i=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return n=t,r=i,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)?Dx(Ix.call(e)):Dx(e),u):l},u.bandwidth=function(e){if(!arguments.length)return Math.sqrt(i*(i+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return i=Math.round((Math.sqrt(4*e*e+1)-1)/2),m()},u},Gx=function(e,t,n){arguments.length<3&&(n=t,t=nk().changedTouches);for(var r,i=0,o=t?t.length:0;i<o;++i)if((r=t[i]).identifier===n)return rk(e,r);return null},Xx=function(e){return function(){return e}};function Yx(e,t,n,r,i,o,a,s,c,l){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=c,this._=l}function Kx(){return!H_.ctrlKey&&!H_.button}function Qx(){return this.parentNode}function Zx(e){return null==e?{x:H_.x,y:H_.y}:e}function $x(){return navigator.maxTouchPoints||"ontouchstart"in this}Yx.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var Jx=function(){var e,t,n,r,i=Kx,o=Qx,a=Zx,s=$x,c={},l=Uy("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(!r&&i.apply(this,arguments)){var a=y("mouse",o.apply(this,arguments),ik,this,arguments);a&&(tw(H_.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),iw(H_.view),nw(),n=!1,e=H_.clientX,t=H_.clientY,a("start"))}}function p(){if(rw(),!n){var r=H_.clientX-e,i=H_.clientY-t;n=r*r+i*i>h}c.mouse("drag")}function m(){tw(H_.view).on("mousemove.drag mouseup.drag",null),ow(H_.view,n),rw(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var e,t,n=H_.changedTouches,r=o.apply(this,arguments),a=n.length;for(e=0;e<a;++e)(t=y(n[e].identifier,r,Gx,this,arguments))&&(nw(),t("start"))}}function v(){var e,t,n=H_.changedTouches,r=n.length;for(e=0;e<r;++e)(t=c[n[e].identifier])&&(rw(),t("drag"))}function b(){var e,t,n=H_.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<i;++e)(t=c[n[e].identifier])&&(nw(),t("end"))}function y(e,t,n,r,i){var o,s,h,f=n(t,e),p=l.copy();if(X_(new Yx(d,"beforestart",o,e,u,f[0],f[1],0,0,p),function(){return null!=(H_.subject=o=a.apply(r,i))&&(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}X_(new Yx(d,l,o,e,m,f[0]+s,f[1]+h,f[0]-g[0],f[1]-g[1],p),p.apply,p,[l,r,i])}}return d.filter=function(e){return arguments.length?(i="function"==typeof e?e:Xx(!!e),d):i},d.container=function(e){return arguments.length?(o="function"==typeof e?e:Xx(e),d):o},d.subject=function(e){return arguments.length?(a="function"==typeof e?e:Xx(e),d):a},d.touchable=function(e){return arguments.length?(s="function"==typeof e?e:Xx(!!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},eO={},tO={};function nO(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}var rO=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,a=0,s=0,c=o<=0,l=!1;function u(){if(c)return tO;if(l)return l=!1,eO;var t,r,i=a;if(34===e.charCodeAt(i)){for(;a++<o&&34!==e.charCodeAt(a)||34===e.charCodeAt(++a););return(t=a)>=o?c=!0:10===(r=e.charCodeAt(a++))?l=!0:13===r&&(l=!0,10===e.charCodeAt(a)&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}for(;a<o;){if(10===(r=e.charCodeAt(t=a++)))l=!0;else if(13===r)l=!0,10===e.charCodeAt(a)&&++a;else if(r!==n)continue;return e.slice(i,t)}return c=!0,e.slice(i,o)}for(10===e.charCodeAt(o-1)&&--o,13===e.charCodeAt(o-1)&&--o;(r=u())!==tO;){for(var h=[];r!==eO&&r!==tO;)h.push(r),r=u();t&&null==(h=t(h,s++))||i.push(h)}return i}function i(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,i,o=r(e,function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=nO(e);return function(r,i){return t(n(r),i,e)}}(e,t):nO(e)});return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=function(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),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(i).join("\n")}}},iO=rO(","),oO=iO.parse,aO=iO.parseRows,sO=iO.format,cO=iO.formatRows,lO=rO("\t"),uO=lO.parse,hO=lO.parseRows,dO=lO.format,fO=lO.formatRows;function pO(e){return+e}function mO(e){return e*e}function gO(e){return e*(2-e)}function vO(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var bO=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),yO=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),_O=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),wO=Math.PI,kO=wO/2;function CO(e){return 1==+e?1:1-Math.cos(e*kO)}function SO(e){return Math.sin(e*kO)}function xO(e){return(1-Math.cos(wO*e))/2}function OO(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function MO(e){return OO(1-+e)}function TO(e){return 1-OO(e)}function EO(e){return((e*=2)<=1?OO(1-e):2-OO(e-1))/2}function PO(e){return 1-Math.sqrt(1-e*e)}function jO(e){return Math.sqrt(1- --e*e)}function IO(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var AO=7.5625;function DO(e){return 1-RO(1-e)}function RO(e){return(e=+e)<.36363636363636365?AO*e*e:e<.7272727272727273?AO*(e-=.5454545454545454)*e+.75:e<.9090909090909091?AO*(e-=.8181818181818182)*e+.9375:AO*(e-=.9545454545454546)*e+.984375}function LO(e){return((e*=2)<=1?1-RO(1-e):RO(e-1)+1)/2}var NO=1.70158,FO=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(NO),BO=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(NO),zO=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}(NO),HO=2*Math.PI,VO=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=HO);function i(e){return t*OO(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*HO)},i.period=function(n){return e(t,n)},i}(1,.3),UO=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=HO);function i(e){return 1-t*OO(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*HO)},i.period=function(n){return e(t,n)},i}(1,.3),qO=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=HO);function i(e){return((e=2*e-1)<0?t*OO(-e)*Math.sin((r-e)/n):2-t*OO(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*HO)},i.period=function(n){return e(t,n)},i}(1,.3),WO=function(e,t){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r<o;++r)a+=(i=n[r]).x,s+=i.y;for(a=a/o-e,s=s/o-t,r=0;r<o;++r)(i=n[r]).x-=a,i.y-=s}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r},GO=function(e){return function(){return e}},XO=function(){return 1e-6*(Math.random()-.5)};function YO(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,c,l,u,h,d,f=e._root,p={data:r},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,i=f,!(f=f[h=u<<1|l]))return i[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,i?i[h]=p:e._root=p,e;do{i=i?i[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 i[d]=f,i[h]=p,e}var KO=function(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i};function QO(e){return e[0]}function ZO(e){return e[1]}function $O(e,t,n){var r=new JO(null==t?QO:t,null==n?ZO:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function JO(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function eM(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var tM=$O.prototype=JO.prototype;function nM(e){return e.x+e.vx}function rM(e){return e.y+e.vy}tM.copy=function(){var e,t,n=new JO(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=eM(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=eM(t));return n},tM.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return YO(this.cover(t,n),t,n,e)},tM.addAll=function(e){var t,n,r,i,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(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,s[n]=i,r<c&&(c=r),r>u&&(u=r),i<l&&(l=i),i>h&&(h=i));if(c>u||l>h)return this;for(this.cover(c,l).cover(u,h),n=0;n<o;++n)YO(this,a[n],s[n],e[n]);return this},tM.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a,s,c=i-n,l=this._root;n>e||e>=i||r>t||t>=o;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=l,l=a,c*=2,s){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},tM.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},tM.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]]},tM.find=function(e,t,n){var r,i,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 KO(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)||(i=c.x0)>d||(o=c.y0)>f||(a=c.x1)<u||(s=c.y1)<h))if(m.length){var g=(i+a)/2,v=(o+s)/2;p.push(new KO(m[3],g,v,a,s),new KO(m[2],i,v,g,s),new KO(m[1],g,o,a,v),new KO(m[0],i,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,r=m.data}}return r},tM.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,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(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):t?(i?t[h]=i: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=i,this)},tM.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},tM.root=function(){return this._root},tM.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},tM.visit=function(e){var t,n,r,i,o,a,s=[],c=this._root;for(c&&s.push(new KO(c,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(c=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&c.length){var l=(r+o)/2,u=(i+a)/2;(n=c[3])&&s.push(new KO(n,l,u,o,a)),(n=c[2])&&s.push(new KO(n,r,u,l,a)),(n=c[1])&&s.push(new KO(n,l,i,o,u)),(n=c[0])&&s.push(new KO(n,r,i,l,u))}return this},tM.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new KO(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,c=t.x1,l=t.y1,u=(a+c)/2,h=(s+l)/2;(o=i[0])&&n.push(new KO(o,a,s,u,h)),(o=i[1])&&n.push(new KO(o,u,s,c,h)),(o=i[2])&&n.push(new KO(o,a,h,u,l)),(o=i[3])&&n.push(new KO(o,u,h,c,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},tM.x=function(e){return arguments.length?(this._x=e,this):this._x},tM.y=function(e){return arguments.length?(this._y=e,this):this._y};var iM=function(e){var t,n,r=1,i=1;function o(){for(var e,o,s,c,l,u,h,d=t.length,f=0;f<i;++f)for(o=$O(t,nM,rM).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,i,o){var a=e.data,d=e.r,f=u+d;if(!a)return t>c+f||i<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=XO())*p),0===m&&(g+=(m=XO())*m),g=(f-(g=Math.sqrt(g)))/g*r,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 r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)n[(i=t[r]).index]=+e(i,r,t)}}return"function"!=typeof e&&(e=GO(null==e?1:+e)),o.initialize=function(e){t=e,s()},o.iterations=function(e){return arguments.length?(i=+e,o):i},o.strength=function(e){return arguments.length?(r=+e,o):r},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:GO(+t),s(),o):e},o};function oM(e){return e.index}function aM(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var sM=function(e){var t,n,r,i,o,a=oM,s=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},c=GO(30),l=1;function u(r){for(var i=0,a=e.length;i<l;++i)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||XO(),d=u.y+u.vy-c.y-c.vy||XO(),d*=f=((f=Math.sqrt(h*h+d*d))-n[m])/f*r*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(r){var s,c,l=r.length,u=e.length,h=yS(r,a);for(s=0,i=new Array(l);s<u;++s)(c=e[s]).index=s,"object"!=typeof c.source&&(c.source=aM(h,c.source)),"object"!=typeof c.target&&(c.target=aM(h,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(s=0,o=new Array(u);s<u;++s)o[s]=i[(c=e[s]).source.index]/(i[c.source.index]+i[c.target.index]);t=new Array(u),d(),n=new Array(u),f()}}function d(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+s(e[n],n,e)}function f(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),u.initialize=function(e){r=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:GO(+e),d(),u):s},u.distance=function(e){return arguments.length?(c="function"==typeof e?e:GO(+e),f(),u):c},u};function cM(e){return e.x}function lM(e){return e.y}var uM,hM=Math.PI*(3-Math.sqrt(5)),dM=function(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=yS(),c=gk(u),l=Uy("tick","end");function u(){h(),l.call("tick",t),n<r&&(c.stop(),l.call("end",t))}function h(){var t,r,c=e.length;for(n+=(o-n)*i,s.each(function(e){e(n)}),t=0;t<c;++t)null==(r=e[t]).fx?r.x+=r.vx*=a:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=a:(r.y=r.fy,r.vy=0)}function d(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,isNaN(t.x)||isNaN(t.y)){var i=10*Math.sqrt(n),o=n*hM;t.x=i*Math.cos(o),t.y=i*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?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},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,r){var i,o,a,s,c,l=0,u=e.length;for(null==r?r=1/0:r*=r,l=0;l<u;++l)(a=(i=t-(s=e[l]).x)*i+(o=n-s.y)*o)<r&&(c=s,r=a);return c},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}},fM=function(){var e,t,n,r,i=GO(-30),o=1,a=1/0,s=.81;function c(r){var i,o=e.length,a=$O(e,cM,lM).visitAfter(u);for(n=r,i=0;i<o;++i)t=e[i],a.visit(h)}function l(){if(e){var t,n,o=e.length;for(r=new Array(o),t=0;t<o;++t)r[(n=e[t]).index]=+i(n,t,e)}}function u(e){var t,n,i,o,a,s=0,c=0;if(e.length){for(i=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,c+=n,i+=n*t.x,o+=n*t.y);e.x=i/c,e.y=o/c}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=r[t.data.index]}while(t=t.next)}e.value=s}function h(e,i,c,l){if(!e.value)return!0;var u=e.x-t.x,h=e.y-t.y,d=l-i,f=u*u+h*h;if(d*d/s<f)return f<a&&(0===u&&(f+=(u=XO())*u),0===h&&(f+=(h=XO())*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=XO())*u),0===h&&(f+=(h=XO())*h),f<o&&(f=Math.sqrt(o*f)));do{e.data!==t&&(t.vx+=u*(d=r[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?(i="function"==typeof e?e:GO(+e),l(),c):i},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},pM=function(e,t,n){var r,i,o,a=GO(.1);function s(e){for(var a=0,s=r.length;a<s;++a){var c=r[a],l=c.x-t||1e-6,u=c.y-n||1e-6,h=Math.sqrt(l*l+u*u),d=(o[a]-h)*i[a]*e/h;c.vx+=l*d,c.vy+=u*d}}function c(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+a(r[t],t,r)}}return"function"!=typeof e&&(e=GO(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){r=e,c()},s.strength=function(e){return arguments.length?(a="function"==typeof e?e:GO(+e),c(),s):a},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:GO(+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},mM=function(e){var t,n,r,i=GO(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=GO(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:GO(+e),a(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:GO(+t),a(),o):e},o},gM=function(e){var t,n,r,i=GO(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=GO(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:GO(+e),a(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:GO(+t),a(),o):e},o},vM=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},bM=function(e){return(e=vM(Math.abs(e)))?e[1]:NaN},yM=function(e,t){var n=vM(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},_M={"":function(e,t){e:for(var n,r=(e=e.toPrecision(t)).length,i=1,o=-1;i<r;++i)switch(e[i]){case".":o=n=i;break;case"0":0===o&&(o=i),n=i;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 yM(100*e,t)},r:yM,s:function(e,t){var n=vM(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(uM=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vM(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)}},wM=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function kM(e){return new CM(e)}function CM(e){if(!(t=wM.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",i=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"):_M[u]||(u=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=s,this.comma=c,this.precision=l,this.type=u}kM.prototype=CM.prototype,CM.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 SM,xM,OM,MM=function(e){return e},TM=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"],EM=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):MM,i=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):MM,s=e.percent||"%";function c(e){var t=(e=kM(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?i[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===l?i[1]:/[%p]/.test(p)?s:"",v=_M[p],b=!p||/[defgprs%]/.test(p);function y(e){var i,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?TM[8+uM/3]:"")+_+(w&&"("===c?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(l=e.charCodeAt(i))||l>57){_=(46===l?o+e.slice(i+1):e.slice(i))+_,e=e.slice(0,i);break}}d&&!u&&(e=r(e,1/0));var k=y.length+e.length+_.length,C=k<h?new Array(h-k+1).join(t):"";switch(d&&u&&(e=r(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=kM(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(bM(t)/3))),i=Math.pow(10,-r),o=TM[8+r/3];return function(e){return n(i*e)+o}}}};function PM(e){return SM=EM(e),xM=SM.format,OM=SM.formatPrefix,SM}PM({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var jM=function(e){return Math.max(0,-bM(Math.abs(e)))},IM=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(bM(t)/3)))-bM(Math.abs(e)))},AM=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bM(t)-bM(e))+1},DM=function(){return new RM};function RM(){this.reset()}RM.prototype={constructor:RM,reset:function(){this.s=this.t=0},add:function(e){NM(LM,e,this.t),NM(this,LM.s,this.s),this.s?this.t+=LM.t:this.s=LM.t},valueOf:function(){return this.s}};var LM=new RM;function NM(e,t,n){var r=e.s=t+n,i=r-t;e.t=t-(r-i)+(n-i)}var FM=1e-6,BM=Math.PI,zM=BM/2,HM=BM/4,VM=2*BM,UM=180/BM,qM=BM/180,WM=Math.abs,GM=Math.atan,XM=Math.atan2,YM=Math.cos,KM=Math.ceil,QM=Math.exp,ZM=(Math,Math.log),$M=Math.pow,JM=Math.sin,eT=Math.sign||function(e){return e>0?1:e<0?-1:0},tT=Math.sqrt,nT=Math.tan;function rT(e){return e>1?0:e<-1?BM:Math.acos(e)}function iT(e){return e>1?zM:e<-1?-zM:Math.asin(e)}function oT(e){return(e=JM(e/2))*e}function aT(){}function sT(e,t){e&&lT.hasOwnProperty(e.type)&&lT[e.type](e,t)}var cT={Feature:function(e,t){sT(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)sT(n[r].geometry,t)}},lT={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,r=-1,i=n.length;++r<i;)t.point((e=n[r])[0],e[1],e[2])},LineString:function(e,t){uT(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)uT(n[r],t,0)},Polygon:function(e,t){hT(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)hT(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)sT(n[r],t)}};function uT(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)t.point((r=e[i])[0],r[1],r[2]);t.lineEnd()}function hT(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)uT(e[n],t,1);t.polygonEnd()}var dT,fT,pT,mT,gT,vT=function(e,t){e&&cT.hasOwnProperty(e.type)?cT[e.type](e,t):sT(e,t)},bT=DM(),yT=DM(),_T={point:aT,lineStart:aT,lineEnd:aT,polygonStart:function(){bT.reset(),_T.lineStart=wT,_T.lineEnd=kT},polygonEnd:function(){var e=+bT;yT.add(e<0?VM+e:e),this.lineStart=this.lineEnd=this.point=aT},sphere:function(){yT.add(VM)}};function wT(){_T.point=CT}function kT(){ST(dT,fT)}function CT(e,t){_T.point=ST,dT=e,fT=t,pT=e*=qM,mT=YM(t=(t*=qM)/2+HM),gT=JM(t)}function ST(e,t){var n=(e*=qM)-pT,r=n>=0?1:-1,i=r*n,o=YM(t=(t*=qM)/2+HM),a=JM(t),s=gT*a,c=mT*o+s*YM(i),l=s*r*JM(i);bT.add(XM(l,c)),pT=e,mT=o,gT=a}var xT=function(e){return yT.reset(),vT(e,_T),2*yT};function OT(e){return[XM(e[1],e[0]),iT(e[2])]}function MT(e){var t=e[0],n=e[1],r=YM(n);return[r*YM(t),r*JM(t),JM(n)]}function TT(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function ET(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 PT(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function jT(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function IT(e){var t=tT(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var AT,DT,RT,LT,NT,FT,BT,zT,HT,VT,UT=DM(),qT={point:WT,lineStart:XT,lineEnd:YT,polygonStart:function(){qT.point=KT,qT.lineStart=QT,qT.lineEnd=ZT,UT.reset(),_T.polygonStart()},polygonEnd:function(){_T.polygonEnd(),qT.point=WT,qT.lineStart=XT,qT.lineEnd=YT,bT<0?(AT=-(RT=180),DT=-(LT=90)):UT>FM?LT=90:UT<-1e-6&&(DT=-90),VT[0]=AT,VT[1]=RT}};function WT(e,t){HT.push(VT=[AT=e,RT=e]),t<DT&&(DT=t),t>LT&&(LT=t)}function GT(e,t){var n=MT([e*qM,t*qM]);if(zT){var r=ET(zT,n),i=ET([r[1],-r[0],0],r);IT(i),i=OT(i);var o,a=e-NT,s=a>0?1:-1,c=i[0]*UM*s,l=WM(a)>180;l^(s*NT<c&&c<s*e)?(o=i[1]*UM)>LT&&(LT=o):l^(s*NT<(c=(c+360)%360-180)&&c<s*e)?(o=-i[1]*UM)<DT&&(DT=o):(t<DT&&(DT=t),t>LT&&(LT=t)),l?e<NT?$T(AT,e)>$T(AT,RT)&&(RT=e):$T(e,RT)>$T(AT,RT)&&(AT=e):RT>=AT?(e<AT&&(AT=e),e>RT&&(RT=e)):e>NT?$T(AT,e)>$T(AT,RT)&&(RT=e):$T(e,RT)>$T(AT,RT)&&(AT=e)}else HT.push(VT=[AT=e,RT=e]);t<DT&&(DT=t),t>LT&&(LT=t),zT=n,NT=e}function XT(){qT.point=GT}function YT(){VT[0]=AT,VT[1]=RT,qT.point=WT,zT=null}function KT(e,t){if(zT){var n=e-NT;UT.add(WM(n)>180?n+(n>0?360:-360):n)}else FT=e,BT=t;_T.point(e,t),GT(e,t)}function QT(){_T.lineStart()}function ZT(){KT(FT,BT),_T.lineEnd(),WM(UT)>FM&&(AT=-(RT=180)),VT[0]=AT,VT[1]=RT,zT=null}function $T(e,t){return(t-=e)<0?t+360:t}function JT(e,t){return e[0]-t[0]}function eE(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var tE,nE,rE,iE,oE,aE,sE,cE,lE,uE,hE,dE,fE,pE,mE,gE,vE=function(e){var t,n,r,i,o,a,s;if(LT=RT=-(AT=DT=1/0),HT=[],vT(e,qT),n=HT.length){for(HT.sort(JT),t=1,o=[r=HT[0]];t<n;++t)eE(r,(i=HT[t])[0])||eE(r,i[1])?($T(r[0],i[1])>$T(r[0],r[1])&&(r[1]=i[1]),$T(i[0],r[1])>$T(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)(s=$T(r[1],(i=o[t])[0]))>a&&(a=s,AT=i[0],RT=r[1])}return HT=VT=null,AT===1/0||DT===1/0?[[NaN,NaN],[NaN,NaN]]:[[AT,DT],[RT,LT]]},bE={sphere:aT,point:yE,lineStart:wE,lineEnd:SE,polygonStart:function(){bE.lineStart=xE,bE.lineEnd=OE},polygonEnd:function(){bE.lineStart=wE,bE.lineEnd=SE}};function yE(e,t){e*=qM;var n=YM(t*=qM);_E(n*YM(e),n*JM(e),JM(t))}function _E(e,t,n){++tE,rE+=(e-rE)/tE,iE+=(t-iE)/tE,oE+=(n-oE)/tE}function wE(){bE.point=kE}function kE(e,t){e*=qM;var n=YM(t*=qM);pE=n*YM(e),mE=n*JM(e),gE=JM(t),bE.point=CE,_E(pE,mE,gE)}function CE(e,t){e*=qM;var n=YM(t*=qM),r=n*YM(e),i=n*JM(e),o=JM(t),a=XM(tT((a=mE*o-gE*i)*a+(a=gE*r-pE*o)*a+(a=pE*i-mE*r)*a),pE*r+mE*i+gE*o);nE+=a,aE+=a*(pE+(pE=r)),sE+=a*(mE+(mE=i)),cE+=a*(gE+(gE=o)),_E(pE,mE,gE)}function SE(){bE.point=yE}function xE(){bE.point=ME}function OE(){TE(dE,fE),bE.point=yE}function ME(e,t){dE=e,fE=t,e*=qM,t*=qM,bE.point=TE;var n=YM(t);pE=n*YM(e),mE=n*JM(e),gE=JM(t),_E(pE,mE,gE)}function TE(e,t){e*=qM;var n=YM(t*=qM),r=n*YM(e),i=n*JM(e),o=JM(t),a=mE*o-gE*i,s=gE*r-pE*o,c=pE*i-mE*r,l=tT(a*a+s*s+c*c),u=iT(l),h=l&&-u/l;lE+=h*a,uE+=h*s,hE+=h*c,nE+=u,aE+=u*(pE+(pE=r)),sE+=u*(mE+(mE=i)),cE+=u*(gE+(gE=o)),_E(pE,mE,gE)}var EE=function(e){tE=nE=rE=iE=oE=aE=sE=cE=lE=uE=hE=0,vT(e,bE);var t=lE,n=uE,r=hE,i=t*t+n*n+r*r;return i<1e-12&&(t=aE,n=sE,r=cE,nE<FM&&(t=rE,n=iE,r=oE),(i=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[XM(n,t)*UM,iT(r/tT(i))*UM]},PE=function(e){return function(){return e}},jE=function(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n};function IE(e,t){return[e>BM?e-VM:e<-BM?e+VM:e,t]}function AE(e,t,n){return(e%=VM)?t||n?jE(RE(e),LE(t,n)):RE(e):t||n?LE(t,n):IE}function DE(e){return function(t,n){return[(t+=e)>BM?t-VM:t<-BM?t+VM:t,n]}}function RE(e){var t=DE(e);return t.invert=DE(-e),t}function LE(e,t){var n=YM(e),r=JM(e),i=YM(t),o=JM(t);function a(e,t){var a=YM(t),s=YM(e)*a,c=JM(e)*a,l=JM(t),u=l*n+s*r;return[XM(c*i-u*o,s*n-l*r),iT(u*i+c*o)]}return a.invert=function(e,t){var a=YM(t),s=YM(e)*a,c=JM(e)*a,l=JM(t),u=l*i-c*o;return[XM(c*i+l*o,s*n+u*r),iT(u*n-s*r)]},a}IE.invert=IE;var NE=function(e){function t(t){return(t=e(t[0]*qM,t[1]*qM))[0]*=UM,t[1]*=UM,t}return e=AE(e[0]*qM,e[1]*qM,e.length>2?e[2]*qM:0),t.invert=function(t){return(t=e.invert(t[0]*qM,t[1]*qM))[0]*=UM,t[1]*=UM,t},t};function FE(e,t,n,r,i,o){if(n){var a=YM(t),s=JM(t),c=r*n;null==i?(i=t+r*VM,o=t-c/2):(i=BE(a,i),o=BE(a,o),(r>0?i<o:i>o)&&(i+=r*VM));for(var l,u=i;r>0?u>o:u<o;u-=c)l=OT([a,-s*YM(u),-s*JM(u)]),e.point(l[0],l[1])}}function BE(e,t){(t=MT(t))[0]-=e,IT(t);var n=rT(-t[1]);return((-t[2]<0?-n:n)+VM-FM)%VM}var zE=function(){var e,t,n=PE([0,0]),r=PE(90),i=PE(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=UM,n[1]*=UM}};function a(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*qM,c=i.apply(this,arguments)*qM;return e=[],t=AE(-a[0]*qM,-a[1]*qM,0).invert,FE(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:PE([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"==typeof e?e:PE(+e),a):r},a.precision=function(e){return arguments.length?(i="function"==typeof e?e:PE(+e),a):i},a},HE=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:aT,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},VE=function(e,t){return WM(e[0]-t[0])<FM&&WM(e[1]-t[1])<FM};function UE(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var qE=function(e,t,n,r,i){var o,a,s=[],c=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(VE(r,a)){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);i.lineEnd()}else s.push(n=new UE(r,e,null,!0)),c.push(n.o=new UE(r,null,n,!1)),s.push(n=new UE(a,e,null,!1)),c.push(n.o=new UE(a,null,n,!0))}}),s.length){for(c.sort(t),WE(s),WE(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,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(f)for(o=0,a=l.length;o<a;++o)i.point((u=l[o])[0],u[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(f)for(o=(l=d.p.z).length-1;o>=0;--o)i.point((u=l[o])[0],u[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,f=!f}while(!d.v);i.lineEnd()}}};function WE(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}var GE=DM(),XE=function(e,t){var n=t[0],r=t[1],i=JM(r),o=[JM(n),-YM(n),0],a=0,s=0;GE.reset(),1===i?r=zM+FM:-1===i&&(r=-zM-FM);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+HM,m=JM(p),g=YM(p),v=0;v<h;++v,f=y,m=w,g=k,d=b){var b=u[v],y=b[0],_=b[1]/2+HM,w=JM(_),k=YM(_),C=y-f,S=C>=0?1:-1,x=S*C,O=x>BM,M=m*w;if(GE.add(XM(M*S*JM(x),g*k+M*YM(x))),a+=O?C+S*VM:C,O^f>=n^y>=n){var T=ET(MT(d),MT(b));IT(T);var E=ET(o,T);IT(E);var P=(O^C>=0?-1:1)*iT(E[2]);(r>P||r===P&&(T[0]||T[1]))&&(s+=O^C>=0?1:-1)}}return(a<-1e-6||a<FM&&GE<-1e-6)^1&s},YE=function(e,t,n,r){return function(i){var o,a,s,c=t(i),l=HE(),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=my(a);var e=XE(o,r);a.length?(h||(i.polygonStart(),h=!0),qE(a,QE,e,n,i)):e&&(h||(i.polygonStart(),h=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),h&&(i.polygonEnd(),h=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(t,n){e(t,n)&&i.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,r,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||(i.polygonStart(),h=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else f>1&&2&c&&d.push(d.pop().concat(d.shift())),a.push(d.filter(KE))}return d}};function KE(e){return e.length>1}function QE(e,t){return((e=e.x)[0]<0?e[1]-zM-FM:zM-e[1])-((t=t.x)[0]<0?t[1]-zM-FM:zM-t[1])}var ZE=YE(function(){return!0},function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?BM:-BM,c=WM(o-n);WM(c-BM)<FM?(e.point(n,r=(r+a)/2>0?zM:-zM),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&c>=BM&&(WM(n-i)<FM&&(n-=i*FM),WM(o-s)<FM&&(o-=s*FM),r=function(e,t,n,r){var i,o,a=JM(e-n);return WM(a)>FM?GM((JM(t)*(o=YM(r))*JM(n)-JM(r)*(i=YM(t))*JM(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)r.point(-BM,i=n*zM),r.point(0,i),r.point(BM,i),r.point(BM,0),r.point(BM,-i),r.point(0,-i),r.point(-BM,-i),r.point(-BM,0),r.point(-BM,i);else if(WM(e[0]-t[0])>FM){var o=e[0]<t[0]?BM:-BM;r.point(-o,i=n*o/2),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])},[-BM,-zM]),$E=function(e){var t=YM(e),n=6*qM,r=t>0,i=WM(t)>FM;function o(e,n){return YM(e)*YM(n)>t}function a(e,n,r){var i=[1,0,0],o=ET(MT(e),MT(n)),a=TT(o,o),s=o[0],c=a-s*s;if(!c)return!r&&e;var l=t*a/c,u=-t*s/c,h=ET(i,o),d=jT(i,l);PT(d,jT(o,u));var f=h,p=TT(d,f),m=TT(f,f),g=p*p-m*(TT(d,d)-1);if(!(g<0)){var v=tT(g),b=jT(f,(-p-v)/m);if(PT(b,d),b=OT(b),!r)return b;var y,_=e[0],w=n[0],k=e[1],C=n[1];w<_&&(y=_,_=w,w=y);var S=w-_,x=WM(S-BM)<FM;if(!x&&C<k&&(y=k,k=C,C=y),x||S<FM?x?k+C>0^b[1]<(WM(b[0]-_)<FM?k:C):k<=b[1]&&b[1]<=C:S>BM^(_<=b[0]&&b[0]<=w)){var O=jT(f,(-p+v)/m);return PT(O,d),[b,OT(O)]}}}function s(t,n){var i=r?e:BM-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return YE(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=r?m?0:s(h,d):m?s(h+(h<0?BM:-BM),d):0;if(!t&&(l=c=m)&&e.lineStart(),m!==c&&(!(f=a(t,p))||VE(t,f)||VE(p,f))&&(p[0]+=FM,p[1]+=FM,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(i&&t&&r^m){var v;g&n||!(v=a(p,t,!0))||(u=0,r?(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&&VE(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,r,i,o){FE(o,e,n,i,t,r)},r?[0,-e]:[-BM,e-BM])},JE=1e9,eP=-JE;function tP(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,l){var u=0,h=0;if(null==i||(u=a(i,s))!==(h=a(o,s))||c(i,o)<0^s>0)do{l.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==h);else l.point(o[0],o[1])}function a(r,i){return WM(r[0]-e)<FM?i>0?0:3:WM(r[0]-n)<FM?i>0?2:1:WM(r[1]-t)<FM?i>0?1:0:i>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r: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,_=HE(),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,i=l.length;n<i;++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<=r?f>r&&(d-o)*(r-a)>(f-a)*(e-o)&&++t:f<=r&&(d-o)*(r-a)<(f-a)*(e-o)&&--t;return t}(),n=b&&t,i=(c=my(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&qE(c,s,t,o,a),a.polygonEnd()),y=a,c=l=u=null}};function k(e,t){i(e,t)&&y.point(e,t)}function C(o,a){var s=i(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(eP,Math.min(JE,p)),m=Math.max(eP,Math.min(JE,m))],_=[o=Math.max(eP,Math.min(JE,o)),a=Math.max(eP,Math.min(JE,a))];!function(e,t,n,r,i,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=i-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=r-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,r)?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 nP,rP,iP,oP=function(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=tP(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}},aP=DM(),sP={sphere:aT,point:aT,lineStart:function(){sP.point=lP,sP.lineEnd=cP},lineEnd:aT,polygonStart:aT,polygonEnd:aT};function cP(){sP.point=sP.lineEnd=aT}function lP(e,t){nP=e*=qM,rP=JM(t*=qM),iP=YM(t),sP.point=uP}function uP(e,t){e*=qM;var n=JM(t*=qM),r=YM(t),i=WM(e-nP),o=YM(i),a=r*JM(i),s=iP*n-rP*r*o,c=rP*n+iP*r*o;aP.add(XM(tT(a*a+s*s),c)),nP=e,rP=n,iP=r}var hP=function(e){return aP.reset(),vT(e,sP),+aP},dP=[null,null],fP={type:"LineString",coordinates:dP},pP=function(e,t){return dP[0]=e,dP[1]=t,hP(fP)},mP={Feature:function(e,t){return vP(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(vP(n[r].geometry,t))return!0;return!1}},gP={Sphere:function(){return!0},Point:function(e,t){return bP(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(bP(n[r],t))return!0;return!1},LineString:function(e,t){return yP(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(yP(n[r],t))return!0;return!1},Polygon:function(e,t){return _P(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(_P(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(vP(n[r],t))return!0;return!1}};function vP(e,t){return!(!e||!gP.hasOwnProperty(e.type))&&gP[e.type](e,t)}function bP(e,t){return 0===pP(e,t)}function yP(e,t){var n=pP(e[0],e[1]);return pP(e[0],t)+pP(t,e[1])<=n+FM}function _P(e,t){return!!XE(e.map(wP),kP(t))}function wP(e){return(e=e.map(kP)).pop(),e}function kP(e){return[e[0]*qM,e[1]*qM]}var CP=function(e,t){return(e&&mP.hasOwnProperty(e.type)?mP[e.type]:vP)(e,t)};function SP(e,t,n){var r=ey(e,t-FM,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function xP(e,t,n){var r=ey(e,t-FM,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function OP(){var e,t,n,r,i,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 ey(KM(r/p)*p,n,p).map(u).concat(ey(KM(s/m)*m,a,m).map(h)).concat(ey(KM(t/d)*d,e,d).filter(function(e){return WM(e%p)>FM}).map(c)).concat(ey(KM(o/f)*f,i,f).filter(function(e){return WM(e%m)>FM}).map(l))}return v.lines=function(){return b().map(function(e){return{type:"LineString",coordinates:e}})},v.outline=function(){return{type:"Polygon",coordinates:[u(r).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],(r=+e[0][0])>(n=+e[1][0])&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),v.precision(g)):[[r,s],[n,a]]},v.extentMinor=function(n){return arguments.length?(o=+n[0][1],i=+n[1][1],(t=+n[0][0])>(e=+n[1][0])&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),v.precision(g)):[[t,o],[e,i]]},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=SP(o,i,90),l=xP(t,e,g),u=SP(s,a,90),h=xP(r,n,g),v):g},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function MP(){return OP()()}var TP,EP,PP,jP,IP=function(e,t){var n=e[0]*qM,r=e[1]*qM,i=t[0]*qM,o=t[1]*qM,a=YM(r),s=JM(r),c=YM(o),l=JM(o),u=a*YM(n),h=a*JM(n),d=c*YM(i),f=c*JM(i),p=2*iT(tT(oT(o-r)+a*c*oT(i-n))),m=JM(p),g=p?function(e){var t=JM(e*=p)/m,n=JM(p-e)/m,r=n*u+t*d,i=n*h+t*f,o=n*s+t*l;return[XM(i,r)*UM,XM(o,tT(r*r+i*i))*UM]}:function(){return[n*UM,r*UM]};return g.distance=p,g},AP=function(e){return e},DP=DM(),RP=DM(),LP={point:aT,lineStart:aT,lineEnd:aT,polygonStart:function(){LP.lineStart=NP,LP.lineEnd=zP},polygonEnd:function(){LP.lineStart=LP.lineEnd=LP.point=aT,DP.add(WM(RP)),RP.reset()},result:function(){var e=DP/2;return DP.reset(),e}};function NP(){LP.point=FP}function FP(e,t){LP.point=BP,TP=PP=e,EP=jP=t}function BP(e,t){RP.add(jP*e-PP*t),PP=e,jP=t}function zP(){BP(TP,EP)}var HP,VP,UP,qP,WP=LP,GP=1/0,XP=GP,YP=-GP,KP=YP,QP={point:function(e,t){e<GP&&(GP=e),e>YP&&(YP=e),t<XP&&(XP=t),t>KP&&(KP=t)},lineStart:aT,lineEnd:aT,polygonStart:aT,polygonEnd:aT,result:function(){var e=[[GP,XP],[YP,KP]];return YP=KP=-(XP=GP=1/0),e}},ZP=0,$P=0,JP=0,ej=0,tj=0,nj=0,rj=0,ij=0,oj=0,aj={point:sj,lineStart:cj,lineEnd:hj,polygonStart:function(){aj.lineStart=dj,aj.lineEnd=fj},polygonEnd:function(){aj.point=sj,aj.lineStart=cj,aj.lineEnd=hj},result:function(){var e=oj?[rj/oj,ij/oj]:nj?[ej/nj,tj/nj]:JP?[ZP/JP,$P/JP]:[NaN,NaN];return ZP=$P=JP=ej=tj=nj=rj=ij=oj=0,e}};function sj(e,t){ZP+=e,$P+=t,++JP}function cj(){aj.point=lj}function lj(e,t){aj.point=uj,sj(UP=e,qP=t)}function uj(e,t){var n=e-UP,r=t-qP,i=tT(n*n+r*r);ej+=i*(UP+e)/2,tj+=i*(qP+t)/2,nj+=i,sj(UP=e,qP=t)}function hj(){aj.point=sj}function dj(){aj.point=pj}function fj(){mj(HP,VP)}function pj(e,t){aj.point=mj,sj(HP=UP=e,VP=qP=t)}function mj(e,t){var n=e-UP,r=t-qP,i=tT(n*n+r*r);ej+=i*(UP+e)/2,tj+=i*(qP+t)/2,nj+=i,rj+=(i=qP*e-UP*t)*(UP+e),ij+=i*(qP+t),oj+=3*i,sj(UP=e,qP=t)}var gj=aj;function vj(e){this._context=e}vj.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,VM)}},result:aT};var bj,yj,_j,wj,kj,Cj=DM(),Sj={point:aT,lineStart:function(){Sj.point=xj},lineEnd:function(){bj&&Oj(yj,_j),Sj.point=aT},polygonStart:function(){bj=!0},polygonEnd:function(){bj=null},result:function(){var e=+Cj;return Cj.reset(),e}};function xj(e,t){Sj.point=Oj,yj=wj=e,_j=kj=t}function Oj(e,t){Cj.add(tT((wj-=e)*wj+(kj-=t)*kj)),wj=e,kj=t}var Mj=Sj;function Tj(){this._string=[]}function Ej(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Tj.prototype={_radius:4.5,_circle:Ej(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=Ej(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 Pj=function(e,t){var n,r,i=4.5;function o(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),vT(e,n(r))),r.result()}return o.area=function(e){return vT(e,n(WP)),WP.result()},o.measure=function(e){return vT(e,n(Mj)),Mj.result()},o.bounds=function(e){return vT(e,n(QP)),QP.result()},o.centroid=function(e){return vT(e,n(gj)),gj.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,AP):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new Tj):new vj(t=e),"function"!=typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)},jj=function(e){return{stream:Ij(e)}};function Ij(e){return function(t){var n=new Aj;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Aj(){}function Dj(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),vT(n,e.stream(QP)),t(QP.result()),null!=r&&e.clipExtent(r),e}function Rj(e,t,n){return Dj(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])},n)}function Lj(e,t,n){return Rj(e,[[0,0],t],n)}function Nj(e,t,n){return Dj(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])},n)}function Fj(e,t,n){return Dj(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])},n)}Aj.prototype={constructor:Aj,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 Bj=YM(30*qM),zj=function(e,t){return+t?function(e,t){function n(r,i,o,a,s,c,l,u,h,d,f,p,m,g){var v=l-r,b=u-i,y=v*v+b*b;if(y>4*t&&m--){var _=a+d,w=s+f,k=c+p,C=tT(_*_+w*w+k*k),S=iT(k/=C),x=WM(WM(k)-1)<FM||WM(o-h)<FM?(o+h)/2:XM(w,_),O=e(x,S),M=O[0],T=O[1],E=M-r,P=T-i,j=b*E-v*P;(j*j/y>t||WM((v*E+b*P)/y-.5)>.3||a*d+s*f+c*p<Bj)&&(n(r,i,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 r,i,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,r){n=e(n,r),t.point(n[0],n[1])}function v(){u=NaN,m.point=b,t.lineStart()}function b(r,i){var o=MT([r,i]),a=e(r,i);n(u,h,l,d,f,p,u=a[0],h=a[1],l=r,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(r=e,t),i=u,o=h,a=d,s=f,c=p,m.point=b}function k(){n(u,h,l,d,f,p,i,o,r,a,s,c,16,t),m.lineEnd=y,y()}return m}}(e,t):function(e){return Ij({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)},Hj=Ij({point:function(e,t){this.stream.point(e*qM,t*qM)}});function Vj(e,t,n){function r(r,i){return[t+e*r,n-e*i]}return r.invert=function(r,i){return[(r-t)/e,(n-i)/e]},r}function Uj(e,t,n,r){var i=YM(r),o=JM(r),a=i*e,s=o*e,c=i/e,l=o/e,u=(o*n-i*t)/e,h=(o*t+i*n)/e;function d(e,r){return[a*e-s*r+t,n-s*e-a*r]}return d.invert=function(e,t){return[c*e-l*t+u,h-l*e-c*t]},d}function qj(e){return Wj(function(){return e})()}function Wj(e){var t,n,r,i,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=ZE,k=null,C=AP,S=.5;function x(e){return c(e[0]*qM,e[1]*qM)}function O(e){return(e=c.invert(e[0],e[1]))&&[e[0]*UM,e[1]*UM]}function M(){var e=Uj(h,0,0,y).apply(null,t(p,m)),r=(y?Uj:Vj)(h,d-e[0],f-e[1],y);return n=AE(g,v,b),s=jE(t,r),c=jE(n,s),a=zj(s,S),T()}function T(){return l=u=null,x}return x.stream=function(e){return l&&u===e?l:l=Hj(function(e){return Ij({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[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=r=i=o=null,T()):C},x.clipAngle=function(e){return arguments.length?(w=+e?$E(_=e*qM):(_=null,ZE),T()):_*UM},x.clipExtent=function(e){return arguments.length?(C=null==e?(k=r=i=o=null,AP):tP(k=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),T()):null==k?null:[[k,r],[i,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*qM,m=e[1]%360*qM,M()):[p*UM,m*UM]},x.rotate=function(e){return arguments.length?(g=e[0]%360*qM,v=e[1]%360*qM,b=e.length>2?e[2]%360*qM:0,M()):[g*UM,v*UM,b*UM]},x.angle=function(e){return arguments.length?(y=e%360*qM,M()):y*UM},x.precision=function(e){return arguments.length?(a=zj(s,S=e*e),T()):tT(S)},x.fitExtent=function(e,t){return Rj(x,e,t)},x.fitSize=function(e,t){return Lj(x,e,t)},x.fitWidth=function(e,t){return Nj(x,e,t)},x.fitHeight=function(e,t){return Fj(x,e,t)},function(){return t=e.apply(this,arguments),x.invert=t.invert&&O,M()}}function Gj(e){var t=0,n=BM/3,r=Wj(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*qM,n=e[1]*qM):[t*UM,n*UM]},i}function Xj(e,t){var n=JM(e),r=(n+JM(t))/2;if(WM(r)<FM)return function(e){var t=YM(e);function n(e,n){return[e*t,JM(n)/t]}return n.invert=function(e,n){return[e/t,iT(n*t)]},n}(e);var i=1+n*(2*r-n),o=tT(i)/r;function a(e,t){var n=tT(i-2*r*JM(t))/r;return[n*JM(e*=r),o-n*YM(e)]}return a.invert=function(e,t){var n=o-t;return[XM(e,WM(n))/r*eT(n),iT((i-(e*e+n*n)*r*r)/(2*r))]},a}var Yj=function(){return Gj(Xj).scale(155.424).center([0,33.6442])},Kj=function(){return Yj().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},Qj=function(){var e,t,n,r,i,o,a=Kj(),s=Yj().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Yj().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||(r.point(t,a),o)||(i.point(t,a),o)}function h(){return e=t=null,u}return u.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(e)},u.stream=function(n){return e&&t===n?e:(r=[a.stream(t=n),s.stream(n),c.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n<i;)r[n].point(e,t)},sphere:function(){for(var e=-1;++e<i;)r[e].sphere()},lineStart:function(){for(var e=-1;++e<i;)r[e].lineStart()},lineEnd:function(){for(var e=-1;++e<i;)r[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<i;)r[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<i;)r[e].polygonEnd()}});var r,i},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),r=s.translate([o-.307*t,u+.201*t]).clipExtent([[o-.425*t+FM,u+.12*t+FM],[o-.214*t-FM,u+.234*t-FM]]).stream(l),i=c.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+FM,u+.166*t+FM],[o-.115*t-FM,u+.234*t-FM]]).stream(l),h()},u.fitExtent=function(e,t){return Rj(u,e,t)},u.fitSize=function(e,t){return Lj(u,e,t)},u.fitWidth=function(e,t){return Nj(u,e,t)},u.fitHeight=function(e,t){return Fj(u,e,t)},u.scale(1070)};function Zj(e){return function(t,n){var r=YM(t),i=YM(n),o=e(r*i);return[o*i*JM(t),o*JM(n)]}}function $j(e){return function(t,n){var r=tT(t*t+n*n),i=e(r),o=JM(i),a=YM(i);return[XM(t*o,r*a),iT(r&&n*o/r)]}}var Jj=Zj(function(e){return tT(2/(1+e))});Jj.invert=$j(function(e){return 2*iT(e/2)});var eI=function(){return qj(Jj).scale(124.75).clipAngle(179.999)},tI=Zj(function(e){return(e=rT(e))&&e/JM(e)});tI.invert=$j(function(e){return e});var nI=function(){return qj(tI).scale(79.4188).clipAngle(179.999)};function rI(e,t){return[e,ZM(nT((zM+t)/2))]}rI.invert=function(e,t){return[e,2*GM(QM(t))-zM]};var iI=function(){return oI(rI).scale(961/VM)};function oI(e){var t,n,r,i=qj(e),o=i.center,a=i.scale,s=i.translate,c=i.clipExtent,l=null;function u(){var o=BM*a(),s=i(NE(i.rotate()).invert([0,0]));return c(null==l?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===rI?[[Math.max(s[0]-o,l),t],[Math.min(s[0]+o,n),r]]:[[l,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),u()):a()},i.translate=function(e){return arguments.length?(s(e),u()):s()},i.center=function(e){return arguments.length?(o(e),u()):o()},i.clipExtent=function(e){return arguments.length?(null==e?l=t=n=r=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),u()):null==l?null:[[l,t],[n,r]]},u()}function aI(e){return nT((zM+e)/2)}function sI(e,t){var n=YM(e),r=e===t?JM(e):ZM(n/YM(t))/ZM(aI(t)/aI(e)),i=n*$M(aI(e),r)/r;if(!r)return rI;function o(e,t){i>0?t<-zM+FM&&(t=-zM+FM):t>zM-FM&&(t=zM-FM);var n=i/$M(aI(t),r);return[n*JM(r*e),i-n*YM(r*e)]}return o.invert=function(e,t){var n=i-t,o=eT(r)*tT(e*e+n*n);return[XM(e,WM(n))/r*eT(n),2*GM($M(i/o,1/r))-zM]},o}var cI=function(){return Gj(sI).scale(109.5).parallels([30,30])};function lI(e,t){return[e,t]}lI.invert=lI;var uI=function(){return qj(lI).scale(152.63)};function hI(e,t){var n=YM(e),r=e===t?JM(e):(n-YM(t))/(t-e),i=n/r+e;if(WM(r)<FM)return lI;function o(e,t){var n=i-t,o=r*e;return[n*JM(o),i-n*YM(o)]}return o.invert=function(e,t){var n=i-t;return[XM(e,WM(n))/r*eT(n),i-eT(r)*tT(e*e+n*n)]},o}var dI=function(){return Gj(hI).scale(131.154).center([0,13.9389])};function fI(e,t){var n=YM(t),r=YM(e)*n;return[n*JM(e)/r,JM(t)/r]}fI.invert=$j(GM);var pI=function(){return qj(fI).scale(144.049).clipAngle(60)};function mI(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?AP:Ij({point:function(i,o){this.stream.point(i*e+n,o*t+r)}})}var gI=function(){var e,t,n,r,i,o,a=1,s=0,c=0,l=1,u=1,h=AP,d=null,f=AP;function p(){return r=i=null,o}return o={stream:function(e){return r&&i===e?r:r=h(f(i=e))},postclip:function(r){return arguments.length?(f=r,d=e=t=n=null,p()):f},clipExtent:function(r){return arguments.length?(f=null==r?(d=e=t=n=null,AP):tP(d=+r[0][0],e=+r[0][1],t=+r[1][0],n=+r[1][1]),p()):null==d?null:[[d,e],[t,n]]},scale:function(e){return arguments.length?(h=mI((a=+e)*l,a*u,s,c),p()):a},translate:function(e){return arguments.length?(h=mI(a*l,a*u,s=+e[0],c=+e[1]),p()):[s,c]},reflectX:function(e){return arguments.length?(h=mI(a*(l=e?-1:1),a*u,s,c),p()):l<0},reflectY:function(e){return arguments.length?(h=mI(a*l,a*(u=e?-1:1),s,c),p()):u<0},fitExtent:function(e,t){return Rj(o,e,t)},fitSize:function(e,t){return Lj(o,e,t)},fitWidth:function(e,t){return Nj(o,e,t)},fitHeight:function(e,t){return Fj(o,e,t)}}};function vI(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}vI.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(WM(n)>FM&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var bI=function(){return qj(vI).scale(175.295)};function yI(e,t){return[YM(t)*JM(e),JM(t)]}yI.invert=$j(iT);var _I=function(){return qj(yI).scale(249.5).clipAngle(90.000001)};function wI(e,t){var n=YM(t),r=1+YM(e)*n;return[n*JM(e)/r,JM(t)/r]}wI.invert=$j(function(e){return 2*GM(e)});var kI=function(){return qj(wI).scale(250).clipAngle(142)};function CI(e,t){return[ZM(nT((zM+t)/2)),-e]}CI.invert=function(e,t){return[-t,2*GM(QM(e))-zM]};var SI=function(){var e=oI(CI),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 xI(e,t){return e.parent===t.parent?1:2}function OI(e,t){return e+t.x}function MI(e,t){return Math.max(e,t.y)}var TI=function(){var e=xI,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(OI,0)/e.length}(n),t.y=function(e){return 1+e.reduce(MI,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}(i),c=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),l=s.x-e(s,c)/2,u=c.x+e(c,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(u-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i};function EI(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function PI(e,t){var n,r,i,o,a,s=new DI(e),c=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=jI);n=l.pop();)if(c&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new DI(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(AI)}function jI(e){return e.children}function II(e){e.data=e.data.data}function AI(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function DI(e){this.data=e,this.depth=this.height=0,this.parent=null}DI.prototype=PI.prototype={constructor:DI,count:function(){return this.eachAfter(EI)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].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(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},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 PI(this).eachBefore(II)}};var RI=Array.prototype.slice,LI=function(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(RI.call(e))).length,o=[];r<i;)t=e[r],n&&BI(n,t)?++r:(n=HI(o=NI(o,t)),r=0);return n};function NI(e,t){var n,r;if(zI(t,e))return[t];for(n=0;n<e.length;++n)if(FI(t,e[n])&&zI(VI(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(FI(VI(e[n],e[r]),t)&&FI(VI(e[n],t),e[r])&&FI(VI(e[r],t),e[n])&&zI(UI(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function FI(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function BI(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function zI(e,t){for(var n=0;n<t.length;++n)if(!BI(e,t[n]))return!1;return!0}function HI(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return VI(e[0],e[1]);case 3:return UI(e[0],e[1],e[2])}var t}function VI(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,c=o-n,l=a-r,u=s-i,h=Math.sqrt(c*c+l*l);return{x:(n+o+c/h*u)/2,y:(r+a+l/h*u)/2,r:(h+i+s)/2}}function UI(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,c=t.r,l=n.x,u=n.y,h=n.r,d=r-a,f=r-l,p=i-s,m=i-u,g=c-o,v=h-o,b=r*r+i*i-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)-r,C=(m*g-p*v)/w,S=(f*y-d*_)/(2*w)-i,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:r+k+C*E,y:i+S+x*E,r:E}}function qI(e,t,n){var r,i,o,a,s=e.x-t.x,c=e.y-t.y,l=s*s+c*c;l?(i=t.r+n.r,a=e.r+n.r,(i*=i)>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=e.x-r*s-o*c,n.y=e.y-r*c+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*s-o*c,n.y=t.y+r*c+o*s)):(n.x=t.x+n.r,n.y=t.y)}function WI(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function GI(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function XI(e){this._=e,this.next=null,this.previous=null}function YI(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,c,l,u,h;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(t.x=-(n=e[1]).r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;qI(n,t,r=e[2]),t=new XI(t),n=new XI(n),r=new XI(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){qI(t._,n._,r=e[s]),r=new XI(r),c=n.next,l=t.previous,u=n._.r,h=t._.r;do{if(u<=h){if(WI(c._,r._)){t.next=n=c,n.previous=t,--s;continue e}u+=c._.r,c=c.next}else{if(WI(l._,r._)){(t=l).next=n,n.previous=t,--s;continue e}h+=l._.r,l=l.previous}}while(c!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=GI(t);(r=r.next)!==n;)(a=GI(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=LI(t),s=0;s<i;++s)(t=e[s]).x-=r.x,t.y-=r.y;return r.r}var KI=function(e){return YI(e),e};function QI(e){return null==e?null:ZI(e)}function ZI(e){if("function"!=typeof e)throw new Error;return e}function $I(){return 0}var JI=function(e){return function(){return e}};function eA(e){return Math.sqrt(e.value)}var tA=function(){var e=null,t=1,n=1,r=$I;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(nA(e)).eachAfter(rA(r,.5)).eachBefore(iA(1)):i.eachBefore(nA(eA)).eachAfter(rA($I,1)).eachAfter(rA(r,i.r/Math.min(t,n))).eachBefore(iA(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=QI(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"==typeof e?e:JI(+e),i):r},i};function nA(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function rA(e,t){return function(n){if(r=n.children){var r,i,o,a=r.length,s=e(n)*t||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=YI(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function iA(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 oA=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)},aA=function(e,t,n,r,i){for(var o,a=e.children,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l},sA=function(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&aA(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(t,o)),r&&i.eachBefore(oA),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i},cA={depth:-1},lA={};function uA(e){return e.id}function hA(e){return e.parentId}var dA=function(){var e=uA,t=hA;function n(n){var r,i,o,a,s,c,l,u=n.length,h=new Array(u),d={};for(i=0;i<u;++i)s=h[i]=new DI(r=n[i]),null!=(c=e(r,i,n))&&(c+="")&&(d[l="$"+(s.id=c)]=l in d?lA:s);for(i=0;i<u;++i)if(s=h[i],null!=(c=t(n[i],i,n))&&(c+="")){if(!(a=d["$"+c]))throw new Error("missing: "+c);if(a===lA)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=cA,o.eachBefore(function(e){e.depth=e.parent.depth+1,--u}).eachBefore(AI),o.parent=null,u>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=ZI(t),n):e},n.parentId=function(e){return arguments.length?(t=ZI(e),n):t},n};function fA(e,t){return e.parent===t.parent?1:2}function pA(e){var t=e.children;return t?t[0]:e.t}function mA(e){var t=e.children;return t?t[t.length-1]:e.t}function gA(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function vA(e,t,n){return e.a.parent===t.parent?e.a:n}function bA(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}bA.prototype=Object.create(DI.prototype);var yA=function(){var e=fA,t=1,n=1,r=null;function i(i){var c=function(e){for(var t,n,r,i,o,a=new bA(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new bA(r[i],i)),n.parent=t;return(a.parent=new bA(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(s);else{var l=i,u=i,h=i;i.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);i.eachBefore(function(e){e.x=(e.x+f)*p,e.y=e.depth*m})}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,c=o.parent.children[0],l=o.m,u=a.m,h=s.m,d=c.m;s=mA(s),o=pA(o),s&&o;)c=pA(c),(a=mA(a)).a=t,(i=s.z+h-o.z-l+e(s._,o._))>0&&(gA(vA(s,t,r),t,i),l+=i,u+=i),h+=s.m,l+=o.m,d+=c.m,u+=a.m;s&&!mA(a)&&(a.t=s,a.m+=h-u),o&&!pA(c)&&(c.t=o,c.m+=l-d,r=t)}return r}(t,i,t.parent.A||r[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 i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},_A=function(e,t,n,r,i){for(var o,a=e.children,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l},wA=(1+Math.sqrt(5))/2;function kA(e,t,n,r,i,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=i-n,l=o-r;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?aA(a,n,r,i,k?r+=l*u/k:o):_A(a,n,r,k?n+=c*u/k:i,o),k-=u,y=_}return v}var CA=function e(t){function n(e,n,r,i,o){kA(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wA),SA=function(){var e=CA,t=!1,n=1,r=1,i=[0],o=$I,a=$I,s=$I,c=$I,l=$I;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(oA),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,d=t.y1-n;h<r&&(r=h=(r+h)/2),d<u&&(u=d=(u+d)/2),t.x0=r,t.y0=u,t.x1=h,t.y1=d,t.children&&(n=i[t.depth+1]=o(t)/2,r+=l(t)-n,u+=a(t)-n,(h-=s(t)-n)<r&&(r=h=(r+h)/2),(d-=c(t)-n)<u&&(u=d=(u+d)/2),e(t,r,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],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=ZI(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:JI(+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:JI(+e),u):a},u.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:JI(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c="function"==typeof e?e:JI(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l="function"==typeof e?e:JI(+e),u):l},u},xA=function(e,t,n,r,i){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,r,i,o,a,c){if(t>=n-1){var u=s[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=c)}for(var h=l[t],d=r/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=r-g;if(a-i>c-o){var b=(i*v+a*g)/r;e(t,f,g,i,o,b,c),e(f,n,v,b,o,a,c)}else{var y=(o*v+c*g)/r;e(t,f,g,i,o,a,y),e(f,n,v,i,y,a,c)}}(0,c,e.value,t,n,r,i)},OA=function(e,t,n,r,i){(1&e.depth?_A:aA)(e,t,n,r,i)},MA=function e(t){function n(e,n,r,i,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?aA(s,n,r,i,r+=(o-r)*s.value/f):_A(s,n,r,n+=(i-n)*s.value/f,o),f-=s.value}else e._squarify=a=kA(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wA);function TA(e,t,n,r,i){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)*r+a*i)/6}var EA=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1];return TA((n-r/t)*t,r>0?e[r-1]:2*i-o,i,o,r<t-1?e[r+2]:2*o-i)}},PA=function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t);return TA((n-r/t)*t,e[(r+t-1)%t],e[r%t],e[(r+1)%t],e[(r+2)%t])}},jA=function(e){return function(){return e}};function IA(e,t){return function(n){return e+n*t}}function AA(e,t){var n=t-e;return n?IA(e,n>180||n<-180?n-360*Math.round(n/360):n):jA(isNaN(e)?t:e)}function DA(e,t){var n=t-e;return n?IA(e,n):jA(isNaN(e)?t:e)}var RA=function e(t){var n=function(e){return 1==(e=+e)?DA: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(r){return Math.pow(e+r*t,n)}}(t,n,e):jA(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Tw(e)).r,(t=Tw(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=DA(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function LA(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Tw(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var NA,FA,BA,zA,HA=LA(EA),VA=LA(PA),UA=function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=QA(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}},qA=function(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}},WA=function(e,t){return t-=e=+e,function(n){return e+t*n}},GA=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=QA(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},XA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,YA=new RegExp(XA.source,"g"),KA=function(e,t){var n,r,i,o=XA.lastIndex=YA.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=XA.exec(e))&&(r=YA.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:WA(n,r)})),o=YA.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),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,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})},QA=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?jA(t):("number"===r?WA:"string"===r?(n=Sw(t))?(t=n,RA):KA:t instanceof Sw?RA:t instanceof Date?qA:Array.isArray(t)?UA:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?GA:WA)(e,t)},ZA=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}},$A=180/Math.PI,JA={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},eD=function(e,t,n,r,i,o){var a,s,c;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*$A,skewX:Math.atan(c)*$A,scaleX:a,scaleY:s}};function tD(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],c=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var c=a.push("translate(",null,t,null,n);s.push({i:c-4,x:WA(e,i)},{i:c-2,x:WA(r,o)})}else(i||o)&&a.push("translate("+i+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(i(n)+"rotate(",null,r)-2,x:WA(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,c),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:WA(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,c),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:WA(e,n)},{i:s-2,x:WA(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,c),o=a=null,function(e){for(var t,n=-1,r=c.length;++n<r;)s[(t=c[n]).i]=t.x(e);return s.join("")}}}var nD=tD(function(e){return"none"===e?JA:(NA||(NA=document.createElement("DIV"),FA=document.documentElement,BA=document.defaultView),NA.style.transform=e,e=BA.getComputedStyle(FA.appendChild(NA),null).getPropertyValue("transform"),FA.removeChild(NA),e=e.slice(7,-1).split(","),eD(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),rD=tD(function(e){return null==e?JA:(zA||(zA=document.createElementNS("http://www.w3.org/2000/svg","g")),zA.setAttribute("transform",e),(e=zA.transform.baseVal.consolidate())?eD((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):JA)},", ",")",")"),iD=Math.SQRT2;function oD(e){return((e=Math.exp(e))+1/e)/2}var aD=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[2],c=t[0]-i,l=t[1]-o,u=c*c+l*l;if(u<1e-12)r=Math.log(s/a)/iD,n=function(e){return[i+e*c,o+e*l,a*Math.exp(iD*e*r)]};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);r=(m-p)/iD,n=function(e){var t,n=e*r,s=oD(p),u=a/(2*h)*(s*(t=iD*n+p,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(p));return[i+u*c,o+u*l,a*s/oD(iD*n+p)]}}return n.duration=1e3*r,n};function sD(e){return function(t,n){var r=e((t=Rw(t)).h,(n=Rw(n)).h),i=DA(t.s,n.s),o=DA(t.l,n.l),a=DA(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var cD=sD(AA),lD=sD(DA),uD=Math.PI/180,hD=180/Math.PI,dD=.96422,fD=.82521,pD=4/29,mD=.12841854934601665;function gD(e){if(e instanceof bD)return new bD(e.l,e.a,e.b,e.opacity);if(e instanceof xD)return OD(e);e instanceof Ew||(e=Mw(e));var t,n,r=kD(e.r),i=kD(e.g),o=kD(e.b),a=yD((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=yD((.4360747*r+.3850649*i+.1430804*o)/dD),n=yD((.0139322*r+.0971045*i+.7141733*o)/fD)),new bD(116*a-16,500*(t-a),200*(a-n),e.opacity)}function vD(e,t,n,r){return 1===arguments.length?gD(e):new bD(e,t,n,null==r?1:r)}function bD(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yD(e){return e>.008856451679035631?Math.pow(e,1/3):e/mD+pD}function _D(e){return e>.20689655172413793?e*e*e:mD*(e-pD)}function wD(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kD(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function CD(e){if(e instanceof xD)return new xD(e.h,e.c,e.l,e.opacity);if(e instanceof bD||(e=gD(e)),0===e.a&&0===e.b)return new xD(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*hD;return new xD(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function SD(e,t,n,r){return 1===arguments.length?CD(e):new xD(e,t,n,null==r?1:r)}function xD(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function OD(e){if(isNaN(e.h))return new bD(e.l,0,0,e.opacity);var t=e.h*uD;return new bD(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function MD(e,t){var n=DA((e=vD(e)).l,(t=vD(t)).l),r=DA(e.a,t.a),i=DA(e.b,t.b),o=DA(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function TD(e){return function(t,n){var r=e((t=SD(t)).h,(n=SD(n)).h),i=DA(t.c,n.c),o=DA(t.l,n.l),a=DA(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}aw(bD,vD,sw(cw,{brighter:function(e){return new bD(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new bD(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 Ew(wD(3.1338561*(t=dD*_D(t))-1.6168667*(e=1*_D(e))-.4906146*(n=fD*_D(n))),wD(-.9787684*t+1.9161415*e+.033454*n),wD(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),aw(xD,SD,sw(cw,{brighter:function(e){return new xD(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new xD(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return OD(this).rgb()}}));var ED=TD(AA),PD=TD(DA),jD=-.29227,ID=-.90649,AD=1.97294;function DD(e){if(e instanceof LD)return new LD(e.h,e.s,e.l,e.opacity);e instanceof Ew||(e=Mw(e));var t=e.g/255,n=e.b/255,r=(-.6557636667999999*n+e.r/255*-1.7884503806-3.5172982438*t)/-5.9615122912,i=n-r,o=(AD*(t-r)-jD*i)/ID,a=Math.sqrt(o*o+i*i)/(AD*r*(1-r)),s=a?Math.atan2(o,i)*hD-120:NaN;return new LD(s<0?s+360:s,a,r,e.opacity)}function RD(e,t,n,r){return 1===arguments.length?DD(e):new LD(e,t,n,null==r?1:r)}function LD(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ND(e){return function t(n){function r(t,r){var i=e((t=RD(t)).h,(r=RD(r)).h),o=DA(t.s,r.s),a=DA(t.l,r.l),s=DA(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}aw(LD,RD,sw(cw,{brighter:function(e){return e=null==e?uw:Math.pow(uw,e),new LD(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?lw:Math.pow(lw,e),new LD(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*uD,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Ew(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(jD*r+ID*i)),255*(t+n*(AD*r)),this.opacity)}}));var FD=ND(AA),BD=ND(DA),zD=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},HD=function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)o+=(t=i)[1]*(i=e[n])[0]-t[0]*i[1];return o/2},VD=function(e){for(var t,n,r=-1,i=e.length,o=0,a=0,s=e[i-1],c=0;++r<i;)c+=n=(t=s)[0]*(s=e[r])[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o/(c*=3),a/c]};function UD(e,t){return e[0]-t[0]||e[1]-t[1]}function qD(e){for(var t,n,r,i=e.length,o=[0,1],a=2,s=2;s<i;++s){for(;a>1&&((n=e[o[a-1]])[0]-(t=e[o[a-2]])[0])*((r=e[s])[1]-t[1])-(n[1]-t[1])*(r[0]-t[0])<=0;)--a;o[a++]=s}return o.slice(0,a)}var WD=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(UD),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=qD(r),a=qD(i),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[r[o[t]][2]]);for(t=+s;t<a.length-c;++t)l.push(e[r[a[t]][2]]);return l},GD=function(e,t){for(var n,r,i=e.length,o=e[i-1],a=t[0],s=t[1],c=o[0],l=o[1],u=!1,h=0;h<i;++h)n=(o=e[h])[0],(r=o[1])>s!=l>s&&a<(c-n)*(s-r)/(l-r)+n&&(u=!u),c=n,l=r;return u},XD=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],a=o[0],s=o[1],c=0;++r<i;)t=a,n=s,t-=a=(o=e[r])[0],n-=s=o[1],c+=Math.sqrt(t*t+n*n);return c},YD=function(){return Math.random()},KD=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}(YD),QD=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(YD),ZD=function e(t){function n(){var e=QD.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(YD),$D=function e(t){function n(e){return function(){for(var n=0,r=0;r<e;++r)n+=t();return n}}return n.source=e,n}(YD),JD=function e(t){function n(e){var n=$D.source(t)(e);return function(){return n()/e}}return n.source=e,n}(YD),eR=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(YD),tR=Array.prototype,nR=tR.map,rR=tR.slice,iR={name:"implicit"};function oR(e){var t=yS(),n=[],r=iR;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==iR)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:rR.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=yS();for(var r,o,a=-1,s=e.length;++a<s;)t.has(o=(r=e[a])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=rR.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return oR().domain(n).range(e).unknown(r)},i}function aR(){var e,t,n=oR().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,c=0,l=.5;function u(){var n=r().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=ey(n).map(function(t){return h+e*t});return i(u?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},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 aR().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(c).align(l)},u()}function sR(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sR(t())},e}function cR(){return sR(aR().paddingInner(1))}var lR=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},uR=function(e){return function(){return e}},hR=function(e){return+e},dR=[0,1];function fR(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:uR(t)}function pR(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function mR(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=zb(e,t,1,i)-1;return a[n](o[n](t))}}function gR(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function vR(e,t){var n,r,i,o=dR,a=dR,s=tk,c=!1;function l(){return n=Math.min(o.length,a.length)>2?mR:pR,r=i=null,u}function u(t){return(r||(r=n(o,a,c?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(i||(i=n(a,o,fR,c?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(o=nR.call(e,hR),l()):o.slice()},u.range=function(e){return arguments.length?(a=rR.call(e),l()):a.slice()},u.rangeRound=function(e){return a=rR.call(e),s=lR,l()},u.clamp=function(e){return arguments.length?(c=!!e,l()):c},u.interpolate=function(e){return arguments.length?(s=e,l()):s},l()}var bR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yR(e){if(!(t=bR.exec(e)))throw new Error("invalid format: "+e);var t;return new _R({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function _R(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function wR(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}yR.prototype=_R.prototype,_R.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var kR,CR,SR,xR,OR=function(e){return(e=wR(Math.abs(e)))?e[1]:NaN},MR=function(e,t){var n=wR(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},TR={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):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 MR(100*e,t)},r:MR,s:function(e,t){var n=wR(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(kR=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+wR(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)}},ER=function(e){return e},PR=Array.prototype.map,jR=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function IR(e){var t=e.domain;return e.ticks=function(e){var n=t();return iy(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var r,i=e[0],o=e[e.length-1],a=ay(i,o,null==t?10:t);switch((n=yR(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(OR(t)/3)))-OR(Math.abs(e)))}(a,s))||(n.precision=r),xR(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,OR(t)-OR(e))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-OR(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return SR(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],c=i[a];return c<s&&(r=s,s=c,c=r,r=o,o=a,a=r),(r=oy(s,c,n))>0?r=oy(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=oy(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(c/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(c*r)/r,t(i)),e},e}function AR(){var e=vR(fR,Qw);return e.copy=function(){return gR(e,AR())},IR(e)}function DR(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=nR.call(n,hR),t):e.slice()},t.copy=function(){return DR().domain(e)},IR(t)}CR=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ER:(t=PR.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?ER:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(PR.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=yR(e)).fill,n=e.align,h=e.sign,d=e.symbol,f=e.zero,p=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type;"n"===b?(m=!0,b="g"):TR[b]||(void 0===g&&(g=12),v=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var y="$"===d?i:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===d?o:/[%p]/.test(b)?c:"",w=TR[b],k=/[defgprs%]/.test(b);function C(e){var i,o,c,d=y,C=_;if("c"===b)C=w(e)+C,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),d=(S?"("===h?h:l:"-"===h||"("===h?"":h)+d,C=("s"===b?jR[8+kR/3]:"")+C+(S&&"("===h?")":""),k)for(i=-1,o=e.length;++i<o;)if(48>(c=e.charCodeAt(i))||c>57){C=(46===c?a+e.slice(i+1):e.slice(i))+C,e=e.slice(0,i);break}}m&&!f&&(e=r(e,1/0));var x=d.length+e.length+C.length,O=x<p?new Array(p-x+1).join(t):"";switch(m&&f&&(e=r(O+e,O.length?p-C.length:1/0),O=""),n){case"<":e=d+e+C+O;break;case"=":e=d+O+e+C;break;case"^":e=O.slice(0,x=O.length>>1)+d+e+C+O.slice(x);break;default:e=O+d+e+C}return s(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=yR(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(OR(t)/3))),i=Math.pow(10,-r),o=jR[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),SR=CR.format,xR=CR.formatPrefix;var RR=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e};function LR(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:uR(t)}function NR(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 FR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function BR(e){return 10===e?FR:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function zR(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 HR(e){return function(t){return-e(-t)}}function VR(){var e=vR(LR,NR).domain([1,10]),t=e.domain,n=10,r=zR(10),i=BR(10);function o(){return r=zR(n),i=BR(n),t()[0]<0&&(r=HR(r),i=HR(i)),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=r(s),f=r(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=i(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=i(d);u>=1;--u)if(!((h=l*u)<s)){if(h>c)break;m.push(h)}}else m=iy(d,f,Math.min(f-d,p)).map(i);return o?m.reverse():m},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=SR(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/i(Math.round(r(e)));return t*n<n-.5&&(t*=n),t<=a?o(e):""}},e.nice=function(){return t(RR(t(),{floor:function(e){return i(Math.floor(r(e)))},ceil:function(e){return i(Math.ceil(r(e)))}}))},e.copy=function(){return gR(e,VR().base(n))},e}function UR(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function qR(){var e=1,t=vR(function(t,n){return(n=UR(n,e)-(t=UR(t,e)))?function(r){return(UR(r,e)-t)/n}:uR(n)},function(t,n){return n=UR(n,e)-(t=UR(t,e)),function(r){return UR(t+n*r,1/e)}}),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return gR(t,qR().exponent(e))},IR(t)}function WR(){return qR().exponent(.5)}function GR(){var e=[],t=[],n=[];function r(){var r=0,o=Math.max(1,t.length);for(n=new Array(o-1);++r<o;)n[r-1]=ly(e,r/o);return i}function i(e){if(!isNaN(e=+e))return t[zb(n,e)]}return i.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,i=0,o=t.length;i<o;++i)null==(n=t[i])||isNaN(n=+n)||e.push(n);return e.sort(Rb),r()},i.range=function(e){return arguments.length?(t=rR.call(e),r()):t.slice()},i.quantiles=function(){return n.slice()},i.copy=function(){return GR().domain(e).range(t)},i}function XR(){var e=0,t=1,n=1,r=[.5],i=[0,1];function o(e){if(e<=e)return i[zb(r,e,0,n)]}function a(){var i=-1;for(r=new Array(n);++i<n;)r[i]=((i+1)*t-(i-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=(i=rR.call(e)).length-1,a()):i.slice()},o.invertExtent=function(o){var a=i.indexOf(o);return a<0?[NaN,NaN]:a<1?[e,r[0]]:a>=n?[r[n-1],t]:[r[a-1],r[a]]},o.copy=function(){return XR().domain([e,t]).range(i)},IR(o)}function YR(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[zb(e,r,0,n)]}return r.domain=function(i){return arguments.length?(e=rR.call(i),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(i){return arguments.length?(t=rR.call(i),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return YR().domain(e).range(t)},r}var KR=new Date,QR=new Date;function ZR(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return ZR(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return KR.setTime(+t),QR.setTime(+r),e(KR),e(QR),Math.floor(n(KR,QR))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var $R=ZR(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()});$R.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ZR(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 JR=$R,eL=ZR(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()}),tL=1e3,nL=6e4,rL=36e5,iL=864e5,oL=6048e5;function aL(e){return ZR(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())*nL)/oL})}var sL=aL(0),cL=aL(1),lL=(aL(2),aL(3),aL(4)),uL=(aL(5),aL(6),ZR(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())*nL)/iL},function(e){return e.getDate()-1})),hL=ZR(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*tL-e.getMinutes()*nL)},function(e,t){e.setTime(+e+t*rL)},function(e,t){return(t-e)/rL},function(e){return e.getHours()}),dL=ZR(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*tL)},function(e,t){e.setTime(+e+t*nL)},function(e,t){return(t-e)/nL},function(e){return e.getMinutes()}),fL=ZR(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*tL)},function(e,t){return(t-e)/tL},function(e){return e.getUTCSeconds()}),pL=ZR(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});pL.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ZR(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):pL:null};var mL=pL;function gL(e){return ZR(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)/oL})}var vL=gL(0),bL=gL(1),yL=(gL(2),gL(3),gL(4)),_L=(gL(5),gL(6),ZR(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/iL},function(e){return e.getUTCDate()-1})),wL=ZR(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()});wL.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ZR(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 kL=wL;function CL(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 SL(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 xL(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var OL,ML,TL,EL={"-":"",_:" ",0:"0"},PL=/^\s*\d+/,jL=/^%/,IL=/[\\^$*+?|[\]().{}]/g;function AL(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function DL(e){return e.replace(IL,"\\$&")}function RL(e){return new RegExp("^(?:"+e.map(DL).join("|")+")","i")}function LL(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function NL(e,t,n){var r=PL.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function FL(e,t,n){var r=PL.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function BL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function zL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function HL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function VL(e,t,n){var r=PL.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function UL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function qL(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function WL(e,t,n){var r=PL.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function GL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function XL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YL(e,t,n){var r=PL.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function KL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function QL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ZL(e,t,n){var r=PL.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $L(e,t,n){var r=PL.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function JL(e,t,n){var r=PL.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function eN(e,t,n){var r=jL.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tN(e,t,n){var r=PL.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function nN(e,t,n){var r=PL.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rN(e,t){return AL(e.getDate(),t,2)}function iN(e,t){return AL(e.getHours(),t,2)}function oN(e,t){return AL(e.getHours()%12||12,t,2)}function aN(e,t){return AL(1+uL.count(JR(e),e),t,3)}function sN(e,t){return AL(e.getMilliseconds(),t,3)}function cN(e,t){return sN(e,t)+"000"}function lN(e,t){return AL(e.getMonth()+1,t,2)}function uN(e,t){return AL(e.getMinutes(),t,2)}function hN(e,t){return AL(e.getSeconds(),t,2)}function dN(e){var t=e.getDay();return 0===t?7:t}function fN(e,t){return AL(sL.count(JR(e)-1,e),t,2)}function pN(e){var t=e.getDay();return t>=4||0===t?lL(e):lL.ceil(e)}function mN(e,t){return e=pN(e),AL(lL.count(JR(e),e)+(4===JR(e).getDay()),t,2)}function gN(e){return e.getDay()}function vN(e,t){return AL(cL.count(JR(e)-1,e),t,2)}function bN(e,t){return AL(e.getFullYear()%100,t,2)}function yN(e,t){return AL((e=pN(e)).getFullYear()%100,t,2)}function _N(e,t){return AL(e.getFullYear()%1e4,t,4)}function wN(e,t){var n=e.getDay();return AL((e=n>=4||0===n?lL(e):lL.ceil(e)).getFullYear()%1e4,t,4)}function kN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+AL(t/60|0,"0",2)+AL(t%60,"0",2)}function CN(e,t){return AL(e.getUTCDate(),t,2)}function SN(e,t){return AL(e.getUTCHours(),t,2)}function xN(e,t){return AL(e.getUTCHours()%12||12,t,2)}function ON(e,t){return AL(1+_L.count(kL(e),e),t,3)}function MN(e,t){return AL(e.getUTCMilliseconds(),t,3)}function TN(e,t){return MN(e,t)+"000"}function EN(e,t){return AL(e.getUTCMonth()+1,t,2)}function PN(e,t){return AL(e.getUTCMinutes(),t,2)}function jN(e,t){return AL(e.getUTCSeconds(),t,2)}function IN(e){var t=e.getUTCDay();return 0===t?7:t}function AN(e,t){return AL(vL.count(kL(e)-1,e),t,2)}function DN(e){var t=e.getUTCDay();return t>=4||0===t?yL(e):yL.ceil(e)}function RN(e,t){return e=DN(e),AL(yL.count(kL(e),e)+(4===kL(e).getUTCDay()),t,2)}function LN(e){return e.getUTCDay()}function NN(e,t){return AL(bL.count(kL(e)-1,e),t,2)}function FN(e,t){return AL(e.getUTCFullYear()%100,t,2)}function BN(e,t){return AL((e=DN(e)).getUTCFullYear()%100,t,2)}function zN(e,t){return AL(e.getUTCFullYear()%1e4,t,4)}function HN(e,t){var n=e.getUTCDay();return AL((e=n>=4||0===n?yL(e):yL.ceil(e)).getUTCFullYear()%1e4,t,4)}function VN(){return"+0000"}function UN(){return"%"}function qN(e){return+e}function WN(e){return Math.floor(+e/1e3)}OL=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=RL(i),u=LL(i),h=RL(o),d=LL(o),f=RL(a),p=LL(a),m=RL(s),g=LL(s),v=RL(c),b=LL(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:rN,e:rN,f:cN,g:yN,G:wN,H:iN,I:oN,j:aN,L:sN,m:lN,M:uN,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:qN,s:WN,S:hN,u:dN,U:fN,V:mN,w:gN,W:vN,x:null,X:null,y:bN,Y:_N,Z:kN,"%":UN},_={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:CN,e:CN,f:TN,g:BN,G:HN,H:SN,I:xN,j:ON,L:MN,m:EN,M:PN,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:qN,s:WN,S:jN,u:IN,U:AN,V:RN,w:LN,W:NN,x:null,X:null,y:FN,Y:zN,Z:VN,"%":UN},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:XL,e:XL,f:JL,g:UL,G:VL,H:KL,I:KL,j:YL,L:$L,m:GL,M:QL,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:WL,Q:tN,s:nN,S:ZL,u:FL,U:BL,V:zL,w:NL,W:HL,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:UL,Y:VL,Z:qL,"%":eN};function k(e,t){return function(n){var r,i,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!=(i=EL[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=xL(1900,void 0,1);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=SL(xL(o.y,0,1))).getUTCDay(),r=i>4||0===i?bL.ceil(r):bL(r),r=_L.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=CL(xL(o.y,0,1))).getDay(),r=i>4||0===i?cL.ceil(r):cL(r),r=uL.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?SL(xL(o.y,0,1)).getUTCDay():CL(xL(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,SL(o)):CL(o)}}function S(e,t,n,r){for(var i,o,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in EL?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=k(n,y),y.X=k(r,y),y.c=k(t,y),_.x=k(n,_),_.X=k(r,_),_.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+="",!1);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+="",!0);return t.toString=function(){return e},t}}}({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"]}),ML=OL.format,TL=OL.utcFormat;var GN=31536e6;function XN(e){return new Date(e)}function YN(e){return e instanceof Date?+e:+new Date(+e)}function KN(e,t,n,r,i,o,a,s,c){var l=vR(fR,Qw),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],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,GN]];function w(s){return(a(s)<s?d:o(s)<s?f:i(s)<s?p:r(s)<s?m:t(s)<s?n(s)<s?g:v:e(s)<s?b:y)(s)}function k(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=Lb(function(e){return e[2]}).right(_,o);a===_.length?(i=ay(n/GN,r/GN,t),t=e):a?(i=(a=_[o/_[a-1][2]<_[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(ay(n,r,t),1),t=s)}return null==i?t:t.every(i)}return l.invert=function(e){return new Date(u(e))},l.domain=function(e){return arguments.length?h(nR.call(e,YN)):h().map(XN)},l.ticks=function(e,t){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=k(e,i,o,t))?n.range(i,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(RR(n,e)):l},l.copy=function(){return gR(l,KN(e,t,n,r,i,o,a,s,c))},l}var QN=function(){return KN(JR,eL,sL,uL,hL,dL,fL,mL,ML).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},ZN=ZR(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()}),$N=ZR(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*rL)},function(e,t){return(t-e)/rL},function(e){return e.getUTCHours()}),JN=ZR(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*nL)},function(e,t){return(t-e)/nL},function(e){return e.getUTCMinutes()}),eF=function(){return KN(kL,ZN,vL,_L,$N,JN,fL,mL,TL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};function tF(e){var t=0,n=1,r=!1;function i(i){var o=(i-t)/(n-t);return e(r?Math.max(0,Math.min(1,o)):o)}return i.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.clamp=function(e){return arguments.length?(r=!!e,i):r},i.interpolator=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return tF(e).domain([t,n]).clamp(r)},IR(i)}var nF=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n},rF=nF("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),iF=nF("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),oF=nF("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),aF=nF("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),sF=nF("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),cF=nF("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),lF=nF("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),uF=nF("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),hF=nF("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),dF=function(e){return qw(e[e.length-1])},fF=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(nF),pF=dF(fF),mF=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(nF),gF=dF(mF),vF=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(nF),bF=dF(vF),yF=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(nF),_F=dF(yF),wF=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(nF),kF=dF(wF),CF=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(nF),SF=dF(CF),xF=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(nF),OF=dF(xF),MF=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(nF),TF=dF(MF),EF=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(nF),PF=dF(EF),jF=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(nF),IF=dF(jF),AF=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(nF),DF=dF(AF),RF=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(nF),LF=dF(RF),NF=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(nF),FF=dF(NF),BF=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(nF),zF=dF(BF),HF=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(nF),VF=dF(HF),UF=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(nF),qF=dF(UF),WF=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(nF),GF=dF(WF),XF=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(nF),YF=dF(XF),KF=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(nF),QF=dF(KF),ZF=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(nF),$F=dF(ZF),JF=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(nF),eB=dF(JF),tB=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(nF),nB=dF(tB),rB=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(nF),iB=dF(rB),oB=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(nF),aB=dF(oB),sB=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(nF),cB=dF(sB),lB=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(nF),uB=dF(lB),hB=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(nF),dB=dF(hB);function fB(e){return function t(n){function r(t,r){var i=e((t=RD(t)).h,(r=RD(r)).h),o=Hw(t.s,r.s),a=Hw(t.l,r.l),s=Hw(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}fB(function(e,t){var n=t-e;return n?zw(e,n>180||n<-180?n-360*Math.round(n/360):n):Bw(isNaN(e)?t:e)});var pB=fB(Hw),mB=pB(RD(300,.5,0),RD(-240,.5,1)),gB=pB(RD(-100,.75,.35),RD(80,1.5,.8)),vB=pB(RD(260,.75,.35),RD(80,1.5,.8)),bB=RD(),yB=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return bB.h=360*e-100,bB.s=1.5-1.5*t,bB.l=.8-.9*t,bB+""};function _B(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var wB=_B(nF("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),kB=_B(nF("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),CB=_B(nF("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),SB=_B(nF("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),xB="http://www.w3.org/1999/xhtml",OB={svg:"http://www.w3.org/2000/svg",xhtml:xB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},MB=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),OB.hasOwnProperty(t)?{space:OB[t],local:e}:e};function TB(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===xB&&t.documentElement.namespaceURI===xB?t.createElement(e):t.createElementNS(n,e)}}function EB(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var PB=function(e){var t=MB(e);return(t.local?EB:TB)(t)};function jB(){}var IB=function(e){return null==e?jB:function(){return this.querySelector(e)}};function AB(){return[]}var DB=function(e){return null==e?AB:function(){return this.querySelectorAll(e)}},RB=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var LB=document.documentElement;if(!LB.matches){var NB=LB.webkitMatchesSelector||LB.msMatchesSelector||LB.mozMatchesSelector||LB.oMatchesSelector;RB=function(e){return function(){return NB.call(this,e)}}}}var FB=RB,BB=function(e){return new Array(e.length)};function zB(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function HB(e,t,n,r,i,o){for(var a,s=0,c=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new zB(e,o[s]);for(;s<c;++s)(a=t[s])&&(i[s]=a)}function VB(e,t,n,r,i,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?i[s]=c:u[l]=c);for(s=0;s<d;++s)(c=u[l="$"+a.call(e,o[s],s,o)])?(r[s]=c,c.__data__=o[s],u[l]=null):n[s]=new zB(e,o[s]);for(s=0;s<h;++s)(c=t[s])&&u[f[s]]===c&&(i[s]=c)}function UB(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qB(e){return function(){this.removeAttribute(e)}}function WB(e){return function(){this.removeAttributeNS(e.space,e.local)}}function GB(e,t){return function(){this.setAttribute(e,t)}}function XB(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function YB(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function KB(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)}}zB.prototype={constructor:zB,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 QB=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function ZB(e){return function(){this.style.removeProperty(e)}}function $B(e,t,n){return function(){this.style.setProperty(e,t,n)}}function JB(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ez(e,t){return e.style.getPropertyValue(t)||QB(e).getComputedStyle(e,null).getPropertyValue(t)}function tz(e){return function(){delete this[e]}}function nz(e,t){return function(){this[e]=t}}function rz(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function iz(e){return e.trim().split(/^|\s+/)}function oz(e){return e.classList||new az(e)}function az(e){this._node=e,this._names=iz(e.getAttribute("class")||"")}function sz(e,t){for(var n=oz(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function cz(e,t){for(var n=oz(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function lz(e){return function(){sz(this,e)}}function uz(e){return function(){cz(this,e)}}function hz(e,t){return function(){(t.apply(this,arguments)?sz:cz)(this,e)}}function dz(){this.textContent=""}function fz(e){return function(){this.textContent=e}}function pz(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function mz(){this.innerHTML=""}function gz(e){return function(){this.innerHTML=e}}function vz(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function bz(){this.nextSibling&&this.parentNode.appendChild(this)}function yz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _z(){return null}function wz(){var e=this.parentNode;e&&e.removeChild(this)}function kz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Cz(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}az.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 Sz={},xz=null;function Oz(e,t,n){return e=Mz(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Mz(e,t,n){return function(r){var i=xz;xz=r;try{e.call(this,this.__data__,t,n)}finally{xz=i}}}function Tz(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 Ez(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function Pz(e,t,n){var r=Sz.hasOwnProperty(e.type)?Oz:Mz;return function(i,o,a){var s,c=this.__on,l=r(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 jz(e,t,n,r){var i=xz;e.sourceEvent=xz,xz=e;try{return t.apply(n,r)}finally{xz=i}}function Iz(e,t,n){var r=QB(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Az(e,t){return function(){return Iz(this,e,t)}}function Dz(e,t){return function(){return Iz(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Sz={mouseenter:"mouseover",mouseleave:"mouseout"}));var Rz=[null];function Lz(e,t){this._groups=e,this._parents=t}function Nz(){return new Lz([[document.documentElement]],Rz)}Lz.prototype=Nz.prototype={constructor:Lz,select:function(e){"function"!=typeof e&&(e=IB(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],c=s.length,l=r[i]=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 Lz(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=DB(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],c=s.length,l=0;l<c;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new Lz(r,i)},filter:function(e){"function"!=typeof e&&(e=FB(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,c=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&c.push(o);return new Lz(r,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,r=t?VB:HB,i=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=i[u],d=o[u],f=d.length,p=e.call(h,h&&h.__data__,u,i),m=p.length,g=c[u]=new Array(m),v=s[u]=new Array(m);r(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 Lz(s,i))._enter=c,s._exit=l,s},enter:function(){return new Lz(this._enter||this._groups.map(BB),this._parents)},exit:function(){return new Lz(this._exit||this._groups.map(BB),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=Math.min(r,n.length),o=new Array(r),a=0;a<i;++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<r;++a)o[a]=t[a];return new Lz(o,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=UB);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],c=s.length,l=i[o]=new Array(c),u=0;u<c;++u)(a=s[u])&&(l[u]=a);l.sort(t)}return new Lz(i,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 r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];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,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=MB(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?WB:qB:"function"==typeof t?n.local?KB:YB:n.local?XB:GB)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?ZB:"function"==typeof t?JB:$B)(e,t,null==n?"":n)):ez(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?tz:"function"==typeof t?rz:nz)(e,t)):this.node()[e]},classed:function(e,t){var n=iz(e+"");if(arguments.length<2){for(var r=oz(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?hz:t?lz:uz)(n,t))},text:function(e){return arguments.length?this.each(null==e?dz:("function"==typeof e?pz:fz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?mz:("function"==typeof e?vz:gz)(e)):this.node().innerHTML},raise:function(){return this.each(bz)},lower:function(){return this.each(yz)},append:function(e){var t="function"==typeof e?e:PB(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:PB(e),r=null==t?_z:"function"==typeof t?t:IB(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(wz)},clone:function(e){return this.select(e?Cz:kz)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Tz(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Pz:Ez,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(r=0,c=s[l];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(e,t){return this.each(("function"==typeof t?Dz:Az)(e,t))}};var Fz=Nz,Bz=function(e){return"string"==typeof e?new Lz([[document.querySelector(e)]],[document.documentElement]):new Lz([[e]],Rz)},zz=function(e){return Bz(PB(e).call(document.documentElement))},Hz=0;function Vz(){return new Uz}function Uz(){this._="@"+(++Hz).toString(36)}Uz.prototype=Vz.prototype={constructor:Uz,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 qz=function(){for(var e,t=xz;e=t.sourceEvent;)t=e;return t},Wz=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},Gz=function(e){var t=qz();return t.changedTouches&&(t=t.changedTouches[0]),Wz(e,t)},Xz=function(e){return"string"==typeof e?new Lz([document.querySelectorAll(e)],[document.documentElement]):new Lz([null==e?[]:e],Rz)},Yz=function(e,t,n){arguments.length<3&&(n=t,t=qz().changedTouches);for(var r,i=0,o=t?t.length:0;i<o;++i)if((r=t[i]).identifier===n)return Wz(e,r);return null},Kz=function(e,t){null==t&&(t=qz().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=Wz(e,t[n]);return i};function Qz(e,t){return e.each(function(){var e=t.apply(this,arguments),n=tw(this);for(var r in e)n.attr(r,e[r])})}function Zz(e,t){for(var n in t)e.attr(n,t[n]);return e}function $z(e,t,n){return e.each(function(){var e=t.apply(this,arguments),r=tw(this);for(var i in e)r.style(i,e[i],n)})}function Jz(e,t,n){for(var r in t)e.style(r,t[r],n);return e}function eH(e,t){return e.each(function(){var e=t.apply(this,arguments),n=tw(this);for(var r in e)n.property(r,e[r])})}function tH(e,t){for(var n in t)e.property(n,t[n]);return e}function nH(e,t){return e.each(function(){var n=t.apply(this,arguments),r=tw(this).transition(e);for(var i in n)r.attr(i,n[i])})}function rH(e,t){for(var n in t)e.attr(n,t[n]);return e}function iH(e,t,n){return e.each(function(){var r=t.apply(this,arguments),i=tw(this).transition(e);for(var o in r)i.style(o,r[o],n)})}function oH(e,t,n){for(var r in t)e.style(r,t[r],n);return e}ew.prototype.attrs=function(e){return("function"==typeof e?Qz:Zz)(this,e)},ew.prototype.styles=function(e,t){return("function"==typeof e?$z:Jz)(this,e,null==t?"":t)},ew.prototype.properties=function(e){return("function"==typeof e?eH:tH)(this,e)},fC.prototype.attrs=function(e){return("function"==typeof e?nH:rH)(this,e)},fC.prototype.styles=function(e,t){return("function"==typeof e?iH:oH)(this,e,null==t?"":t)};var aH=function(e){return function(){return e}},sH=Math.abs,cH=Math.atan2,lH=Math.cos,uH=Math.max,hH=Math.min,dH=Math.sin,fH=Math.sqrt,pH=1e-12,mH=Math.PI,gH=mH/2,vH=2*mH;function bH(e){return e>1?0:e<-1?mH:Math.acos(e)}function yH(e){return e>=1?gH:e<=-1?-gH:Math.asin(e)}function _H(e){return e.innerRadius}function wH(e){return e.outerRadius}function kH(e){return e.startAngle}function CH(e){return e.endAngle}function SH(e){return e&&e.padAngle}function xH(e,t,n,r,i,o,a,s){var c=n-e,l=r-t,u=a-i,h=s-o,d=h*c-u*l;if(!(d*d<pH))return[e+(d=(u*(t-o)-h*(e-i))/d)*c,t+d*l]}function OH(e,t,n,r,i,o,a){var s=e-n,c=t-r,l=(a?o:-o)/fH(s*s+c*c),u=l*c,h=-l*s,d=e+u,f=t+h,p=n+u,m=r+h,g=(d+p)/2,v=(f+m)/2,b=p-d,y=m-f,_=b*b+y*y,w=i-o,k=d*m-p*f,C=(y<0?-1:1)*fH(uH(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*(i/w-1),y11:x*(i/w-1)}}var MH=function(){var e=_H,t=wH,n=aH(0),r=null,i=kH,o=CH,a=SH,s=null;function c(){var c,l,u=+e.apply(this,arguments),h=+t.apply(this,arguments),d=i.apply(this,arguments)-gH,f=o.apply(this,arguments)-gH,p=sH(f-d),m=f>d;if(s||(s=c=lS()),h<u&&(l=h,h=u,u=l),h>pH)if(p>vH-pH)s.moveTo(h*lH(d),h*dH(d)),s.arc(0,0,h,d,f,!m),u>pH&&(s.moveTo(u*lH(f),u*dH(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>pH&&(r?+r.apply(this,arguments):fH(u*u+h*h)),O=hH(sH(h-u)/2,+n.apply(this,arguments)),M=O,T=O;if(x>pH){var E=yH(x/u*dH(S)),P=yH(x/h*dH(S));(k-=2*E)>pH?(_+=E*=m?1:-1,w-=E):(k=0,_=w=(d+f)/2),(C-=2*P)>pH?(b+=P*=m?1:-1,y-=P):(C=0,b=y=(d+f)/2)}var j=h*lH(b),I=h*dH(b),A=u*lH(w),D=u*dH(w);if(O>pH){var R,L=h*lH(y),N=h*dH(y),F=u*lH(_),B=u*dH(_);if(p<=vH-pH&&(R=xH(j,I,F,B,L,N,A,D))){var z=j-R[0],H=I-R[1],V=L-R[0],U=N-R[1],q=1/dH(bH((z*V+H*U)/(fH(z*z+H*H)*fH(V*V+U*U)))/2),W=fH(R[0]*R[0]+R[1]*R[1]);M=hH(O,(u-W)/(q-1)),T=hH(O,(h-W)/(q+1))}}C>pH?T>pH?(g=OH(F,B,j,I,h,T,m),v=OH(L,N,A,D,h,T,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),T<O?s.arc(g.cx,g.cy,T,cH(g.y01,g.x01),cH(v.y01,v.x01),!m):(s.arc(g.cx,g.cy,T,cH(g.y01,g.x01),cH(g.y11,g.x11),!m),s.arc(0,0,h,cH(g.cy+g.y11,g.cx+g.x11),cH(v.cy+v.y11,v.cx+v.x11),!m),s.arc(v.cx,v.cy,T,cH(v.y11,v.x11),cH(v.y01,v.x01),!m))):(s.moveTo(j,I),s.arc(0,0,h,b,y,!m)):s.moveTo(j,I),u>pH&&k>pH?M>pH?(g=OH(A,D,L,N,u,-M,m),v=OH(j,I,F,B,u,-M,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<O?s.arc(g.cx,g.cy,M,cH(g.y01,g.x01),cH(v.y01,v.x01),!m):(s.arc(g.cx,g.cy,M,cH(g.y01,g.x01),cH(g.y11,g.x11),!m),s.arc(0,0,u,cH(g.cy+g.y11,g.cx+g.x11),cH(v.cy+v.y11,v.cx+v.x11),m),s.arc(v.cx,v.cy,M,cH(v.y11,v.x11),cH(v.y01,v.x01),!m))):s.arc(0,0,u,w,_,m):s.lineTo(A,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,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-mH/2;return[lH(r)*n,dH(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:aH(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:aH(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:aH(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:aH(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:aH(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:aH(+e),c):o},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:aH(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c};function TH(e){this._context=e}TH.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 EH=function(e){return new TH(e)};function PH(e){return e[0]}function jH(e){return e[1]}var IH=function(){var e=PH,t=jH,n=aH(!0),r=null,i=EH,o=null;function a(a){var s,c,l,u=a.length,h=!1;for(null==r&&(o=i(l=lS())),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:aH(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:aH(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:aH(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a},AH=function(){var e=PH,t=null,n=aH(0),r=jH,i=aH(!0),o=null,a=EH,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=lS())),l=0;l<=p;++l){if(!(l<p&&i(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],r?+r(d,l,c):v[l]))}if(f)return s=null,f+""||null}function l(){return IH().defined(i).curve(a).context(o)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:aH(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:aH(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:aH(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:aH(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:aH(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:aH(+e),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(n)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(t).y(n)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:aH(!!e),c):i},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},DH=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},RH=function(e){return e},LH=function(){var e=RH,t=DH,n=null,r=aH(0),i=aH(vH),o=aH(0);function a(a){var s,c,l,u,h,d=a.length,f=0,p=new Array(d),m=new Array(d),g=+r.apply(this,arguments),v=Math.min(vH,Math.max(-vH,i.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:aH(+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?(r="function"==typeof e?e:aH(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:aH(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:aH(+e),a):o},a},NH=BH(EH);function FH(e){this._curve=e}function BH(e){function t(t){return new FH(e(t))}return t._curve=e,t}function zH(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(BH(e)):t()._curve},e}FH.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 HH=function(){return zH(IH().curve(NH))},VH=function(){var e=AH().curve(NH),t=e.curve,n=e.lineX0,r=e.lineX1,i=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 zH(n())},delete e.lineX0,e.lineEndAngle=function(){return zH(r())},delete e.lineX1,e.lineInnerRadius=function(){return zH(i())},delete e.lineY0,e.lineOuterRadius=function(){return zH(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(BH(e)):t()._curve},e},UH=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},qH=Array.prototype.slice;function WH(e){return e.source}function GH(e){return e.target}function XH(e){var t=WH,n=GH,r=PH,i=jH,o=null;function a(){var a,s=qH.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(o||(o=a=lS()),e(o,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.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?(r="function"==typeof e?e:aH(+e),a):r},a.y=function(e){return arguments.length?(i="function"==typeof e?e:aH(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function YH(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function KH(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function QH(e,t,n,r,i){var o=UH(t,n),a=UH(t,n=(n+i)/2),s=UH(r,n),c=UH(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],c[0],c[1])}function ZH(){return XH(YH)}function $H(){return XH(KH)}function JH(){var e=XH(QH);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var eV={draw:function(e,t){var n=Math.sqrt(t/mH);e.moveTo(n,0),e.arc(0,0,n,0,vH)}},tV={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()}},nV=Math.sqrt(1/3),rV=2*nV,iV={draw:function(e,t){var n=Math.sqrt(t/rV),r=n*nV;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},oV=Math.sin(mH/10)/Math.sin(7*mH/10),aV=Math.sin(vH/10)*oV,sV=-Math.cos(vH/10)*oV,cV={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=aV*n,i=sV*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=vH*o/5,s=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*i,c*r+s*i)}e.closePath()}},lV={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},uV=Math.sqrt(3),hV={draw:function(e,t){var n=-Math.sqrt(t/(3*uV));e.moveTo(0,2*n),e.lineTo(-uV*n,-n),e.lineTo(uV*n,-n),e.closePath()}},dV=-.5,fV=Math.sqrt(3)/2,pV=1/Math.sqrt(12),mV=3*(pV/2+1),gV={draw:function(e,t){var n=Math.sqrt(t/mV),r=n/2,i=n*pV,o=r,a=n*pV+n,s=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(dV*r-fV*i,fV*r+dV*i),e.lineTo(dV*o-fV*a,fV*o+dV*a),e.lineTo(dV*s-fV*c,fV*s+dV*c),e.lineTo(dV*r+fV*i,dV*i-fV*r),e.lineTo(dV*o+fV*a,dV*a-fV*o),e.lineTo(dV*s+fV*c,dV*c-fV*s),e.closePath()}},vV=[eV,tV,iV,lV,cV,hV,gV],bV=function(){var e=aH(eV),t=aH(64),n=null;function r(){var r;if(n||(n=r=lS()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:aH(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:aH(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},yV=function(){};function _V(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 wV(e){this._context=e}wV.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:_V(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:_V(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var kV=function(e){return new wV(e)};function CV(e){this._context=e}CV.prototype={areaStart:yV,areaEnd:yV,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:_V(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var SV=function(e){return new CV(e)};function xV(e){this._context=e}xV.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,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_V(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var OV=function(e){return new xV(e)};function MV(e,t){this._basis=new wV(e),this._beta=t}MV.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 r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,c=-1;++c<=n;)this._basis.point(this._beta*e[c]+(1-this._beta)*(i+(r=c/n)*a),this._beta*t[c]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var TV=function e(t){function n(e){return 1===t?new wV(e):new MV(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function EV(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 PV(e,t){this._context=e,this._k=(1-t)/6}PV.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:EV(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:EV(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 jV=function e(t){function n(e){return new PV(e,t)}return n.tension=function(t){return e(+t)},n}(0);function IV(e,t){this._context=e,this._k=(1-t)/6}IV.prototype={areaStart:yV,areaEnd:yV,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:EV(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 AV=function e(t){function n(e){return new IV(e,t)}return n.tension=function(t){return e(+t)},n}(0);function DV(e,t){this._context=e,this._k=(1-t)/6}DV.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:EV(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 RV=function e(t){function n(e){return new DV(e,t)}return n.tension=function(t){return e(+t)},n}(0);function LV(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>pH){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);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>pH){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(r,i,o,a,e._x2,e._y2)}function NV(e,t){this._context=e,this._alpha=t}NV.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,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:LV(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 FV=function e(t){function n(e){return t?new NV(e,t):new PV(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function BV(e,t){this._context=e,this._alpha=t}BV.prototype={areaStart:yV,areaEnd:yV,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,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:LV(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 zV=function e(t){function n(e){return t?new BV(e,t):new IV(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function HV(e,t){this._context=e,this._alpha=t}HV.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,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:LV(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 VV=function e(t){function n(e){return t?new HV(e,t):new DV(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function UV(e){this._context=e}UV.prototype={areaStart:yV,areaEnd:yV,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 qV=function(e){return new UV(e)};function WV(e){return e<0?-1:1}function GV(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(WV(o)+WV(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function XV(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function YV(e,t,n){var r=e._x0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,e._y0+a*t,i-a,o-a*n,i,o)}function KV(e){this._context=e}function QV(e){this._context=new ZV(e)}function ZV(e){this._context=e}function $V(e){return new KV(e)}function JV(e){return new QV(e)}function eU(e){this._context=e}function tU(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)o[t]-=n=i[t]/o[t-1],a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}KV.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:YV(this,this._t0,XV(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,YV(this,XV(this,n=GV(this,e,t)),n);break;default:YV(this,this._t0,n=GV(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(QV.prototype=Object.create(KV.prototype)).point=function(e,t){KV.prototype.point.call(this,t,e)},ZV.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,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},eU.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 r=tU(e),i=tU(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[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 nU=function(e){return new eU(e)};function rU(e,t){this._context=e,this._t=t}rU.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 iU=function(e){return new rU(e,.5)};function oU(e){return new rU(e,0)}function aU(e){return new rU(e,1)}var sU=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},cU=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function lU(e,t){return e[t]}var uU=function(){var e=aH([]),t=cU,n=sU,r=lU;function i(i){var o,a,s=e.apply(this,arguments),c=i.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,+r(i[p],d,p,i)],h.data=i[p];f.key=d}for(o=0,a=t(u);o<l;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:aH(qH.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:aH(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?cU:"function"==typeof e?e:aH(qH.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?sU:e,i):n},i},hU=function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}sU(e,t)}},dU=function(e,t){if((s=e.length)>1)for(var n,r,i,o,a,s,c=0,l=e[t[0]].length;c<l;++c)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][c])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o},fU=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}sU(e,t)}},pU=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,l=0;s<i;++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,sU(e,t)}},mU=function(e){var t=e.map(gU);return cU(e).sort(function(e,n){return t[e]-t[n]})};function gU(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}var vU=function(e){return mU(e).reverse()},bU=function(e){var t,n,r=e.length,i=e.map(gU),o=cU(e).sort(function(e,t){return i[t]-i[e]}),a=0,s=0,c=[],l=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],c.push(n)):(s+=i[n],l.push(n));return l.reverse().concat(c)},yU=function(e){return cU(e).reverse()},_U=new Date,wU=new Date;function kU(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return kU(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return _U.setTime(+t),wU.setTime(+r),e(_U),e(wU),Math.floor(n(_U,wU))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var CU=kU(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});CU.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?kU(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):CU:null};var SU=CU,xU=CU.range,OU=1e3,MU=6e4,TU=36e5,EU=864e5,PU=6048e5,jU=kU(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*OU)},function(e,t){return(t-e)/OU},function(e){return e.getUTCSeconds()}),IU=jU,AU=jU.range,DU=kU(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*OU)},function(e,t){e.setTime(+e+t*MU)},function(e,t){return(t-e)/MU},function(e){return e.getMinutes()}),RU=DU,LU=DU.range,NU=kU(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*OU-e.getMinutes()*MU)},function(e,t){e.setTime(+e+t*TU)},function(e,t){return(t-e)/TU},function(e){return e.getHours()}),FU=NU,BU=NU.range,zU=kU(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())*MU)/EU},function(e){return e.getDate()-1}),HU=zU,VU=zU.range;function UU(e){return kU(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())*MU)/PU})}var qU=UU(0),WU=UU(1),GU=UU(2),XU=UU(3),YU=UU(4),KU=UU(5),QU=UU(6),ZU=qU.range,$U=WU.range,JU=GU.range,eq=XU.range,tq=YU.range,nq=KU.range,rq=QU.range,iq=kU(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()}),oq=iq,aq=iq.range,sq=kU(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()});sq.every=function(e){return isFinite(e=Math.floor(e))&&e>0?kU(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 cq=sq,lq=sq.range,uq=kU(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*MU)},function(e,t){return(t-e)/MU},function(e){return e.getUTCMinutes()}),hq=uq,dq=uq.range,fq=kU(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*TU)},function(e,t){return(t-e)/TU},function(e){return e.getUTCHours()}),pq=fq,mq=fq.range,gq=kU(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/EU},function(e){return e.getUTCDate()-1}),vq=gq,bq=gq.range;function yq(e){return kU(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)/PU})}var _q=yq(0),wq=yq(1),kq=yq(2),Cq=yq(3),Sq=yq(4),xq=yq(5),Oq=yq(6),Mq=_q.range,Tq=wq.range,Eq=kq.range,Pq=Cq.range,jq=Sq.range,Iq=xq.range,Aq=Oq.range,Dq=kU(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()}),Rq=Dq,Lq=Dq.range,Nq=kU(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()});Nq.every=function(e){return isFinite(e=Math.floor(e))&&e>0?kU(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 Fq=Nq,Bq=Nq.range;function zq(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 Hq(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 Vq(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Uq(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=tW(i),u=nW(i),h=tW(o),d=nW(o),f=tW(a),p=nW(a),m=tW(s),g=nW(s),v=tW(c),b=nW(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:kW,e:kW,f:MW,H:CW,I:SW,j:xW,L:OW,m:TW,M:EW,p:function(e){return i[+(e.getHours()>=12)]},Q:rG,s:iG,S:PW,u:jW,U:IW,V:AW,w:DW,W:RW,x:null,X:null,y:LW,Y:NW,Z:FW,"%":nG},_={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:BW,e:BW,f:qW,H:zW,I:HW,j:VW,L:UW,m:WW,M:GW,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:rG,s:iG,S:XW,u:YW,U:KW,V:QW,w:ZW,W:$W,x:null,X:null,y:JW,Y:eG,Z:tG,"%":nG},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:dW,e:dW,f:bW,H:pW,I:pW,j:fW,L:vW,m:hW,M:mW,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:_W,s:wW,S:gW,u:iW,U:oW,V:aW,w:rW,W:sW,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:lW,Y:cW,Z:uW,"%":yW};function k(e,t){return function(n){var r,i,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!=(i=Kq[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=Vq(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?(i=(r=Hq(Vq(o.y))).getUTCDay(),r=i>4||0===i?bL.ceil(r):bL(r),r=_L.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(Vq(o.y))).getDay(),r=i>4||0===i?cL.ceil(r):cL(r),r=uL.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?Hq(Vq(o.y)).getUTCDay():t(Vq(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Hq(o)):t(o)}}function S(e,t,n,r){for(var i,o,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Kq?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=k(n,y),y.X=k(r,y),y.c=k(t,y),_.x=k(n,_),_.X=k(r,_),_.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+="",zq);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,Hq);return t.toString=function(){return e},t}}}var qq,Wq,Gq,Xq,Yq,Kq={"-":"",_:" ",0:"0"},Qq=/^\s*\d+/,Zq=/^%/,$q=/[\\^$*+?|[\]().{}]/g;function Jq(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function eW(e){return e.replace($q,"\\$&")}function tW(e){return new RegExp("^(?:"+e.map(eW).join("|")+")","i")}function nW(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function rW(e,t,n){var r=Qq.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function iW(e,t,n){var r=Qq.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function oW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function aW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function sW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function cW(e,t,n){var r=Qq.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function uW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function hW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function dW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fW(e,t,n){var r=Qq.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function pW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gW(e,t,n){var r=Qq.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vW(e,t,n){var r=Qq.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function bW(e,t,n){var r=Qq.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yW(e,t,n){var r=Zq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _W(e,t,n){var r=Qq.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wW(e,t,n){var r=Qq.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function kW(e,t){return Jq(e.getDate(),t,2)}function CW(e,t){return Jq(e.getHours(),t,2)}function SW(e,t){return Jq(e.getHours()%12||12,t,2)}function xW(e,t){return Jq(1+uL.count(JR(e),e),t,3)}function OW(e,t){return Jq(e.getMilliseconds(),t,3)}function MW(e,t){return OW(e,t)+"000"}function TW(e,t){return Jq(e.getMonth()+1,t,2)}function EW(e,t){return Jq(e.getMinutes(),t,2)}function PW(e,t){return Jq(e.getSeconds(),t,2)}function jW(e){var t=e.getDay();return 0===t?7:t}function IW(e,t){return Jq(sL.count(JR(e),e),t,2)}function AW(e,t){var n=e.getDay();return e=n>=4||0===n?lL(e):lL.ceil(e),Jq(lL.count(JR(e),e)+(4===JR(e).getDay()),t,2)}function DW(e){return e.getDay()}function RW(e,t){return Jq(cL.count(JR(e),e),t,2)}function LW(e,t){return Jq(e.getFullYear()%100,t,2)}function NW(e,t){return Jq(e.getFullYear()%1e4,t,4)}function FW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Jq(t/60|0,"0",2)+Jq(t%60,"0",2)}function BW(e,t){return Jq(e.getUTCDate(),t,2)}function zW(e,t){return Jq(e.getUTCHours(),t,2)}function HW(e,t){return Jq(e.getUTCHours()%12||12,t,2)}function VW(e,t){return Jq(1+_L.count(kL(e),e),t,3)}function UW(e,t){return Jq(e.getUTCMilliseconds(),t,3)}function qW(e,t){return UW(e,t)+"000"}function WW(e,t){return Jq(e.getUTCMonth()+1,t,2)}function GW(e,t){return Jq(e.getUTCMinutes(),t,2)}function XW(e,t){return Jq(e.getUTCSeconds(),t,2)}function YW(e){var t=e.getUTCDay();return 0===t?7:t}function KW(e,t){return Jq(vL.count(kL(e),e),t,2)}function QW(e,t){var n=e.getUTCDay();return e=n>=4||0===n?yL(e):yL.ceil(e),Jq(yL.count(kL(e),e)+(4===kL(e).getUTCDay()),t,2)}function ZW(e){return e.getUTCDay()}function $W(e,t){return Jq(bL.count(kL(e),e),t,2)}function JW(e,t){return Jq(e.getUTCFullYear()%100,t,2)}function eG(e,t){return Jq(e.getUTCFullYear()%1e4,t,4)}function tG(){return"+0000"}function nG(){return"%"}function rG(e){return+e}function iG(e){return Math.floor(+e/1e3)}function oG(e){return qq=Uq(e),Wq=qq.format,Gq=qq.parse,Xq=qq.utcFormat,Yq=qq.utcParse,qq}oG({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 aG="%Y-%m-%dT%H:%M:%S.%LZ",sG=Date.prototype.toISOString?function(e){return e.toISOString()}:Xq(aG),cG=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:Yq(aG),lG=function(e,t,n){var r=new mk,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?fk():+n,r.restart(function o(a){a+=i,r.restart(o,i+=t,n),e(a)},t,n),r)},uG=Uy("start","end","interrupt"),hG=[],dG=function(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(c){var l,u,h,d;if(1!==n.state)return s();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return wk(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=6,d.timer.stop(),delete i[l])}if(wk(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,r=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))&&(r[++u]=d);r.length=u+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(null,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=gk(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:r,group:i,on:uG,tween:hG,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function fG(e,t){var n=mG(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function pG(e,t){var n=mG(e,t);if(n.state>2)throw new Error("too late; already started");return n}function mG(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var gG=function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),r&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}};function vG(e,t){var n,r;return function(){var i=pG(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function bG(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=pG(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}o.tween=i}}function yG(e,t,n){var r=e._id;return e.each(function(){var e=pG(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return mG(e,r).value[t]}}var _G=function(e,t){var n;return("number"==typeof t?Qw:t instanceof Sw?Vw:(n=Sw(t))?(t=n,Vw):ek)(e,t)};function wG(e){return function(){this.removeAttribute(e)}}function kG(e){return function(){this.removeAttributeNS(e.space,e.local)}}function CG(e,t,n){var r,i;return function(){var o=this.getAttribute(e);return o===n?null:o===r?i:i=t(r=o,n)}}function SG(e,t,n){var r,i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===r?i:i=t(r=o,n)}}function xG(e,t,n){var r,i,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(e))===s?null:a===r&&s===i?o:o=t(r=a,i=s);this.removeAttribute(e)}}function OG(e,t,n){var r,i,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===s?null:a===r&&s===i?o:o=t(r=a,i=s);this.removeAttributeNS(e.space,e.local)}}function MG(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}function TG(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n}function EG(e,t){return function(){fG(this,e).delay=+t.apply(this,arguments)}}function PG(e,t){return t=+t,function(){fG(this,e).delay=t}}function jG(e,t){return function(){pG(this,e).duration=+t.apply(this,arguments)}}function IG(e,t){return t=+t,function(){pG(this,e).duration=t}}function AG(e,t){if("function"!=typeof t)throw new Error;return function(){pG(this,e).ease=t}}function DG(e,t,n){var r,i,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)?fG:pG;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var RG=ew.prototype.constructor;function LG(e,t,n){function r(){var r=this,i=t.apply(r,arguments);return i&&function(t){r.style.setProperty(e,i(t),n)}}return r._value=t,r}var NG=0;function FG(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function BG(e){return ew().transition(e)}function zG(){return++NG}var HG=ew.prototype;FG.prototype=BG.prototype={constructor:FG,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Wy(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,c,l=r[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,dG(h[d],t,n,d,h,mG(s,n)));return new FG(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Xy(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c,l=r[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=mG(c,n),m=0,g=f.length;m<g;++m)(d=f[m])&&dG(d,t,n,m,f,p);o.push(f),a.push(c)}return new FG(o,a,t,n)},filter:function(e){"function"!=typeof e&&(e=Yy(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,c=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&c.push(o);return new FG(r,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,r=t.length,i=Math.min(r,n.length),o=new Array(r),a=0;a<i;++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<r;++a)o[a]=t[a];return new FG(o,this._parents,this._name,this._id)},selection:function(){return new RG(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=zG(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,l=0;l<c;++l)if(a=s[l]){var u=mG(a,t);dG(a,e,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new FG(r,this._parents,e,n)},call:HG.call,nodes:HG.nodes,node:HG.node,size:HG.size,empty:HG.empty,each:HG.each,on:function(e,t){var n=this._id;return arguments.length<2?mG(this.node(),n).on.on(e):this.each(DG(n,e,t))},attr:function(e,t){var n=n_(e),r="transform"===n?Fk:_G;return this.attrTween(e,"function"==typeof t?(n.local?OG:xG)(n,r,yG(this,"attr."+e,t)):null==t?(n.local?kG:wG)(n):(n.local?SG:CG)(n,r,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 r=n_(e);return this.tween(n,(r.local?MG:TG)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Nk:_G;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=f_(this,e),a=(this.style.removeProperty(e),f_(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,i,o;return function(){var a=f_(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=f_(this,e)),a===s?null:a===r&&s===i?o:o=t(r=a,i=s)}}(e,r,yG(this,"style."+e,t)):function(e,t,n){var r,i;return function(){var o=f_(this,e);return o===n?null:o===r?i:i=t(r=o,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,LG(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}}(yG(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 r,i=mG(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?vG:bG)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?EG:PG)(t,e)):mG(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?jG:IG)(t,e)):mG(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(AG(t,e)):mG(this.node(),t).ease}};var VG={time:null,delay:0,duration:250,ease:bC};function UG(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return VG.time=fk(),VG;return n}ew.prototype.interrupt=function(e){return this.each(function(){gG(this,e)})},ew.prototype.transition=function(e){var t,n;e instanceof FG?(t=e._id,e=e._name):(t=zG(),(n=VG).time=fk(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,l=0;l<c;++l)(a=s[l])&&dG(a,e,t,l,s,n||UG(a,t));return new FG(r,this._parents,e,t)};var qG=[null],WG=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>1&&n.name===t)return new FG([[e]],qG,t,+r);return null},GG=function(e){return function(){return e}};function XG(e){return e[0]}function YG(e){return e[1]}function KG(){this._=null}function QG(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function ZG(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function $G(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function JG(e){for(;e.L;)e=e.L;return e}KG.prototype={constructor:KG,insert:function(e,t){var n,r,i;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=JG(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===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(ZG(this,n),n=(e=n).U),n.C=!1,r.C=!0,$G(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&($G(this,n),n=(e=n).U),n.C=!1,r.C=!0,ZG(this,r)),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,r,i=e.U,o=e.L,a=e.R;if(n=o?a?JG(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,i.L=e=n.R,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,ZG(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,$G(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,ZG(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,$G(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ZG(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,$G(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var eX=KG;function tX(e,t,n,r){var i=[null,null],o=xX.push(i)-1;return i.left=e,i.right=t,n&&rX(i,e,t,n),r&&rX(i,t,e,r),CX[e.index].halfedges.push(o),CX[t.index].halfedges.push(o),i}function nX(e,t,n){var r=[t,n];return r.left=e,r}function rX(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function iX(e,t,n,r,i){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=r-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=i-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 oX(e,t,n,r,i){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>=r)return;if(h>f){if(c){if(c[1]>=i)return}else c=[m,n];o=[m,i]}else{if(c){if(c[1]<n)return}else c=[m,i];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]>=i)return}else c=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(c){if(c[1]<n)return}else c=[(i-s)/a,i];o=[(n-s)/a,n]}else if(d<p){if(c){if(c[0]>=r)return}else c=[t,a*t+s];o=[r,a*r+s]}else{if(c){if(c[0]<t)return}else c=[r,a*r+s];o=[t,a*t+s]}return e[0]=c,e[1]=o,!0}function aX(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function sX(e,t){return t[+(t.left!==e.site)]}function cX(e,t){return t[+(t.left===e.site)]}var lX,uX=[];function hX(){QG(this),this.x=this.y=this.arc=this.site=this.cy=null}function dX(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i[0],s=i[1],c=r[0]-a,l=r[1]-s,u=o[0]-a,h=o[1]-s,d=2*(c*h-l*u);if(!(d>=-MX)){var f=c*c+l*l,p=u*u+h*h,m=(h*f-l*p)/d,g=(c*p-u*f)/d,v=uX.pop()||new hX;v.arc=e,v.site=i,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),e.circle=v;for(var b=null,y=SX._;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}SX.insert(b,v),b||(lX=v)}}}}function fX(e){var t=e.circle;t&&(t.P||(lX=t.N),SX.remove(t),uX.push(t),QG(t),e.circle=null)}var pX=[];function mX(){QG(this),this.edge=this.site=this.circle=null}function gX(e){var t=pX.pop()||new mX;return t.site=e,t}function vX(e){fX(e),kX.remove(e),pX.push(e),QG(e)}function bX(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,s=[e];vX(e);for(var c=o;c.circle&&Math.abs(n-c.circle.x)<OX&&Math.abs(r-c.circle.cy)<OX;)o=c.P,s.unshift(c),vX(c),c=o;s.unshift(c),fX(c);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<OX&&Math.abs(r-l.circle.cy)<OX;)a=l.N,s.push(l),vX(l),l=a;s.push(l),fX(l);var u,h=s.length;for(u=1;u<h;++u)rX((l=s[u]).edge,(c=s[u-1]).site,l.site,i);(l=s[h-1]).edge=tX((c=s[0]).site,l.site,null,i),dX(c),dX(l)}function yX(e){for(var t,n,r,i,o=e[0],a=e[1],s=kX._;s;)if((r=_X(s,a)-o)>OX)s=s.L;else{if(!((i=o-wX(s,a))>OX)){r>-OX?(t=s.P,n=s):i>-OX?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){CX[e.index]={site:e,halfedges:[]}}(e);var c=gX(e);if(kX.insert(t,c),t||n){if(t===n)return fX(t),n=gX(t.site),kX.insert(c,n),c.edge=n.edge=tX(t.site,c.site),dX(t),void dX(n);if(n){fX(t),fX(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];rX(n.edge,l,p,_),c.edge=tX(l,e,null,_),n.edge=tX(e,p,null,_),dX(t),dX(n)}else c.edge=tX(t.site,c.site)}}function _X(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;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-r,h=1/o-1/l,d=u/l;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*l)-c+l/2+i-o/2)))/h+r:(r+s)/2}function wX(e,t){var n=e.N;if(n)return _X(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var kX,CX,SX,xX,OX=1e-6,MX=1e-12;function TX(e,t){return t[1]-e[1]||t[0]-e[0]}function EX(e,t){var n,r,i,o=e.sort(TX).pop();for(xX=[],CX=new Array(e.length),kX=new eX,SX=new eX;;)if(i=lX,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(yX(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;bX(i.arc)}if(function(){for(var e,t,n,r,i=0,o=CX.length;i<o;++i)if((e=CX[i])&&(r=(t=e.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=aX(e,xX[t[n]]);for(a.sort(function(e,t){return s[t]-s[e]}),n=0;n<r;++n)s[n]=t[a[n]];for(n=0;n<r;++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,r){for(var i,o=xX.length;o--;)oX(i=xX[o],e,t,n,r)&&iX(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>OX||Math.abs(i[0][1]-i[1][1])>OX)||delete xX[o]}(a,s,c,l),function(e,t,n,r){var i,o,a,s,c,l,u,h,d,f,p,m,g=CX.length,v=!0;for(i=0;i<g;++i)if(o=CX[i]){for(a=o.site,s=(c=o.halfedges).length;s--;)xX[c[s]]||c.splice(s,1);for(s=0,l=c.length;s<l;)p=(f=cX(o,xX[c[s]]))[0],m=f[1],h=(u=sX(o,xX[c[++s%l]]))[0],d=u[1],(Math.abs(p-h)>OX||Math.abs(m-d)>OX)&&(c.splice(s,0,xX.push(nX(a,f,Math.abs(p-e)<OX&&r-m>OX?[e,Math.abs(h-e)<OX?d:r]:Math.abs(m-r)<OX&&n-p>OX?[Math.abs(d-r)<OX?h:n,r]:Math.abs(p-n)<OX&&m-t>OX?[n,Math.abs(h-n)<OX?d:t]:Math.abs(m-t)<OX&&p-e>OX?[Math.abs(d-t)<OX?h:e,t]:null))-1),++l);l&&(v=!1)}if(v){var b,y,_,w=1/0;for(i=0,v=null;i<g;++i)(o=CX[i])&&(_=(b=(a=o.site)[0]-e)*b+(y=a[1]-t)*y)<w&&(w=_,v=o);if(v){var k=[e,t],C=[e,r],S=[n,r],x=[n,t];v.halfedges.push(xX.push(nX(a=v.site,k,C))-1,xX.push(nX(a,C,S))-1,xX.push(nX(a,S,x))-1,xX.push(nX(a,x,k))-1)}}for(i=0;i<g;++i)(o=CX[i])&&(o.halfedges.length||delete CX[i])}(a,s,c,l)}this.edges=xX,this.cells=CX,kX=SX=xX=CX=null}EX.prototype={constructor:EX,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return sX(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s,c,l,u=n.site,h=-1,d=t[i[o-1]],f=d.left===u?d.right:d.left;++h<o;)a=f,f=(d=t[i[h]]).left===u?d.right:d.left,a&&f&&r<a.index&&r<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 r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var c=e-i.site[0],l=t-i.site[1],u=c*c+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.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=r,null==n||u<=n*n?i.site:null}};var PX=function(){var e=XG,t=YG,n=null;function r(r){return new EX(r.map(function(n,i){var o=[Math.round(e(n,i,r)/OX)*OX,Math.round(t(n,i,r)/OX)*OX];return o.index=i,o.data=n,o}),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:GG(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:GG(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},jX=Math.SQRT2;function IX(e){return((e=Math.exp(e))+1/e)/2}var AX=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[2],c=t[0]-i,l=t[1]-o,u=c*c+l*l;if(u<1e-12)r=Math.log(s/a)/jX,n=function(e){return[i+e*c,o+e*l,a*Math.exp(jX*e*r)]};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);r=(m-p)/jX,n=function(e){var t,n=e*r,s=IX(p),u=a/(2*h)*(s*(t=jX*n+p,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(p));return[i+u*c,o+u*l,a*s/IX(jX*n+p)]}}return n.duration=1e3*r,n},DX=function(e){return function(){return e}};function RX(e,t,n){this.target=e,this.type=t,this.transform=n}function LX(e,t,n){this.k=e,this.x=t,this.y=n}LX.prototype={constructor:LX,scale:function(e){return 1===e?this:new LX(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new LX(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 NX=new LX(1,0,0);function FX(e){return e.__zoom||NX}function BX(){H_.stopImmediatePropagation()}FX.prototype=LX.prototype;var zX=function(){H_.preventDefault(),H_.stopImmediatePropagation()};function HX(){return!H_.ctrlKey&&!H_.button}function VX(){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 UX(){return this.__zoom||NX}function qX(){return-H_.deltaY*(1===H_.deltaMode?.05:H_.deltaMode?1:.002)}function WX(){return navigator.maxTouchPoints||"ontouchstart"in this}function GX(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=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(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var XX=function(){var e,t,n=HX,r=VX,i=GX,o=qX,a=WX,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,u=AX,h=Uy("start","zoom","end"),d=500,f=0;function p(e){e.property("__zoom",UX).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 LX(t,e.x,e.y)}function g(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new LX(e.k,r,i)}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,i=arguments,o=y(e,i),a=r.apply(e,i),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,i):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 LX(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=r.apply(e,t),this.taps=0}function w(){if(n.apply(this,arguments)){var e=y(this,arguments),t=this.__zoom,r=Math.max(s[0],Math.min(s[1],t.k*Math.pow(2,o.apply(this,arguments)))),a=ik(this);t.k!==r&&(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)],Ik(this),e.start()),zX(),e.wheel=setTimeout(l,150),e.zoom("mouse",i(g(m(t,r),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),r=tw(H_.view).on("mousemove.zoom",l,!0).on("mouseup.zoom",u,!0),o=ik(this),a=H_.clientX,s=H_.clientY;iw(H_.view),BX(),e.mouse=[o,this.__zoom.invert(o)],Ik(this),e.start()}function l(){if(zX(),!e.moved){var t=H_.clientX-a,n=H_.clientY-s;e.moved=t*t+n*n>f}e.zoom("mouse",i(g(e.that.__zoom,e.mouse[0]=ik(e.that),e.mouse[1]),e.extent,c))}function u(){r.on("mousemove.zoom mouseup.zoom",null),ow(H_.view,e.moved),zX(),e.end()}}function C(){if(n.apply(this,arguments)){var e=this.__zoom,t=ik(this),o=e.invert(t),a=e.k*(H_.shiftKey?.5:2),s=i(g(m(e,a),t,o),r.apply(this,arguments),c);zX(),l>0?tw(this).transition().duration(l).call(b,s,t):tw(this).call(p.transform,s)}}function S(){if(n.apply(this,arguments)){var t,r,i,o,a=H_.touches,s=a.length,c=y(this,arguments,H_.changedTouches.length===s);for(BX(),r=0;r<s;++r)o=[o=Gx(this,a,(i=a[r]).identifier),this.__zoom.invert(o),i.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)),Ik(this),c.start())}}function x(){if(this.__zooming){var t,n,r,o,a=y(this,arguments),s=H_.changedTouches,l=s.length;for(zX(),e&&(e=clearTimeout(e)),a.taps=0,t=0;t<l;++t)r=Gx(this,s,(n=s[t]).identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=r:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=r);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)),r=[(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;r=a.touch0[0],o=a.touch0[1]}a.zoom("touch",i(g(n,r,o),a.extent,c))}}function O(){if(this.__zooming){var e,n,r=y(this,arguments),i=H_.changedTouches,o=i.length;for(BX(),t&&clearTimeout(t),t=setTimeout(function(){t=null},d),e=0;e<o;++e)n=i[e],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var a=tw(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",UX),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=r.apply(this,arguments),n=this.__zoom,o=v(e),a=n.invert(o),s="function"==typeof t?t.apply(this,arguments):t;return i(g(m(n,s),o,a),e,c)})},p.translateBy=function(e,t,n){p.transform(e,function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),c)})},p.translateTo=function(e,t,n){p.transform(e,function(){var e=r.apply(this,arguments),o=this.__zoom,a=v(e);return i(NX.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){X_(new RX(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:DX(+e),p):o},p.filter=function(e){return arguments.length?(n="function"==typeof e?e:DX(!!e),p):n},p.touchable=function(e){return arguments.length?(a="function"==typeof e?e:DX(!!e),p):a},p.extent=function(e){return arguments.length?(r="function"==typeof e?e:DX([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),p):r},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?(i=e,p):i},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},YX=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"getD3",value:function(){return r}}]),e}(),KX={MEMORY:0,IMMUTABLE_MEMORY:1,SESSION:2,LOCAL:3};KX[KX.MEMORY]="MEMORY",KX[KX.IMMUTABLE_MEMORY]="IMMUTABLE_MEMORY",KX[KX.SESSION]="SESSION",KX[KX.LOCAL]="LOCAL";var QX=function(){function e(e,t,n,r){var i=this;void 0===r&&(r={}),this._loader=t;var o=r.type||KX.MEMORY;n.defineProperty(this,"_value",e,r),this._changes=n.changes({key:e,type:o}).map(function(e){return i._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 r=this._loader();if(r&&r instanceof C.a){var i=r.publishLast().refCount().do(function(t){return e._value=t}).do(function(t){return e._cachedObservable=void 0});return this._cachedObservable=i,i}this._value=t=r}return C.a.of(t)},e.prototype.changes=function(){return this._changes},e.prototype.clear=function(){this._value=void 0},e}(),ZX=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}(),$X=function(){function e(e,t,n){void 0===n&&(n=!0),this._namespace=e,this._root=t,this._available=n,this._info=new ZX(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}(),JX="_____NULL_VALUE_____",eY=function(){function e(e){this._storage=e}return e.prototype.set=function(e,t){try{null===t&&(t=JX),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===JX?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}(),tY=function(e){function t(t){e.call(this,"ANGULAR_PERSISTENCE_STORAGE",new eY(t),!!t)}return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}($X),nY=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 r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(tY),rY=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 r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(tY),iY=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}(),oY=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 r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(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}(iY),aY=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 KX.MEMORY:t=new iY,this._storages[e]=t;break;case KX.IMMUTABLE_MEMORY:t=new oY;break;case KX.LOCAL:t=new rY;break;case KX.SESSION:t=new nY}if(!t||!t.available())throw new Error("Storage type not available");this._storages[e]=t}return t},e}(),sY=function(){function e(){this._emitter=new ul,this._storage=aY.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=KX.MEMORY);var n=this._getStorage(t),r=n.get(e);if(r){var i=Date.now();if(r.expireAfter&&r.created+r.expireAfter<i)return n.remove(e),void this._emitter.emit({key:e,type:t});if(r.oneUse)return n.remove(e),this._emitter.emit({key:e,type:t}),r.data;if(r.timeout){if(r.lastAccessed+r.timeout<i)return n.remove(e),void this._emitter.emit({key:e,type:t});r.lastAccessed=i,n.set(e,r)}return r.data}},e.prototype.set=function(e,t,n){if(void 0===n&&(n={}),n.type||(n.type=KX.MEMORY),void 0===!t)return this.remove(e),this._emitter.emit({key:e,type:n.type}),!0;var r=this._getStorage(n.type),i=Date.now(),o=r.set(e,{data:t,expireAfter:n.expireAfter,timeout:n.timeout,oneUse:!!n.oneUse,created:i,lastAccessed:i});return o?this._emitter.emit({key:e,type:n.type}):r.remove(e),o},e.prototype.remove=function(e,t){void 0===t&&(t=KX.MEMORY);var n=this._getStorage(t),r=this.get(e,t);return void 0!==r&&(n.remove(e),this._emitter.emit({key:e,type:t})),r},e.prototype.removeAll=function(e){var t=this;void 0===e&&(e=KX.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=KX.MEMORY);for(var t=this._getStorage(e),n=t.keys(),r=Date.now(),i=0,o=n;i<o.length;i++){var a=o[i],s=t.get(a);s&&(s.expireAfter&&s.created+s.expireAfter<r||s.timeout&&s.lastAccessed+s.timeout<r)&&this.remove(a)}},e.prototype.defineProperty=function(e,t,n,r){var i=this;void 0===r&&(r={});var o=r.type||KX.MEMORY;Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return i.get(n,o)},set:function(e){i.set(n,e,r)}})},e.prototype.createContainer=function(e,t){void 0===t&&(t={});var n=this,r={oneUse:t.oneUse,expireAfter:t.expireAfter,timeout:t.timeout,type:t.type||KX.MEMORY};return new $X(e,{get:function(e){return n.get(e,r.type)},set:function(e,t){return n.set(e,t,r)},remove:function(e){return n.remove(e,r.type)},removeAll:function(){return n.removeAll()}},!0)},e.prototype.createCache=function(e,t,n){return void 0===n&&(n={}),new QX(e,t,this,{type:n.type||KX.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=F({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),cY=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[sY]}),e}(),lY=function(){function e(){Object(s.a)(this,e)}return Object(c.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}(),uY=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.call(this)}return n}(lY);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),hY=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[{provide:lY,useClass:uY}]}),e}(),dY=function(){function e(t){Object(s.a)(this,e),this.rawFile=t;var n,r=(n=t)&&(n.nodeName||n.prop&&n.attr&&n.find)?t.value:t;this["_createFrom"+("string"==typeof r?"FakePath":"Object")](r)}return Object(c.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}(),fY=function(){function e(t,n,r){Object(s.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=r,this.file=new dY(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(c.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}(),pY=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.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 r=n[n.length-1].toLowerCase();return void 0===t[r]?"application":t[r]}}]),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}(),mY=function(){function e(t){Object(s.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 ul}return Object(c.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 r,i=this,o=[],a=d(e);try{for(a.s();!(r=a.n()).done;)o.push(r.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=i.options);var n=new dY(e);if(i._isValidFile(n,s,t)){var r=new fY(i,e,t);l.push(r),i.queue.push(r),i._onAfterAddingFile(r)}else i._onWhenAddingFileFailed(n,s[i._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],r=this.options.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),this.isUploading||(this.isUploading=!0,this[r](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 dY}},{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,r){return{item:e,response:t,status:n,headers:r}}},{key:"onErrorItem",value:function(e,t,n,r){return{item:e,response:t,status:n,headers:r}}},{key:"onCancelItem",value:function(e,t,n,r){return{item:e,response:t,status:n,headers:r}}},{key:"onCompleteItem",value:function(e,t,n,r){return{item:e,response:t,status:n,headers:r}}},{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(pY.getMimeClass(e)))}},{key:"_onErrorItem",value:function(e,t,n,r){e._onError(t,n,r),this.onErrorItem(e,t,n,r)}},{key:"_onCompleteItem",value:function(e,t,n,r){e._onComplete(t,n,r),this.onCompleteItem(e,t,n,r);var i=this.getReadyItems()[0];this.isUploading=!1,i?i.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,r=this,i=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(r){var i=n.options.additionalParameter[r];"string"==typeof i&&i.indexOf("{{file_name}}")>=0&&(i=i.replace("{{file_name}}",e.file.name)),t.append(r,i)}),this.options.parametersBeforeFiles&&o()}if(i.upload.onprogress=function(t){var r=Math.round(t.lengthComputable?100*t.loaded/t.total:0);n._onProgressItem(e,r)},i.onload=function(){var t=n._parseHeaders(i.getAllResponseHeaders()),r=n._transformResponse(i.response,t),o=n._isSuccessCode(i.status)?"Success":"Error";n["_on"+o+"Item"](e,r,i.status,t),n._onCompleteItem(e,r,i.status,t)},i.onerror=function(){var t=n._parseHeaders(i.getAllResponseHeaders()),r=n._transformResponse(i.response,t);n._onErrorItem(e,r,i.status,t),n._onCompleteItem(e,r,i.status,t)},i.onabort=function(){var t=n._parseHeaders(i.getAllResponseHeaders()),r=n._transformResponse(i.response,t);n._onCancelItem(e,r,i.status,t),n._onCompleteItem(e,r,i.status,t)},i.open(e.method,e.url,!0),i.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;i.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;i.setRequestHeader(h.name,h.value)}}catch(f){u.e(f)}finally{u.f()}}this.authToken&&i.setRequestHeader(this.authTokenHeader,this.authToken),i.onreadystatechange=function(){i.readyState==XMLHttpRequest.DONE&&r.response.emit(i.responseText)},this.options.formatDataFunctionIsAsync?t.then(function(e){return i.send(JSON.stringify(e))}):i.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,r=100/this.queue.length,i=e*r/100;return Math.round(n*r+i)}},{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 r=this;return this._failFilterIndex=-1,!t.length||t.every(function(t){return r._failFilterIndex++,t.fn.call(r,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,r,i={};return e?(e.split("\n").map(function(e){r=e.indexOf(":"),t=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim(),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},{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,r){e._onSuccess(t,n,r),this.onSuccessItem(e,t,n,r)}},{key:"_onCancelItem",value:function(e,t,n,r){e._onCancel(t,n,r),this.onCancelItem(e,t,n,r)}}]),e}(),gY=function(){var e=function(){function e(t){Object(s.a)(this,e),this.onFileSelected=new ul,this.element=t}return Object(c.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)(Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","ng2FileSelect",""]],hostBindings:function(e,t){1&e&&Na("change",function(){return t.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),e}(),vY=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[vh]]}),e}(),bY=n("itXk"),yY=n("sVev"),_Y=n("GyhO"),wY=n("NXyV"),kY=n("EY2u"),CY=n("EQ5u"),SY=n("Kqap"),xY=n("JIr8"),OY=n("NJ9Y"),MY=n("SxV6"),TY=n("5+tZ"),EY=n("vkgz"),PY=n("BFxc"),jY=n("x+ZX"),IY=n("nYR2"),AY=n("bHdf"),DY=function e(t,n){Object(s.a)(this,e),this.id=t,this.url=n},RY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Object(s.a)(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return Object(c.a)(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(DY),LY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return Object(c.a)(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(DY),NY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e,r)).reason=i,o}return Object(c.a)(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(DY),FY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e,r)).error=i,o}return Object(c.a)(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(DY),BY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return Object(c.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}(DY),zY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return Object(c.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}(DY),HY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a){var c;return Object(s.a)(this,n),(c=t.call(this,e,r)).urlAfterRedirects=i,c.state=o,c.shouldActivate=a,c}return Object(c.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}(DY),VY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return Object(c.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}(DY),UY=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return Object(c.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}(DY),qY=function(){function e(t){Object(s.a)(this,e),this.route=t}return Object(c.a)(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),WY=function(){function e(t){Object(s.a)(this,e),this.route=t}return Object(c.a)(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),GY=function(){function e(t){Object(s.a)(this,e),this.snapshot=t}return Object(c.a)(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),XY=function(){function e(t){Object(s.a)(this,e),this.snapshot=t}return Object(c.a)(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),YY=function(){function e(t){Object(s.a)(this,e),this.snapshot=t}return Object(c.a)(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),KY=function(){function e(t){Object(s.a)(this,e),this.snapshot=t}return Object(c.a)(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),QY=function(){function e(t,n,r){Object(s.a)(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return Object(c.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}(),ZY="primary",$Y=function(){function e(t){Object(s.a)(this,e),this.params=t||{}}return Object(c.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 JY(e){return new $Y(e)}function eK(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function tK(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=e[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function nK(e,t){var n,r=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(!rK(e[n=r[o]],t[n]))return!1;return!0}function rK(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=Object(g.a)(e).sort(),r=Object(g.a)(t).sort();return n.every(function(e,t){return r[t]===e})}return e===t}function iK(e){return Array.prototype.concat.apply([],e)}function oK(e){return e.length>0?e[e.length-1]:null}function aK(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function sK(e){return La(e)?e:Da(e)?Object(ad.a)(Promise.resolve(e)):Object(Bf.a)(e)}function cK(e,t,n){return n?function(e,t){return nK(e,t)}(e.queryParams,t.queryParams)&&lK(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return rK(e[n],t[n])})}(e.queryParams,t.queryParams)&&uK(e.root,t.root)}function lK(e,t){if(!mK(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!lK(e.children[n],t.children[n]))return!1}return!0}function uK(e,t){return hK(e,t,t.segments)}function hK(e,t,n){if(e.segments.length>n.length)return!!mK(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!mK(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!uK(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!mK(e.segments,i)&&!!e.children.primary&&hK(e.children.primary,t,o)}var dK=function(){function e(t,n,r){Object(s.a)(this,e),this.root=t,this.queryParams=n,this.fragment=r}return Object(c.a)(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=JY(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return bK.serialize(this)}}]),e}(),fK=function(){function e(t,n){var r=this;Object(s.a)(this,e),this.segments=t,this.children=n,this.parent=null,aK(n,function(e,t){return e.parent=r})}return Object(c.a)(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return yK(this)}}]),e}(),pK=function(){function e(t,n){Object(s.a)(this,e),this.path=t,this.parameters=n}return Object(c.a)(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=JY(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return OK(this)}}]),e}();function mK(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var gK=function e(){Object(s.a)(this,e)},vK=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"parse",value:function(e){var t=new jK(e);return new dK(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r="/".concat(_K(e.root,!0)),i=(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(kK(e),"=").concat(kK(t))}).join("&"):"".concat(kK(e),"=").concat(kK(n))})).length?"?".concat(n.join("&")):""),o="string"==typeof e.fragment?"#".concat(encodeURI(e.fragment)):"";return"".concat(r).concat(i).concat(o)}}]),e}(),bK=new vK;function yK(e){return e.segments.map(function(e){return OK(e)}).join("/")}function _K(e,t){if(!e.hasChildren())return yK(e);if(t){var n=e.children.primary?_K(e.children.primary,!1):"",r=[];return aK(e.children,function(e,t){t!==ZY&&r.push("".concat(t,":").concat(_K(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(e,t){var n=[];return aK(e.children,function(e,r){r===ZY&&(n=n.concat(t(e,r)))}),aK(e.children,function(e,r){r!==ZY&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return n===ZY?[_K(e.children.primary,!1)]:["".concat(n,":").concat(_K(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(yK(e),"/").concat(i[0]):"".concat(yK(e),"/(").concat(i.join("//"),")")}function wK(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kK(e){return wK(e).replace(/%3B/gi,";")}function CK(e){return wK(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function SK(e){return decodeURIComponent(e)}function xK(e){return SK(e.replace(/\+/g,"%20"))}function OK(e){return"".concat(CK(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(CK(e),"=").concat(CK(t[e]))}).join("")));var t}var MK=/^[^\/()?;=#]+/;function TK(e){var t=e.match(MK);return t?t[0]:""}var EK=/^[^=?&#]+/,PK=/^[^?&#]+/,jK=function(){function e(t){Object(s.a)(this,e),this.url=t,this.remaining=t}return Object(c.a)(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fK([],{}):new fK([],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 fK(e,t)),n}},{key:"parseSegment",value:function(){var e=TK(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new pK(SK(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=TK(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=TK(this.remaining);r&&this.capture(n=r)}e[SK(t)]=SK(n)}}},{key:"parseQueryParam",value:function(e){var t,n=(t=this.remaining.match(EK))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(PK);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var o=xK(n),a=xK(r);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=TK(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=ZY);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new fK([],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}(),IK=function(){function e(t){Object(s.a)(this,e),this._root=t}return Object(c.a)(e,[{key:"root",get:function(){return this._root.value}},{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=AK(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=AK(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=DK(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 DK(e,this._root).map(function(e){return e.value})}}]),e}();function AK(e,t){if(e===t.value)return t;var n,r=d(t.children);try{for(r.s();!(n=r.n()).done;){var i=AK(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function DK(e,t){if(e===t.value)return[t];var n,r=d(t.children);try{for(r.s();!(n=r.n()).done;){var i=DK(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var RK=function(){function e(t,n){Object(s.a)(this,e),this.value=t,this.children=n}return Object(c.a)(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function LK(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var NK=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this,e)).snapshot=r,qK(Object(p.a)(i),e),i}return Object(c.a)(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(IK);function FK(e,t){var n=function(e,t){var n=new VK([],{},{},"",{},ZY,t,null,e.root,-1,{});return new UK("",new RK(n,[]))}(e,t),r=new kp.a([new pK("",{})]),i=new kp.a({}),o=new kp.a({}),a=new kp.a({}),s=new kp.a(""),c=new BK(r,i,a,s,o,ZY,t,n.root);return c.snapshot=n.root,new NK(new RK(c,[]),n)}var BK=function(){function e(t,n,r,i,o,a,c,l){Object(s.a)(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this._futureSnapshot=l}return Object(c.a)(e,[{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(cd.a)(function(e){return JY(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(cd.a)(function(e){return JY(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function zK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return HK(n.slice(r))}function HK(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 VK=function(){function e(t,n,r,i,o,a,c,l,u,h,d){Object(s.a)(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=h,this._resolve=d}return Object(c.a)(e,[{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=JY(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=JY(this.queryParams)),this._queryParamMap}},{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,"')")}}]),e}(),UK=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this,r)).url=e,qK(Object(p.a)(i),r),i}return Object(c.a)(n,[{key:"toString",value:function(){return WK(this._root)}}]),n}(IK);function qK(e,t){t.value._routerState=e,t.children.forEach(function(t){return qK(e,t)})}function WK(e){var t=e.children.length>0?" { ".concat(e.children.map(WK).join(", ")," } "):"";return"".concat(e.value).concat(t)}function GK(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,nK(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),nK(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(!nK(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),nK(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function XK(e,t){var n,r;return nK(e.params,t.params)&&mK(n=e.url,r=t.url)&&n.every(function(e,t){return nK(e.parameters,r[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||XK(e.parent,t.parent))}function YK(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=t.value;var i=function(e,t,n){return t.children.map(function(t){var r,i=d(n.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return YK(e,t,o)}}catch(a){i.e(a)}finally{i.f()}return YK(e,t)})}(e,t,n);return new RK(r,i)}var o=e.retrieve(t.value);if(o){var a=o.route;return KK(t,a),a}var s,c=new BK(new kp.a((s=t.value).url),new kp.a(s.params),new kp.a(s.queryParams),new kp.a(s.fragment),new kp.a(s.data),s.outlet,s.component,s),l=t.children.map(function(t){return YK(e,t)});return new RK(c,l)}function KK(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)KK(e.children[n],t.children[n])}function QK(e,t,n,r,i){if(0===n.length)return JK(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tQ(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return aK(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(Object(g.a)(e),[{outlets:o}])}if(r.segmentPath)return[].concat(Object(g.a)(e),[r.segmentPath])}return"string"!=typeof r?[].concat(Object(g.a)(e),[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(Object(g.a)(e),[r])},[]);return new tQ(n,t,r)}(n);if(o.toRoot())return JK(t.root,new fK([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new nQ(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new nQ(r,r===t.root,0)}var i=ZK(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new nQ(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?iQ(a.segmentGroup,a.index,o.commands):rQ(a.segmentGroup,a.index,o.commands);return JK(a.segmentGroup,s,t,r,i)}function ZK(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function $K(e){return"object"==typeof e&&null!=e&&e.outlets}function JK(e,t,n,r,i){var o={};return r&&aK(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new dK(n.root===e?t:eQ(n.root,e,t),o,i)}function eQ(e,t,n){var r={};return aK(e.children,function(e,i){r[i]=e===t?n:eQ(e,t,n)}),new fK(e.segments,r)}var tQ=function(){function e(t,n,r){if(Object(s.a)(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ZK(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find($K);if(i&&i!==oK(r))throw new Error("{outlets:{}} has to be the last command")}return Object(c.a)(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),nQ=function e(t,n,r){Object(s.a)(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function rQ(e,t,n){if(e||(e=new fK([],{})),0===e.segments.length&&e.hasChildren())return iQ(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var a=e.segments[i],s=n[r];if($K(s))break;var c="".concat(s),l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!cQ(c,l,a))return o;r+=2}else{if(!cQ(c,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new fK(e.segments.slice(0,r.pathIndex),{});return o.children.primary=new fK(e.segments.slice(r.pathIndex),e.children),iQ(o,0,i)}return r.match&&0===i.length?new fK(e.segments,{}):r.match&&!e.hasChildren()?oQ(e,t,n):r.match?iQ(e,0,i):oQ(e,t,n)}function iQ(e,t,n){if(0===n.length)return new fK(e.segments,{});var r=function(e){return $K(e[0])?e[0].outlets:m({},ZY,e)}(n),i={};return aK(r,function(n,r){"string"==typeof n&&(n=[n]),null!==n&&(i[r]=rQ(e.children[r],t,n))}),aK(e.children,function(e,t){void 0===r[t]&&(i[t]=e)}),new fK(e.segments,i)}function oQ(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){var o=n[i];if($K(o)){var a=aQ(o.outlets);return new fK(r,a)}if(0===i&&ZK(n[0]))r.push(new pK(e.segments[t].path,sQ(n[0]))),i++;else{var s=$K(o)?o.outlets.primary:"".concat(o),c=i<n.length-1?n[i+1]:null;s&&c&&ZK(c)?(r.push(new pK(s,sQ(c))),i+=2):(r.push(new pK(s,{})),i++)}}return new fK(r,{})}function aQ(e){var t={};return aK(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=oQ(new fK([],{}),0,e))}),t}function sQ(e){var t={};return aK(e,function(e,n){return t[n]="".concat(e)}),t}function cQ(e,t,n){return e==n.path&&nK(t,n.parameters)}var lQ=function(){function e(t,n,r,i){Object(s.a)(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}return Object(c.a)(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),GK(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var r=this,i=LK(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]}),aK(i,function(e,t){r.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&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 r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=LK(e),o=0,a=Object.keys(i);o<a.length;o++)this.deactivateRouteAndItsChildren(i[a[o]],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},{key:"activateChildRoutes",value:function(e,t,n){var r=this,i=LK(t);e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new KY(e.value.snapshot))}),e.children.length&&this.forwardEvent(new XY(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(GK(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),uQ(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}(r.snapshot),l=c?c.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=l,a.outlet&&a.outlet.activateWith(r,l),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function uQ(e){GK(e.value),e.children.forEach(uQ)}var hQ=function e(t,n){Object(s.a)(this,e),this.routes=t,this.module=n};function dQ(e){return"function"==typeof e}function fQ(e){return e instanceof dK}var pQ=Symbol("INITIAL_VALUE");function mQ(){return Object(gp.a)(function(e){return Object(bY.b)(e.map(function(e){return e.pipe(Object(Cp.a)(1),Object(pp.a)(pQ))})).pipe(Object(SY.a)(function(e,t){var n=!1;return t.reduce(function(e,r,i){if(e!==pQ)return e;if(r===pQ&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||fQ(r))return r}return e},e)},pQ),Object(dp.a)(function(e){return e!==pQ}),Object(cd.a)(function(e){return fQ(e)?e:!0===e}),Object(Cp.a)(1))})}var gQ=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=be({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Ea(0,"router-outlet")},directives:function(){return[mZ]},encapsulation:2}),e}();function vQ(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var r=e[n],i=yQ(t,r);bQ(r,i)}}function bQ(e,t){e.children&&vQ(e.children,t)}function yQ(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function _Q(e){var t=e.children&&e.children.map(_Q),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==ZY&&(n.component=gQ),n}function wQ(e){return e.outlet||ZY}function kQ(e,t){var n=e.filter(function(e){return wQ(e)===t});return n.push.apply(n,Object(g.a)(e.filter(function(e){return wQ(e)!==t}))),n}var CQ={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function SQ(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},CQ):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(t.matcher||tK)(n,e,t);if(!i)return Object.assign({},CQ);var o={};aK(i.posParams,function(e,t){o[t]=e.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function xQ(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&TQ(e,n,r)){var o=new fK(t,MQ(e,t,r,new fK(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&EQ(e,n,r)){var a=new fK(e.segments,OQ(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new fK(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function OQ(e,t,n,r,i,o){var a,s={},c=d(r);try{for(c.s();!(a=c.n()).done;){var l=a.value;if(PQ(e,n,l)&&!i[wQ(l)]){var u=new fK([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[wQ(l)]=u}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},i),s)}function MQ(e,t,n,r){var i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,a=d(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&wQ(s)!==ZY){var c=new fK([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,i[wQ(s)]=c}}}catch(l){a.e(l)}finally{a.f()}return i}function TQ(e,t,n){return n.some(function(n){return PQ(e,t,n)&&wQ(n)!==ZY})}function EQ(e,t,n){return n.some(function(n){return PQ(e,t,n)})}function PQ(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function jQ(e,t,n,r){return!!(wQ(e)===r||r!==ZY&&PQ(t,n,e))&&("**"===e.path||SQ(t,e,n).matched)}function IQ(e,t,n){return 0===t.length&&!e.children[n]}var AQ=function e(t){Object(s.a)(this,e),this.segmentGroup=t||null},DQ=function e(t){Object(s.a)(this,e),this.urlTree=t};function RQ(e){return new C.a(function(t){return t.error(new AQ(e))})}function LQ(e){return new C.a(function(t){return t.error(new DQ(e))})}function NQ(e){return new C.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var FQ=function(){function e(t,n,r,i,o){Object(s.a)(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Lc)}return Object(c.a)(e,[{key:"apply",value:function(){var e=this,t=xQ(this.urlTree.root,[],[],this.config).segmentGroup,n=new fK(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,ZY).pipe(Object(cd.a)(function(t){return e.createUrlTree(BQ(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Object(xY.a)(function(t){if(t instanceof DQ)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof AQ)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,ZY).pipe(Object(cd.a)(function(n){return t.createUrlTree(BQ(n),e.queryParams,e.fragment)})).pipe(Object(xY.a)(function(e){if(e instanceof AQ)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 r=e.segments.length>0?new fK([],m({},ZY,e)):e;return new dK(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(cd.a)(function(e){return new fK([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?i.unshift(s):i.push(s)}return Object(ad.a)(i).pipe(Object(om.a)(function(i){var o=n.children[i],a=kQ(t,i);return r.expandSegmentGroup(e,a,o,i).pipe(Object(cd.a)(function(e){return{segment:e,outlet:i}}))}),Object(SY.a)(function(e,t){return e[t.outlet]=t.segment,e},{}),Object(OY.a)())}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this;return Object(ad.a)(n).pipe(Object(om.a)(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(Object(xY.a)(function(e){if(e instanceof AQ)return Object(Bf.a)(null);throw e}))}),Object(MY.a)(function(e){return!!e}),Object(xY.a)(function(e,n){if(e instanceof yY.a||"EmptyError"===e.name){if(IQ(t,r,i))return Object(Bf.a)(new fK([],{}));throw new AQ(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return jQ(r,t,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):RQ(t):RQ(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?LQ(o):this.lineralizeSegments(n,o).pipe(Object(TY.b)(function(n){var o=new fK(n,{});return i.expandSegment(e,o,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=SQ(t,r,i),c=s.consumedSegments,l=s.lastChild,u=s.positionalParamSegments;if(!s.matched)return RQ(t);var h=this.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?LQ(h):this.lineralizeSegments(r,h).pipe(Object(TY.b)(function(r){return a.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(Bf.a)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Object(cd.a)(function(e){return n._loadedConfig=e,new fK(r,{})})):Object(Bf.a)(new fK(r,{}));var a=SQ(t,n,r),s=a.consumedSegments,c=a.lastChild;if(!a.matched)return RQ(t);var l=r.slice(c);return this.getChildConfig(e,n,r).pipe(Object(TY.b)(function(e){var r=e.module,a=e.routes,c=xQ(t,s,l,a),u=c.segmentGroup,h=c.slicedSegments,d=new fK(u.segments,u.children);if(0===h.length&&d.hasChildren())return o.expandChildren(r,a,d).pipe(Object(cd.a)(function(e){return new fK(s,e)}));if(0===a.length&&0===h.length)return Object(Bf.a)(new fK(s,{}));var f=wQ(n)===i;return o.expandSegment(r,d,a,h,f?ZY:i,!0).pipe(Object(cd.a)(function(e){return new fK(s.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Object(Bf.a)(new hQ(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(Bf.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(TY.b)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(cd.a)(function(e){return t._loadedConfig=e,e})):function(e){return new C.a(function(t){return t.error(eK("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object(Bf.a)(new hQ([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;if(!i||0===i.length)return Object(Bf.a)(!0);var o=i.map(function(r){var i,o=e.get(r);if(function(e){return e&&dQ(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!dQ(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return sK(i)});return Object(Bf.a)(o).pipe(mQ(),Object(EY.a)(function(e){if(fQ(e)){var t=eK('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(cd.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(Bf.a)(n);if(r.numberOfChildren>1||!r.children.primary)return NQ(e.redirectTo);r=r.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,r){var i=this.createSegmentGroup(e,t.root,n,r);return new dK(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return aK(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return aK(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new fK(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=d(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return e}}]),e}();function BQ(e){for(var t={},n=0,r=Object.keys(e.children);n<r.length;n++){var i=r[n],o=BQ(e.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new fK(e.segments.concat(t.segments),t.children)}return e}(new fK(e.segments,t))}var zQ=function e(t){Object(s.a)(this,e),this.path=t,this.route=this.path[this.path.length-1]},HQ=function e(t,n){Object(s.a)(this,e),this.component=t,this.route=n};function VQ(e,t,n){var r=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(r?r.module.injector:n).get(e)}function UQ(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=LK(t);return e.children.forEach(function(e){qQ(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),aK(o,function(e,t){return GQ(e,n.getContext(t),i)}),i}function qQ(e,t,n,r){var i=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=WQ(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new zQ(r)):(o.data=a.data,o._resolvedData=a._resolvedData),UQ(e,t,o.component?s?s.children:null:n,r,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new HQ(s.outlet.component,a))}else a&&GQ(t,s,i),i.canActivateChecks.push(new zQ(r)),UQ(e,null,o.component?s?s.children:null:n,r,i);return i}function WQ(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!mK(e.url,t.url);case"pathParamsOrQueryParamsChange":return!mK(e.url,t.url)||!nK(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!XK(e,t)||!nK(e.queryParams,t.queryParams);case"paramsChange":default:return!XK(e,t)}}function GQ(e,t,n){var r=LK(e),i=e.value;aK(r,function(e,r){GQ(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new HQ(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var XQ=function e(){Object(s.a)(this,e)};function YQ(e){return new C.a(function(t){return t.error(e)})}var KQ=function(){function e(t,n,r,i,o,a){Object(s.a)(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return Object(c.a)(e,[{key:"recognize",value:function(){var e=xQ(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,ZY);if(null===t)return null;var n=new VK([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ZY,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new RK(n,t),i=new UK(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=zK(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.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){for(var n=[],r=0,i=Object.keys(t.children);r<i.length;r++){var o=i[r],a=t.children[o],s=kQ(e,o),c=this.processSegmentGroup(s,a,o);if(null===c)return null;n.push.apply(n,Object(g.a)(c))}var l=function(e){var t,n=[],r=d(e);try{var i=function(){var e=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(e))return n.push(e),"continue";var r,i=n.find(function(t){return e.value.routeConfig===t.value.routeConfig});void 0!==i?(r=i.children).push.apply(r,Object(g.a)(e.children)):n.push(e)};for(r.s();!(t=r.n()).done;)i()}catch(o){r.e(o)}finally{r.f()}return n}(n);return l.sort(function(e,t){return e.value.outlet===ZY?-1:t.value.outlet===ZY?1:e.value.outlet.localeCompare(t.value.outlet)}),l}},{key:"processSegment",value:function(e,t,n,r){var i,o=d(e);try{for(o.s();!(i=o.n()).done;){var a=this.processSegmentAgainstRoute(i.value,t,n,r);if(null!==a)return a}}catch(s){o.e(s)}finally{o.f()}return IQ(t,n,r)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo||!jQ(e,t,n,r))return null;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?oK(n).parameters:{};i=new VK(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$Q(e),wQ(e),e.component,e,QQ(t),ZQ(t)+n.length,JQ(e))}else{var c=SQ(t,e,n);if(!c.matched)return null;o=c.consumedSegments,a=n.slice(c.lastChild),i=new VK(o,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$Q(e),wQ(e),e.component,e,QQ(t),ZQ(t)+o.length,JQ(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=xQ(t,o,a,l.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=u.segmentGroup,d=u.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(l,h);return null===f?null:[new RK(i,f)]}if(0===l.length&&0===d.length)return[new RK(i,[])];var p=wQ(e)===r,m=this.processSegment(l,h,d,p?ZY:r);return null===m?null:[new RK(i,m)]}}]),e}();function QQ(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function ZQ(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 $Q(e){return e.data||{}}function JQ(e){return e.resolve||{}}function eZ(e){return Object(gp.a)(function(t){var n=e(t);return n?Object(ad.a)(n).pipe(Object(cd.a)(function(){return t})):Object(Bf.a)(t)})}var tZ=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(function(){function e(){Object(s.a)(this,e)}return Object(c.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}()),nZ=new Tn("ROUTES"),rZ=function(){function e(t,n,r,i){Object(s.a)(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return Object(c.a)(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren).pipe(Object(cd.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new hQ(iK(i.injector.get(nZ,void 0,K.Self|K.Optional)).map(_Q),i)}),Object(xY.a)(function(e){throw t._loader$=void 0,e}));return t._loader$=new CY.a(r,function(){return new k.b}).pipe(Object(jY.a)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(ad.a)(this.loader.load(e)):sK(e()).pipe(Object(TY.b)(function(e){return e instanceof Nc?Object(Bf.a)(e):Object(ad.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),iZ=function e(){Object(s.a)(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new oZ,this.attachRef=null},oZ=function(){function e(){Object(s.a)(this,e),this.contexts=new Map}return Object(c.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 iZ,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),aZ=function(){function e(){Object(s.a)(this,e)}return Object(c.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 sZ(e){throw e}function cZ(e,t,n){return t.parse("/")}function lZ(e,t){return Object(Bf.a)(null)}var uZ=function(){var e=function(){function e(t,n,r,i,o,a,c,l){var u=this;Object(s.a)(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k.b,this.errorHandler=sZ,this.malformedUriErrorHandler=cZ,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:lZ,afterPreactivation:lZ},this.urlHandlingStrategy=new aZ,this.routeReuseStrategy=new tZ,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(Lc),this.console=o.get(Nl);var h=o.get(Ql);this.isNgZoneEnabled=h instanceof Ql&&Ql.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new dK(new fK([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rZ(a,c,function(e){return u.triggerEvent(new qY(e))},function(e){return u.triggerEvent(new WY(e))}),this.routerState=FK(this.currentUrlTree,this.rootComponentType),this.transitions=new kp.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(c.a)(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(dp.a)(function(e){return 0!==e.id}),Object(cd.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(gp.a)(function(e){var r,i,o,a=!1,s=!1;return Object(Bf.a)(e).pipe(Object(EY.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(gp.a)(function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(Bf.a)(e).pipe(Object(gp.a)(function(e){var r=t.transitions.getValue();return n.next(new RY(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?kY.a:Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,Object(gp.a)(function(e){return function(e,t,n,r,i){return new FQ(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(Object(cd.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Object(EY.a)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,o){return Object(TY.b)(function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new KQ(e,t,n,r,i,o).recognize();return null===a?YQ(new XQ):Object(Bf.a)(a)}catch(s){return YQ(s)}}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(Object(cd.a)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(EY.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);var r=new BY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var c=e.extractedUrl,l=e.source,u=e.restoredState,h=e.extras,d=new RY(e.id,t.serializeUrl(c),l,u);n.next(d);var f=FK(c,t.rootComponentType).snapshot;return Object(Bf.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),kY.a}),eZ(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(EY.a)(function(e){var n=new zY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(cd.a)(function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,UQ(o,r?r._root:null,i,[o.value]))});var n,r,i,o}),function(e,t){return Object(TY.b)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Object(Bf.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(ad.a)(e).pipe(Object(TY.b)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(Bf.a)(!0);var a=o.map(function(o){var a,s=VQ(o,t,i);if(function(e){return e&&dQ(e.canDeactivate)}(s))a=sK(s.canDeactivate(e,t,n,r));else{if(!dQ(s))throw new Error("Invalid CanDeactivate guard");a=sK(s(e,t,n,r))}return a.pipe(Object(MY.a)())});return Object(Bf.a)(a).pipe(mQ())}(e.component,e.route,n,t,r)}),Object(MY.a)(function(e){return!0!==e},!0))}(s,r,i,e).pipe(Object(TY.b)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(ad.a)(t).pipe(Object(om.a)(function(t){return Object(_Y.a)(function(e,t){return null!==e&&t&&t(new GY(e)),Object(Bf.a)(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new YY(e)),Object(Bf.a)(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1],i=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(wY.a)(function(){var i=t.guards.map(function(i){var o,a=VQ(i,t.node,n);if(function(e){return e&&dQ(e.canActivateChild)}(a))o=sK(a.canActivateChild(r,e));else{if(!dQ(a))throw new Error("Invalid CanActivateChild guard");o=sK(a(r,e))}return o.pipe(Object(MY.a)())});return Object(Bf.a)(i).pipe(mQ())})});return Object(Bf.a)(i).pipe(mQ())}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(Bf.a)(!0);var i=r.map(function(r){return Object(wY.a)(function(){var i,o=VQ(r,t,n);if(function(e){return e&&dQ(e.canActivate)}(o))i=sK(o.canActivate(t,e));else{if(!dQ(o))throw new Error("Invalid CanActivate guard");i=sK(o(t,e))}return i.pipe(Object(MY.a)())})});return Object(Bf.a)(i).pipe(mQ())}(e,t.route,n))}),Object(MY.a)(function(e){return!0!==e},!0))}(r,a,e,t):Object(Bf.a)(n)}),Object(cd.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Object(EY.a)(function(e){if(fQ(e.guardsResult)){var n=eK('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var r=new HY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(r)}),Object(dp.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new NY(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),eZ(function(e){if(e.guards.canActivateChecks.length)return Object(Bf.a)(e).pipe(Object(EY.a)(function(e){var n=new VY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(gp.a)(function(e){var r,i,o=!1;return Object(Bf.a)(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,Object(TY.b)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object(Bf.a)(e);var o=0;return Object(ad.a)(n).pipe(Object(om.a)(function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(Bf.a)({});var o={};return Object(ad.a)(i).pipe(Object(TY.b)(function(i){return function(e,t,n,r){var i=VQ(e,t,r);return sK(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Object(EY.a)(function(e){o[i]=e}))}),Object(PY.a)(1),Object(TY.b)(function(){return Object.keys(o).length===i.length?Object(Bf.a)(o):kY.a}))}(e._resolve,e,t,r).pipe(Object(cd.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),zK(e,n).resolve),null}))}(e.route,t,r,i)}),Object(EY.a)(function(){return o++}),Object(PY.a)(1),Object(TY.b)(function(t){return o===n.length?Object(Bf.a)(e):kY.a}))})),Object(EY.a)({next:function(){return o=!0},complete:function(){if(!o){var r=new NY(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),Object(EY.a)(function(e){var n=new UY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),eZ(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(cd.a)(function(e){var n,r,i,o=(i=YK(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(r=e.currentRouterState)?r._root:void 0),new NK(i,n));return Object.assign(Object.assign({},e),{targetRouterState:o})}),Object(EY.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)}),(r=t.rootContexts,i=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Object(cd.a)(function(e){return new lQ(i,e.targetRouterState,e.currentRouterState,o).activate(r),e})),Object(EY.a)({next:function(){a=!0},complete:function(){a=!0}}),Object(IY.a)(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var r=new NY(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null}),Object(xY.a)(function(r){if(s=!0,(c=r)&&c.ngNavigationCancelingError){var i=fQ(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new NY(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);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 FY(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(l){e.reject(l)}}var c;return kY.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,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(i,t,r,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:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){vQ(e),this.config=e.map(_Q),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}return null!==l&&(l=this.removeEmptyProps(l)),QK(s,this.currentUrlTree,e,l,c)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=fQ(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return hZ(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(fQ(e))return cK(this.currentUrlTree,e,t);var n=this.parseUrl(e);return cK(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new LY(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,r,i){if(this.disposed)return Promise.resolve(!1);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);i?(o=i.resolve,a=i.reject,s=i.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:r,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,r){var i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{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})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Pn),Gn(gK),Gn(oZ),Gn(Xu),Gn(na),Gn(wu),Gn(Xl),Gn(void 0))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function hZ(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 dZ=function(){var e=function(){function e(t,n,r,i,o){Object(s.a)(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new k.b,null==r&&i.setAttribute(o.nativeElement,"tabindex","0")}return Object(c.a)(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:pZ(this.skipLocationChange),replaceUrl:pZ(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:pZ(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(uZ),Sa(BK),xn("tabindex"),Sa(rc),Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Na("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Fe]}),e}(),fZ=function(){var e=function(){function e(t,n,r){var i=this;Object(s.a)(this,e),this.router=t,this.route=n,this.locationStrategy=r,this.commands=[],this.onChanges=new k.b,this.subscription=t.events.subscribe(function(e){e instanceof LY&&i.updateTargetUrlAndHref()})}return Object(c.a)(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[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,r,i){if(0!==e||t||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:pZ(this.skipLocationChange),replaceUrl:pZ(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:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:pZ(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(uZ),Sa(BK),Sa(Vu))},e.\u0275dir=Se({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Na("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Es("href",t.href,Br),va("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Fe]}),e}();function pZ(e){return""===e||!!e}var mZ=function(){var e=function(){function e(t,n,r,i,o){Object(s.a)(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ul,this.deactivateEvents=new ul,this.name=i||ZY,t.onChildOutletCreated(this.name,this)}return Object(c.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:"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:{}}},{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),r=this.parentContexts.getOrCreateContext(this.name).children,i=new gZ(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(oZ),Sa(Bc),Sa(Qs),xn("name"),Sa(Oc))},e.\u0275dir=Se({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),gZ=function(){function e(t,n,r){Object(s.a)(this,e),this.route=t,this.childContexts=n,this.parent=r}return Object(c.a)(e,[{key:"get",value:function(e,t){return e===BK?this.route:e===oZ?this.childContexts:this.parent.get(e,t)}}]),e}(),vZ=function e(){Object(s.a)(this,e)},bZ=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"preload",value:function(e,t){return t().pipe(Object(xY.a)(function(){return Object(Bf.a)(null)}))}}]),e}(),yZ=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"preload",value:function(e,t){return Object(Bf.a)(null)}}]),e}(),_Z=function(){var e=function(){function e(t,n,r,i,o){Object(s.a)(this,e),this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new rZ(n,r,function(e){return t.triggerEvent(new qY(e))},function(e){return t.triggerEvent(new WY(e))})}return Object(c.a)(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Object(dp.a)(function(e){return e instanceof LY}),Object(om.a)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(Lc);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,r=[],i=d(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children))}}catch(s){i.e(s)}finally{i.f()}return Object(ad.a)(r).pipe(Object(AY.a)(),Object(cd.a)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?Object(Bf.a)(t._loadedConfig):n.loader.load(e.injector,t)).pipe(Object(TY.b)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(uZ),Gn(wu),Gn(Xl),Gn(na),Gn(vZ))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),wZ=function(){var e=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(s.a)(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return Object(c.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 RY?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof LY&&(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 QY&&(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 QY(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)(Gn(uZ),Gn(yh),Gn(void 0))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),kZ=new Tn("ROUTER_CONFIGURATION"),CZ=new Tn("ROUTER_FORROOT_GUARD"),SZ=[Xu,{provide:gK,useClass:vK},{provide:uZ,useFactory:function(e,t,n,r,i,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 uZ(null,e,t,n,r,i,o,iK(a));if(c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),jZ(s,u),s.enableTracing){var h=Pu();u.events.subscribe(function(e){h.logGroup("Router Event: ".concat(e.constructor.name)),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return u},deps:[gK,oZ,Xu,na,wu,Xl,nZ,kZ,[function e(){Object(s.a)(this,e)},new er],[function e(){Object(s.a)(this,e)},new er]]},oZ,{provide:BK,useFactory:function(e){return e.routerState.root},deps:[uZ]},{provide:wu,useClass:Su},_Z,yZ,bZ,{provide:kZ,useValue:{enableTracing:!1}}];function xZ(){return new du("Router",uZ)}var OZ=function(){var e=function(){function e(t,n){Object(s.a)(this,e)}return Object(c.a)(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[SZ,PZ(t),{provide:CZ,useFactory:EZ,deps:[[uZ,new er,new tr]]},{provide:kZ,useValue:n||{}},{provide:Vu,useFactory:TZ,deps:[Au,[new Jn(qu),new er],kZ]},{provide:wZ,useFactory:MZ,deps:[uZ,yh,kZ]},{provide:vZ,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:yZ},{provide:du,multi:!0,useFactory:xZ},[IZ,{provide:El,multi:!0,useFactory:AZ,deps:[IZ]},{provide:RZ,useFactory:DZ,deps:[IZ]},{provide:Ll,multi:!0,useExisting:RZ}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[PZ(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(CZ,8),Gn(uZ,8))},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}();function MZ(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new wZ(e,t,n)}function TZ(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Gu(e,t):new Wu(e,t)}function EZ(e){return"guarded"}function PZ(e){return[{provide:En,multi:!0,useValue:e},{provide:nZ,multi:!0,useValue:e}]}function jZ(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}var IZ=function(){var e=function(){function e(t){Object(s.a)(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k.b}return Object(c.a)(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Ru,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(uZ),i=e.injector.get(kZ);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?Object(Bf.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(kZ),n=this.injector.get(_Z),r=this.injector.get(wZ),i=this.injector.get(uZ),o=this.injector.get(yu);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(na))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function AZ(e){return e.appInitializer.bind(e)}function DZ(e){return e.bootstrapListener.bind(e)}var RZ=new Tn("Router Initializer"),LZ=function(){function e(e,t){this.utils=new NZ,this.dbWrapper=new FZ(e,t)}return e.prototype.openDatabase=function(e,t){var n=this,r=this;return new Promise(function(i,o){n.dbWrapper.dbVersion=e;var a=n.utils.indexedDB.open(n.dbWrapper.dbName,e);a.onsuccess=function(e){r.dbWrapper.db=a.result,i()},a.onerror=function(e){o(e.target.errorCode+" ("+e.target.error+")")},"function"==typeof t&&(a.onupgradeneeded=function(e){t(e,r.dbWrapper.db)})})},e.prototype.getByKey=function(e,t){var n=this;return new Promise(function(r,i){n.dbWrapper.validateBeforeTransaction(e,i),n.dbWrapper.createTransaction({storeName:e,dbMode:"readonly",error:function(e){i(e)},complete:function(e){}}).objectStore(e).get(t).onsuccess=function(e){r(e.target.result)}})},e.prototype.getAll=function(e,t,n){var r=this;return new Promise(function(i,o){r.dbWrapper.validateBeforeTransaction(e,o);var a,s=r.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()):i(c)}})},e.prototype.add=function(e,t,n){var r=this;return new Promise(function(i,o){r.dbWrapper.validateBeforeTransaction(e,o),r.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){o(e)},complete:function(e){i({key:n,value:t})}}).objectStore(e).add(t,n).onsuccess=function(e){n=e.target.result}})},e.prototype.update=function(e,t,n){var r=this;return new Promise(function(i,o){r.dbWrapper.validateBeforeTransaction(e,o),r.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){o(e)},complete:function(e){i(t)},abort:function(e){o(e)}}).objectStore(e).put(t,n)})},e.prototype.delete=function(e,t){var n=this;return new Promise(function(r,i){n.dbWrapper.validateBeforeTransaction(e,i),n.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){i(e)},complete:function(e){r()},abort:function(e){i(e)}}).objectStore(e).delete(t)})},e.prototype.openCursor=function(e,t,n){var r=this;return new Promise(function(i,o){r.dbWrapper.validateBeforeTransaction(e,o),r.dbWrapper.createTransaction({storeName:e,dbMode:"readonly",error:function(e){o(e)},complete:function(e){i()},abort:function(e){o(e)}}).objectStore(e).openCursor(n).onsuccess=function(e){t(e),i()}})},e.prototype.clear=function(e){var t=this;return new Promise(function(n,r){t.dbWrapper.validateBeforeTransaction(e,r),t.dbWrapper.createTransaction({storeName:e,dbMode:"readwrite",error:function(e){r(e)},complete:function(e){n()},abort:function(e){r(e)}}).objectStore(e).clear(),n()})},e.prototype.getByIndex=function(e,t,n){var r=this;return new Promise(function(i,o){r.dbWrapper.validateBeforeTransaction(e,o),r.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){i(e.target.result)}})},e}(),NZ=function(){return function(){this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}}(),FZ=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}(),BZ=function(){function e(){this.db=new LZ(e.DATABASE,e.VERSION)}return e.prototype.get=function(){return this.db},e.VERSION=1,e.DATABASE="gns3-web-ui",e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),zZ=function(){return function(){}}(),HZ=function(e,t){return(HZ=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 VZ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}HZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var UZ=function(){return(UZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function qZ(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function WZ(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function GZ(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var XZ=n("z6cu"),YZ=function(e){function t(t){return e.call(this,t)||this}return VZ(t,e),t.fromError=function(e,n){var r=new t(e);return r.originalError=n,r},t}(Error),KZ=function(){function e(){}return e.prototype.handleError=function(e){var t=e;return"HttpErrorResponse"===e.name&&0===e.status&&(t=YZ.fromError("Server is unreachable",e)),Object(XZ.a)(t)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),QZ=function(){function e(e,t){this.http=e,this.errorHandler=t,this.requestsNotificationEmitter=new ul}return e.prototype.get=function(e,t,n){n=this.getJsonOptions(n);var r=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("GET "+r.url),this.http.get(r.url,r.options).pipe(Object(xY.a)(this.errorHandler.handleError))},e.prototype.getText=function(e,t,n){n=this.getTextOptions(n);var r=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("GET "+r.url),this.http.get(r.url,r.options).pipe(Object(xY.a)(this.errorHandler.handleError))},e.prototype.post=function(e,t,n,r){r=this.getJsonOptions(r);var i=this.getOptionsForServer(e,t,r);return this.requestsNotificationEmitter.emit("POST "+i.url),this.http.post(i.url,n,i.options).pipe(Object(xY.a)(this.errorHandler.handleError))},e.prototype.put=function(e,t,n,r){r=this.getJsonOptions(r);var i=this.getOptionsForServer(e,t,r);return this.requestsNotificationEmitter.emit("PUT "+i.url),this.http.put(i.url,n,i.options).pipe(Object(xY.a)(this.errorHandler.handleError))},e.prototype.delete=function(e,t,n){n=this.getJsonOptions(n);var r=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("DELETE "+r.url),this.http.delete(r.url,r.options).pipe(Object(xY.a)(this.errorHandler.handleError))},e.prototype.patch=function(e,t,n,r){r=this.getJsonOptions(r);var i=this.getOptionsForServer(e,t,r);return this.http.patch(i.url,n,i.options).pipe(Object(xY.a)(this.errorHandler.handleError))},e.prototype.head=function(e,t,n){n=this.getJsonOptions(n);var r=this.getOptionsForServer(e,t,n);return this.http.head(r.url,r.options).pipe(Object(xY.a)(this.errorHandler.handleError))},e.prototype.options=function(e,t,n){n=this.getJsonOptions(n);var r=this.getOptionsForServer(e,t,n);return this.http.options(r.url,r.options).pipe(Object(xY.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(e.host&&e.port?(e.protocol||(e.protocol=location.protocol),t=e.protocol+"//"+e.host+":"+e.port+"/v2"+t):t="/v2"+t,n.headers||(n.headers={}),"basic"===e.authorization){var r=btoa(e.login+":"+e.password);n.headers.Authorization="Basic "+r}return{url:t,options:n}},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Cm),Gn(KZ))}}),e}(),ZZ=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 k.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,r){t.indexedDbService.get().add(t.tablename,e).then(function(t){e.id=t.key,n(e)},r)})})},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,r){t.indexedDbService.get().update(t.tablename,e).then(function(t){n(e)},r)})})},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 e.protocol+"//"+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(r,i){n.findAll().then(function(o){var a=o.find(function(e){return"bundled"===e.location});if(a)a.host=e,a.port=t,a.protocol=location.protocol,n.update(a).then(function(e){r(e)},i);else{var s=new zZ;s.name="local",s.host=e,s.port=t,s.location="bundled",s.protocol=location.protocol,n.create(s).then(function(e){r(e)},i)}},i)})},e.prototype.onReady=function(e){var t=this;return new Promise(function(n,r){t.ready.then(function(){e().then(function(e){n(e)},function(e){r(e)})},function(e){r(e)})})},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(BZ),Gn(QZ))}}),e}(),$Z=function(){function e(e){this.persistenceService=e,this.settingsSubject=new kp.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,KX.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:KX.LOCAL}),this.settingsSubject.next(this.getAll())},e.prototype.getAll=function(){var t=this,n=UZ({},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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(sY))},providedIn:"root"}),e}(),JZ=function(){function e(){}return e.prototype.setServerId=function(e){this.serverId=e},e.prototype.setProjectId=function(e){this.projectId=e},e.prototype.setServerIdProjectList=function(e){this.serverIdProjectList=e},e.prototype.getServerId=function(){return this.serverId},e.prototype.getProjectId=function(){return this.projectId},e.prototype.getServerIdProjectList=function(){return this.serverIdProjectList},e.prototype.removeData=function(){this.serverId="",this.projectId=""},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),e$=function(){function e(e,t,n){this.httpServer=e,this.settingsService=t,this.recentlyOpenedProjectService=n,this.projectListSubject=new k.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.recentlyOpenedProjectService.removeData(),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 e.protocol+"//"+e.host+":"+e.port+"/v2/projects/"+t+"/import?name="+n},e.prototype.getExportPath=function(e,t){return e.protocol+"//"+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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ),Gn($Z),Gn(JZ))}}),e}(),t$=13,n$=27,r$=32;function i$(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var o$=n("Kj3r"),a$=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.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=F({factory:function(){return new e},token:e,providedIn:"root"}),e}(),s$=function(){var e=function(){function e(t){Object(s.a)(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return Object(c.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=Nf(e);return new C.a(function(e){var r=t._observeElement(n).subscribe(e);return function(){r.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new k.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,r=t.stream;n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(a$))},e.\u0275prov=F({factory:function(){return new e(Gn(a$))},token:e,providedIn:"root"}),e}(),c$=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=r,this.event=new ul,this._disabled=!1,this._currentSubscription=null}return Object(c.a)(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=If(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=Af(e),this._subscribe()}},{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(o$.a)(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(s$),Sa(ec),Sa(Ql))},e.\u0275dir=Se({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),l$=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[a$]}),e}();function u$(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var h$="cdk-describedby-message-container",d$="cdk-describedby-message",f$="cdk-describedby-host",p$=0,m$=new Map,g$=null,v$=function(){var e=function(){function e(t){Object(s.a)(this,e),this._document=t}return Object(c.a)(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var r=b$(t,n);"string"!=typeof t?(y$(t),m$.set(r,{messageElement:t,referenceCount:0})):m$.has(r)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var r=b$(t,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof t){var i=m$.get(r);i&&0===i.referenceCount&&this._deleteMessageElement(r)}g$&&0===g$.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(f$,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(f$);g$&&this._deleteMessagesContainer(),m$.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");y$(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),g$.appendChild(n),m$.set(b$(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=m$.get(e),n=t&&t.messageElement;g$&&n&&g$.removeChild(n),m$.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!g$){var e=this._document.getElementById(h$);e&&e.parentNode&&e.parentNode.removeChild(e),(g$=this._document.createElement("div")).id=h$,g$.style.visibility="hidden",g$.classList.add("cdk-visually-hidden"),this._document.body.appendChild(g$)}}},{key:"_deleteMessagesContainer",value:function(){g$&&g$.parentNode&&(g$.parentNode.removeChild(g$),g$=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=u$(e,"aria-describedby").filter(function(e){return 0!=e.indexOf(d$)});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,r,i,o=m$.get(t);r=o.messageElement.id,(i=u$(n=e,"aria-describedby")).some(function(e){return e.trim()==r.trim()})||(i.push(r.trim()),n.setAttribute("aria-describedby",i.join(" "))),e.setAttribute(f$,""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,r,i,o,a=m$.get(t);a.referenceCount--,i=a.messageElement.id,(o=u$(n=e,r="aria-describedby").filter(function(e){return e!=i.trim()})).length?n.setAttribute(r,o.join(" ")):n.removeAttribute(r),e.removeAttribute(f$)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=u$(e,"aria-describedby"),r=m$.get(t),i=r&&r.messageElement.id;return!!i&&-1!=n.indexOf(i)}},{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(),r=e.getAttribute("aria-label");return!(!n||r&&r.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Iu))},e.\u0275prov=F({factory:function(){return new e(Gn(Iu))},token:e,providedIn:"root"}),e}();function b$(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function y$(e){e.id||(e.id="".concat(d$,"-").concat(p$++))}var _$=function(){function e(t){var n=this;Object(s.a)(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k.b,this._typeaheadSubscription=w.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new k.b,this.change=new k.b,t instanceof dl&&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(c.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(EY.a)(function(t){return e._pressedLetters.push(t)}),Object(o$.a)(t),Object(dp.a)(function(){return e._pressedLetters.length>0}),Object(cd.a)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),r=1;r<n.length+1;r++){var i=(e._activeItemIndex+r)%n.length,o=n[i];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(i);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,r=["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&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||i$(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:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{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),r=t[n];this._activeItem=null==r?null:r,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 r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}},{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 dl?this._items.toArray():this._items}}]),e}(),w$=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.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}(_$),k$=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments))._origin="program",e}return Object(c.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}(_$),C$=function(){var e=function(){function e(t){Object(s.a)(this,e),this._platform=t}return Object(c.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(vSe){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===x$(n))return!1;if(!this.isVisible(n))return!1}var r=e.nodeName.toLowerCase(),i=x$(e);return e.hasAttribute("contenteditable")?-1!==i:"iframe"!==r&&"object"!==r&&!(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"===r?!!e.hasAttribute("controls")&&-1!==i:"video"===r?-1!==i&&(null!==i||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")||S$(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(ep))},e.\u0275prov=F({factory:function(){return new e(Gn(ep))},token:e,providedIn:"root"}),e}();function S$(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 x$(e){if(!S$(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var O$=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Object(s.a)(this,e),this._element=t,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return Object(c.a)(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))}},{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]");if(e){if(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),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return 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 r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}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 r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}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(Cp.a)(1)).subscribe(e)}}]),e}(),M$=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._checker=t,this._ngZone=n,this._document=r}return Object(c.a)(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new O$(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(C$),Gn(Ql),Gn(Iu))},e.\u0275prov=F({factory:function(){return new e(Gn(C$),Gn(Ql),Gn(Iu))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&∈var T$=new Tn("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),E$=new Tn("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),P$=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._ngZone=n,this._defaultOptions=i,this._document=r,this._liveElement=t||this._createLiveElement()}return Object(c.a)(e,[{key:"announce",value:function(e){for(var t,n,r=this,i=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=i&&i.politeness?i.politeness:"polite"),null==n&&i&&(n=i.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout(function(){r._liveElement.textContent=e,t(),"number"==typeof n&&(r._previousTimeout=setTimeout(function(){return r.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"),r=0;r<t.length;r++)t[r].parentNode.removeChild(t[r]);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)(Gn(T$,8),Gn(Ql),Gn(Iu),Gn(E$,8))},e.\u0275prov=F({factory:function(){return new e(Gn(T$,8),Gn(Ql),Gn(Iu),Gn(E$,8))},token:e,providedIn:"root"}),e}();function j$(e){return 0===e.buttons}function I$(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var A$=new Tn("cdk-focus-monitor-default-options"),D$=ip({passive:!0,capture:!0}),R$=function(){var e=function(){function e(t,n,r,i){var o=this;Object(s.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=j$(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){I$(e)?o._lastTouchTarget||o._setOriginForCurrentEventQueue("keyboard"):(null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=L$(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=L$(e),n="focus"===e.type?o._onFocus:o._onBlur,r=t;r;r=r.parentElement)n.call(o,e,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}return Object(c.a)(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Nf(e);if(!this._platform.isBrowser||1!==n.nodeType)return Object(Bf.a)(null);var r=ap(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return t&&(i.checkChildren=!0),i.subject;var o={checkChildren:t,subject:new k.b,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=Nf(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 r=this,i=Nf(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(function(e){var n=f(e,2);return r._originChanged(n[0],t,n[1])}):(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=L$(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);n&&(n.checkChildren||t===L$(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{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,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,D$),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,D$)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,D$),e.addEventListener("mousedown",t._documentMousedownListener,D$),e.addEventListener("touchstart",t._documentTouchstartListener,D$),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,D$),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,D$),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,D$),r.removeEventListener("mousedown",this._documentMousedownListener,D$),r.removeEventListener("touchstart",this._documentTouchstartListener,D$),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,r){(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Ql),Gn(ep),Gn(Iu,8),Gn(A$,8))},e.\u0275prov=F({factory:function(){return new e(Gn(Ql),Gn(ep),Gn(Iu,8),Gn(A$,8))},token:e,providedIn:"root"}),e}();function L$(e){return e.composedPath?e.composedPath()[0]:e.target}var N$=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new ul}return Object(c.a)(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.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)(Sa(ec),Sa(R$))},e.\u0275dir=Se({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),F$="cdk-high-contrast-black-on-white",B$="cdk-high-contrast-white-on-black",z$="cdk-high-contrast-active",H$=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._platform=t,this._document=n}return Object(c.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,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){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(z$),e.remove(F$),e.remove(B$);var t=this.getHighContrastMode();1===t?(e.add(z$),e.add(F$)):2===t&&(e.add(z$),e.add(B$))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(ep),Gn(Iu))},e.\u0275prov=F({factory:function(){return new e(Gn(ep),Gn(Iu))},token:e,providedIn:"root"}),e}(),V$=function(){var e=function e(t){Object(s.a)(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(Gn(H$))},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[tp,l$]]}),e}(),U$=n("3E0/"),q$=function(){function e(){Object(s.a)(this,e)}return Object(c.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:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),W$=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this)).component=e,a.viewContainerRef=r,a.injector=i,a.componentFactoryResolver=o,a}return n}(q$),G$=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=r,o.context=i,o}return Object(c.a)(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{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)}}]),n}(q$),X$=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this)).element=e instanceof ec?e.nativeElement:e,r}return n}(q$),Y$=function(){function e(){Object(s.a)(this,e),this._isDisposed=!1,this.attachDomPortal=null}return Object(c.a)(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof W$?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof G$?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof X$?(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}(),K$=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,c,l){var u,h;return Object(s.a)(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=r,h._appRef=i,h._defaultInjector=c,h.attachDomPortal=function(e){var t=e.element,r=h._document.createComment("dom-portal");t.parentNode.insertBefore(r,t),h.outletElement.appendChild(t),Object(o.a)((u=Object(p.a)(h),Object(a.a)(n.prototype)),"setDisposeFn",u).call(u,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},h._document=l,h}return Object(c.a)(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=r.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,r=n.createEmbeddedView(e.templateRef,e.context);return r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),r.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),r}},{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}(Y$),Q$=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){return Object(s.a)(this,n),t.call(this,e,r)}return n}(G$);return e.\u0275fac=function(t){return new(t||e)(Sa(Ac),Sa(Bc))},e.\u0275dir=Se({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ia]}),e}(),Z$=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var c,l;return Object(s.a)(this,n),(l=t.call(this))._componentFactoryResolver=e,l._viewContainerRef=r,l._isInitialized=!1,l.attached=new ul,l.attachDomPortal=function(e){var t=e.element,r=l._document.createComment("dom-portal");e.setAttachedHost(Object(p.a)(l)),t.parentNode.insertBefore(r,t),l._getRootNode().appendChild(t),Object(o.a)((c=Object(p.a)(l),Object(a.a)(n.prototype)),"setDisposeFn",c).call(c,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},l._document=i,l}return Object(c.a)(n,[{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}},{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,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(r,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),Object(o.a)(Object(a.a)(n.prototype),"setDisposeFn",this).call(this,function(){return i.destroy()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var r=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=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(Y$);return e.\u0275fac=function(t){return new(t||e)(Sa(Qs),Sa(Bc),Sa(Iu))},e.\u0275dir=Se({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ia]}),e}(),$$=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),J$=new ac("11.2.7"),eJ=["*",[["mat-option"],["ng-container"]]],tJ=["*","mat-option, ng-container"];function nJ(e,t){if(1&e&&Ea(0,"mat-pseudo-checkbox",4),2&e){var n=Ua();xa("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function rJ(e,t){if(1&e&&(Ma(0,"span",5),Cs(1),Ta()),2&e){var n=Ua();zi(1),xs("(",n.group.label,")")}}var iJ=["*"],oJ=function(){var e=function e(){Object(s.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}(),aJ=function(){var e=function e(){Object(s.a)(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),sJ=new ac("11.2.7"),cJ=new Tn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),lJ=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return Object(c.a)(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return lu()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.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(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.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"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&sJ.full!==J$.full&&console.warn("The Angular Material version ("+sJ.full+") does not match the Angular CDK version ("+J$.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(H$),Gn(cJ,8),Gn(Iu))},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[Kf],Kf]}),e}();function uJ(e){return function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i)))._disabled=!1,e}return Object(c.a)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=If(e)}}]),n}(e)}function hJ(e,t){return function(e){Object(l.a)(r,e);var n=Object(u.a)(r);function r(){var e;Object(s.a)(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return Object(c.a)(r,[{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)}}]),r}(e)}function dJ(e){return function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i)))._disableRipple=!1,e}return Object(c.a)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=If(e)}}]),n}(e)}function fJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e){Object(l.a)(r,e);var n=Object(u.a)(r);function r(){var e;Object(s.a)(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return Object(c.a)(r,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?Af(e):this.defaultTabIndex}}]),r}(e);return n}function pJ(e){return function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).errorState=!1,e.stateChanges=new k.b,e}return Object(c.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 mJ(e){return function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new C.a(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return Object(c.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 gJ=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.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=F({factory:function(){return new e},token:e,providedIn:"root"}),e}(),vJ=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function bJ(e,t,n){var r=e.nativeElement.classList;n?r.add(t):r.remove(t)}var yJ=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ],lJ]}),e}(),_J=function(){function e(t,n,r){Object(s.a)(this,e),this._renderer=t,this.element=n,this.config=r,this.state=3}return Object(c.a)(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),wJ={enterDuration:450,exitDuration:400},kJ=ip({passive:!0}),CJ=["mousedown","touchstart"],SJ=["mouseup","mouseleave","touchend","touchcancel"],xJ=function(){function e(t,n,r,i){Object(s.a)(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Nf(r))}return Object(c.a)(e,[{key:"fadeInRipple",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},wJ),r.animation);r.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);var a=r.radius||MJ(e,t,i),s=e-i.left,c=t-i.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!=r.color&&(u.style.backgroundColor=r.color),u.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(u),OJ(u),u.style.transform="scale(1)";var h=new _J(this,u,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,r.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,r=Object.assign(Object.assign({},wJ),e.config.animation);n.style.transitionDuration="".concat(r.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},r.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=Nf(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(CJ))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(SJ),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=j$(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&&!I$(e)){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,kJ)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(CJ.forEach(function(t){e._triggerElement.removeEventListener(t,e,kJ)}),this._pointerUpEventsRegistered&&SJ.forEach(function(t){e._triggerElement.removeEventListener(t,e,kJ)}))}}]),e}();function OJ(e){window.getComputedStyle(e).getPropertyValue("opacity")}function MJ(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),i=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+i*i)}var TJ=new Tn("mat-ripple-global-options"),EJ=function(){var e=function(){function e(t,n,r,i,o){Object(s.a)(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new xJ(this,n,t,r)}return Object(c.a)(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:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{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}},{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))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Ql),Sa(ep),Sa(TJ,8),Sa(jb,8))},e.\u0275dir=Se({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&cs("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}(),PJ=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ,tp],lJ]}),e}(),jJ=function(){var e=function e(t){Object(s.a)(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(Sa(jb,8))},e.\u0275cmp=be({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&cs("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}(),IJ=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ]]}),e}(),AJ=new Tn("MAT_OPTION_PARENT_COMPONENT"),DJ=uJ(function e(){Object(s.a)(this,e)}),RJ=0,LJ=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r,i;return Object(s.a)(this,n),(r=t.call(this))._labelId="mat-optgroup-label-".concat(RJ++),r._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i,r}return n}(DJ);return e.\u0275fac=function(t){return new(t||e)(Sa(AJ,8))},e.\u0275dir=Se({type:e,inputs:{label:"label"},features:[ia]}),e}(),NJ=new Tn("MatOptgroup"),FJ=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(LJ);return e.\u0275fac=function(t){return BJ(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,t){2&e&&(va("role",t._inert?null:"group")("aria-disabled",t._inert?null:t.disabled.toString())("aria-labelledby",t._inert?null:t._labelId),cs("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[Gs([{provide:NJ,useExisting:e}]),ia],ngContentSelectors:tJ,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(Wa(eJ),Ma(0,"span",0),Cs(1),Ga(2),Ta(),Ga(3,1)),2&e&&(xa("id",t._labelId),zi(1),xs("",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}(),BJ=Cn(FJ),zJ=0,HJ=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(s.a)(this,e),this.source=t,this.isUserInput=n},VJ=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(zJ++),this.onSelectionChange=new ul,this._stateChanges=new k.b}return Object(c.a)(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=If(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()}},{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!==t$&&e.keyCode!==r$||i$(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 HJ(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(void 0),Sa(LJ))},e.\u0275dir=Se({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),UJ=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){return Object(s.a)(this,n),t.call(this,e,r,i,o)}return n}(VJ);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(AJ,8),Sa(NJ,8))},e.\u0275cmp=be({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Na("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Es("id",t.id),va("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),cs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[ia],ngContentSelectors:iJ,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(Wa(),ka(0,nJ,1,2,"mat-pseudo-checkbox",0),Ma(1,"span",1),Ga(2),Ta(),ka(3,rJ,2,1,"span",2),Ea(4,"div",3)),2&e&&(xa("ngIf",t.multiple),zi(3),xa("ngIf",t.group&&t.group._inert),zi(1),xa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[ih,EJ,jJ],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}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}.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 qJ(e,t,n){if(n.length){for(var r=t.toArray(),i=n.toArray(),o=0,a=0;a<e+1;a++)r[a].group&&r[a].group===i[o]&&o++;return o}return 0}var WJ=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[PJ,vh,lJ,IJ]]}),e}(),GJ=n("GJmQ"),XJ=op(),YJ=function(){function e(t,n){Object(s.a)(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return Object(c.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=Lf(-this._previousScrollPosition.left),e.style.top=Lf(-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,r=t.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),XJ&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),XJ&&(t.scrollBehavior=r,n.scrollBehavior=i)}}},{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}(),KJ=function(){function e(t,n,r,i){var o=this;Object(s.a)(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return Object(c.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}(),QJ=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ZJ(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 $J(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 JJ=function(){function e(t,n,r,i){Object(s.a)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return Object(c.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(),r=n.width,i=n.height;ZJ(t,[{width:r,height:i,bottom:i,right:r,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}(),e0=function(){var e=function e(t,n,r,i){var o=this;Object(s.a)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new QJ},this.close=function(e){return new KJ(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new YJ(o._viewportRuler,o._document)},this.reposition=function(e){return new JJ(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=i};return e.\u0275fac=function(t){return new(t||e)(Gn(bp),Gn(yp),Gn(Ql),Gn(Iu))},e.\u0275prov=F({factory:function(){return new e(Gn(bp),Gn(yp),Gn(Ql),Gn(Iu))},token:e,providedIn:"root"}),e}(),t0=function e(t){if(Object(s.a)(this,e),this.scrollStrategy=new QJ,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];void 0!==t[i]&&(this[i]=t[i])}},n0=function e(t,n,r,i,o){Object(s.a)(this,e),this.offsetX=r,this.offsetY=i,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},r0=function e(t,n){Object(s.a)(this,e),this.connectionPair=t,this.scrollableViewProperties=n},i0=function(){var e=function(){function e(t){Object(s.a)(this,e),this._attachedOverlays=[],this._document=t}return Object(c.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)(Gn(Iu))},e.\u0275prov=F({factory:function(){return new e(Gn(Iu))},token:e,providedIn:"root"}),e}(),o0=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this,e))._keydownListener=function(e){for(var t=r._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},r}return Object(c.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}(i0);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu))},e.\u0275prov=F({factory:function(){return new e(Gn(Iu))},token:e,providedIn:"root"}),e}(),a0=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this,e))._platform=r,i._cursorStyleIsSet=!1,i._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=i._attachedOverlays.slice(),r=n.length-1;r>-1;r--){var o=n[r];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},i}return Object(c.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}(i0);return e.\u0275fac=function(t){return new(t||e)(Gn(Iu),Gn(ep))},e.\u0275prov=F({factory:function(){return new e(Gn(Iu),Gn(ep))},token:e,providedIn:"root"}),e}(),s0=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),c0=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._platform=n,this._document=t}return Object(c.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="cdk-overlay-container";if(this._platform.isBrowser||s0)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], ')+".".concat(e,'[platform="test"]')),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var r=this._document.createElement("div");r.classList.add(e),s0?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Iu),Gn(ep))},e.\u0275prov=F({factory:function(){return new e(Gn(Iu),Gn(ep))},token:e,providedIn:"root"}),e}(),l0=function(){function e(t,n,r,i,o,a,c,l,u){var h=this;Object(s.a)(this,e),this._portalOutlet=t,this._host=n,this._pane=r,this._config=i,this._ngZone=o,this._keyboardDispatcher=a,this._document=c,this._location=l,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new k.b,this._attachments=new k.b,this._detachments=new k.b,this._locationChanges=w.a.EMPTY,this._backdropClickHandler=function(e){return h._backdropClick.next(e)},this._keydownEvents=new k.b,this._outsidePointerEvents=new k.b,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}return Object(c.a)(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{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(Cp.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._locationChanges=this._location.subscribe(function(){return t.dispose()})),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.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.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=Lf(this._config.width),e.height=Lf(this._config.height),e.minWidth=Lf(this._config.minWidth),e.minHeight=Lf(this._config.minHeight),e.maxWidth=Lf(this._config.maxWidth),e.maxHeight=Lf(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"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,r=function r(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",r),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",r)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var r=e.classList;Rf(t).forEach(function(e){e&&(n?r.add(e):r.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(Object(fp.a)(Object(S.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())}}]),e}(),u0="cdk-overlay-connected-position-bounding-box",h0=/([A-Za-z%]+)$/,d0=function(){function e(t,n,r,i,o){Object(s.a)(this,e),this._viewportRuler=n,this._document=r,this._platform=i,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 k.b,this._resizeSubscription=w.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return Object(c.a)(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(u0),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,r=this._overlayRect,i=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,r,s),u=this._getOverlayFit(l,r,i,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(u,l,i)?o.push({position:s,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!e||e.overlayFit.visibleArea<u.visibleArea)&&(e={overlayFit:u,overlayPoint:l,originPoint:c,position:s,overlayRect:r})}}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&&f0(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(u0),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 r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}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 r;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+r,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,r){var i=m0(t),o=e.x,a=e.y,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(o+=s),c&&(a+=c);var l=0-a,u=a+i.height-n.height,h=this._subtractOverflows(i.width,0-o,o+i.width-n.width),d=this._subtractOverflows(i.height,l,u),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:i.width*i.height===f,fitsInViewportVertically:d===i.height,fitsInViewportHorizontally:h==i.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=p0(this._overlayRef.getConfig().minHeight),a=p0(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=r)&&(e.fitsInViewportHorizontally||null!=a&&a<=i)}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 r,i,o=m0(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),c=Math.max(e.y+o.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),u=Math.max(a.left-n.left-e.x,0);return this._previousPushAmount={x:r=o.width<=a.width?u||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,y:i=o.height<=a.height?l||-c:e.y<this._viewportMargin?a.top-n.top-e.y:0},{x:e.x+r,y:e.y+i}}},{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(),r=new r0(e,n);this._positionChanges.next(r)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var i=0;i<n.length;i++)n[i].style.transformOrigin="".concat(t," ").concat(r)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,r,i,o,a,s,c=this._viewportRect,l=this._isRtl();if("top"===t.overlayY)n=c.height-(r=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=c.height-(i=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;r=e.y-u,(n=2*u)>h&&!this._isInitialRender&&!this._growAfterOpen&&(r=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:r,left:a,bottom:i,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 r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Lf(n.height),r.top=Lf(n.top),r.bottom=Lf(n.bottom),r.width=Lf(n.width),r.left=Lf(n.left),r.right=Lf(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=Lf(i)),o&&(r.maxWidth=Lf(o))}this._lastBoundingBoxSize=n,f0(this._boundingBox.style,r)}},{key:"_resetBoundingBoxStyles",value:function(){f0(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){f0(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){var a=this._viewportRuler.getViewportScrollPosition();f0(n,this._getExactOverlayY(t,e,a)),f0(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&&(r?n.maxHeight=Lf(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Lf(o.maxWidth):i&&(n.maxWidth="")),f0(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var r={top:"",bottom:""},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===e.overlayY?r.bottom="".concat(this._document.documentElement.clientHeight-(i.y+this._overlayRect.height),"px"):r.top=Lf(i.y),r}},{key:"_getExactOverlayX",value:function(e,t,n){var r={left:"",right:""},i=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?r.right="".concat(this._document.documentElement.clientWidth-(i.x+this._overlayRect.width),"px"):r.left=Lf(i.x),r}},{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:$J(e,n),isOriginOutsideView:ZJ(e,n),isOverlayClipped:$J(t,n),isOverlayOutsideView:ZJ(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];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&&Rf(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 ec)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}}}]),e}();function f0(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function p0(e){if("number"!=typeof e&&null!=e){var t=f(e.split(h0),2),n=t[1];return n&&"px"!==n?null:parseFloat(t[0])}return e||null}function m0(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var g0=function(){function e(t,n,r,i,o,a,c){Object(s.a)(this,e),this._preferredPositions=[],this._positionStrategy=new d0(r,i,o,a,c).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return Object(c.a)(e,[{key:"positions",get:function(){return this._preferredPositions}},{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,r){var i=new n0(e,t,n,r);return this._preferredPositions.push(i),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}}]),e}(),v0="cdk-global-overlay-wrapper",b0=function(){function e(){Object(s.a)(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return Object(c.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(v0),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(),r=n.width,i=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==i&&"100vh"!==i||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(v0),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),y0=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i}return Object(c.a)(e,[{key:"global",value:function(){return new b0}},{key:"connectedTo",value:function(e,t,n){return new g0(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new d0(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(yp),Gn(Iu),Gn(ep),Gn(c0))},e.\u0275prov=F({factory:function(){return new e(Gn(yp),Gn(Iu),Gn(ep),Gn(c0))},token:e,providedIn:"root"}),e}(),_0=0,w0=function(){var e=function(){function e(t,n,r,i,o,a,c,l,u,h,d){Object(s.a)(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=a,this._ngZone=c,this._document=l,this._directionality=u,this._location=h,this._outsideClickDispatcher=d}return Object(c.a)(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),i=new t0(e);return i.direction=i.direction||this._directionality.value,new l0(r,t,n,i,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(_0++),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(yu)),new K$(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(e0),Gn(c0),Gn(Qs),Gn(y0),Gn(o0),Gn(na),Gn(Ql),Gn(Iu),Gn(Yf),Gn(Xu),Gn(a0))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),k0=[{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"}],C0=new Tn("cdk-connected-overlay-scroll-strategy"),S0=function(){var e=function e(t){Object(s.a)(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),x0=function(){var e=function(){function e(t,n,r,i,o){Object(s.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=w.a.EMPTY,this._attachSubscription=w.a.EMPTY,this._detachSubscription=w.a.EMPTY,this._positionSubscription=w.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ul,this.positionChange=new ul,this.attach=new ul,this.detach=new ul,this.overlayKeydown=new ul,this.overlayOutsideClick=new ul,this._templatePortal=new G$(n,r),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}return Object(c.a)(e,[{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=If(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=If(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=If(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=If(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=If(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{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=k0);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!==n$||e.disableClose||i$(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 t0({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(GJ.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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(w0),Sa(Ac),Sa(Bc),Sa(C0),Sa(Yf,8))},e.\u0275dir=Se({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],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:[Fe]}),e}(),O0={provide:C0,deps:[w0],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},M0=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[w0,O0],imports:[[Kf,$$,wp],wp]}),e}(),T0=["mat-menu-item",""],E0=["*"];function P0(e,t){if(1&e){var n=Aa();Ma(0,"div",0),Na("keydown",function(e){return ut(n),Ua()._handleKeydown(e)})("click",function(){return ut(n),Ua().closed.emit("click")})("@transformMenu.start",function(e){return ut(n),Ua()._onAnimationStart(e)})("@transformMenu.done",function(e){return ut(n),Ua()._onAnimationDone(e)}),Ma(1,"div",1),Ga(2),Ta(),Ta()}if(2&e){var r=Ua();xa("id",r.panelId)("ngClass",r._classList)("@transformMenu",r._panelAnimationState),va("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var j0={transformMenu:Vm("transformMenu",[Gm("void",Wm({opacity:0,transform:"scale(0.8)"})),Ym("void => enter",Um("120ms cubic-bezier(0, 0, 0.2, 1)",Wm({opacity:1,transform:"scale(1)"}))),Ym("* => void",Um("100ms 25ms linear",Wm({opacity:0})))]),fadeInItems:Vm("fadeInItems",[Gm("showing",Wm({opacity:1})),Ym("void => *",[Wm({opacity:0}),Um("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I0=new Tn("MatMenuContent"),A0=new Tn("MAT_MENU_PANEL"),D0=dJ(uJ(function e(){Object(s.a)(this,e)})),R0=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=i,a._parentMenu=o,a.role="menuitem",a._hovered=new k.b,a._focused=new k.b,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(Object(p.a)(a)),a}return Object(c.a)(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?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(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),r=n.querySelectorAll("mat-icon, .material-icons"),i=0;i<r.length;i++){var o=r[i];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(D0);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Iu),Sa(R$),Sa(A0,8))},e.\u0275cmp=be({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&Na("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(va("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),cs("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:[ia],attrs:T0,ngContentSelectors:E0,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(Wa(),Ga(0),Ea(1,"div",0)),2&e&&(zi(1),xa("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[EJ],encapsulation:2,changeDetection:0}),e}(),L0=new Tn("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),N0=0,F0=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new dl,this._tabSubscription=w.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new k.b,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ul,this.close=this.closed,this.panelId="mat-menu-panel-".concat(N0++)}return Object(c.a)(e,[{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=If(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=If(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}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new k$(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(Object(pp.a)(this._directDescendantItems),Object(gp.a)(function(e){return S.a.apply(void 0,Object(g.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(pp.a)(this._directDescendantItems),Object(gp.a)(function(e){return S.a.apply(void 0,Object(g.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 n$:i$(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(Cp.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),r=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});r&&r!==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(pp.a)(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Ql),Sa(L0))},e.\u0275dir=Se({type:e,contentQueries:function(e,t,n){var r;1&e&&(Sl(n,I0,1),Sl(n,R0,1),Sl(n,R0,0)),2&e&&(kl(r=xl())&&(t.lazyContent=r.first),kl(r=xl())&&(t._allItems=r),kl(r=xl())&&(t.items=r))},viewQuery:function(e,t){var n;1&e&&Cl(Ac,1),2&e&&kl(n=xl())&&(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}(),B0=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){return Object(s.a)(this,n),t.call(this,e,r,i)}return n}(F0);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Ql),Sa(L0))},e.\u0275cmp=be({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&va("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Gs([{provide:A0,useExisting:e}]),ia],ngContentSelectors:E0,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&&(Wa(),ka(0,P0,3,6,"ng-template"))},directives:[eh],styles:['mat-menu{display:none}.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{margin-top:1px}.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:[j0.transformMenu,j0.fadeInItems]},changeDetection:0}),e}(),z0=new Tn("mat-menu-scroll-strategy"),H0={provide:z0,deps:[w0],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},V0=ip({passive:!0}),U0=function(){var e=function(){function e(t,n,r,i,o,a,c,l){var u=this;Object(s.a)(this,e),this._overlay=t,this._element=n,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=c,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=w.a.EMPTY,this._hoverSubscription=w.a.EMPTY,this._menuCloseSubscription=w.a.EMPTY,this._handleTouchStart=function(e){I$(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ul,this.onMenuOpen=this.menuOpened,this.menuClosed=new ul,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=o instanceof F0?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,V0),a&&(a._triggersSubmenu=this.triggersSubmenu())}return Object(c.a)(e,[{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(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(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,V0),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{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 F0&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof F0?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Object(dp.a)(function(e){return"void"===e.toState}),Object(Cp.a)(1),Object(fp.a)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{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:"_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 t0({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().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=f("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],r=t[1],i=f("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=i[0],a=i[1],s=o,c=a,l=n,u=r,h=0;this.triggersSubmenu()?(u=n="before"===this.menu.xPosition?"start":"end",r=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",c="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:r,originY:s,overlayX:u,overlayY:o,offsetY:h},{originX:n,originY:c,overlayX:l,overlayY:a,offsetY:-h},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(Bf.a)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(dp.a)(function(t){return t!==e._menuItemInstance}),Object(dp.a)(function(){return e._menuOpen})):Object(Bf.a)();return Object(S.a)(t,r,i,n)}},{key:"_handleMousedown",value:function(e){j$(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;t!==t$&&t!==r$||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",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._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(dp.a)(function(t){return t===e._menuItemInstance&&!t.disabled}),Object(U$.a)(0,lp.b)).subscribe(function(){e._openedBy="mouse",e.menu instanceof F0&&e.menu._isAnimating?e.menu._animationDone.pipe(Object(Cp.a)(1),Object(U$.a)(0,lp.b),Object(fp.a)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new G$(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(w0),Sa(ec),Sa(Bc),Sa(z0),Sa(A0,8),Sa(R0,10),Sa(Yf,8),Sa(R$))},e.\u0275dir=Se({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Na("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&va("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}(),q0=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[H0],imports:[lJ]}),e}(),W0=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[H0],imports:[[vh,lJ,PJ,M0,q0],_p,lJ,q0]}),e}(),G0=function(){return function(){}}(),X0=function(){return function(){}}(),Y0=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function K0(e,t){}var Q0=function e(){Object(s.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},Z0={dialogContainer:Vm("dialogContainer",[Gm("void, exit",Wm({opacity:0,transform:"scale(0.7)"})),Gm("enter",Wm({transform:"none"})),Ym("* => enter",Um("150ms cubic-bezier(0, 0, 0.2, 1)",Wm({transform:"none",opacity:1}))),Ym("* => void, * => exit",Um("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Wm({opacity:0})))])},$0=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c){var l;return Object(s.a)(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=r,l._changeDetectorRef=i,l._config=a,l._focusMonitor=c,l._animationStateChanged=new ul,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=a.ariaLabelledBy||null,l._document=o,l}return Object(c.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._getActiveElement(),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._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(Y$);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(M$),Sa(Oc),Sa(Iu,8),Sa(Q0),Sa(R$))},e.\u0275dir=Se({type:e,viewQuery:function(e,t){var n;1&e&&Cl(Z$,3),2&e&&kl(n=xl())&&(t._portalOutlet=n.first)},features:[ia]}),e}(),J0=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments))._state="enter",e}return Object(c.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}($0);return e.\u0275fac=function(t){return e1(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Fa("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Es("id",t._id),va("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Ps("@dialogContainer",t._state))},features:[ia],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ka(0,K0,0,0,"ng-template",0)},directives:[Z$],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;box-sizing:content-box;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:[Z0.dialogContainer]}}),e}(),e1=Cn(J0),t1=0,n1=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(t1++);Object(s.a)(this,e),this._overlayRef=t,this._containerInstance=n,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new k.b,this._afterClosed=new k.b,this._beforeClosed=new k.b,this._state=0,n._id=i,n._animationStateChanged.pipe(Object(dp.a)(function(e){return"opened"===e.state}),Object(Cp.a)(1)).subscribe(function(){r._afterOpened.next(),r._afterOpened.complete()}),n._animationStateChanged.pipe(Object(dp.a)(function(e){return"closed"===e.state}),Object(Cp.a)(1)).subscribe(function(){clearTimeout(r._closeFallbackTimeout),r._finishDialogClose()}),t.detachments().subscribe(function(){r._beforeClosed.next(r._result),r._beforeClosed.complete(),r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null,r._overlayRef.dispose()}),t.keydownEvents().pipe(Object(dp.a)(function(e){return e.keyCode===n$&&!r.disableClose&&!i$(e)})).subscribe(function(e){e.preventDefault(),r1(r,"keyboard")}),t.backdropClick().subscribe(function(){r.disableClose?r._containerInstance._recaptureFocus():r1(r,"mouse")})}return Object(c.a)(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Object(dp.a)(function(e){return"closing"===e.state}),Object(Cp.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._overlayRef.updateSize({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 r1(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var i1=new Tn("MatDialogData"),o1=new Tn("mat-dialog-default-options"),a1=new Tn("mat-dialog-scroll-strategy"),s1={provide:a1,deps:[w0],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},c1=function(){var e=function(){function e(t,n,r,i,o,a,c,l,u){var h=this;Object(s.a)(this,e),this._overlay=t,this._injector=n,this._defaultOptions=r,this._parentDialog=i,this._overlayContainer=o,this._dialogRefConstructor=c,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k.b,this._afterOpenedAtThisLevel=new k.b,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(wY.a)(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Object(pp.a)(void 0))}),this._scrollStrategy=a}return Object(c.a)(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{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 Q0)).id&&this.getDialogById(t.id);var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),o=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),i._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 t0({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:Q0,useValue:t}]}),r=new W$(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(r).instance}},{key:"_attachDialogContent",value:function(e,t,n,r){var i=new this._dialogRefConstructor(n,t,r.id);if(e instanceof Ac)t.attachTemplatePortal(new G$(e,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,t),a=t.attachComponentPortal(new W$(e,r.viewContainerRef,o));i.componentInstance=a.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i}},{key:"_createInjector",value:function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||r&&r.get(Yf,null)||i.push({provide:Yf,useValue:{value:e.direction,change:Object(Bf.a)()}}),na.create({parent:r||this._injector,providers:i})}},{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 r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(w0),Sa(na),Sa(void 0),Sa(void 0),Sa(c0),Sa(void 0),Sa(Pn),Sa(Pn),Sa(Tn))},e.\u0275dir=Se({type:e}),e}(),l1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l){return Object(s.a)(this,n),t.call(this,e,r,o,c,l,a,n1,J0,i1)}return n}(c1);return e.\u0275fac=function(t){return new(t||e)(Gn(w0),Gn(na),Gn(Xu,8),Gn(o1,8),Gn(a1),Gn(e,12),Gn(c0))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),u1=0,h1=function(){var e=function(){function e(t,n,r){Object(s.a)(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=r,this.id="mat-dialog-title-".concat(u1++)}return Object(c.a)(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(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}(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)(Sa(n1,8),Sa(ec),Sa(l1))},e.\u0275dir=Se({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Es("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),d1=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),f1=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}(),p1=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[l1,s1],imports:[[M0,$$,lJ],lJ]}),e}(),m1=n("PqYM");function g1(e,t){1&e&&Ga(0)}var v1=["*"];function b1(e,t){}var y1=function(e){return{animationDuration:e}},_1=function(e,t){return{value:e,params:t}},w1=["tabBodyWrapper"],k1=["tabHeader"];function C1(e,t){}function S1(e,t){1&e&&ka(0,C1,0,0,"ng-template",9),2&e&&xa("cdkPortalOutlet",Ua().$implicit.templateLabel)}function x1(e,t){1&e&&Cs(0),2&e&&Ss(Ua().$implicit.textLabel)}function O1(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Na("click",function(){ut(n);var e=t.$implicit,r=t.index,i=Ua(),o=Ca(1);return i._handleClick(e,o,r)})("cdkFocusChange",function(e){ut(n);var r=t.index;return Ua()._tabFocusChanged(e,r)}),Ma(1,"div",7),ka(2,S1,1,1,"ng-template",8),ka(3,x1,1,1,"ng-template",8),Ta(),Ta()}if(2&e){var r=t.$implicit,i=t.index,o=Ua();cs("mat-tab-label-active",o.selectedIndex==i),xa("id",o._getTabLabelId(i))("disabled",r.disabled)("matRippleDisabled",r.disabled||o.disableRipple),va("tabIndex",o._getTabIndex(r,i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex==i)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),zi(2),xa("ngIf",r.templateLabel),zi(1),xa("ngIf",!r.templateLabel)}}function M1(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-body",10),Na("_onCentered",function(){return ut(n),Ua()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return ut(n),Ua()._setTabBodyWrapperHeight(e)}),Ta()}if(2&e){var r=t.$implicit,i=t.index,o=Ua();cs("mat-tab-body-active",o.selectedIndex==i),xa("id",o._getTabContentId(i))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",o.animationDuration),va("aria-labelledby",o._getTabLabelId(i))}}var T1=["tabListContainer"],E1=["tabList"],P1=["nextPaginator"],j1=["previousPaginator"],I1=new Tn("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),A1=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=r,this._animationMode=i}return Object(c.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)(Sa(ec),Sa(Ql),Sa(I1),Sa(jb,8))},e.\u0275dir=Se({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&cs("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e}(),D1=new Tn("MatTabContent"),R1=new Tn("MatTabLabel"),L1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Q$);return e.\u0275fac=function(t){return N1(t||e)},e.\u0275dir=Se({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Gs([{provide:R1,useExisting:e}]),ia]}),e}(),N1=Cn(L1),F1=uJ(function e(){Object(s.a)(this,e)}),B1=new Tn("MAT_TAB_GROUP"),z1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this))._viewContainerRef=e,i._closestTabGroup=r,i.textLabel="",i._contentPortal=null,i._stateChanges=new k.b,i.position=null,i.origin=null,i.isActive=!1,i}return Object(c.a)(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}},{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 G$(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}}]),n}(F1);return e.\u0275fac=function(t){return new(t||e)(Sa(Bc),Sa(B1))},e.\u0275cmp=be({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,R1,1),Sl(n,D1,3,Ac)),2&e&&(kl(r=xl())&&(t.templateLabel=r.first),kl(r=xl())&&(t._explicitContent=r.first))},viewQuery:function(e,t){var n;1&e&&Cl(Ac,3),2&e&&kl(n=xl())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[ia,Fe],ngContentSelectors:v1,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),ka(0,g1,1,0,"ng-template"))},encapsulation:2}),e}(),H1={translateTab:Vm("translateTab",[Gm("center, void, left-origin-center, right-origin-center",Wm({transform:"none"})),Gm("left",Wm({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Gm("right",Wm({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ym("* => left, * => right, left => center, right => center",Um("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ym("void => left-origin-center",[Wm({transform:"translate3d(-100%, 0, 0)"}),Um("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ym("void => right-origin-center",[Wm({transform:"translate3d(100%, 0, 0)"}),Um("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},V1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,e,r,o))._host=i,a._centeringSub=w.a.EMPTY,a._leavingSub=w.a.EMPTY,a}return Object(c.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(pp.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}(Z$);return e.\u0275fac=function(t){return new(t||e)(Sa(Qs),Sa(Bc),Sa(j(function(){return q1})),Sa(Iu))},e.\u0275dir=Se({type:e,selectors:[["","matTabBodyHost",""]],features:[ia]}),e}(),U1=function(){var e=function(){function e(t,n,r){var i=this;Object(s.a)(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=w.a.EMPTY,this._translateTabComplete=new k.b,this._onCentering=new ul,this._beforeCentering=new ul,this._afterLeavingCenter=new ul,this._onCentered=new ul(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){i._computePositionAnimationState(e),r.markForCheck()})),this._translateTabComplete.pipe(Object(up.a)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){i._isCenterPosition(e.toState)&&i._isCenterPosition(i._position)&&i._onCentered.emit(),i._isCenterPosition(e.fromState)&&!i._isCenterPosition(i._position)&&i._afterLeavingCenter.emit()})}return Object(c.a)(e,[{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}},{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"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Yf,8),Sa(Oc))},e.\u0275dir=Se({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),q1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){return Object(s.a)(this,n),t.call(this,e,r,i)}return n}(U1);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Yf,8),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&Cl(Z$,1),2&e&&kl(n=xl())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[ia],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(Ma(0,"div",0,1),Na("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),ka(2,b1,0,0,"ng-template",2),Ta()),2&e&&xa("@translateTab",tl(3,_1,t._position,el(1,y1,t.animationDuration)))},directives:[V1],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:[H1.translateTab]}}),e}(),W1=new Tn("MAT_TABS_CONFIG"),G1=0,X1=function e(){Object(s.a)(this,e)},Y1=hJ(dJ(function e(t){Object(s.a)(this,e),this._elementRef=t}),"primary"),K1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,e))._changeDetectorRef=r,a._animationMode=o,a._tabs=new dl,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=w.a.EMPTY,a._tabLabelSubscription=w.a.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new ul,a.focusChange=new ul,a.animationDone=new ul,a.selectedTabChange=new ul(!0),a._groupId=G1++,a.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",a.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,a.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight,a}return Object(c.a)(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=If(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=Af(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}},{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,r){n.position=r-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(pp.a)(this._allTabs)).subscribe(function(t){e._tabs.reset(t.filter(function(t){return 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 X1;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=S.a.apply(void 0,Object(g.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:"_tabFocusChanged",value:function(e,t){e&&(this._tabHeader.focusIndex=t)}}]),n}(Y1);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(W1,8),Sa(jb,8))},e.\u0275dir=Se({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:[ia]}),e}(),Q1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){return Object(s.a)(this,n),t.call(this,e,r,i,o)}return n}(K1);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(W1,8),Sa(jb,8))},e.\u0275cmp=be({type:e,selectors:[["mat-tab-group"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,z1,1),2&e&&kl(r=xl())&&(t._allTabs=r)},viewQuery:function(e,t){var n;1&e&&(Cl(w1,1),Cl(k1,1)),2&e&&(kl(n=xl())&&(t._tabBodyWrapper=n.first),kl(n=xl())&&(t._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&cs("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Gs([{provide:B1,useExisting:e}]),ia],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","cdkFocusChange",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","cdkFocusChange"],[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&&(Ma(0,"mat-tab-header",0,1),Na("indexFocused",function(e){return t._focusChanged(e)})("selectFocusedIndex",function(e){return t.selectedIndex=e}),ka(2,O1,4,14,"div",2),Ta(),Ma(3,"div",3,4),ka(5,M1,1,8,"mat-tab-body",5),Ta()),2&e&&(xa("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),zi(2),xa("ngForOf",t._tabs),zi(1),cs("_mat-animation-noopable","NoopAnimations"===t._animationMode),zi(2),xa("ngForOf",t._tabs))},directives:function(){return[n2,nh,$1,EJ,N$,ih,Z$,q1]},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}(),Z1=uJ(function e(){Object(s.a)(this,e)}),$1=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this)).elementRef=e,r}return Object(c.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}(Z1);return e.\u0275fac=function(t){return new(t||e)(Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(va("aria-disabled",!!t.disabled),cs("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[ia]}),e}(),J1=ip({passive:!0}),e2=function(){var e=function(){function e(t,n,r,i,o,a,c){var l=this;Object(s.a)(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=i,this._ngZone=o,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.b,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.b,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ul,this.indexFocused=new ul,o.runOutsideAngular(function(){Object(sp.a)(t.nativeElement,"mouseleave").pipe(Object(fp.a)(l._destroyed)).subscribe(function(){l._stopInterval()})})}return Object(c.a)(e,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=Af(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;Object(sp.a)(this._previousPaginator.nativeElement,"touchstart",J1).pipe(Object(fp.a)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),Object(sp.a)(this._nextPaginator.nativeElement,"touchstart",J1).pipe(Object(fp.a)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Object(Bf.a)(null),n=this._viewportRuler.change(150),r=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new k$(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),Object(S.a)(t,n,this._items.changes).pipe(Object(fp.a)(this._destroyed)).subscribe(function(){Promise.resolve().then(r),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(Object(fp.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(!i$(e))switch(e.keyCode){case t$:case r$: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:"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:"_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="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}},{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,r,i=this._tabListContainer.nativeElement.offsetWidth,o=t.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?r=(n=a)+s:n=(r=this._tabList.nativeElement.offsetWidth-a)-s;var c=this.scrollDistance,l=this.scrollDistance+i;n<c?this.scrollDistance-=c-n+60:r>l&&(this.scrollDistance+=r-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(m1.a)(650,100).pipe(Object(fp.a)(Object(S.a)(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),r=t.distance;(0===r||r>=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}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(yp),Sa(Yf,8),Sa(Ql),Sa(ep),Sa(jb,8))},e.\u0275dir=Se({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),t2=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l){var u;return Object(s.a)(this,n),(u=t.call(this,e,r,i,o,a,c,l))._disableRipple=!1,u}return Object(c.a)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=If(e)}},{key:"_itemSelected",value:function(e){e.preventDefault()}}]),n}(e2);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(yp),Sa(Yf,8),Sa(Ql),Sa(ep),Sa(jb,8))},e.\u0275dir=Se({type:e,inputs:{disableRipple:"disableRipple"},features:[ia]}),e}(),n2=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l){return Object(s.a)(this,n),t.call(this,e,r,i,o,a,c,l)}return n}(t2);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(yp),Sa(Yf,8),Sa(Ql),Sa(ep),Sa(jb,8))},e.\u0275cmp=be({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,$1,0),2&e&&kl(r=xl())&&(t._items=r)},viewQuery:function(e,t){var n;1&e&&(Cl(A1,3),Cl(T1,3),Cl(E1,3),Cl(P1,1),Cl(j1,1)),2&e&&(kl(n=xl())&&(t._inkBar=n.first),kl(n=xl())&&(t._tabListContainer=n.first),kl(n=xl())&&(t._tabList=n.first),kl(n=xl())&&(t._nextPaginator=n.first),kl(n=xl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&cs("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ia],ngContentSelectors:v1,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&&(Wa(),Ma(0,"div",0,1),Na("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),Ea(2,"div",2),Ta(),Ma(3,"div",3,4),Na("keydown",function(e){return t._handleKeydown(e)}),Ma(5,"div",5,6),Na("cdkObserveContent",function(){return t._onContentChanges()}),Ma(7,"div",7),Ga(8),Ta(),Ea(9,"mat-ink-bar"),Ta(),Ta(),Ma(10,"div",8,9),Na("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),Ea(12,"div",2),Ta()),2&e&&(cs("mat-tab-header-pagination-disabled",t._disableScrollBefore),xa("matRippleDisabled",t._disableScrollBefore||t.disableRipple),zi(5),cs("_mat-animation-noopable","NoopAnimations"===t._animationMode),zi(5),cs("mat-tab-header-pagination-disabled",t._disableScrollAfter),xa("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[EJ,c$,A1],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}(),r2=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[vh,lJ,$$,PJ,l$,V$],lJ]}),e}(),i2=["mat-button",""],o2=["*"],a2=".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}.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:inline-flex;justify-content:center;align-items:center;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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",s2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],c2=hJ(uJ(dJ(function e(t){Object(s.a)(this,e),this._elementRef=t}))),l2=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;Object(s.a)(this,n),(o=t.call(this,e))._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,c=d(s2);try{for(c.s();!(a=c.n()).done;){var l=a.value;o._hasHostAttributes(l)&&o._getHostElement().classList.add(l)}}catch(u){c.e(u)}finally{c.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return Object(c.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(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),r=0;r<t;r++)n[r]=arguments[r];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(c2);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(R$),Sa(jb,8))},e.\u0275cmp=be({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(EJ,1),2&e&&kl(n=xl())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(va("disabled",t.disabled||null),cs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ia],attrs:i2,ngContentSelectors:o2,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&&(Wa(),Ma(0,"span",0),Ga(1),Ta(),Ea(2,"span",1),Ea(3,"span",2)),2&e&&(zi(2),cs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),xa("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[EJ],styles:[a2],encapsulation:2,changeDetection:0}),e}(),u2=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){return Object(s.a)(this,n),t.call(this,r,e,i)}return Object(c.a)(n,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),n}(l2);return e.\u0275fac=function(t){return new(t||e)(Sa(R$),Sa(ec),Sa(jb,8))},e.\u0275cmp=be({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&&Na("click",function(e){return t._haltDisabledEvents(e)}),2&e&&(va("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),cs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ia],attrs:i2,ngContentSelectors:o2,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&&(Wa(),Ma(0,"span",0),Ga(1),Ta(),Ea(2,"span",1),Ea(3,"span",2)),2&e&&(zi(2),cs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),xa("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[EJ],styles:[a2],encapsulation:2,changeDetection:0}),e}(),h2=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[PJ,lJ],lJ]}),e}();function d2(e,t){if(1&e&&(Ma(0,"div"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n," ")}}var f2=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)(Sa(n1),Sa(Y0))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"mat-tab-group",2),Ma(4,"mat-tab",3),Ma(5,"div",4),ka(6,d2,2,1,"div",5),Ta(),Ta(),Ma(7,"mat-tab",6),Ma(8,"div",4),Cs(9),Ta(),Ta(),Ma(10,"mat-tab",7),Ma(11,"div",4),Cs(12),Ta(),Ta(),Ta(),Ta(),Ma(13,"div",8),Ma(14,"button",9),Na("click",function(){return t.onCloseClick()}),Cs(15,"Close"),Ta(),Ta()),2&e&&(zi(1),Ss(t.node.name),zi(5),xa("ngForOf",t.infoList),zi(3),xs(" ",t.usage," "),zi(3),xs(" ",t.commandLine," "))},directives:[h1,Q1,z1,nh,f1,l2],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]}),e}(),p2=["*"];function m2(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function g2(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 v2(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var b2=function e(t,n,r){Object(s.a)(this,e),this.url=t,this.svgText=n,this.options=r},y2=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}return Object(c.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,r){return this._addSvgIconConfig(e,t,new b2(n,null,r))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,r){var i=this._sanitizer.sanitize(Lr.HTML,n);if(!i)throw v2(n);return this._addSvgIconConfig(e,t,new b2("",i,r))}},{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 b2(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var r=this._sanitizer.sanitize(Lr.HTML,t);if(!r)throw v2(t);return this._addSvgIconSetConfig(e,new b2("",r,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(Lr.RESOURCE_URL,e);if(!n)throw g2(e);var r=this._cachedIconsByUrl.get(n);return r?Object(Bf.a)(_2(r)):this._loadSvgIconFromConfig(new b2(e,null)).pipe(Object(EY.a)(function(e){return t._cachedIconsByUrl.set(n,e)}),Object(cd.a)(function(e){return _2(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=w2(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,r),this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(t);return i?this._getSvgFromIconSetConfigs(e,i):Object(XZ.a)(m2(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Object(Bf.a)(_2(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Object(cd.a)(function(e){return _2(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,r=this._extractIconWithNameFromAnySet(e,t);if(r)return Object(Bf.a)(r);var i=t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Object(xY.a)(function(t){var r=n._sanitizer.sanitize(Lr.RESOURCE_URL,e.url),i="Loading icon set URL: ".concat(r," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(i)),Object(Bf.a)(null)}))});return Object(sd.a)(i).pipe(Object(cd.a)(function(){var r=n._extractIconWithNameFromAnySet(e,t);if(!r)throw m2(e);return r}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.svgText&&r.svgText.indexOf(e)>-1){var i=this._svgElementFromConfig(r),o=this._extractSvgIconFromSet(i,e,r.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Object(EY.a)(function(t){return e.svgText=t}),Object(cd.a)(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Object(Bf.a)(null):this._fetchIcon(e).pipe(Object(EY.a)(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var r=e.querySelector('[id="'.concat(t,'"]'));if(!r)return null;var i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(i),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,r=0;r<n.length;r++){var i=n[r],o=i.name;"id"!==o&&t.setAttribute(o,i.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,r=e.url,i=e.options,o=null!==(t=null==i?void 0:i.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==r)throw Error('Cannot fetch icon from URL "'.concat(r,'".'));var a=this._sanitizer.sanitize(Lr.RESOURCE_URL,r);if(!a)throw g2(r);var s=this._inProgressUrlFetches.get(a);if(s)return s;var c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Object(IY.a)(function(){return n._inProgressUrlFetches.delete(a)}),Object(x.a)());return this._inProgressUrlFetches.set(a,c),c}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(w2(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}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var r=this._resolvers[n](t,e);if(r)return(i=r).url&&i.options?new b2(r.url,null,r.options):new b2(r,null)}var i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Cm,8),Gn(Qh),Gn(Iu,8),Gn(qr))},e.\u0275prov=F({factory:function(){return new e(Gn(Cm,8),Gn(Qh),Gn(Iu,8),Gn(qr))},token:e,providedIn:"root"}),e}();function _2(e){return e.cloneNode(!0)}function w2(e,t){return e+":"+t}var k2,C2=hJ(function e(t){Object(s.a)(this,e),this._elementRef=t}),S2=new Tn("mat-icon-location",{providedIn:"root",factory:function(){var e=Xn(Iu),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),x2=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O2=x2.map(function(e){return"[".concat(e,"]")}).join(", "),M2=/^url\(['"]?#(.*?)['"]?\)$/,T2=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a){var c;return Object(s.a)(this,n),(c=t.call(this,e))._iconRegistry=r,c._location=o,c._errorHandler=a,c._inline=!1,c._currentIconFetch=w.a.EMPTY,i||e.nativeElement.setAttribute("aria-hidden","true"),c}return Object(c.a)(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=If(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{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:"ngOnInit",value:function(){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 r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),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(O2),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,r=function(e){x2.forEach(function(r){var i=t[e],o=i.getAttribute(r),a=o?o.match(M2):null;if(a){var s=n.get(i);s||n.set(i,s=[]),s.push({name:r,value:a[1]})}})},i=0;i<t.length;i++)r(i)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=f(this._splitIconName(e),2),r=n[0],i=n[1];r&&(this._svgNamespace=r),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,r).pipe(Object(Cp.a)(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){var n="Error retrieving icon ".concat(r,":").concat(i,"! ").concat(e.message);t._errorHandler.handleError(new Error(n))})}}}]),n}(C2);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(y2),xn("aria-hidden"),Sa(S2),Sa(qr))},e.\u0275cmp=be({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(va("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),cs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ia],ngContentSelectors:p2,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),Ga(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}(),E2=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ],lJ]}),e}(),P2=function(){function e(e){this.dialog=e}return e.prototype.showNode=function(){var e=this.dialog.open(f2,{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)(Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.showNode()}),Ma(1,"mat-icon"),Cs(2,"info"),Ta(),Ma(3,"span"),Cs(4,"Show node information"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),j2=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","none"]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),I2=(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,r,i,o){return this.httpServer.post(e,"/projects/"+t.project_id+"/templates/"+n.template_id,o?{x:Math.round(r),y:Math.round(i),compute_id:o}:{x:Math.round(r),y:Math.round(i),compute_id:"local"})},e.prototype.updatePosition=function(e,t,n,r,i){var o=Math.round(r),a=Math.round(i);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 r="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?r+="/files/startup.vpc":"iou"===t.node_type?r+="/files/startup-config.cfg":"dynamips"===t.node_type&&(r+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.post(e,r,n)},e.prototype.savePrivateConfiguration=function(e,t,n){var r="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?r+="/files/private-config.cfg":"dynamips"===t.node_type&&(r+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.post(e,r,n)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}()),A2=n("zP0r"),D2=new Set,R2=function(){var e=function(){function e(t){Object(s.a)(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):L2}return Object(c.a)(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!D2.has(e))try{k2||((k2=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(k2)),k2.sheet&&(k2.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),D2.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(ep))},e.\u0275prov=F({factory:function(){return new e(Gn(ep))},token:e,providedIn:"root"}),e}();function L2(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var N2=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new k.b}return Object(c.a)(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return F2(Rf(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=F2(Rf(e)).map(function(e){return t._registerQuery(e).observable}),r=Object(bY.b)(n);return(r=Object(_Y.a)(r.pipe(Object(Cp.a)(1)),r.pipe(Object(A2.a)(1),Object(o$.a)(0)))).pipe(Object(cd.a)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,r=e.query;t.matches=t.matches||n,t.breakpoints[r]=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),r={observable:new C.a(function(e){var r=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(r),function(){n.removeListener(r)}}).pipe(Object(pp.a)(n),Object(cd.a)(function(t){return{query:e,matches:t.matches}}),Object(fp.a)(this._destroySubject)),mql:n};return this._queries.set(e,r),r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(R2),Gn(Ql))},e.\u0275prov=F({factory:function(){return new e(Gn(R2),Gn(Ql))},token:e,providedIn:"root"}),e}();function F2(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var B2="(min-width: 960px) and (max-width: 1279.98px)",z2="(min-width: 1280px) and (max-width: 1919.98px)",H2="(min-width: 1920px)";function V2(e,t){if(1&e){var n=Aa();Ma(0,"div",1),Ma(1,"button",2),Na("click",function(){return ut(n),Ua().action()}),Cs(2),Ta(),Ta()}if(2&e){var r=Ua();zi(2),Ss(r.data.action)}}function U2(e,t){}var q2=new Tn("MatSnackBarData"),W2=function e(){Object(s.a)(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},G2=Math.pow(2,31)-1,X2=function(){function e(t,n){var r=this;Object(s.a)(this,e),this._overlayRef=n,this._afterDismissed=new k.b,this._afterOpened=new k.b,this._onAction=new k.b,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(function(){return r.dismiss()}),t._onExit.subscribe(function(){return r._finishDismiss()})}return Object(c.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,G2))}},{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}(),Y2=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this.snackBarRef=t,this.data=n}return Object(c.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)(Sa(X2),Sa(q2))},e.\u0275cmp=be({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&&(Ma(0,"span"),Cs(1),Ta(),ka(2,V2,3,1,"div",0)),2&e&&(zi(1),Ss(t.data.message),zi(1),xa("ngIf",t.hasAction))},directives:[ih,l2],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}(),K2={snackBarState:Vm("state",[Gm("void, hidden",Wm({transform:"scale(0.8)",opacity:0})),Gm("visible",Wm({transform:"scale(1)",opacity:1})),Ym("* => visible",Um("150ms cubic-bezier(0, 0, 0.2, 1)")),Ym("* => void, * => hidden",Um("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wm({opacity:0})))])},Q2=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a){var c;return Object(s.a)(this,n),(c=t.call(this))._ngZone=e,c._elementRef=r,c._changeDetectorRef=i,c._platform=o,c.snackBarConfig=a,c._announceDelay=150,c._destroyed=!1,c._onAnnounce=new k.b,c._onExit=new k.b,c._onEnter=new k.b,c._animationState="void",c.attachDomPortal=function(e){return c._assertNotAttached(),c._applySnackBarClasses(),c._portalOutlet.attachDomPortal(e)},c._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",c._platform.FIREFOX&&("polite"===c._live&&(c._role="status"),"assertive"===c._live&&(c._role="alert")),c}return Object(c.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(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.pipe(Object(Cp.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()}},{key:"_screenReaderAnnounce",value:function(){var e=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){e._announceTimeoutId=setTimeout(function(){var t=e._elementRef.nativeElement.querySelector("[aria-hidden]"),n=e._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){var r=null;e._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(r=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),null==r||r.focus(),e._onAnnounce.next(),e._onAnnounce.complete()}},e._announceDelay)})}}]),n}(Y$);return e.\u0275fac=function(t){return new(t||e)(Sa(Ql),Sa(ec),Sa(Oc),Sa(ep),Sa(W2))},e.\u0275cmp=be({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&Cl(Z$,3),2&e&&kl(n=xl())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&Fa("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&Ps("@state",t._animationState)},features:[ia],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(Ma(0,"div",0),ka(1,U2,0,0,"ng-template",1),Ta(),Ea(2,"div")),2&e&&(zi(2),va("aria-live",t._live)("role",t._role))},directives:[Z$],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:[K2.snackBarState]}}),e}(),Z2=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[M0,$$,vh,h2,lJ],lJ]}),e}(),$2=new Tn("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new W2}}),J2=function(){var e=function(){function e(t,n,r,i,o,a){Object(s.a)(this,e),this._overlay=t,this._live=n,this._injector=r,this._breakpointObserver=i,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Y2,this.snackBarContainerComponent=Q2,this.handsetCssClass="mat-snack-bar-handset"}return Object(c.a)(e,[{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}},{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,r=Object.assign(Object.assign({},this._defaultConfig),n);return r.data={message:e,action:t},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}},{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:W2,useValue:t}]}),r=new W$(this.snackBarContainerComponent,t.viewContainerRef,n),i=e.attach(r);return i.instance.snackBarConfig=t,i.instance}},{key:"_attach",value:function(e,t){var n=this,r=Object.assign(Object.assign(Object.assign({},new W2),this._defaultConfig),t),i=this._createOverlay(r),o=this._attachSnackBarContainer(i,r),a=new X2(o,i);if(e instanceof Ac){var s=new G$(e,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var c=this._createInjector(r,a),l=new W$(e,void 0,c),u=o.attachComponentPortal(l);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Object(fp.a)(i.detachments())).subscribe(function(e){var t=i.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)}),r.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),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)})}},{key:"_createOverlay",value:function(e){var t=new t0;t.direction=e.direction;var n=this._overlay.position().global(),r="rtl"===e.direction,i="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,o=!i&&"center"!==e.horizontalPosition;return i?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:X2,useValue:t},{provide:q2,useValue:e.data}]})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(w0),Gn(P$),Gn(na),Gn(N2),Gn(e,12),Gn($2))},e.\u0275prov=F({factory:function(){return new e(Gn(w0),Gn(P$),Gn(Bo),Gn(N2),Gn(e,12),Gn($2))},token:e,providedIn:Z2}),e}(),e3=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(J2),Gn(Ql))}}),e}(),t3=["*",[["mat-card-footer"]]],n3=["*","mat-card-footer"],r3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),i3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),o3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),a3=function(){var e=function e(){Object(s.a)(this,e),this.align="start"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&cs("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),s3=function(){var e=function e(t){Object(s.a)(this,e),this._animationMode=t};return e.\u0275fac=function(t){return new(t||e)(Sa(jb,8))},e.\u0275cmp=be({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&cs("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:n3,decls:2,vars:0,template:function(e,t){1&e&&(Wa(t3),Ga(0),Ga(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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}(),c3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ],lJ]}),e}(),l3=["underline"],u3=["connectionContainer"],h3=["inputContainer"],d3=["label"];function f3(e,t){1&e&&(Pa(0),Ma(1,"div",14),Ea(2,"div",15),Ea(3,"div",16),Ea(4,"div",17),Ta(),Ma(5,"div",18),Ea(6,"div",15),Ea(7,"div",16),Ea(8,"div",17),Ta(),ja())}function p3(e,t){1&e&&(Ma(0,"div",19),Ga(1,1),Ta())}function m3(e,t){if(1&e&&(Pa(0),Ga(1,2),Ma(2,"span"),Cs(3),Ta(),ja()),2&e){var n=Ua(2);zi(3),Ss(n._control.placeholder)}}function g3(e,t){1&e&&Ga(0,3,["*ngSwitchCase","true"])}function v3(e,t){1&e&&(Ma(0,"span",23),Cs(1," *"),Ta())}function b3(e,t){if(1&e){var n=Aa();Ma(0,"label",20,21),Na("cdkObserveContent",function(){return ut(n),Ua().updateOutlineGap()}),ka(2,m3,4,1,"ng-container",12),ka(3,g3,1,0,"ng-content",12),ka(4,v3,2,0,"span",22),Ta()}if(2&e){var r=Ua();cs("mat-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-form-field-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-accent","accent"==r.color)("mat-warn","warn"==r.color),xa("cdkObserveContentDisabled","outline"!=r.appearance)("id",r._labelId)("ngSwitch",r._hasLabel()),va("for",r._control.id)("aria-owns",r._control.id),zi(2),xa("ngSwitchCase",!1),zi(1),xa("ngSwitchCase",!0),zi(1),xa("ngIf",!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)}}function y3(e,t){1&e&&(Ma(0,"div",24),Ga(1,4),Ta())}function _3(e,t){if(1&e&&(Ma(0,"div",25,26),Ea(2,"span",27),Ta()),2&e){var n=Ua();zi(2),cs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function w3(e,t){1&e&&(Ma(0,"div"),Ga(1,5),Ta()),2&e&&xa("@transitionMessages",Ua()._subscriptAnimationState)}function k3(e,t){if(1&e&&(Ma(0,"div",31),Cs(1),Ta()),2&e){var n=Ua(2);xa("id",n._hintLabelId),zi(1),Ss(n.hintLabel)}}function C3(e,t){if(1&e&&(Ma(0,"div",28),ka(1,k3,2,2,"div",29),Ga(2,6),Ea(3,"div",30),Ga(4,7),Ta()),2&e){var n=Ua();xa("@transitionMessages",n._subscriptAnimationState),zi(1),xa("ngIf",n.hintLabel)}}var S3=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],x3=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],O3=0,M3=new Tn("MatError"),T3=function(){var e=function e(){Object(s.a)(this,e),this.id="mat-error-".concat(O3++)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&va("id",t.id)},inputs:{id:"id"},features:[Gs([{provide:M3,useExisting:e}])]}),e}(),E3={transitionMessages:Vm("transitionMessages",[Gm("enter",Wm({opacity:1,transform:"translateY(0%)"})),Ym("void => enter",[Wm({opacity:0,transform:"translateY(-5px)"}),Um("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},P3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e}),e}(),j3=new Tn("MatHint"),I3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-label"]]}),e}(),A3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-placeholder"]]}),e}(),D3=new Tn("MatPrefix"),R3=new Tn("MatSuffix"),L3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matSuffix",""]],features:[Gs([{provide:R3,useExisting:e}])]}),e}(),N3=0,F3=hJ(function e(t){Object(s.a)(this,e),this._elementRef=t},"primary"),B3=new Tn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),z3=new Tn("MatFormField"),H3=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l,u){var h;return Object(s.a)(this,n),(h=t.call(this,e))._elementRef=e,h._changeDetectorRef=r,h._dir=o,h._defaults=a,h._platform=c,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new k.b,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(N3++),h._labelId="mat-form-field-label-".concat(N3++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==u,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return Object(c.a)(n,[{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=If(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{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}},{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(pp.a)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(fp.a)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Object(fp.a)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),Object(S.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(pp.a)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(pp.a)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(fp.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(sp.a)(this._label.nativeElement,"transitionend").pipe(Object(Cp.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||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,Object(g.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(g.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,r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=r.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<i.length;d++)i[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)}}]),n}(F3);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(ec),Sa(Yf,8),Sa(B3,8),Sa(ep),Sa(Ql),Sa(jb,8))},e.\u0275cmp=be({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,P3,1),Sl(n,P3,3),Sl(n,I3,1),Sl(n,I3,3),Sl(n,A3,1),Sl(n,M3,1),Sl(n,j3,1),Sl(n,D3,1),Sl(n,R3,1)),2&e&&(kl(r=xl())&&(t._controlNonStatic=r.first),kl(r=xl())&&(t._controlStatic=r.first),kl(r=xl())&&(t._labelChildNonStatic=r.first),kl(r=xl())&&(t._labelChildStatic=r.first),kl(r=xl())&&(t._placeholderChild=r.first),kl(r=xl())&&(t._errorChildren=r),kl(r=xl())&&(t._hintChildren=r),kl(r=xl())&&(t._prefixChildren=r),kl(r=xl())&&(t._suffixChildren=r))},viewQuery:function(e,t){var n;1&e&&(Cl(l3,1),Cl(u3,3),Cl(h3,1),Cl(d3,1)),2&e&&(kl(n=xl())&&(t.underlineRef=n.first),kl(n=xl())&&(t._connectionContainerRef=n.first),kl(n=xl())&&(t._inputContainerRef=n.first),kl(n=xl())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&cs("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:[Gs([{provide:z3,useExisting:e}]),ia],ngContentSelectors:x3,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&&(Wa(S3),Ma(0,"div",0),Ma(1,"div",1,2),Na("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),ka(3,f3,9,0,"ng-container",3),ka(4,p3,2,0,"div",4),Ma(5,"div",5,6),Ga(7),Ma(8,"span",7),ka(9,b3,5,16,"label",8),Ta(),Ta(),ka(10,y3,2,0,"div",9),Ta(),ka(11,_3,3,4,"div",10),Ma(12,"div",11),ka(13,w3,2,1,"div",12),ka(14,C3,5,2,"div",13),Ta(),Ta()),2&e&&(zi(3),xa("ngIf","outline"==t.appearance),zi(1),xa("ngIf",t._prefixChildren.length),zi(5),xa("ngIf",t._hasFloatingLabel()),zi(1),xa("ngIf",t._suffixChildren.length),zi(1),xa("ngIf","outline"!=t.appearance),zi(1),xa("ngSwitch",t._getDisplayedMessages()),zi(1),xa("ngSwitchCase","error"),zi(1),xa("ngSwitchCase","hint"))},directives:[ih,ch,lh,c$],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:none;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-hint-end{order:1}.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;box-sizing:content-box}.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:solid 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:[E3.transitionMessages]},changeDetection:0}),e}(),V3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[vh,lJ,l$],lJ]}),e}(),U3=ip({passive:!0}),q3=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return Object(c.a)(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return kY.a;var n=Nf(e),r=this._monitoredElements.get(n);if(r)return r.subject;var i=new k.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 i.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return i.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,U3),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",a,U3)}}),i}},{key:"stopMonitoring",value:function(e){var t=Nf(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)(Gn(ep),Gn(Ql))},e.\u0275prov=F({factory:function(){return new e(Gn(ep),Gn(Ql))},token:e,providedIn:"root"}),e}(),W3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[tp]]}),e}(),G3=new Tn("MAT_INPUT_VALUE_ACCESSOR"),X3=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Y3=0,K3=pJ(function e(t,n,r,i){Object(s.a)(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}),Q3=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l,u,h,d){var f;Object(s.a)(this,n),(f=t.call(this,c,o,a,i))._elementRef=e,f._platform=r,f.ngControl=i,f._autofillMonitor=u,f._formField=d,f._uid="mat-input-".concat(Y3++),f.focused=!1,f.stateChanges=new k.b,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return rp().has(e)});var p=f._elementRef.nativeElement,m=p.nodeName.toLowerCase();return f._inputValueAccessor=l||p,f._previousNativeValue=f.value,f.id=f.id,r.IOS&&h.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))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===m,f._isTextarea="textarea"===m,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return Object(c.a)(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=If(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=If(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&rp().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=If(e)}},{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 r=this._elementRef.nativeElement;this._previousPlaceholder=n,n?r.setAttribute("placeholder",n):r.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(){X3.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:"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}},{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()}}]),n}(K3);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(ep),Sa(Ld,10),Sa(pf,8),Sa(Sf,8),Sa(gJ),Sa(G3,10),Sa(q3),Sa(Ql),Sa(z3,8))},e.\u0275dir=Se({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&&Na("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(Es("disabled",t.disabled)("required",t.required),va("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),cs("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:[Gs([{provide:P3,useExisting:e}]),ia,Fe]}),e}(),Z3=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[gJ],imports:[[W3,V3,lJ],W3,V3]}),e}(),$3=["trigger"],J3=["panel"];function e5(e,t){if(1&e&&(Ma(0,"span",8),Cs(1),Ta()),2&e){var n=Ua();zi(1),Ss(n.placeholder)}}function t5(e,t){if(1&e&&(Ma(0,"span",12),Cs(1),Ta()),2&e){var n=Ua(2);zi(1),Ss(n.triggerValue)}}function n5(e,t){1&e&&Ga(0,0,["*ngSwitchCase","true"])}function r5(e,t){1&e&&(Ma(0,"span",9),ka(1,t5,2,1,"span",10),ka(2,n5,1,0,"ng-content",11),Ta()),2&e&&(xa("ngSwitch",!!Ua().customTrigger),zi(2),xa("ngSwitchCase",!0))}function i5(e,t){if(1&e){var n=Aa();Ma(0,"div",13),Ma(1,"div",14,15),Na("@transformPanel.done",function(e){return ut(n),Ua()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return ut(n),Ua()._handleKeydown(e)}),Ga(3,1),Ta(),Ta()}if(2&e){var r=Ua();xa("@transformPanelWrap",void 0),zi(1),Ts("mat-select-panel ",r._getPanelTheme(),""),ss("transform-origin",r._transformOrigin)("font-size",r._triggerFontSize,"px"),xa("ngClass",r.panelClass)("@transformPanel",r.multiple?"showing-multiple":"showing"),va("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var o5=[[["mat-select-trigger"]],"*"],a5=["mat-select-trigger","*"],s5={transformPanelWrap:Vm("transformPanelWrap",[Ym("* => void",Qm("@transformPanel",[Km()],{optional:!0}))]),transformPanel:Vm("transformPanel",[Gm("void",Wm({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Gm("showing",Wm({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Gm("showing-multiple",Wm({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ym("void => *",Um("120ms cubic-bezier(0, 0, 0.2, 1)")),Ym("* => void",Um("100ms 25ms linear",Wm({opacity:0})))])},c5=0,l5=256,u5=new Tn("mat-select-scroll-strategy"),h5=new Tn("MAT_SELECT_CONFIG"),d5={provide:u5,deps:[w0],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},f5=function e(t,n){Object(s.a)(this,e),this.source=t,this.value=n},p5=dJ(fJ(uJ(pJ(function e(t,n,r,i,o){Object(s.a)(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=r,this._parentFormGroup=i,this.ngControl=o})))),m5=new Tn("MatSelectTrigger"),g5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l,u,h,d,f,m,v,b){var y,_,w,C;return Object(s.a)(this,n),(y=t.call(this,a,o,l,u,d))._viewportRuler=e,y._changeDetectorRef=r,y._ngZone=i,y._dir=c,y._parentFormField=h,y.ngControl=d,y._liveAnnouncer=v,y._defaultOptions=b,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-".concat(c5++),y._triggerAriaLabelledBy=null,y._destroy=new k.b,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(c5++),y._panelDoneAnimatingStream=new k.b,y._overlayPanelClass=(null===(_=y._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(C=null===(w=y._defaultOptions)||void 0===w?void 0:w.disableOptionCentering)&&void 0!==C&&C,y.ariaLabel="",y.optionSelectionChanges=Object(wY.a)(function(){var e=y.options;return e?e.changes.pipe(Object(pp.a)(e),Object(gp.a)(function(){return S.a.apply(void 0,Object(g.a)(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(Object(Cp.a)(1),Object(gp.a)(function(){return y.optionSelectionChanges}))}),y.openedChange=new ul,y._openedStream=y.openedChange.pipe(Object(dp.a)(function(e){return e}),Object(cd.a)(function(){})),y._closedStream=y.openedChange.pipe(Object(dp.a)(function(e){return!e}),Object(cd.a)(function(){})),y.selectionChange=new ul,y.valueChange=new ul,y.ngControl&&(y.ngControl.valueAccessor=Object(p.a)(y)),null!=(null==b?void 0:b.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=b.typeaheadDebounceInterval),y._scrollStrategyFactory=m,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(f)||0,y.id=y.id,y}return Object(c.a)(n,[{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=If(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=If(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=If(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._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Af(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new qf(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(up.a)(),Object(fp.a)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Object(fp.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(pp.a)(null),Object(fp.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(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{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:"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:"_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,r=t===t$||t===r$,i=this._keyManager;if(!i.isTyping()&&r&&!i$(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;i.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,r=40===n||38===n,i=t.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(i||n!==t$&&n!==r$||!t.activeItem||i$(e))if(!i&&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&&r&&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(Cp.a)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{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._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{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){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new w$(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(fp.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(fp.a)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=Object(S.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(fp.a)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),S.a.apply(void 0,Object(g.a)(this.options.map(function(e){return e._stateChanges}))).pipe(Object(fp.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,r){return e.sortComparator?e.sortComparator(n,r,t):t.indexOf(n)-t.indexOf(r)}),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(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(p5);return e.\u0275fac=function(t){return new(t||e)(Sa(yp),Sa(Oc),Sa(Ql),Sa(gJ),Sa(ec),Sa(Yf,8),Sa(pf,8),Sa(Sf,8),Sa(z3,8),Sa(Ld,10),xn("tabindex"),Sa(u5),Sa(P$),Sa(h5,8))},e.\u0275dir=Se({type:e,viewQuery:function(e,t){var n;1&e&&(Cl($3,1),Cl(J3,1),Cl(x0,1)),2&e&&(kl(n=xl())&&(t.trigger=n.first),kl(n=xl())&&(t.panel=n.first),kl(n=xl())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ia,Fe]}),e}(),v5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return Object(c.a)(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var r=this._getItemHeight();return Math.min(Math.max(0,r*e-t+r/2),n)}},{key:"ngOnInit",value:function(){var e=this;Object(o.a)(Object(a.a)(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Object(fp.a)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;Object(o.a)(Object(a.a)(n.prototype),"_canOpen",this).call(this)&&(Object(o.a)(Object(a.a)(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(Cp.a)(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,r,i=qJ(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+i)*o)<(r=this.panel.nativeElement.scrollTop)?t:t+n>r+256?Math.max(0,t-256+n):r)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Object(o.a)(Object(a.a)(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new f5(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}r||(e*=-1);var a=0-(t.left+e-(r?i:0)),s=t.right+e-n.width+(r?0:i);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 r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(l5/i);return this.disableOptionCentering?0:(r=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-l5)%i):t-i/2,Math.round(-1*r-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,l5)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,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 r=Math.round(e-t);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),r=Math.min(n*t,l5),i=n*t-r;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=qJ(e,this.options,this.optionGroups);var o=r/2;this._scrollTop=this._calculateOverlayScroll(e,o,i),this._offsetY=this._calculateOverlayOffsetY(e,o,i),this._checkOverlayWithinViewport(i)}},{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:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(g5);return e.\u0275fac=function(t){return b5(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,m5,1),Sl(n,UJ,1),Sl(n,NJ,1)),2&e&&(kl(r=xl())&&(t.customTrigger=r.first),kl(r=xl())&&(t.options=r),kl(r=xl())&&(t.optionGroups=r))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Na("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(va("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()),cs("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"},exportAs:["matSelect"],features:[Gs([{provide:P3,useExisting:e},{provide:AJ,useExisting:e}]),ia],ngContentSelectors:a5,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",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,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Wa(o5),Ma(0,"div",0,1),Na("click",function(){return t.toggle()}),Ma(3,"div",2),ka(4,e5,2,1,"span",3),ka(5,r5,3,2,"span",4),Ta(),Ma(6,"div",5),Ea(7,"div",6),Ta(),Ta(),ka(8,i5,4,14,"ng-template",7),Na("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Ca(1);va("aria-owns",t.panelOpen?t.id+"-panel":null),zi(3),xa("ngSwitch",t.empty),va("id",t._valueId),zi(1),xa("ngSwitchCase",!0),zi(1),xa("ngSwitchCase",!1),zi(3),xa("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[S0,ch,lh,x0,uh,eh],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;outline:0}.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}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[s5.transformPanelWrap,s5.transformPanel]},changeDetection:0}),e}(),b5=Cn(v5),y5=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[d5],imports:[[vh,M0,WJ,lJ],_p,V3,WJ,lJ]}),e}(),_5=["input"],w5=function(){return{enterDuration:150}},k5=["*"],C5=new Tn("mat-checkbox-default-options",{providedIn:"root",factory:S5});function S5(){return{color:"accent",clickAction:"check-indeterminate"}}var x5=0,O5=S5(),M5={provide:ud,useExisting:j(function(){return P5}),multi:!0},T5=function e(){Object(s.a)(this,e)},E5=fJ(hJ(dJ(uJ(function e(t){Object(s.a)(this,e),this._elementRef=t})))),P5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l){var u;return Object(s.a)(this,n),(u=t.call(this,e))._changeDetectorRef=r,u._focusMonitor=i,u._ngZone=o,u._animationMode=c,u._options=l,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-".concat(++x5),u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new ul,u.indeterminateChange=new ul,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||O5,u.color=u.defaultColor=u._options.color||O5.color,u.tabIndex=parseInt(a)||0,u}return Object(c.a)(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=If(e)}},{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:"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=If(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=If(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{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 r=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(r)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new T5;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?this.disabled||"noop"!==r||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(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)}}]),n}(E5);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(R$),Sa(Ql),xn("tabindex"),Sa(jb,8),Sa(C5,8))},e.\u0275cmp=be({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(Cl(_5,1),Cl(EJ,1)),2&e&&(kl(n=xl())&&(t._inputElement=n.first),kl(n=xl())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(Es("id",t.id),va("tabindex",null),cs("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:[Gs([M5]),ia],ngContentSelectors:k5,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&&(Wa(),Ma(0,"label",0,1),Ma(2,"span",2),Ma(3,"input",3,4),Na("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),Ta(),Ma(5,"span",5),Ea(6,"span",6),Ta(),Ea(7,"span",7),Ma(8,"span",8),Ft(),Ma(9,"svg",9),Ea(10,"path",10),Ta(),Bt(),Ea(11,"span",11),Ta(),Ta(),Ma(12,"span",12,13),Na("cdkObserveContent",function(){return t._onLabelTextChange()}),Ma(14,"span",14),Cs(15,"\xa0"),Ta(),Ga(16),Ta(),Ta()),2&e){var n=Ca(1),r=Ca(13);va("for",t.inputId),zi(2),cs("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),zi(1),xa("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),va("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),zi(2),xa("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Jc(19,w5))}},directives:[EJ,c$],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{display:inline-block;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);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;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}(),j5=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),I5=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[PJ,lJ,l$,j5],lJ,j5]}),e}();function A5(e,t){if(1&e&&(Ma(0,"mat-option",15),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var D5=function(){return{standalone:!0}},R5=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.vpcsConfigurationService=i,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(j2))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),Ma(6,"form",5),Ma(7,"mat-form-field",6),Ma(8,"input",7),Na("ngModelChange",function(e){return t.node.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",8),Ma(10,"mat-select",9),Na("ngModelChange",function(e){return t.node.console_type=e}),ka(11,A5,2,2,"mat-option",10),Ta(),Ta(),Ma(12,"mat-checkbox",11),Na("ngModelChange",function(e){return t.node.console_auto_start=e}),Cs(13," Auto start console "),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(14,"div",12),Ma(15,"button",13),Na("click",function(){return t.onCancelClick()}),Cs(16,"Cancel"),Ta(),Ma(17,"button",14),Na("click",function(){return t.onSaveClick()}),Cs(18,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("formGroup",t.inputForm),zi(2),xa("ngModel",t.node.name),zi(2),xa("ngModelOptions",Jc(8,D5))("ngModel",t.node.console_type),zi(1),xa("ngForOf",t.consoleTypes),zi(1),xa("ngModelOptions",Jc(9,D5))("ngModel",t.node.console_auto_start))},directives:[h1,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,P5,f1,l2,UJ],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(){return{standalone:!0}},N5=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.vpcsConfigurationService=i,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(j2))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),Ma(6,"form",5),Ma(7,"mat-form-field",6),Ma(8,"input",7),Na("ngModelChange",function(e){return t.node.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",6),Ma(10,"input",8),Na("ngModelChange",function(e){return t.numberOfPorts=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(11,"div",9),Ma(12,"button",10),Na("click",function(){return t.onCancelClick()}),Cs(13,"Cancel"),Ta(),Ma(14,"button",11),Na("click",function(){return t.onSaveClick()}),Cs(15,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("formGroup",t.inputForm),zi(2),xa("ngModel",t.node.name),zi(2),xa("ngModel",t.numberOfPorts)("ngModelOptions",Jc(5,L5)))},directives:[h1,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,_f,vf,f1,l2],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}(),F5=function(){function e(){}return e.prototype.getCategoriesForCloudNodes=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},e.prototype.getConsoleTypesForCloudNodes=function(){return["telnet","none"]},e.prototype.getCategoriesForEthernetHubs=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},e.prototype.getCategoriesForEthernetSwitches=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),B5=[[["caption"]],[["colgroup"],["col"]]],z5=["caption","colgroup, col"],H5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return n}(nm);return e.\u0275fac=function(t){return V5(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&cs("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[Gs([{provide:Gf,useClass:Uf},{provide:nm,useExisting:e},{provide:Mp,useExisting:e},{provide:Np,useClass:Fp}]),ia],ngContentSelectors:z5,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(Wa(B5),Ga(0),Ga(1,1),Ia(2,0),Ia(3,1),Ia(4,2),Ia(5,3))},directives:[Jp,$p,tm,em],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 !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),e}(),V5=Cn(H5),U5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Tp);return e.\u0275fac=function(t){return q5(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matCellDef",""]],features:[Gs([{provide:Tp,useExisting:e}]),ia]}),e}(),q5=Cn(U5),W5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Ep);return e.\u0275fac=function(t){return G5(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matHeaderCellDef",""]],features:[Gs([{provide:Ep,useExisting:e}]),ia]}),e}(),G5=Cn(W5),X5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"_updateColumnCssClassName",value:function(){Object(o.a)(Object(a.a)(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),n}(Ip);return e.\u0275fac=function(t){return Y5(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Gs([{provide:Ip,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ia]}),e}(),Y5=Cn(X5),K5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Dp);return e.\u0275fac=function(t){return Q5(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ia]}),e}(),Q5=Cn(K5),Z5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Rp);return e.\u0275fac=function(t){return $5(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ia]}),e}(),$5=Cn(Z5),J5=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Hp);return e.\u0275fac=function(t){return e4(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Gs([{provide:Hp,useExisting:e}]),ia]}),e}(),e4=Cn(J5),t4=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(qp);return e.\u0275fac=function(t){return n4(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Gs([{provide:qp,useExisting:e}]),ia]}),e}(),n4=Cn(t4),r4=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Gp);return e.\u0275fac=function(t){return i4(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Gs([{provide:Gp,useExisting:e}]),ia],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ia(0,0)},directives:[Wp],encapsulation:2}),e}(),i4=Cn(r4),o4=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Xp);return e.\u0275fac=function(t){return a4(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Gs([{provide:Xp,useExisting:e}]),ia],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Ia(0,0)},directives:[Wp],encapsulation:2}),e}(),a4=Cn(o4),s4=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[im,lJ],lJ]}),e}(),c4=9007199254740991,l4=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(s.a)(this,n),(e=t.call(this))._renderData=new kp.a([]),e._filter=new kp.a(""),e._internalPageChanges=new k.b,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(Df(n)){var r=Number(n);return r<c4?r:n}return n},e.sortData=function(t,n){var r=n.active,i=n.direction;return r&&""!=i?t.sort(function(t,n){var o=e.sortingDataAccessor(t,r),a=e.sortingDataAccessor(n,r),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"==i?1:-1)}):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce(function(t,n){return t+e[n]+"\u25ec"},"").toLowerCase(),r=t.trim().toLowerCase();return-1!=n.indexOf(r)},e._data=new kp.a(r),e._updateChangeSubscription(),e}return Object(c.a)(n,[{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e),this._renderChangesSubscription||this._filterData(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}},{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()}},{key:"_updateChangeSubscription",value:function(){var e,t=this,n=this._sort?Object(S.a)(this._sort.sortChange,this._sort.initialized):Object(Bf.a)(null),r=this._paginator?Object(S.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(Bf.a)(null),i=this._data,o=Object(bY.b)([i,this._filter]).pipe(Object(cd.a)(function(e){var n=f(e,1);return t._filterData(n[0])})),a=Object(bY.b)([o,n]).pipe(Object(cd.a)(function(e){var n=f(e,1);return t._orderData(n[0])})),s=Object(bY.b)([a,r]).pipe(Object(cd.a)(function(e){var n=f(e,1);return t._pageData(n[0])}));null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=s.subscribe(function(e){return t._renderData.next(e)})}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=null==this.filter||""===this.filter?e:e.filter(function(e){return t.filterPredicate(e,t.filter)}),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 r=Math.ceil(n.length/n.pageSize)-1||0,i=Math.min(n.pageIndex,r);i!==n.pageIndex&&(n.pageIndex=i,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),n}(zf)),u4={tooltipState:Vm("state",[Gm("initial, void, hidden",Wm({opacity:0,transform:"scale(0)"})),Gm("visible",Wm({transform:"scale(1)"})),Ym("* => visible",Um("200ms cubic-bezier(0, 0, 0.2, 1)",Xm([Wm({opacity:0,transform:"scale(0)",offset:0}),Wm({opacity:.5,transform:"scale(0.99)",offset:.5}),Wm({opacity:1,transform:"scale(1)",offset:1})]))),Ym("* => hidden",Um("100ms cubic-bezier(0, 0, 0.2, 1)",Wm({opacity:0})))])},h4=ip({passive:!0}),d4=new Tn("mat-tooltip-scroll-strategy"),f4={provide:d4,deps:[w0],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},p4=new Tn("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),m4=function(){var e=function(){function e(t,n,r,i,o,a,c,l,u,h,d,f){var p=this;Object(s.a)(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=i,this._ngZone=o,this._platform=a,this._ariaDescriber=c,this._focusMonitor=l,this._dir=h,this._defaultOptions=d,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 k.b,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===n$&&!i$(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return Object(c.a)(e,[{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=If(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,"tooltip"),this._message=null!=e?String(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,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(fp.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=f(t,2);e.removeEventListener(n[0],n[1],h4)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),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 W$(g4,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(fp.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(fp.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(fp.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 r=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:r.x,originY:r.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 r=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:r.x,overlayY:r.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(Cp.a)(1),Object(fp.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()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var r=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=f(e,2);t._elementRef.nativeElement.addEventListener(n[0],n[1],h4)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{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"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(w0),Sa(ec),Sa(bp),Sa(Bc),Sa(Ql),Sa(ep),Sa(v$),Sa(R$),Sa(d4),Sa(Yf,8),Sa(p4,8),Sa(Iu))},e.\u0275dir=Se({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}(),g4=function(){var e=function(){function e(t,n){Object(s.a)(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new k.b,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return Object(c.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)(Sa(Oc),Sa(N2))},e.\u0275cmp=be({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Na("click",function(){return t._handleBodyInteraction()},!1,Kr)("auxclick",function(){return t._handleBodyInteraction()},!1,Kr),2&e&&ss("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(Ma(0,"div",0),Na("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),ol(1,"async"),Cs(2),Ta()),2&e&&(cs("mat-tooltip-handset",null==(n=al(1,5,t._isHandset))?null:n.matches),xa("ngClass",t.tooltipClass)("@state",t._visibility),zi(2),Ss(t.message))},directives:[eh],pipes:[gh],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:[u4.tooltipState]},changeDetection:0}),e}(),v4=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[f4],imports:[[V$,vh,M0,lJ],lJ,_p]}),e}();function b4(e,t){1&e&&(Ma(0,"th",18),Cs(1," Port number "),Ta())}function y4(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.port_number," ")}}function _4(e,t){1&e&&(Ma(0,"th",18),Cs(1," VLAN "),Ta())}function w4(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.vlan," ")}}function k4(e,t){1&e&&(Ma(0,"th",18),Cs(1," Type "),Ta())}function C4(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.type," ")}}function S4(e,t){1&e&&(Ma(0,"th",18),Cs(1," EtherType "),Ta())}function x4(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.ethertype," ")}}function O4(e,t){1&e&&(Ma(0,"th",18),Cs(1," Actions "),Ta())}function M4(e,t){if(1&e){var n=Aa();Ma(0,"td",19),Ma(1,"button",20),Na("click",function(){ut(n);var e=t.$implicit;return Ua().delete(e)}),Ma(2,"mat-icon",21),Cs(3,"delete"),Ta(),Ta(),Ta()}}function T4(e,t){1&e&&Ea(0,"tr",22)}function E4(e,t){1&e&&Ea(0,"tr",23)}function P4(e,t){if(1&e&&(Ma(0,"mat-option",24),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function j4(e,t){if(1&e&&(Ma(0,"mat-option",24),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var I4=function(){return{standalone:!0}},A4=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)(Sa(F5))},e.\u0275cmp=be({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&&(Ma(0,"table",0),Pa(1,1),ka(2,b4,2,0,"th",2),ka(3,y4,2,1,"td",3),ja(),Pa(4,4),ka(5,_4,2,0,"th",2),ka(6,w4,2,1,"td",3),ja(),Pa(7,5),ka(8,k4,2,0,"th",2),ka(9,C4,2,1,"td",3),ja(),Pa(10,6),ka(11,S4,2,0,"th",2),ka(12,x4,2,1,"td",3),ja(),Pa(13,7),ka(14,O4,2,0,"th",2),ka(15,M4,4,0,"td",3),ja(),ka(16,T4,1,0,"tr",8),ka(17,E4,1,0,"tr",9),Ta(),Ea(18,"br"),Ma(19,"mat-form-field",10),Ma(20,"input",11),Na("ngModelChange",function(e){return t.newPort.port_number=e}),Ta(),Ta(),Ma(21,"mat-form-field",10),Ma(22,"input",12),Na("ngModelChange",function(e){return t.newPort.vlan=e}),Ta(),Ta(),Ma(23,"mat-form-field",13),Ma(24,"mat-select",14),Na("ngModelChange",function(e){return t.newPort.type=e}),ka(25,P4,2,2,"mat-option",15),Ta(),Ta(),Ma(26,"mat-form-field",13),Ma(27,"mat-select",16),Na("ngModelChange",function(e){return t.newPort.ethertype=e}),ka(28,j4,2,2,"mat-option",15),Ta(),Ta(),Ma(29,"button",17),Na("click",function(){return t.onAdd()}),Cs(30,"Add"),Ta()),2&e&&(xa("dataSource",t.ethernetPorts),zi(16),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("matRowDefColumns",t.displayedColumns),zi(3),xa("ngModel",t.newPort.port_number),zi(2),xa("ngModel",t.newPort.vlan),zi(2),xa("ngModelOptions",Jc(11,I4))("ngModel",t.newPort.type),zi(1),xa("ngForOf",t.portTypes),zi(2),xa("ngModelOptions",Jc(12,I4))("ngModel",t.newPort.ethertype),zi(1),xa("ngForOf",t.etherTypes))},directives:[H5,X5,W5,U5,J5,t4,H3,Q3,_f,fd,Fd,vf,v5,nh,l2,K5,Z5,m4,T2,r4,o4,UJ],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 D4(e,t){if(1&e&&(Ma(0,"mat-option",16),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function R4(e,t){1&e&&Ea(0,"app-ports",17,18),2&e&&xa("ethernetPorts",Ua(2).node.properties.ports_mapping)}var L4=function(){return{standalone:!0}};function N4(e,t){if(1&e){var n=Aa();Ma(0,"div",7),Ma(1,"mat-card",8),Ma(2,"form",9),Ma(3,"mat-form-field",10),Ma(4,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ma(5,"mat-form-field",12),Ma(6,"mat-select",13),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(7,D4,2,2,"mat-option",14),Ta(),Ta(),Ta(),ka(8,R4,2,1,"app-ports",15),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("formGroup",r.inputForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModelOptions",Jc(6,L4))("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngIf",r.node.properties)}}var F4=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.ethernetSwitchesConfigurationService=i,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(F5))},e.\u0275cmp=be({type:e,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(e,t){var n;1&e&&Cl(A4,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),ka(4,N4,9,7,"div",3),Ta(),Ta(),Ma(5,"div",4),Ma(6,"button",5),Na("click",function(){return t.onCancelClick()}),Cs(7,"Cancel"),Ta(),Ma(8,"button",6),Na("click",function(){return t.onSaveClick()}),Cs(9,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(3),xa("ngIf",t.node))},directives:[h1,ih,f1,l2,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,UJ,A4],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 B4(e,t){1&e&&(Ma(0,"th",24),Cs(1," Port : DLCI"),Ta())}function z4(e,t){if(1&e&&(Ma(0,"td",25),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.portIn," ")}}function H4(e,t){1&e&&(Ma(0,"th",24),Cs(1," Port : DLCI "),Ta())}function V4(e,t){if(1&e&&(Ma(0,"td",25),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.portOut," ")}}function U4(e,t){1&e&&(Ma(0,"th",24),Cs(1," Actions "),Ta())}function q4(e,t){if(1&e){var n=Aa();Ma(0,"td",25),Ma(1,"button",26),Na("click",function(){ut(n);var e=t.$implicit;return Ua(2).delete(e)}),Ma(2,"mat-icon",27),Cs(3,"delete"),Ta(),Ta(),Ta()}}function W4(e,t){1&e&&Ea(0,"tr",28)}function G4(e,t){1&e&&Ea(0,"tr",29)}function X4(e,t){if(1&e&&(Ma(0,"table",16),Pa(1,17),ka(2,B4,2,0,"th",18),ka(3,z4,2,1,"td",19),ja(),Pa(4,20),ka(5,H4,2,0,"th",18),ka(6,V4,2,1,"td",19),ja(),Pa(7,21),ka(8,U4,2,0,"th",18),ka(9,q4,4,0,"td",19),ja(),ka(10,W4,1,0,"tr",22),ka(11,G4,1,0,"tr",23),Ta()),2&e){var n=Ua();xa("dataSource",n.nodeMappingsDataSource),zi(10),xa("matHeaderRowDef",n.displayedColumns),zi(1),xa("matRowDefColumns",n.displayedColumns)}}var Y4=function(){function e(e,t,n,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,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 lf("",yd.required)}),this.inputForm=this.formBuilder.group({sourcePort:new lf("",yd.required),sourceDlci:new lf("",yd.required),destinationPort:new lf("",yd.required),destinationDlci:new lf("",yd.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,r=e;n<r.length;n++){var i=r[n];t[i[0]]=i[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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card"),ka(6,X4,12,3,"table",4),Ea(7,"br"),Ma(8,"form",5),Ma(9,"mat-form-field",6),Ma(10,"input",7),Na("ngModelChange",function(e){return t.node.name=e}),Ta(),Ta(),Ta(),Ma(11,"form",5),Cs(12," Source "),Ma(13,"mat-form-field",6),Ma(14,"input",8),Na("ngModelChange",function(e){return t.sourcePort=e}),Ta(),Ta(),Ma(15,"mat-form-field",6),Ma(16,"input",9),Na("ngModelChange",function(e){return t.sourceDlci=e}),Ta(),Ta(),Cs(17," Destination "),Ma(18,"mat-form-field",6),Ma(19,"input",10),Na("ngModelChange",function(e){return t.destinationPort=e}),Ta(),Ta(),Ma(20,"mat-form-field",6),Ma(21,"input",11),Na("ngModelChange",function(e){return t.destinationDlci=e}),Ta(),Ta(),Ta(),Ma(22,"button",12),Na("click",function(){return t.add()}),Cs(23,"Add"),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(24,"div",13),Ma(25,"button",14),Na("click",function(){return t.onCancelClick()}),Cs(26,"Cancel"),Ta(),Ma(27,"button",15),Na("click",function(){return t.onSaveClick()}),Cs(28,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.nodeMappingsDataSource.length),zi(2),xa("formGroup",t.nameForm),zi(2),xa("ngModel",t.node.name),zi(1),xa("formGroup",t.inputForm),zi(3),xa("ngModel",t.sourcePort),zi(2),xa("ngModel",t.sourceDlci),zi(3),xa("ngModel",t.destinationPort),zi(2),xa("ngModel",t.destinationDlci))},directives:[h1,s3,ih,bf,Bd,Sf,H3,Q3,fd,Fd,Of,_f,l2,f1,H5,X5,W5,U5,J5,t4,K5,Z5,m4,T2,r4,o4],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}(),K4=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","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function Q4(e,t){1&e&&(Ma(0,"th",10),Cs(1," Adapter number "),Ta())}function Z4(e,t){if(1&e&&(Ma(0,"td",11),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" Adapter ",n.adapter_number," ")}}function $4(e,t){1&e&&(Ma(0,"th",10),Cs(1," Port name "),Ta())}function J4(e,t){if(1&e&&(Ma(0,"td",11),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" Ethernet ",n.adapter_number," ")}}function e6(e,t){1&e&&(Ma(0,"th",10),Cs(1," Adapter type "),Ta())}function t6(e,t){if(1&e&&(Ma(0,"mat-option",14),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function n6(e,t){if(1&e&&(Ma(0,"td",11),Ma(1,"mat-select",12),Na("ngModelChange",function(e){return t.$implicit.adapter_type=e}),ka(2,t6,2,2,"mat-option",13),Ta(),Ta()),2&e){var n=t.$implicit,r=Ua();zi(1),xa("ngModel",n.adapter_type),zi(1),xa("ngForOf",r.networkTypes)}}function r6(e,t){1&e&&(Ma(0,"th",10),Cs(1," Actions "),Ta())}function i6(e,t){if(1&e){var n=Aa();Ma(0,"td",11),Ma(1,"button",15),Na("click",function(){ut(n);var e=t.$implicit;return Ua().delete(e)}),Ma(2,"mat-icon",16),Cs(3,"delete"),Ta(),Ta(),Ta()}}function o6(e,t){1&e&&Ea(0,"tr",17)}function a6(e,t){1&e&&Ea(0,"tr",18)}var s6=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=be({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&&(Ma(0,"table",0),Pa(1,1),ka(2,Q4,2,0,"th",2),ka(3,Z4,2,1,"td",3),ja(),Pa(4,4),ka(5,$4,2,0,"th",2),ka(6,J4,2,1,"td",3),ja(),Pa(7,5),ka(8,e6,2,0,"th",2),ka(9,n6,3,2,"td",3),ja(),Pa(10,6),ka(11,r6,2,0,"th",2),ka(12,i6,4,0,"td",3),ja(),ka(13,o6,1,0,"tr",7),ka(14,a6,1,0,"tr",8),Ta(),Ma(15,"button",9),Na("click",function(){return t.onAdd()}),Cs(16,"Add"),Ta()),2&e&&(xa("dataSource",t.adapters),zi(13),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("matRowDefColumns",t.displayedColumns))},directives:[H5,X5,W5,U5,J5,t4,l2,K5,Z5,v5,Fd,vf,nh,UJ,m4,T2,r4,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}(),c6=["customAdapters"];function l6(e,t){if(1&e&&(Ma(0,"mat-option",26),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function u6(e,t){if(1&e&&(Ma(0,"mat-option",26),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}var h6=function(){return{standalone:!0}};function d6(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ea(2,"br"),Ma(3,"form",10),Ma(4,"mat-form-field",11),Ma(5,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ma(6,"mat-form-field",13),Ma(7,"mat-select",14),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(8,l6,2,2,"mat-option",15),Ta(),Ta(),Ma(9,"mat-checkbox",16),Na("ngModelChange",function(e){return ut(n),Ua().node.console_auto_start=e}),Cs(10," Auto start console "),Ta(),Ma(11,"mat-form-field",11),Ma(12,"input",17),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.ram=e}),Ta(),Ma(13,"span",18),Cs(14,"MB"),Ta(),Ta(),Ma(15,"mat-form-field",11),Ma(16,"mat-select",19),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.on_close=e}),ka(17,u6,2,2,"mat-option",15),Ta(),Ta(),Ta(),Ma(18,"mat-checkbox",20),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.headless=e}),Cs(19," Start VM in headless mode "),Ta(),Ta(),Ma(20,"mat-tab",21),Ea(21,"br"),Ma(22,"mat-checkbox",20),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.use_any_adapter=e}),Cs(23," Allow GNS3 to use any configured VirtualBox adapter "),Ta(),Ea(24,"app-custom-adapters-table",22,23),Ta(),Ma(26,"mat-tab",24),Ma(27,"mat-form-field",11),Ma(28,"textarea",25),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.usage=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModelOptions",Jc(17,h6))("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModelOptions",Jc(18,h6))("ngModel",r.node.console_auto_start),zi(3),xa("ngModel",r.node.properties.ram),zi(4),xa("ngModelOptions",Jc(19,h6))("ngModel",r.node.properties.on_close),zi(1),xa("ngForOf",r.onCloseOptions),zi(1),xa("ngModel",r.node.properties.headless),zi(4),xa("ngModel",r.node.properties.use_any_adapter),zi(2),xa("networkTypes",r.networkTypes)("displayedColumns",r.displayedColumns)("adapters",r.node.ports),zi(4),xa("ngModel",r.node.properties.usage)}}var f6=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.virtualBoxConfigurationService=i,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new lf("",yd.required),ram:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(K4))},e.\u0275cmp=be({type:e,selectors:[["app-configurator-virtualbox"]],viewQuery:function(e,t){var n;1&e&&Cl(c6,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),ka(6,d6,29,20,"mat-tab-group",5),Ta(),Ta(),Ta(),Ta(),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.onCancelClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.onSaveClick()}),Cs(11,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.name))},directives:[h1,s3,ih,f1,l2,Q1,z1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,P5,_f,L3,s6,UJ],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}(),p6=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 e.protocol+"//"+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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),m6=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","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},e.prototype.getPriorities=function(){return["realtime","very high","high","normal","low","very low"]},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),g6=["input"],v6=function(){return{enterDuration:150}},b6=["*"],y6=new Tn("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),_6=0,w6={provide:ud,useExisting:j(function(){return x6}),multi:!0},k6=function e(t,n){Object(s.a)(this,e),this.source=t,this.value=n},C6=new Tn("MatRadioGroup"),S6=function(){var e=function(){function e(t){Object(s.a)(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(_6++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new ul}return Object(c.a)(e,[{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:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{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=If(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=If(e),this._markRadiosForCheck()}},{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 k6(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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Oc))},e.\u0275dir=Se({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),x6=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(S6);return e.\u0275fac=function(t){return O6(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,E6,1),2&e&&kl(r=xl())&&(t._radios=r)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Gs([w6,{provide:C6,useExisting:e}]),ia]}),e}(),O6=Cn(x6),M6=dJ(fJ(function e(t){Object(s.a)(this,e),this._elementRef=t})),T6=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l,u){var h;return Object(s.a)(this,n),(h=t.call(this,r))._changeDetector=i,h._focusMonitor=o,h._radioDispatcher=a,h._animationMode=c,h._providerOverride=l,h._uniqueId="mat-radio-".concat(++_6),h.id=h._uniqueId,h.change=new ul,h._checked=!1,h._value=null,h._removeUniqueSelectionListener=function(){},h.radioGroup=e,u&&(h.tabIndex=Af(u,0)),h._removeUniqueSelectionListener=a.listen(function(e,t){e!==h.id&&t===h.name&&(h.checked=!1)}),h}return Object(c.a)(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=If(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(If(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=If(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")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),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 k6(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())}}]),n}(M6);return e.\u0275fac=function(t){return new(t||e)(Sa(S6),Sa(ec),Sa(Oc),Sa(R$),Sa(Wf),Sa(String),Sa(void 0),Sa(String))},e.\u0275dir=Se({type:e,viewQuery:function(e,t){var n;1&e&&Cl(g6,1),2&e&&kl(n=xl())&&(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:[ia]}),e}(),E6=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l,u){return Object(s.a)(this,n),t.call(this,e,r,i,o,a,c,l,u)}return n}(T6);return e.\u0275fac=function(t){return new(t||e)(Sa(C6,8),Sa(ec),Sa(Oc),Sa(R$),Sa(Wf),Sa(jb,8),Sa(y6,8),xn("tabindex"))},e.\u0275cmp=be({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&Na("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(va("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),cs("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:[ia],ngContentSelectors:b6,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&&(Wa(),Ma(0,"label",0,1),Ma(2,"span",2),Ea(3,"span",3),Ea(4,"span",4),Ma(5,"input",5,6),Na("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),Ta(),Ma(7,"span",7),Ea(8,"span",8),Ta(),Ta(),Ma(9,"span",9),Ma(10,"span",10),Cs(11,"\xa0"),Ta(),Ga(12),Ta(),Ta()),2&e){var n=Ca(1);va("for",t.inputId),zi(5),xa("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),va("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),zi(2),xa("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Jc(18,v6)),zi(2),cs("mat-radio-label-before","before"==t.labelPosition)}},directives:[EJ],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;display:block;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;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._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}(),P6=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[PJ,lJ],lJ]}),e}();function j6(e,t){if(1&e&&(Ma(0,"mat-option",16),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function I6(e,t){if(1&e&&(Ma(0,"mat-option",16),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function A6(e,t){if(1&e&&(Ma(0,"mat-option",16),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.value),zi(1),xs(" ",n.name," ")}}function D6(e,t){if(1&e&&(Ma(0,"mat-option",16),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function R6(e,t){if(1&e&&(Ma(0,"mat-option",16),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.value),zi(1),xs(" ",n.name," ")}}function L6(e,t){if(1&e){var n=Aa();Ma(0,"div"),Cs(1," Size options "),Ma(2,"mat-form-field",6),Ma(3,"mat-select",8),Na("ngModelChange",function(e){return ut(n),Ua().qemuImg.preallocation=e}),ka(4,I6,2,2,"mat-option",9),Ta(),Ta(),Ma(5,"mat-form-field",6),Ma(6,"mat-select",17),Na("ngModelChange",function(e){return ut(n),Ua().qemuImg.cluster_size=e}),ka(7,A6,2,2,"mat-option",9),Ta(),Ta(),Cs(8," Refcounts "),Ma(9,"mat-form-field",6),Ma(10,"mat-select",18),Na("ngModelChange",function(e){return ut(n),Ua().qemuImg.lazy_refcounts=e}),ka(11,D6,2,2,"mat-option",9),Ta(),Ta(),Ma(12,"mat-form-field",6),Ma(13,"mat-select",19),Na("ngModelChange",function(e){return ut(n),Ua().qemuImg.refcount_bits=e}),ka(14,R6,2,2,"mat-option",9),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("ngModel",r.qemuImg.preallocation),zi(1),xa("ngForOf",r.preallocationsOptions),zi(2),xa("ngModel",r.qemuImg.cluster_size),zi(1),xa("ngForOf",r.clusterSizeOptions),zi(3),xa("ngModel",r.qemuImg.lazy_refcounts),zi(1),xa("ngForOf",r.lazyRefcountsOptions),zi(2),xa("ngModel",r.qemuImg.refcount_bits),zi(1),xa("ngForOf",r.clusterSizeOptions)}}function N6(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"mat-radio-group",20),Ma(2,"mat-radio-button",21),Na("click",function(){return ut(n),Ua().setSubformat("dynamic")}),Cs(3,"Dynamic"),Ta(),Ma(4,"mat-radio-button",22),Na("click",function(){return ut(n),Ua().setSubformat("fixed")}),Cs(5,"Fixed"),Ta(),Ta(),Ta()}}function F6(e,t){if(1&e&&(Ma(0,"mat-option",16),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function B6(e,t){if(1&e){var n=Aa();Ma(0,"div"),Cs(1," Adapter type"),Ea(2,"br"),Ma(3,"mat-radio-group",23),Ma(4,"mat-radio-button",21),Na("click",function(){return ut(n),Ua().setAdapterType("ide")}),Cs(5,"IDE"),Ta(),Ma(6,"mat-radio-button",22),Na("click",function(){return ut(n),Ua().setAdapterType("lsilogic")}),Cs(7,"LSI Logic"),Ta(),Ma(8,"mat-radio-button",24),Na("click",function(){return ut(n),Ua().setAdapterType("buslogic")}),Cs(9,"BusLogic"),Ta(),Ma(10,"mat-radio-button",25),Na("click",function(){return ut(n),Ua().setAdapterType("legacyESX")}),Cs(11,"Legacy (ESX)"),Ta(),Ta(),Ea(12,"br"),Ea(13,"br"),Cs(14," Image file sizing mode"),Ea(15,"br"),Ma(16,"mat-radio-group",20),Ma(17,"mat-radio-button",21),Na("click",function(){return ut(n),Ua().setSubformat("streamOptimized")}),Cs(18,"Stream optimized"),Ta(),Ma(19,"mat-radio-button",22),Na("click",function(){return ut(n),Ua().setSubformat("twoGbMaxExtentSparse")}),Cs(20,"Split every 2GB (sparse)"),Ta(),Ma(21,"mat-radio-button",24),Na("click",function(){return ut(n),Ua().setSubformat("twoGbMaxExtentFlat")}),Cs(22,"Split every 2GB (flat)"),Ta(),Ma(23,"mat-radio-button",25),Na("click",function(){return ut(n),Ua().setSubformat("monolithicSparse")}),Cs(24,"Monolithic sparse"),Ta(),Ma(25,"mat-radio-button",26),Na("click",function(){return ut(n),Ua().setSubformat("monolithicFlat")}),Cs(26,"Monolithic flat"),Ta(),Ta(),Ea(27,"br"),Ea(28,"br"),Ma(29,"mat-select",27),Na("ngModelChange",function(e){return ut(n),Ua().qemuImg.zeroed_grain=e}),ka(30,F6,2,2,"mat-option",9),Ta(),Ta()}if(2&e){var r=Ua();zi(29),xa("ngModel",r.qemuImg.zeroed_grain),zi(1),xa("ngForOf",r.zeroedGrainOptions)}}var z6=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.qemuService=i,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 lf("",yd.required),path:new lf("",yd.required),size:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(p6))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Qemu image configurator"),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),Ma(6,"form",5),Ma(7,"mat-form-field",6),Ma(8,"input",7),Na("ngModelChange",function(e){return t.qemuImg.qemu_img=e}),Ta(),Ta(),Ta(),Ma(9,"mat-form-field",6),Ma(10,"mat-select",8),Na("ngModelChange",function(e){return t.qemuImg.format=e}),ka(11,j6,2,2,"mat-option",9),Ta(),Ta(),ka(12,L6,15,8,"div",10),ka(13,N6,6,0,"div",10),ka(14,B6,31,2,"div",10),Ma(15,"form",5),Ma(16,"mat-form-field",6),Ma(17,"input",11),Na("ngModelChange",function(e){return t.qemuImg.path=e}),Ta(),Ta(),Ma(18,"mat-form-field",6),Ma(19,"input",12),Na("ngModelChange",function(e){return t.qemuImg.size=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(20,"div",13),Ma(21,"button",14),Na("click",function(){return t.onCancelClick()}),Cs(22,"Cancel"),Ta(),Ma(23,"button",15),Na("click",function(){return t.onSaveClick()}),Cs(24,"Apply"),Ta(),Ta()),2&e&&(zi(6),xa("formGroup",t.inputForm),zi(2),xa("ngModel",t.qemuImg.qemu_img),zi(2),xa("ngModel",t.qemuImg.format),zi(1),xa("ngForOf",t.formatOptions),zi(1),xa("ngIf","qcow2"===t.qemuImg.format),zi(1),xa("ngIf","vhd"===t.qemuImg.format||"vdi"===t.qemuImg.format),zi(1),xa("ngIf","vmdk"===t.qemuImg.format),zi(1),xa("formGroup",t.inputForm),zi(2),xa("ngModel",t.qemuImg.path),zi(2),xa("ngModel",t.qemuImg.size))},directives:[h1,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,ih,_f,f1,l2,UJ,x6,E6],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}(),H6=["customAdapters"];function V6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.path),zi(1),xs(" ",n.path," ")}}function U6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function q6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function W6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function G6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.filename),zi(1),xs(" ",n.filename," ")}}function X6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Y6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.filename),zi(1),xs(" ",n.filename," ")}}function K6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Q6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.filename),zi(1),xs(" ",n.filename," ")}}function Z6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function $6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.filename),zi(1),xs(" ",n.filename," ")}}function J6(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function e8(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",11),Ma(1,"input",50),Na("ngModelChange",function(e){return ut(n),Ua(2).node.properties.cpu_throttling=e}),Ta(),Ta()}if(2&e){var r=Ua(2);zi(1),xa("ngModel",r.node.properties.cpu_throttling)}}function t8(e,t){if(1&e&&(Ma(0,"mat-option",49),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function n8(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ea(2,"br"),Ma(3,"form",10),Ma(4,"mat-form-field",11),Ma(5,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ma(6,"mat-form-field",11),Ma(7,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.ram=e}),Ta(),Ma(8,"span",14),Cs(9,"MB"),Ta(),Ta(),Ta(),Ma(10,"mat-form-field",11),Ma(11,"input",15),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.cpus=e}),Ta(),Ta(),Ma(12,"mat-form-field",11),Ma(13,"mat-select",16),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.qemu_path=e}),ka(14,V6,2,2,"mat-option",17),Ta(),Ta(),Ma(15,"mat-form-field",11),Ma(16,"mat-select",18),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.boot_priority=e}),ka(17,U6,2,2,"mat-option",17),Ta(),Ta(),Ma(18,"mat-form-field",11),Ma(19,"mat-select",19),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.on_close=e}),ka(20,q6,2,2,"mat-option",17),Ta(),Ta(),Ma(21,"mat-form-field",20),Ma(22,"mat-select",21),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(23,W6,2,2,"mat-option",17),Ta(),Ta(),Ma(24,"mat-checkbox",22),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.console_auto_start=e}),Cs(25," Auto start console "),Ta(),Ta(),Ma(26,"mat-tab",23),Ma(27,"mat-card"),Ma(28,"button",24),Na("click",function(){return ut(n),Ua().openQemuImageCreator()}),Cs(29,"Create Qemu image"),Ta(),Ea(30,"mat-card-title"),Ma(31,"mat-card-subtitle"),Cs(32," HDA (Primary Master) "),Ta(),Ma(33,"mat-card-content"),Ma(34,"mat-select",25),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hda_disk_image=e}),ka(35,G6,2,2,"mat-option",17),Ta(),Ma(36,"mat-form-field",11),Ma(37,"mat-select",26),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hda_disk_interface=e}),ka(38,X6,2,2,"mat-option",17),Ta(),Ta(),Ta(),Ta(),Ma(39,"mat-card"),Ea(40,"mat-card-title"),Ma(41,"mat-card-subtitle"),Cs(42," HDB (Primary Slave) "),Ta(),Ma(43,"mat-card-content"),Ma(44,"mat-select",25),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hdb_disk_image=e}),ka(45,Y6,2,2,"mat-option",17),Ta(),Ma(46,"mat-form-field",11),Ma(47,"mat-select",26),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hdb_disk_interface=e}),ka(48,K6,2,2,"mat-option",17),Ta(),Ta(),Ta(),Ta(),Ma(49,"mat-card"),Ea(50,"mat-card-title"),Ma(51,"mat-card-subtitle"),Cs(52," HDC (Secondary Master) "),Ta(),Ma(53,"mat-card-content"),Ma(54,"mat-select",25),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hdc_disk_image=e}),ka(55,Q6,2,2,"mat-option",17),Ta(),Ma(56,"mat-form-field",11),Ma(57,"mat-select",26),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hdc_disk_interface=e}),ka(58,Z6,2,2,"mat-option",17),Ta(),Ta(),Ta(),Ta(),Ma(59,"mat-card"),Ea(60,"mat-card-title"),Ma(61,"mat-card-subtitle"),Cs(62," HDD (Secondary Slave) "),Ta(),Ma(63,"mat-card-content"),Ma(64,"mat-select",25),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hdd_disk_image=e}),ka(65,$6,2,2,"mat-option",17),Ta(),Ma(66,"mat-form-field",11),Ma(67,"mat-select",26),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.hdd_disk_interface=e}),ka(68,J6,2,2,"mat-option",17),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(69,"mat-tab",27),Ma(70,"div"),Ma(71,"button",28),Na("click",function(){return ut(n),Ca(74).click()}),Cs(72,"Browse"),Ta(),Ma(73,"input",29,30),Na("change",function(e){return ut(n),Ua().uploadCdromImageFile(e)}),Ta(),Ma(75,"mat-form-field",31),Ma(76,"input",32),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.cdrom_image=e}),Ta(),Ta(),Ta(),Ta(),Ma(77,"mat-tab",33),Ea(78,"br"),Ma(79,"mat-checkbox",22),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.legacy_networking=e}),Cs(80," Use the legacy networking mode "),Ta(),Ea(81,"br"),Ma(82,"mat-checkbox",22),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.replicate_network_connection_state=e}),Cs(83," Replicate network connection state "),Ta(),Ea(84,"app-custom-adapters-table",34,35),Ta(),Ma(86,"mat-tab",36),Ma(87,"mat-card"),Ea(88,"mat-card-title"),Ma(89,"mat-card-subtitle"),Cs(90," Linux boot specific settings "),Ta(),Ma(91,"mat-card-content"),Ma(92,"div"),Ma(93,"button",28),Na("click",function(){return ut(n),Ca(96).click()}),Cs(94,"Browse"),Ta(),Ma(95,"input",29,37),Na("change",function(e){return ut(n),Ua().uploadInitrdFile(e)}),Ta(),Ma(97,"mat-form-field",31),Ma(98,"input",38),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.initrd=e}),Ta(),Ta(),Ta(),Ma(99,"div"),Ma(100,"button",28),Na("click",function(){return ut(n),Ua().filekerenelimage.click()}),Cs(101,"Browse"),Ta(),Ma(102,"input",29,39),Na("change",function(e){return ut(n),Ua().uploadKernelImageFile(e)}),Ta(),Ma(104,"mat-form-field",31),Ma(105,"input",40),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.kernel_image=e}),Ta(),Ta(),Ta(),Ma(106,"mat-form-field",11),Ma(107,"input",41),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.kernel_command_line=e}),Ta(),Ta(),Ta(),Ta(),Ma(108,"mat-card"),Ea(109,"mat-card-title"),Ma(110,"mat-card-subtitle"),Cs(111," Bios "),Ta(),Ma(112,"mat-card-content"),Ma(113,"div"),Ma(114,"button",28),Na("click",function(){return ut(n),Ca(117).click()}),Cs(115,"Browse"),Ta(),Ma(116,"input",29,42),Na("change",function(e){return ut(n),Ua().uploadBiosFile(e)}),Ta(),Ma(118,"mat-form-field",31),Ma(119,"input",43),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.bios_image=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(120,"mat-card"),Ea(121,"mat-card-title"),Ma(122,"mat-card-subtitle"),Cs(123," Optimization "),Ta(),Ma(124,"mat-card-content"),Ma(125,"mat-checkbox",22),Na("ngModelChange",function(e){return ut(n),Ua().activateCpuThrottling=e}),Cs(126," Activate CPU throttling "),Ta(),ka(127,e8,2,1,"mat-form-field",44),Ma(128,"mat-form-field",11),Ma(129,"mat-select",45),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.process_priority=e}),ka(130,t8,2,2,"mat-option",17),Ta(),Ta(),Ta(),Ta(),Ma(131,"mat-card"),Ea(132,"mat-card-title"),Ma(133,"mat-card-subtitle"),Cs(134," Additional settings "),Ta(),Ma(135,"mat-card-content"),Ma(136,"mat-form-field",11),Ma(137,"input",46),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.options=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(138,"mat-tab",47),Ma(139,"mat-form-field",11),Ma(140,"textarea",48),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.usage=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModel",r.node.properties.ram),zi(4),xa("ngModel",r.node.properties.cpus),zi(2),xa("ngModel",r.node.properties.qemu_path),zi(1),xa("ngForOf",r.binaries),zi(2),xa("ngModel",r.node.properties.boot_priority),zi(1),xa("ngForOf",r.bootPriorities),zi(2),xa("ngModel",r.node.properties.on_close),zi(1),xa("ngForOf",r.onCloseOptions),zi(2),xa("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModel",r.node.properties.console_auto_start),zi(10),xa("ngModel",r.node.properties.hda_disk_image),zi(1),xa("ngForOf",r.qemuImages),zi(2),xa("ngModel",r.node.properties.hda_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(6),xa("ngModel",r.node.properties.hdb_disk_image),zi(1),xa("ngForOf",r.qemuImages),zi(2),xa("ngModel",r.node.properties.hdb_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(6),xa("ngModel",r.node.properties.hdc_disk_image),zi(1),xa("ngForOf",r.qemuImages),zi(2),xa("ngModel",r.node.properties.hdc_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(6),xa("ngModel",r.node.properties.hdd_disk_image),zi(1),xa("ngForOf",r.qemuImages),zi(2),xa("ngModel",r.node.properties.hdd_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(8),xa("ngModel",r.node.properties.cdrom_image),zi(3),xa("ngModel",r.node.properties.legacy_networking),zi(3),xa("ngModel",r.node.properties.replicate_network_connection_state),zi(2),xa("networkTypes",r.networkTypes)("displayedColumns",r.displayedColumns)("adapters",r.node.ports),zi(14),xa("ngModel",r.node.properties.initrd),zi(7),xa("ngModel",r.node.properties.kernel_image),zi(2),xa("ngModel",r.node.properties.kernel_command_line),zi(12),xa("ngModel",r.node.properties.bios_image),zi(6),xa("ngModel",r.activateCpuThrottling),zi(2),xa("ngIf",r.activateCpuThrottling),zi(2),xa("ngModel",r.node.properties.process_priority),zi(1),xa("ngForOf",r.priorities),zi(7),xa("ngModel",r.node.properties.options),zi(3),xa("ngModel",r.node.properties.usage)}}var r8=function(){function e(e,t,n,r,i,o,a){this.dialog=e,this.dialogRef=t,this.nodeService=n,this.toasterService=r,this.formBuilder=i,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 lf("",yd.required),ram:new lf("",yd.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(z6,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)(Sa(l1),Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(p6),Sa(m6))},e.\u0275cmp=be({type:e,selectors:[["app-configurator-qemu"]],viewQuery:function(e,t){var n;1&e&&Cl(H6,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),ka(6,n8,141,45,"mat-tab-group",5),Ta(),Ta(),Ta(),Ta(),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.onCancelClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.onSaveClick()}),Cs(11,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.name))},directives:[h1,s3,ih,f1,l2,Q1,z1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,_f,L3,vf,v5,nh,P5,i3,o3,r3,s6,UJ],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 i8(e,t){1&e&&(Ma(0,"th",18),Cs(1," Name "),Ta())}function o8(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.name," ")}}function a8(e,t){1&e&&(Ma(0,"th",18),Cs(1," Local port "),Ta())}function s8(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.rport," ")}}function c8(e,t){1&e&&(Ma(0,"th",18),Cs(1," Type "),Ta())}function l8(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.rhost," ")}}function u8(e,t){1&e&&(Ma(0,"th",18),Cs(1," Remote port "),Ta())}function h8(e,t){if(1&e&&(Ma(0,"td",19),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.lport," ")}}function d8(e,t){1&e&&(Ma(0,"th",18),Cs(1," Actions "),Ta())}function f8(e,t){if(1&e){var n=Aa();Ma(0,"td",19),Ma(1,"button",20),Na("click",function(){ut(n);var e=t.$implicit;return Ua(2).delete(e)}),Ma(2,"mat-icon",21),Cs(3,"delete"),Ta(),Ta(),Ta()}}function p8(e,t){1&e&&Ea(0,"tr",22)}function m8(e,t){1&e&&Ea(0,"tr",23)}function g8(e,t){if(1&e&&(Ma(0,"table",8),Pa(1,9),ka(2,i8,2,0,"th",10),ka(3,o8,2,1,"td",11),ja(),Pa(4,12),ka(5,a8,2,0,"th",10),ka(6,s8,2,1,"td",11),ja(),Pa(7,13),ka(8,c8,2,0,"th",10),ka(9,l8,2,1,"td",11),ja(),Pa(10,14),ka(11,u8,2,0,"th",10),ka(12,h8,2,1,"td",11),ja(),Pa(13,15),ka(14,d8,2,0,"th",10),ka(15,f8,4,0,"td",11),ja(),ka(16,p8,1,0,"tr",16),ka(17,m8,1,0,"tr",17),Ta()),2&e){var n=Ua();xa("dataSource",n.dataSourceUdp),zi(16),xa("matHeaderRowDef",n.displayedColumns),zi(1),xa("matRowDefColumns",n.displayedColumns)}}function v8(e,t){1&e&&Ea(0,"br")}var b8=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)(Sa(F5))},e.\u0275cmp=be({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&&(ka(0,g8,18,3,"table",0),ka(1,v8,1,0,"br",1),Ma(2,"mat-form-field",2),Ma(3,"input",3),Na("ngModelChange",function(e){return t.newPort.name=e}),Ta(),Ta(),Ma(4,"mat-form-field",2),Ma(5,"input",4),Na("ngModelChange",function(e){return t.newPort.lport=e}),Ta(),Ta(),Ma(6,"mat-form-field",2),Ma(7,"input",5),Na("ngModelChange",function(e){return t.newPort.rhost=e}),Ta(),Ta(),Ma(8,"mat-form-field",2),Ma(9,"input",6),Na("ngModelChange",function(e){return t.newPort.rport=e}),Ta(),Ta(),Ma(10,"button",7),Na("click",function(){return t.onAddUdpInterface()}),Cs(11,"Add"),Ta()),2&e&&(xa("ngIf",t.dataSourceUdp.length),zi(1),xa("ngIf",t.dataSourceUdp.length),zi(2),xa("ngModel",t.newPort.name),zi(2),xa("ngModel",t.newPort.lport),zi(2),xa("ngModel",t.newPort.rhost),zi(2),xa("ngModel",t.newPort.rport))},directives:[ih,H3,Q3,fd,Fd,vf,_f,l2,H5,X5,W5,U5,J5,t4,K5,Z5,m4,T2,r4,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}(),y8=["udpTunnels"];function _8(e,t){if(1&e&&(Ma(0,"div",16),Ma(1,"div",16),Cs(2),Ta(),Ea(3,"br"),Ea(4,"br"),Ta()),2&e){var n=t.$implicit;zi(2),Ss(n.name)}}function w8(e,t){if(1&e&&(Ma(0,"mat-option",28),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function k8(e,t){if(1&e&&(Ma(0,"div",16),Ma(1,"div",16),Cs(2),Ta(),Ea(3,"br"),Ea(4,"br"),Ta()),2&e){var n=t.$implicit;zi(2),Ss(n.name)}}function C8(e,t){if(1&e&&(Ma(0,"mat-option",28),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var S8=function(){return{standalone:!0}};function x8(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),ka(2,_8,5,1,"div",10),Ma(3,"mat-form-field",11),Ma(4,"mat-select",12),Na("ngModelChange",function(e){return ut(n),Ua().ethernetInterface=e}),ka(5,w8,2,2,"mat-option",13),Ta(),Ta(),Ma(6,"button",14),Na("click",function(){return ut(n),Ua().onAddEthernetInterface()}),Cs(7,"Add"),Ta(),Ta(),Ma(8,"mat-tab",15),ka(9,k8,5,1,"div",10),Ma(10,"mat-form-field",16),Ma(11,"input",17),Na("ngModelChange",function(e){return ut(n),Ua().tapInterface=e}),Ta(),Ta(),Ma(12,"button",14),Na("click",function(){return ut(n),Ua().onAddTapInterface()}),Cs(13,"Add"),Ta(),Ta(),Ma(14,"mat-tab",18),Ea(15,"app-udp-tunnels",19,20),Ta(),Ma(17,"mat-tab",21),Ma(18,"form",22),Ma(19,"mat-form-field",16),Ma(20,"input",23),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ta(),Ma(21,"mat-form-field",11),Ma(22,"mat-select",24),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(23,C8,2,2,"mat-option",13),Ta(),Ta(),Ma(24,"mat-form-field",16),Ma(25,"input",25),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.remote_console_host=e}),Ta(),Ta(),Ma(26,"mat-form-field",16),Ma(27,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.remote_console_port=e}),Ta(),Ta(),Ma(28,"mat-form-field",16),Ma(29,"input",27),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.remote_console_http_path=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("ngForOf",r.portsMappingEthernet),zi(2),xa("ngModelOptions",Jc(14,S8))("ngModel",r.ethernetInterface),zi(1),xa("ngForOf",r.ethernetInterfaces),zi(4),xa("ngForOf",r.portsMappingTap),zi(2),xa("ngModel",r.tapInterface),zi(4),xa("dataSourceUdp",r.portsMappingUdp),zi(3),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(2),xa("ngModel",r.node.properties.remote_console_host),zi(2),xa("ngModel",r.node.properties.remote_console_port),zi(2),xa("ngModel",r.node.properties.remote_console_http_path)}}var O8=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.builtInTemplatesConfigurationService=i,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 lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(F5))},e.\u0275cmp=be({type:e,selectors:[["app-configurator-cloud"]],viewQuery:function(e,t){var n;1&e&&Cl(y8,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),ka(6,x8,30,15,"mat-tab-group",5),Ta(),Ta(),Ta(),Ta(),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.onCancelClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.onSaveClick()}),Cs(11,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.name))},directives:[h1,s3,ih,f1,l2,Q1,z1,nh,H3,v5,Fd,vf,Q3,fd,b8,bf,Bd,Sf,Of,UJ],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 M8(e,t){1&e&&(Ma(0,"th",27),Cs(1," Port : VPI : VCI "),Ta())}function T8(e,t){if(1&e&&(Ma(0,"td",28),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.portIn," ")}}function E8(e,t){1&e&&(Ma(0,"th",27),Cs(1," Port : VPI : VCI "),Ta())}function P8(e,t){if(1&e&&(Ma(0,"td",28),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.portOut," ")}}function j8(e,t){1&e&&(Ma(0,"th",27),Cs(1," Actions "),Ta())}function I8(e,t){if(1&e){var n=Aa();Ma(0,"td",28),Ma(1,"button",29),Na("click",function(){ut(n);var e=t.$implicit;return Ua(2).delete(e)}),Ma(2,"mat-icon",30),Cs(3,"delete"),Ta(),Ta(),Ta()}}function A8(e,t){1&e&&Ea(0,"tr",31)}function D8(e,t){1&e&&Ea(0,"tr",32)}function R8(e,t){if(1&e&&(Ma(0,"table",19),Pa(1,20),ka(2,M8,2,0,"th",21),ka(3,T8,2,1,"td",22),ja(),Pa(4,23),ka(5,E8,2,0,"th",21),ka(6,P8,2,1,"td",22),ja(),Pa(7,24),ka(8,j8,2,0,"th",21),ka(9,I8,4,0,"td",22),ja(),ka(10,A8,1,0,"tr",25),ka(11,D8,1,0,"tr",26),Ta()),2&e){var n=Ua();xa("dataSource",n.nodeMappingsDataSource),zi(10),xa("matHeaderRowDef",n.displayedColumns),zi(1),xa("matRowDefColumns",n.displayedColumns)}}var L8=function(){function e(e,t,n,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,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 lf("",yd.required)}),this.inputForm=this.formBuilder.group({sourcePort:new lf("",yd.required),sourceVci:new lf("",yd.required),destinationPort:new lf("",yd.required),destinationVci:new lf("",yd.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new lf("",yd.required),destinationVpi:new lf("",yd.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,r=e;n<r.length;n++){var i=r[n];t[i[0]]=i[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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card"),ka(6,R8,12,3,"table",4),Ea(7,"br"),Ma(8,"form",5),Ma(9,"mat-form-field",6),Ma(10,"input",7),Na("ngModelChange",function(e){return t.node.name=e}),Ta(),Ta(),Ta(),Ma(11,"mat-checkbox",8),Na("ngModelChange",function(e){return t.useVpiOnly=e}),Cs(12," Use VPI only (VP tunnel) "),Ta(),Ma(13,"form",5),Cs(14," Source "),Ma(15,"mat-form-field",6),Ma(16,"input",9),Na("ngModelChange",function(e){return t.sourcePort=e}),Ta(),Ta(),Ta(),Ma(17,"form",5),Ma(18,"mat-form-field",6),Ma(19,"input",10),Na("ngModelChange",function(e){return t.sourceVpi=e}),Ta(),Ta(),Ta(),Ma(20,"form",5),Ma(21,"mat-form-field",6),Ma(22,"input",11),Na("ngModelChange",function(e){return t.sourceVci=e}),Ta(),Ta(),Cs(23," Destination "),Ma(24,"mat-form-field",6),Ma(25,"input",12),Na("ngModelChange",function(e){return t.destinationPort=e}),Ta(),Ta(),Ta(),Ma(26,"form",5),Ma(27,"mat-form-field",6),Ma(28,"input",13),Na("ngModelChange",function(e){return t.destinationVpi=e}),Ta(),Ta(),Ta(),Ma(29,"form",5),Ma(30,"mat-form-field",6),Ma(31,"input",14),Na("ngModelChange",function(e){return t.destinationVci=e}),Ta(),Ta(),Ta(),Ma(32,"button",15),Na("click",function(){return t.add()}),Cs(33,"Add"),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(34,"div",16),Ma(35,"button",17),Na("click",function(){return t.onCancelClick()}),Cs(36,"Cancel"),Ta(),Ma(37,"button",18),Na("click",function(){return t.onSaveClick()}),Cs(38,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.nodeMappingsDataSource.length),zi(2),xa("formGroup",t.nameForm),zi(2),xa("ngModel",t.node.name),zi(1),xa("ngModel",t.useVpiOnly),zi(2),xa("formGroup",t.inputForm),zi(3),xa("ngModel",t.sourcePort),zi(1),xa("formGroup",t.abstractForm),zi(2),xa("ngModel",t.sourceVpi),zi(1),xa("formGroup",t.inputForm),zi(2),xa("ngModel",t.sourceVci),zi(3),xa("ngModel",t.destinationPort),zi(1),xa("formGroup",t.abstractForm),zi(2),xa("ngModel",t.destinationVpi),zi(1),xa("formGroup",t.inputForm),zi(2),xa("ngModel",t.destinationVci))},directives:[h1,s3,ih,bf,Bd,Sf,H3,Q3,fd,Fd,Of,P5,vf,_f,l2,f1,H5,X5,W5,U5,J5,t4,K5,Z5,m4,T2,r4,o4],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}(),N8=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","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},e.prototype.getNetworkTypes=function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),F8=["customAdapters"];function B8(e,t){if(1&e&&(Ma(0,"mat-option",24),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function z8(e,t){if(1&e&&(Ma(0,"mat-option",24),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}var H8=function(){return{standalone:!0}};function V8(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ea(2,"br"),Ma(3,"form",10),Ma(4,"mat-form-field",11),Ma(5,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ma(6,"mat-form-field",13),Ma(7,"mat-select",14),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(8,B8,2,2,"mat-option",15),Ta(),Ta(),Ma(9,"mat-checkbox",16),Na("ngModelChange",function(e){return ut(n),Ua().node.console_auto_start=e}),Cs(10," Auto start console "),Ta(),Ma(11,"mat-form-field",11),Ma(12,"mat-select",17),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.on_close=e}),ka(13,z8,2,2,"mat-option",15),Ta(),Ta(),Ta(),Ma(14,"mat-checkbox",18),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.headless=e}),Cs(15," Start VM in headless mode "),Ta(),Ea(16,"br"),Ma(17,"mat-checkbox",18),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.linked_clone=e}),Cs(18," Use a linked base VM (experimental) "),Ta(),Ta(),Ma(19,"mat-tab",19),Ea(20,"br"),Ma(21,"mat-checkbox",18),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.use_any_adapter=e}),Cs(22," Allow GNS3 to override non custom VMware adapter "),Ta(),Ea(23,"app-custom-adapters-table",20,21),Ta(),Ma(25,"mat-tab",22),Ma(26,"mat-form-field",11),Ma(27,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.usage=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModelOptions",Jc(17,H8))("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModelOptions",Jc(18,H8))("ngModel",r.node.console_auto_start),zi(3),xa("ngModelOptions",Jc(19,H8))("ngModel",r.node.properties.on_close),zi(1),xa("ngForOf",r.onCloseOptions),zi(1),xa("ngModel",r.node.properties.headless),zi(3),xa("ngModel",r.node.properties.linked_clone),zi(4),xa("ngModel",r.node.properties.use_any_adapter),zi(2),xa("networkTypes",r.networkTypes)("displayedColumns",r.displayedColumns)("adapters",r.node.ports),zi(4),xa("ngModel",r.node.properties.usage)}}var U8=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.vmwareConfigurationService=i,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(N8))},e.\u0275cmp=be({type:e,selectors:[["app-configurator-vmware"]],viewQuery:function(e,t){var n;1&e&&Cl(F8,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),ka(6,V8,28,20,"mat-tab-group",5),Ta(),Ta(),Ta(),Ta(),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.onCancelClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.onSaveClick()}),Cs(11,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.name))},directives:[h1,s3,ih,f1,l2,Q1,z1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,P5,s6,UJ],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}(),q8=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","none"]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function W8(e,t){if(1&e&&(Ma(0,"mat-option",25),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function G8(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ea(2,"br"),Ma(3,"form",10),Ma(4,"mat-form-field",11),Ma(5,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ta(),Ma(6,"mat-form-field",13),Ma(7,"mat-select",14),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(8,W8,2,2,"mat-option",15),Ta(),Ta(),Ma(9,"mat-checkbox",16),Na("ngModelChange",function(e){return ut(n),Ua().node.console_auto_start=e}),Cs(10," Auto start console "),Ta(),Ea(11,"br"),Ma(12,"mat-form-field",11),Ma(13,"input",17),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.ram=e}),Ta(),Ma(14,"span",18),Cs(15,"MB"),Ta(),Ta(),Ma(16,"mat-form-field",11),Ma(17,"input",19),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.nvram=e}),Ta(),Ma(18,"span",18),Cs(19,"MB"),Ta(),Ta(),Ta(),Ma(20,"mat-tab",20),Ea(21,"br"),Ma(22,"form",10),Ma(23,"mat-form-field",11),Ma(24,"input",21),Na("ngModelChange",function(e){return ut(n),Ua().node.ethernet_adapters=e}),Ta(),Ta(),Ma(25,"mat-form-field",11),Ma(26,"input",22),Na("ngModelChange",function(e){return ut(n),Ua().node.serial_adapters=e}),Ta(),Ta(),Ta(),Ta(),Ma(27,"mat-tab",23),Ma(28,"mat-form-field",11),Ma(29,"textarea",24),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.usage=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModel",r.node.console_auto_start),zi(4),xa("ngModel",r.node.properties.ram),zi(4),xa("ngModel",r.node.properties.nvram),zi(5),xa("formGroup",r.networkForm),zi(2),xa("ngModel",r.node.ethernet_adapters),zi(2),xa("ngModel",r.node.serial_adapters),zi(3),xa("ngModel",r.node.properties.usage)}}var X8=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.configurationService=i,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new lf("",yd.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new lf("",yd.required),serialAdapters:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(q8))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),ka(6,G8,30,11,"mat-tab-group",5),Ta(),Ta(),Ta(),Ta(),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.onCancelClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.onSaveClick()}),Cs(11,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.name))},directives:[h1,s3,ih,f1,l2,Q1,z1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,P5,_f,L3,UJ],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}(),Y8=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function K8(e,t){if(1&e&&(Ma(0,"mat-option",23),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Q8(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ea(2,"br"),Ma(3,"form",10),Ma(4,"mat-form-field",11),Ma(5,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ta(),Ma(6,"mat-form-field",13),Ma(7,"mat-select",14),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(8,K8,2,2,"mat-option",15),Ta(),Ta(),Ma(9,"mat-checkbox",16),Na("ngModelChange",function(e){return ut(n),Ua().node.console_auto_start=e}),Cs(10," Auto start console "),Ta(),Ea(11,"br"),Ta(),Ma(12,"mat-tab",17),Ea(13,"br"),Ma(14,"form",10),Ma(15,"mat-form-field",11),Ma(16,"input",18),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.ram=e}),Ta(),Ma(17,"span",19),Cs(18,"MB"),Ta(),Ta(),Ma(19,"mat-form-field",11),Ma(20,"input",20),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.nvram=e}),Ta(),Ma(21,"span",19),Cs(22,"MB"),Ta(),Ta(),Ta(),Ta(),Ma(23,"mat-tab",21),Ma(24,"mat-form-field",11),Ma(25,"textarea",22),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.usage=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModel",r.node.console_auto_start),zi(5),xa("formGroup",r.memoryForm),zi(2),xa("ngModel",r.node.properties.ram),zi(4),xa("ngModel",r.node.properties.nvram),zi(5),xa("ngModel",r.node.properties.usage)}}var Z8=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.configurationService=i,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new lf("",yd.required)}),this.memoryForm=this.formBuilder.group({ram:new lf("",yd.required),nvram:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa(Y8))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),ka(6,Q8,26,9,"mat-tab-group",5),Ta(),Ta(),Ta(),Ta(),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.onCancelClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.onSaveClick()}),Cs(11,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.name))},directives:[h1,s3,ih,f1,l2,Q1,z1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,P5,_f,L3,UJ],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}(),$8=function(){function e(){}return e.prototype.getConsoleTypes=function(){return["telnet","vnc","http","https","none"]},e.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},e.prototype.getConsoleResolutions=function(){return["1920x1080","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function J8(e,t){if(1&e){var n=Aa();Ma(0,"div",5),Ma(1,"textarea",6),Na("ngModelChange",function(e){return ut(n),Ua().configuration=e}),Ta(),Ta()}if(2&e){var r=Ua();zi(1),xa("ngModel",r.configuration)}}var e7=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)(Sa(n1),Sa(I2),Sa(e3))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),ka(2,J8,2,1,"div",1),Ma(3,"div",2),Ma(4,"button",3),Na("click",function(){return t.onCancelClick()}),Cs(5,"Cancel"),Ta(),Ma(6,"button",4),Na("click",function(){return t.onSaveClick()}),Cs(7,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Edit network configuration for node ",t.node.name,""),zi(1),xa("ngIf",t.node))},directives:[h1,ih,f1,l2,Q3,fd,Fd,vf],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]}),e}(),t7=function(){var e=function(){function e(){Object(s.a)(this,e),this._vertical=!1,this._inset=!1}return Object(c.a)(e,[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=If(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=If(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(va("aria-orientation",t.vertical?"vertical":"horizontal"),cs("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}(),n7=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ],lJ]}),e}(),r7=["*"],i7='.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',o7=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],a7=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],s7=uJ(dJ(function e(){Object(s.a)(this,e)})),c7=dJ(function e(){Object(s.a)(this,e)}),l7=new Tn("MatList"),u7=new Tn("MatNavList"),h7=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments))._stateChanges=new k.b,e}return Object(c.a)(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(s7);return e.\u0275fac=function(t){return d7(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[Gs([{provide:u7,useExisting:e}]),ia,Fe],ngContentSelectors:r7,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),Ga(0))},styles:[i7],encapsulation:2,changeDetection:0}),e}(),d7=Cn(h7),f7=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this))._elementRef=e,r._stateChanges=new k.b,"action-list"===r._getListType()&&e.nativeElement.classList.add("mat-action-list"),r}return Object(c.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}(s7);return e.\u0275fac=function(t){return new(t||e)(Sa(ec))},e.\u0275cmp=be({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Gs([{provide:l7,useExisting:e}]),ia,Fe],ngContentSelectors:r7,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),Ga(0))},styles:[i7],encapsulation:2,changeDetection:0}),e}(),p7=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),m7=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),g7=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;Object(s.a)(this,n),(a=t.call(this))._element=e,a._isInteractiveList=!1,a._destroyed=new k.b,a._disabled=!1,a._isInteractiveList=!!(i||o&&"action-list"===o._getListType()),a._list=i||o;var c=a._getHostElement();return"button"!==c.nodeName.toLowerCase()||c.hasAttribute("type")||c.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(Object(fp.a)(a._destroyed)).subscribe(function(){r.markForCheck()}),a}return Object(c.a)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=If(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Object(pp.a)(e)).subscribe(function(e){var r=e.length;bJ(t,"".concat(n,"-2-line"),!1),bJ(t,"".concat(n,"-3-line"),!1),bJ(t,"".concat(n,"-multi-line"),!1),2===r||3===r?bJ(t,"".concat(n,"-").concat(r,"-line"),!0):r>3&&bJ(t,"".concat(n,"-multi-line"),!0)})}(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}}]),n}(c7);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(u7,8),Sa(l7,8))},e.\u0275cmp=be({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,p7,1),Sl(n,m7,1),Sl(n,vJ,1)),2&e&&(kl(r=xl())&&(t._avatar=r.first),kl(r=xl())&&(t._icon=r.first),kl(r=xl())&&(t._lines=r))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&cs("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:[ia],ngContentSelectors:a7,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&&(Wa(o7),Ma(0,"div",0),Ea(1,"div",1),Ga(2),Ma(3,"div",2),Ga(4,1),Ta(),Ga(5,2),Ta()),2&e&&(zi(1),xa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[EJ],encapsulation:2,changeDetection:0}),e}(),v7=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[yJ,PJ,lJ,IJ,vh],yJ,lJ,IJ,n7]}),e}();function b7(e,t){if(1&e&&(Ma(0,"mat-list-item"),Ma(1,"div",6),Ma(2,"span",7),Cs(3),Ta(),Ma(4,"span",7),Ma(5,"input",9),Na("ngModelChange",function(e){return t.$implicit.port_name=e}),Ta(),Ta(),Ta(),Ta()),2&e){var n=t.$implicit;zi(3),xs(" Adapter ",n.adapter_number," "),zi(2),xa("ngModel",n.port_name)}}function y7(e,t){if(1&e&&(Ma(0,"div",5),Ma(1,"div",6),Ma(2,"span",7),Cs(3," Adapter number "),Ta(),Ma(4,"span",7),Cs(5," Port name "),Ta(),Ta(),Ma(6,"div"),Ma(7,"mat-list"),ka(8,b7,6,2,"mat-list-item",8),Ta(),Ta(),Ta()),2&e){var n=Ua();zi(8),xa("ngForOf",n.adapters)}}var _7=function(){function e(e,t,n,r,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.dockerConfigurationService=i,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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa($8))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),ka(2,y7,9,1,"div",1),Ma(3,"div",2),Ma(4,"button",3),Na("click",function(){return t.onCancelClick()}),Cs(5,"Cancel"),Ta(),Ma(6,"button",4),Na("click",function(){return t.onSaveClick()}),Cs(7,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configure custom adapters for node ",t.node.name,""),zi(1),xa("ngIf",t.node))},directives:[h1,ih,f1,l2,f7,nh,g7,Q3,fd,Fd,vf],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 w7(e,t){if(1&e&&(Ma(0,"mat-option",26),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function k7(e,t){if(1&e&&(Ma(0,"mat-option",26),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var C7=function(){return{standalone:!0}};function S7(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ea(2,"br"),Ma(3,"form",10),Ma(4,"mat-form-field",11),Ma(5,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().node.name=e}),Ta(),Ta(),Ma(6,"mat-form-field",11),Ma(7,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.start_command=e}),Ta(),Ta(),Ma(8,"mat-form-field",11),Ma(9,"input",14),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.adapters=e}),Ta(),Ta(),Ma(10,"button",15),Na("click",function(){return ut(n),Ua().configureCustomAdapters()}),Cs(11," Configure custom adapters "),Ta(),Ma(12,"mat-form-field",16),Ma(13,"mat-select",17),Na("ngModelChange",function(e){return ut(n),Ua().node.console_type=e}),ka(14,w7,2,2,"mat-option",18),Ta(),Ta(),Ma(15,"mat-checkbox",19),Na("ngModelChange",function(e){return ut(n),Ua().node.console_auto_start=e}),Cs(16," Auto start console "),Ta(),Ma(17,"mat-form-field",11),Ma(18,"mat-select",20),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.console_resolution=e}),ka(19,k7,2,2,"mat-option",18),Ta(),Ta(),Ma(20,"mat-form-field",11),Ma(21,"input",21),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.console_http_port=e}),Ta(),Ta(),Ma(22,"mat-form-field",11),Ma(23,"input",22),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.console_http_path=e}),Ta(),Ta(),Ma(24,"button",15),Na("click",function(){return ut(n),Ua().editNetworkConfiguration()}),Cs(25," Edit network configuration "),Ta(),Ta(),Ma(26,"h6"),Cs(27,"Environment"),Ta(),Ma(28,"mat-form-field",11),Ma(29,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.environment=e}),Ta(),Ta(),Ta(),Ma(30,"mat-tab",24),Ma(31,"h6"),Cs(32,"Extra hosts"),Ta(),Ma(33,"mat-form-field",11),Ma(34,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.extra_hosts=e}),Ta(),Ta(),Ea(35,"br"),Ma(36,"h6"),Cs(37,"Additional directories"),Ta(),Ma(38,"mat-form-field",11),Ma(39,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.extra_volumes=e}),Ta(),Ta(),Ta(),Ma(40,"mat-tab",25),Ma(41,"mat-form-field",11),Ma(42,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().node.properties.usage=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.node.name),zi(2),xa("ngModel",r.node.properties.start_command),zi(2),xa("ngModel",r.node.properties.adapters),zi(4),xa("ngModelOptions",Jc(18,C7))("ngModel",r.node.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModelOptions",Jc(19,C7))("ngModel",r.node.console_auto_start),zi(3),xa("ngModelOptions",Jc(20,C7))("ngModel",r.node.properties.console_resolution),zi(1),xa("ngForOf",r.consoleResolutions),zi(2),xa("ngModel",r.node.properties.console_http_port),zi(2),xa("ngModel",r.node.properties.console_http_path),zi(6),xa("ngModel",r.node.properties.environment),zi(5),xa("ngModel",r.node.properties.extra_hosts),zi(5),xa("ngModel",r.node.properties.extra_volumes),zi(3),xa("ngModel",r.node.properties.usage)}}var x7=function(){function e(e,t,n,r,i,o){this.dialogReference=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.dockerConfigurationService=i,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 lf("",yd.required),adapter:new lf("",yd.required),startCommand:new lf("",yd.required),consoleHttpPort:new lf("",yd.required),consoleHttpPath:new lf("",yd.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(_7,this.conf);var e=this.dialogRef.componentInstance;e.server=this.server,e.node=this.node},e.prototype.editNetworkConfiguration=function(){this.dialogRef=this.dialog.open(e7,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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf),Sa($8),Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),ka(6,S7,43,21,"mat-tab-group",5),Ta(),Ta(),Ta(),Ta(),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.onCancelClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.onSaveClick()}),Cs(11,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("ngIf",t.name))},directives:[h1,s3,ih,f1,l2,Q1,z1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,_f,v5,vf,nh,P5,UJ],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}(),O7=function(){function e(e,t,n,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.generalSettingsForm=this.formBuilder.group({name:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),Ma(6,"form",5),Ma(7,"mat-form-field",6),Ma(8,"input",7),Na("ngModelChange",function(e){return t.node.name=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(9,"div",8),Ma(10,"button",9),Na("click",function(){return t.onCancelClick()}),Cs(11,"Cancel"),Ta(),Ma(12,"button",10),Na("click",function(){return t.onSaveClick()}),Cs(13,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("formGroup",t.generalSettingsForm),zi(2),xa("ngModel",t.node.name))},directives:[h1,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,f1,l2],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}(),M7=function(){function e(e,t,n,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.generalSettingsForm=this.formBuilder.group({name:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),Ma(6,"form",5),Ma(7,"mat-form-field",6),Ma(8,"input",7),Na("ngModelChange",function(e){return t.node.name=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(9,"div",8),Ma(10,"button",9),Na("click",function(){return t.onCancelClick()}),Cs(11,"Cancel"),Ta(),Ma(12,"button",10),Na("click",function(){return t.onSaveClick()}),Cs(13,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configurator for node ",t.name,""),zi(5),xa("formGroup",t.generalSettingsForm),zi(2),xa("ngModel",t.node.name))},directives:[h1,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,f1,l2],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}(),T7=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(R5,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(N5,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(F4,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(O8,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(Z8,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(X8,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(r8,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(f6,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(U8,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(x7,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(O7,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(Y4,this.conf):"atm_switch"===this.node.node_type?this.dialogRef=this.dialog.open(L8,this.conf):"traceng"===this.node.node_type&&(this.dialogRef=this.dialog.open(M7,this.conf));var e=this.dialogRef.componentInstance;e.server=this.server,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.configureNode()}),Ma(1,"mat-icon"),Cs(2,"settings_applications"),Ta(),Ma(3,"span"),Cs(4,"Configure"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}();function E7(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().startNodes()}),Ma(1,"mat-icon"),Cs(2,"play_arrow"),Ta(),Ma(3,"span"),Cs(4,"Start"),Ta(),Ta()}}var P7=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)(Sa(I2),Sa(e3))},e.\u0275cmp=be({type:e,selectors:[["app-start-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[Fe],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ka(0,E7,5,0,"button",0),2&e&&xa("ngIf",t.isNodeWithStoppedStatus)},directives:[ih,R0,T2],encapsulation:2}),e}();function j7(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().suspendNodes()}),Ma(1,"mat-icon"),Cs(2,"pause"),Ta(),Ma(3,"span"),Cs(4,"Suspend"),Ta(),Ta()}}var I7=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)(Sa(I2))},e.\u0275cmp=be({type:e,selectors:[["app-suspend-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[Fe],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ka(0,j7,5,0,"button",0),2&e&&xa("ngIf",t.isNodeWithStartedStatus)},directives:[ih,R0,T2],encapsulation:2}),e}();function A7(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().stopNodes()}),Ma(1,"mat-icon"),Cs(2,"stop"),Ta(),Ma(3,"span"),Cs(4,"Stop"),Ta(),Ta()}}var D7=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)(Sa(I2))},e.\u0275cmp=be({type:e,selectors:[["app-stop-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[Fe],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ka(0,A7,5,0,"button",0),2&e&&xa("ngIf",t.isNodeWithStartedStatus)},directives:[ih,R0,T2],encapsulation:2}),e}();function R7(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().reloadNodes()}),Ma(1,"mat-icon"),Cs(2,"refresh"),Ta(),Ma(3,"span"),Cs(4,"Reload"),Ta(),Ta()}}var L7=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)(Sa(I2))},e.\u0275cmp=be({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&&ka(0,R7,5,0,"button",0),2&e&&xa("ngIf",t.filteredNodes.length>0)},directives:[ih,R0,T2],encapsulation:2}),e}(),N7=function(){function e(){this.nodeConsoleTrigger=new ul,this.closeNodeConsoleTrigger=new k.b,this.consoleResized=new k.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),F7=function(){function e(){this.isScrollDisabled=new k.b,this.isMapLocked=new k.b,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new k.b,this.mapRenderedEmitter=new ul,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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),B7=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)(Sa(N7),Sa(e3),Sa(F7))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.openConsole()}),Ma(1,"mat-icon"),Cs(2,"http"),Ta(),Ma(3,"span"),Cs(4,"Web console"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),z7=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)(Sa(e3),Sa(uZ))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.openConsole()}),Ma(1,"mat-icon"),Cs(2,"http"),Ta(),Ma(3,"span"),Cs(4,"Web console in new tab"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),H7=function(){function e(e,t,n,r,i){this.electronService=e,this.serverService=t,this.settingsService=n,this.toasterService=r,this.nodeService=i}return e.prototype.ngOnInit=function(){},e.prototype.console=function(){return qZ(this,void 0,void 0,function(){var e,t,n,r,i;return WZ(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"!==(r=n[t]).status?[3,3]:(i={command:e,type:r.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.openConsole(i)]):[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 qZ(this,void 0,void 0,function(){return WZ(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)(Sa(lY),Sa(ZZ),Sa($Z),Sa(e3),Sa(I2))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.console()}),Ma(1,"mat-icon"),Cs(2,"web_asset"),Ta(),Ma(3,"span"),Cs(4,"Console"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),V7=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(){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else if("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||"vnc"===this.node.console_type||"spice"===this.node.console_type)try{location.assign("gns3+"+this.node.console_type+"://"+this.node.console_host+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id)}catch(e){this.toasterService.error(e)}else this.toasterService.error("Supported console types: telnet, vnc, spice.")},e.\u0275fac=function(t){return new(t||e)(Sa(e3),Sa(I2))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.openConsole()}),Ma(1,"mat-icon"),Cs(2,"web_asset"),Ta(),Ma(3,"span"),Cs(4,"Console"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),U7=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)(Sa(lY))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.open()}),Ma(1,"mat-icon"),Cs(2,"tab"),Ta(),Ma(3,"span"),Cs(4,"Open file explorer"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),q7=function(){function e(e,t,n,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=r,this.inputForm=this.formBuilder.group({name:new lf("",yd.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)(Sa(n1),Sa(I2),Sa(e3),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div",3),Ma(5,"mat-card",4),Ma(6,"form",5),Ma(7,"mat-form-field",6),Ma(8,"input",7),Na("ngModelChange",function(e){return t.node.name=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(9,"div",8),Ma(10,"button",9),Na("click",function(){return t.onCancelClick()}),Cs(11,"Cancel"),Ta(),Ma(12,"button",10),Na("click",function(){return t.onSaveClick()}),Cs(13,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Change hostname for node ",t.name,""),zi(5),xa("formGroup",t.inputForm),zi(2),xa("ngModel",t.node.name))},directives:[h1,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,f1,l2],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),W7=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.changeHostname=function(){var e=this.dialog.open(q7,{autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.changeHostname()}),Ma(1,"mat-icon"),Cs(2,"edit"),Ta(),Ma(3,"span"),Cs(4,"Change hostname"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),G7=function(){function e(e){this.httpServer=e,this.symbols=new kp.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(vp.a)(1))),this.cache},e.prototype.raw=function(e,t){var n=encodeURI(t);return this.httpServer.getText(e,"/symbols/"+n+"/raw")},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),X7=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}(),Y7=function(e){return{buttonSelected:e}},K7=function(e){return{imageSelected:e}};function Q7(e,t){if(1&e){var n=Aa();Ma(0,"div",12),Ma(1,"button",13),Na("click",function(){ut(n);var e=t.$implicit;return Ua().setSelected(e.symbol_id)}),Ea(2,"img",14),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ua();zi(1),xa("ngClass",el(3,Y7,i.isSelected===r.symbol_id)),zi(1),xa("ngClass",el(5,K7,i.isSelected===r.symbol_id))("src",i.getImageSourceForTemplate(r.symbol_id),Br)}}var Z7=function(){return{standalone:!0}},$7=function(){function e(e){this.symbolService=e,this.symbolChanged=new ul,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],r=e.files[0].name,i=new FileReader,o=new Image;i.onloadend=function(){var e=t.createSvgFileForImage(i.result,o);t.symbolService.add(t.server,r,e).subscribe(function(){t.loadSymbols()})},o.onload=function(){i.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 this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+e+"/raw"},e.\u0275fac=function(t){return new(t||e)(Sa(G7))},e.\u0275cmp=be({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"],["lazyimg","",1,"image",3,"ngClass","src"]],template:function(e,t){if(1&e){var n=Aa();Ma(0,"div",0),Ma(1,"mat-radio-group",1),Ma(2,"mat-radio-button",2),Na("click",function(){return t.setFilter("all")}),Cs(3,"All symbols"),Ta(),Ma(4,"mat-radio-button",3),Na("click",function(){return t.setFilter("builtin")}),Cs(5,"Built-in symbols"),Ta(),Ma(6,"mat-radio-button",4),Na("click",function(){return t.setFilter("custom")}),Cs(7,"Custom symbols"),Ta(),Ta(),Ma(8,"input",5,6),Na("change",function(e){return t.uploadSymbolFile(e)}),Ta(),Ma(10,"button",7),Na("click",function(){return ut(n),Ca(9).click()}),Ma(11,"mat-icon"),Cs(12,"add"),Ta(),Cs(13," Add symbol "),Ta(),Ta(),Ma(14,"form"),Ma(15,"mat-form-field",8),Ma(16,"input",9),Na("ngModelChange",function(e){return t.searchText=e}),Ta(),Ta(),Ta(),Ma(17,"div",10),ka(18,Q7,3,7,"div",11),ol(19,"filenamefilter"),Ta()}2&e&&(zi(16),xa("ngModel",t.searchText)("ngModelOptions",Jc(6,Z7)),zi(2),xa("ngForOf",sl(19,3,t.filteredSymbols,t.searchText)))},directives:[x6,E6,l2,T2,bf,Bd,pf,H3,Q3,fd,Fd,vf,nh,eh],pipes:[X7],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}(),J7=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)(Sa(n1),Sa(I2))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"app-symbols",3),Na("symbolChanged",function(e){return t.symbolChanged(e)}),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"button",5),Na("click",function(){return t.onCloseClick()}),Cs(7,"Cancel"),Ta(),Ma(8,"button",6),Na("click",function(){return t.onSelectClick()}),Cs(9,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Change symbol for node: ",t.node.name,""),zi(3),xa("server",t.server)("symbol",t.symbol))},directives:[h1,$7,f1,l2],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}(),e9=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.changeSymbol=function(){var e=this.dialog.open(J7,{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)(Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.changeSymbol()}),Ma(1,"mat-icon"),Cs(2,"find_replace"),Ta(),Ma(3,"span"),Cs(4,"Change symbol"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),t9=function(){function e(){}return e.prototype.convert=function(e){var t=new G0;t.text=e.textContent;var n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var r=e.attributes.getNamedItem("fill-opacity");r&&(t.fill_opacity=parseFloat(r.value));var i=e.attributes.getNamedItem("font-family");i&&(t.font_family=i.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}(),n9=function(){return function(){}}(),r9=function(){function e(){}return e.prototype.convert=function(e){var t=new n9,n=e.attributes.getNamedItem("xlink:href");n&&(t.data=n.value);var r=e.attributes.getNamedItem("width");r&&(t.width=parseInt(r.value,10));var i=e.attributes.getNamedItem("height");return i&&(t.height=parseInt(i.value,10)),t},e}(),i9=function(){return function(){}}(),o9=function(){function e(){}return e.prototype.convert=function(e){var t=new i9,n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var r=e.attributes.getNamedItem("fill-opacity");n&&(t.fill_opacity=parseFloat(r.value));var i=e.attributes.getNamedItem("stroke");i&&(t.stroke=i.value);var o=e.attributes.getNamedItem("stroke-width");i&&(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}(),a9=function(){return function(){}}(),s9=function(){function e(){}return e.prototype.convert=function(e){var t=new a9,n=e.attributes.getNamedItem("stroke");n&&(t.stroke=n.value);var r=e.attributes.getNamedItem("stroke-width");n&&(t.stroke_width=parseInt(r.value,10));var i=e.attributes.getNamedItem("stroke-dasharray");i&&(t.stroke_dasharray=i.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}(),c9=function(){return function(){}}(),l9=function(){function e(){}return e.prototype.convert=function(e){var t=new c9,n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var r=e.attributes.getNamedItem("fill-opacity");n&&(t.fill_opacity=parseFloat(r.value));var i=e.attributes.getNamedItem("stroke");i&&(t.stroke=i.value);var o=e.attributes.getNamedItem("stroke-width");i&&(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}(),u9=function(){function e(){this.parser=new DOMParser,this.elementParsers={text:new t9,image:new r9,rect:new o9,line:new s9,ellipse:new l9}}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],r=null,i=null;for(var o in n.children){var a=(i=n.children[o]).nodeName;if(a in this.elementParsers){r=this.elementParsers[a];break}}if(null===r)throw new Error("Cannot find parser for '"+e+"'");var s=r.convert(i);return s.width=+n.getAttribute("width"),s.height=+n.getAttribute("height"),s},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),h9=function(){function e(e,t){this.httpServer=e,this.svgToDrawingConverter=t}return e.prototype.add=function(e,t,n,r,i){return this.httpServer.post(e,"/projects/"+t+"/drawings",{svg:i,x:Math.round(n),y:Math.round(r),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,r,i){var o=Math.round(r),a=Math.round(i);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,r,i){return this.httpServer.put(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:i,x:Math.round(n),y:Math.round(r)})},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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ),Gn(u9))}}),e}(),d9=function(){function e(){this.data=[],this.dataChange=new kp.a([]),this.itemUpdated=new k.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 r=Object.assign(t.data[n],e);t.data[n]=r}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}(),f9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.prototype.getItemKey=function(e){return e.node_id},t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return p9(e||t)}}),t}(d9),p9=Cn(f9),m9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.prototype.getItemKey=function(e){return e.drawing_id},t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return g9(e||t)}}),t}(d9),g9=Cn(m9),v9=function(){function e(e,t,n,r,i){this.nodeService=e,this.nodesDataSource=t,this.drawingService=n,this.drawingsDataSource=r,this.toasterService=i}return e.prototype.duplicate=function(){for(var e=this,t="",n=0,r=this.nodes;n<r.length;n++){var i=r[n];"stopped"===i.status?this.nodeService.duplicate(this.server,i).subscribe(function(t){e.nodesDataSource.add(t)}):t+=i.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)(Sa(I2),Sa(f9),Sa(h9),Sa(m9),Sa(e3))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.duplicate()}),Ma(1,"mat-icon"),Cs(2,"filter_none"),Ta(),Ma(3,"span"),Cs(4,"Duplicate"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),b9=function(){return function(){}}(),y9=function(){return function(){}}(),_9=function(){function e(){}return e.prototype.convert=function(e){var t=new y9;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),w9=function(){function e(){}return e.prototype.convert=function(e){var t="";if(e.element instanceof i9)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 c9)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 a9)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 G0))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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),k9=function(){function e(){}return e.prototype.get=function(e){return+e.value>=0?null:{negativeValue:!0}},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),C9=function(){function e(){}return e.prototype.get=function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),S9=function(){return{standalone:!0}};function x9(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",3),Ma(1,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().element.stroke_dasharray=e}),Ta(),Ta()}if(2&e){var r=Ua();zi(1),xa("ngModelOptions",Jc(2,S9))("ngModel",r.element.stroke_dasharray)}}var O9=function(){function e(e,t,n,r,i,o,a,s,c){this.dialogRef=e,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=n,this.drawingService=r,this.drawingsDataSource=i,this.formBuilder=o,this.toasterService=a,this.nonNegativeValidator=s,this.rotationValidator=c,this.formGroup=this.formBuilder.group({borderWidth:new lf("",[yd.required,s.get]),rotation:new lf("",[yd.required,c.get])})}return e.prototype.ngOnInit=function(){this.element=new M9,this.drawing.element instanceof i9||this.drawing.element instanceof c9?(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 a9&&(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 i9||this.drawing.element instanceof c9?(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 a9&&(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)(Sa(n1),Sa(_9),Sa(w9),Sa(h9),Sa(m9),Sa(jf),Sa(e3),Sa(k9),Sa(C9))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Style editor"),Ta(),Ma(2,"div",1),Ma(3,"form",2),Ma(4,"mat-form-field",3),Ma(5,"input",4),Na("ngModelChange",function(e){return t.element.fill=e}),Ta(),Ta(),Ma(6,"mat-form-field",3),Ma(7,"input",5),Na("ngModelChange",function(e){return t.element.stroke=e}),Ta(),Ta(),Ma(8,"mat-form-field",3),Ea(9,"input",6),Ta(),ka(10,x9,2,3,"mat-form-field",7),Ma(11,"mat-form-field",3),Ea(12,"input",8),Ta(),Ta(),Ta(),Ma(13,"div",9),Ma(14,"button",10),Na("click",function(){return t.onNoClick()}),Cs(15,"Cancel"),Ta(),Ma(16,"button",11),Na("click",function(){return t.onYesClick()}),Cs(17,"Apply"),Ta(),Ta()),2&e&&(zi(3),xa("formGroup",t.formGroup),zi(2),xa("ngModelOptions",Jc(6,S9))("ngModel",t.element.fill),zi(2),xa("ngModelOptions",Jc(7,S9))("ngModel",t.element.stroke),zi(3),xa("ngIf",t.element.stroke_dasharray))},directives:[h1,bf,Bd,Sf,H3,Q3,fd,Fd,vf,_f,Of,ih,f1,l2],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}(),M9=function(){return function(){}}();function T9(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().editStyle()}),Ma(1,"mat-icon"),Cs(2,"style"),Ta(),Ma(3,"span"),Cs(4,"Edit style"),Ta(),Ta()}}var E9=function(){function e(e){this.dialog=e,this.isImageDrawing=!1}return e.prototype.ngOnChanges=function(){this.isImageDrawing=this.drawing.element instanceof n9},e.prototype.editStyle=function(){var e=this.dialog.open(O9,{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)(Sa(l1))},e.\u0275cmp=be({type:e,selectors:[["app-edit-style-action"]],inputs:{server:"server",project:"project",drawing:"drawing"},features:[Fe],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&ka(0,T9,5,0,"button",0),2&e&&xa("ngIf",!t.isImageDrawing)},directives:[ih,R0,T2],encapsulation:2}),e}(),P9=function(){function e(e){this.httpServer=e}return e.prototype.createLink=function(e,t,n,r,i,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:r.node_id,port_number:i.port_number,adapter_number:i.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:i.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 r=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:r})},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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),j9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.prototype.getItemKey=function(e){return e.link_id},t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return I9(e||t)}}),t}(d9),I9=Cn(j9),A9=n("zahk"),D9=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=A9.parse(e,{context:"declarationList"}),n=null,r=null,i=!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,i=!1)}),"font-size"===e.property&&e.value&&e.value.children&&e.value.children.forEach(function(e){"Dimension"===e.type&&(r=e)})}),r&&n){var o=r.value,a=this.fix({font_family:(i?n.name:n.value).split('"').join(""),font_size:parseInt(o,10)});i?n.name=a.font_family:n.value=a.font_family,r.value=a.font_size}return A9.generate(t)},e.DEFAULT_FONT="TypeWriter",e.DEFAULT_SIZE=10,e.REPLACE_BY_FONT="Noto Sans",e.REPLACE_BY_SIZE=11,e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),R9=["textArea"],L9=function(){function e(e,t,n,r,i,o,a,s,c,l,u,h,d,f){this.dialogRef=e,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=n,this.drawingService=r,this.drawingsDataSource=i,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 lf("",[yd.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 G0,n=0,r=this.label.style.split(";");n<r.length;n++){var i=r[n];e.push({property:i.split(": ")[0],value:i.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)(Sa(n1),Sa(_9),Sa(w9),Sa(h9),Sa(m9),Sa(rc),Sa(I2),Sa(f9),Sa(P9),Sa(j9),Sa(jf),Sa(e3),Sa(C9),Sa(D9))},e.\u0275cmp=be({type:e,selectors:[["app-text-editor"]],viewQuery:function(e,t){var n;1&e&&Cl(R9,3),2&e&&kl(n=xl())&&(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&&(Ma(0,"h1",0),Cs(1,"Text editor"),Ta(),Ma(2,"div",1),Ma(3,"mat-form-field",2),Ma(4,"input",3),Na("ngModelChange",function(e){return t.changeTextColor(e)})("ngModelChange",function(e){return t.element.fill=e}),Ta(),Ta(),Ma(5,"form",4),Ma(6,"mat-form-field",2),Ea(7,"input",5),Ta(),Ta(),Ma(8,"textarea",6,7),Na("ngModelChange",function(e){return t.element.text=e}),Ta(),Ta(),Ma(10,"div",8),Ma(11,"button",9),Na("click",function(){return t.onNoClick()}),Cs(12,"Cancel"),Ta(),Ma(13,"button",10),Na("click",function(){return t.onYesClick()}),Cs(14,"Apply"),Ta(),Ta()),2&e&&(zi(4),xa("ngModel",t.element.fill),zi(1),xa("formGroup",t.formGroup),zi(3),xa("ngModel",t.element.text)("readonly",!t.isTextEditable))},directives:[h1,H3,Q3,fd,Fd,vf,bf,Bd,Sf,Of,f1,l2],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}(),N9=function(){return function(){}}(),F9=function(){return function(){}}(),B9=function(){return function(){}}(),z9=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.editText=function(){var e=this.dialog.open(L9,{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)(Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.editText()}),Ma(1,"mat-icon"),Cs(2,"text_format"),Ta(),Ma(3,"span"),Cs(4,"Edit text"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}();function H9(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"textarea",7,8),Na("ngModelChange",function(e){return ut(n),Ua().config=e}),Ta(),Ta()}if(2&e){var r=Ua();zi(1),xa("ngModel",r.config)}}function V9(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ma(2,"textarea",10,8),Na("ngModelChange",function(e){return ut(n),Ua().config=e}),Ta(),Ta(),Ma(4,"mat-tab",11),Ma(5,"textarea",10,8),Na("ngModelChange",function(e){return ut(n),Ua().privateConfig=e}),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("ngModel",r.config),zi(3),xa("ngModel",r.privateConfig)}}var U9=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)(Sa(n1),Sa(I2),Sa(e3))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),ka(2,H9,3,1,"div",1),ka(3,V9,7,2,"mat-tab-group",2),Ma(4,"div",3),Ma(5,"button",4),Na("click",function(){return t.onCancelClick()}),Cs(6,"Cancel"),Ta(),Ma(7,"button",5),Na("click",function(){return t.onSaveClick()}),Cs(8,"Apply"),Ta(),Ta()),2&e&&(zi(1),xs("Configuration for node ",t.node.name,""),zi(1),xa("ngIf","vpcs"===t.node.node_type),zi(1),xa("ngIf","iou"===t.node.node_type||"dynamips"===t.node.node_type))},directives:[h1,ih,f1,l2,fd,Fd,vf,Q1,z1],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]}),e}();function q9(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().editConfig()}),Ma(1,"mat-icon"),Cs(2,"settings"),Ta(),Ma(3,"span"),Cs(4,"Edit config"),Ta(),Ta()}}var W9=function(){function e(e){this.dialog=e}return e.prototype.editConfig=function(){var e=this.dialog.open(U9,{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)(Sa(l1))},e.\u0275cmp=be({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&&ka(0,q9,5,0,"button",0),2&e&&xa("ngIf","vpcs"===t.node.node_type||"iou"===t.node.node_type||"dynamips"===t.node.node_type)},directives:[ih,R0,T2],encapsulation:2}),e}(),G9=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)(Sa(n1))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Choose configuration file"),Ta(),Ma(2,"div",1),Ma(3,"div",2),Ma(4,"div"),Ma(5,"button",3),Na("click",function(){return t.close("startup-config")}),Cs(6," startup configuration "),Ta(),Ta(),Ma(7,"div"),Ma(8,"button",3),Na("click",function(){return t.close("private-config")}),Cs(9," private configuration "),Ta(),Ta(),Ta(),Ta())},directives:[h1,l2],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]}),e}();function X9(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().exportConfig()}),Ma(1,"mat-icon"),Cs(2,"call_made"),Ta(),Ma(3,"span"),Cs(4,"Export config"),Ta(),Ta()}}var Y9=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(G9,{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)(Sa(I2),Sa(l1))},e.\u0275cmp=be({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&&ka(0,X9,5,0,"button",0),2&e&&xa("ngIf","vpcs"===t.node.node_type||"dynamips"===t.node.node_type||"iou"===t.node.node_type)},directives:[ih,R0,T2],encapsulation:2}),e}(),K9=["fileInput"],Q9=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(G9,{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],r=new FileReader;r.onload=function(e){var n=r.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.")})},r.readAsText(n)},e.\u0275fac=function(t){return new(t||e)(Sa(I2),Sa(e3),Sa(l1))},e.\u0275cmp=be({type:e,selectors:[["app-import-config-action"]],viewQuery:function(e,t){var n;1&e&&Cl(K9,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"input",0,1),Na("change",function(e){return t.importConfig(e)}),Ta(),Ma(2,"button",2),Na("click",function(){return t.triggerClick()}),Ma(3,"mat-icon"),Cs(4,"call_received"),Ta(),Ma(5,"span"),Cs(6,"Import config"),Ta(),Ta())},directives:[R0,T2],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]}),e}(),Z9=function(){function e(e,t,n,r){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=r}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)(Sa(f9),Sa(m9),Sa(I2),Sa(h9))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.moveLayerUp()}),Ma(1,"mat-icon"),Cs(2,"keyboard_arrow_up"),Ta(),Ma(3,"span"),Cs(4,"Move layer up"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),$9=function(){function e(e,t,n,r){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=r}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)(Sa(f9),Sa(m9),Sa(I2),Sa(h9))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.moveLayerDown()}),Ma(1,"mat-icon"),Cs(2,"keyboard_arrow_down"),Ta(),Ma(3,"span"),Cs(4,"Move layer down"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),J9=function(){function e(e,t,n,r){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=r}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})),r=Math.max(t,n);r<100&&r++,this.nodes.forEach(function(t){t.z=r,e.nodesDataSource.update(t),e.nodeService.update(e.server,t).subscribe(function(e){})}),this.drawings.forEach(function(t){t.z=r,e.drawingsDataSource.update(t),e.drawingService.update(e.server,t).subscribe(function(e){})})},e.\u0275fac=function(t){return new(t||e)(Sa(f9),Sa(m9),Sa(I2),Sa(h9))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.bringToFront()}),Ma(1,"mat-icon"),Cs(2,"vertical_align_top"),Ta(),Ma(3,"span"),Cs(4,"Bring to front"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),eee=function(){function e(){}return e.prototype.startCapture=function(e,t,n,r){location.assign("gns3+pcap://"+e.host+":"+e.port+"?project_id="+t.project_id+"&link_id="+n.link_id+"&name="+r)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function tee(e,t){if(1&e&&(Ma(0,"mat-option",11),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}var nee=function(){return{standalone:!0}},ree=function(){function e(e,t,n,r,i,o){this.dialogRef=e,this.linkService=t,this.formBuilder=n,this.toasterService=r,this.nodesDataSource=i,this.packetCaptureService=o,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new lf("",yd.required),fileName:new lf("",yd.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)(Sa(n1),Sa(P9),Sa(jf),Sa(e3),Sa(f9),Sa(eee))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Packet capture"),Ta(),Ma(2,"div",1),Ma(3,"form",2),Ma(4,"mat-form-field",3),Ma(5,"mat-select",4),ka(6,tee,2,2,"mat-option",5),Ta(),Ta(),Ma(7,"mat-form-field",3),Ea(8,"input",6),Ta(),Ma(9,"mat-checkbox",7),Na("ngModelChange",function(e){return t.startProgram=e}),Cs(10," Start the capture visualization program "),Ta(),Ta(),Ta(),Ma(11,"div",8),Ma(12,"button",9),Na("click",function(){return t.onNoClick()}),Cs(13,"Cancel"),Ta(),Ma(14,"button",10),Na("click",function(){return t.onYesClick()}),Cs(15,"Ok"),Ta(),Ta()),2&e&&(zi(3),xa("formGroup",t.inputForm),zi(3),xa("ngForOf",t.linkTypes),zi(3),xa("ngModelOptions",Jc(4,nee))("ngModel",t.startProgram))},directives:[h1,bf,Bd,Sf,H3,v5,Fd,Of,fd,nh,Q3,P5,vf,f1,l2,UJ],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function iee(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().startCapture()}),Ma(1,"mat-icon"),Cs(2,"loupe"),Ta(),Ma(3,"span"),Cs(4,"Start capture"),Ta(),Ta()}}var oee=function(){function e(e){this.dialog=e}return e.prototype.startCapture=function(){var e=this.dialog.open(ree,{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)(Sa(l1))},e.\u0275cmp=be({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&&ka(0,iee,5,0,"button",0),2&e&&xa("ngIf",!t.link.capturing)},directives:[ih,R0,T2],encapsulation:2}),e}();function aee(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().stopCapture()}),Ma(1,"mat-icon"),Cs(2,"pause_circle_filled"),Ta(),Ma(3,"span"),Cs(4,"Stop capture"),Ta(),Ta()}}var see=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)(Sa(P9))},e.\u0275cmp=be({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&&ka(0,aee,5,0,"button",0),2&e&&xa("ngIf",t.link.capturing)},directives:[ih,R0,T2],encapsulation:2}),e}();function cee(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().startCapture()}),Ma(1,"mat-icon"),Cs(2,"search"),Ta(),Ma(3,"span"),Cs(4,"Start Wireshark"),Ta(),Ta()}}var lee=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)(Sa(eee))},e.\u0275cmp=be({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&&ka(0,cee,5,0,"button",0),2&e&&xa("ngIf",t.link.capturing)},directives:[ih,R0,T2],encapsulation:2}),e}();function uee(e,t){if(1&e&&(Ma(0,"div",5),Ma(1,"h6"),Cs(2),Ta(),Ma(3,"span",6),Cs(4),Ta(),Ta()),2&e){var n=t.$implicit;zi(2),xs(" ",n.name," "),zi(2),xs(" ",n.description," ")}}var hee=function(){function e(e){this.dialogRef=e}return e.prototype.onCloseClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(Sa(n1))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1),Ta(),Ma(2,"div",1),ka(3,uee,5,2,"div",2),Ta(),Ma(4,"div",3),Ma(5,"button",4),Na("click",function(){return t.onCloseClick()}),Cs(6,"Close"),Ta(),Ta()),2&e&&(zi(1),Ss(t.title),zi(2),xa("ngForOf",t.messages))},directives:[h1,nh,f1,l2],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]}),e}();function dee(e,t){if(1&e){var n=Aa();Ma(0,"mat-tab-group"),Ma(1,"mat-tab",9),Ma(2,"mat-form-field",10),Ma(3,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().filters.frequency_drop[0]=e}),Ta(),Ta(),Ta(),Ma(4,"mat-tab",12),Ma(5,"mat-form-field",10),Ma(6,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().filters.packet_loss[0]=e}),Ta(),Ta(),Ta(),Ma(7,"mat-tab",14),Ma(8,"mat-form-field",10),Ma(9,"input",15),Na("ngModelChange",function(e){return ut(n),Ua().filters.delay[0]=e}),Ta(),Ta(),Ma(10,"mat-form-field",10),Ma(11,"input",16),Na("ngModelChange",function(e){return ut(n),Ua().filters.delay[1]=e}),Ta(),Ta(),Ta(),Ma(12,"mat-tab",17),Ma(13,"mat-form-field",10),Ma(14,"input",15),Na("ngModelChange",function(e){return ut(n),Ua().filters.corrupt[0]=e}),Ta(),Ta(),Ta(),Ma(15,"mat-tab",18),Ma(16,"mat-form-field",10),Ma(17,"textarea",19),Na("ngModelChange",function(e){return ut(n),Ua().filters.bpf[0]=e}),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(3),xa("ngModel",r.filters.frequency_drop[0]),zi(3),xa("ngModel",r.filters.packet_loss[0]),zi(3),xa("ngModel",r.filters.delay[0]),zi(2),xa("ngModel",r.filters.delay[1]),zi(3),xa("ngModel",r.filters.corrupt[0]),zi(3),xa("ngModel",r.filters.bpf[0])}}var fee=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(hee,{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)(Sa(n1),Sa(P9),Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Packet filters"),Ta(),Ma(2,"div",1),ka(3,dee,18,6,"mat-tab-group",2),Ta(),Ma(4,"div",3),Ea(5,"div",4),Ma(6,"div",5),Ma(7,"button",6),Na("click",function(){return t.onNoClick()}),Cs(8,"Cancel"),Ta(),Ma(9,"button",6),Na("click",function(){return t.onResetClick()}),Cs(10,"Reset"),Ta(),Ma(11,"button",7),Na("click",function(){return t.onYesClick()}),Cs(12,"Apply"),Ta(),Ea(13,"div",8),Ma(14,"button",6),Na("click",function(){return t.onHelpClick()}),Cs(15,"Help"),Ta(),Ta(),Ta()),2&e&&(zi(3),xa("ngIf",t.filters))},directives:[h1,ih,f1,l2,Q1,z1,H3,Q3,_f,fd,Fd,vf],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}(),pee=function(){function e(e){this.dialog=e}return e.prototype.openPacketFilters=function(){var e=this.dialog.open(fee,{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)(Sa(l1))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.openPacketFilters()}),Ma(1,"mat-icon"),Cs(2,"filter_list"),Ta(),Ma(3,"span"),Cs(4,"Packet filters"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}();function mee(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().resumeLink()}),Ma(1,"mat-icon"),Cs(2,"play_arrow"),Ta(),Ma(3,"span"),Cs(4,"Resume"),Ta(),Ta()}}var gee=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)(Sa(P9))},e.\u0275cmp=be({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&&ka(0,mee,5,0,"button",0),2&e&&xa("ngIf",t.link.suspend)},directives:[ih,R0,T2],encapsulation:2}),e}();function vee(e,t){if(1&e){var n=Aa();Ma(0,"button",1),Na("click",function(){return ut(n),Ua().suspendLink()}),Ma(1,"mat-icon"),Cs(2,"pause"),Ta(),Ma(3,"span"),Cs(4,"Suspend"),Ta(),Ta()}}var bee=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)(Sa(P9))},e.\u0275cmp=be({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&&ka(0,vee,5,0,"button",0),2&e&&xa("ngIf",!t.link.suspend)},directives:[ih,R0,T2],encapsulation:2}),e}(),yee=function(){function e(e,t,n,r){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=r}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)(Sa(f9),Sa(m9),Sa(I2),Sa(h9))},e.\u0275cmp=be({type:e,selectors:[["app-lock-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},features:[Fe],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(Ma(0,"button",0),Na("click",function(){return t.lock()}),Ma(1,"mat-icon"),Cs(2,"lock"),Ta(),Ma(3,"span"),Cs(4),Ta(),Ta()),2&e&&(zi(4),Ss(t.command))},directives:[R0,T2],encapsulation:2}),e}(),_ee=function(){function e(e,t,n,r,i,o){this.nodesDataSource=e,this.drawingsDataSource=t,this.linksDataSource=n,this.nodeService=r,this.drawingService=i,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)(Sa(f9),Sa(m9),Sa(j9),Sa(I2),Sa(h9),Sa(P9))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.delete()}),Ma(1,"mat-icon"),Cs(2,"delete"),Ta(),Ma(3,"span"),Cs(4,"Delete"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),wee=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)(Sa(f9),Sa(I2))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.alignHorizontally()}),Ma(1,"mat-icon"),Cs(2,"more_horiz"),Ta(),Ma(3,"span"),Cs(4,"Align horizontally"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}(),kee=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)(Sa(f9),Sa(I2))},e.\u0275cmp=be({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&&(Ma(0,"button",0),Na("click",function(){return t.alignVertically()}),Ma(1,"mat-icon"),Cs(2,"more_vert"),Ta(),Ma(3,"span"),Cs(4,"Align vertically"),Ta(),Ta())},directives:[R0,T2],encapsulation:2}),e}();function Cee(e,t){if(1&e&&Ea(0,"app-show-node-action",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function See(e,t){if(1&e&&Ea(0,"app-config-node-action",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function xee(e,t){if(1&e&&Ea(0,"app-start-node-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function Oee(e,t){if(1&e&&Ea(0,"app-suspend-node-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function Mee(e,t){if(1&e&&Ea(0,"app-stop-node-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function Tee(e,t){if(1&e&&Ea(0,"app-reload-node-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function Eee(e,t){if(1&e&&Ea(0,"app-http-console-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function Pee(e,t){if(1&e&&Ea(0,"app-http-console-new-tab-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function jee(e,t){if(1&e&&Ea(0,"app-console-device-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function Iee(e,t){if(1&e&&Ea(0,"app-console-device-action-browser",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function Aee(e,t){if(1&e&&Ea(0,"app-open-file-explorer-action",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function Dee(e,t){if(1&e&&Ea(0,"app-change-hostname-action",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function Ree(e,t){if(1&e&&Ea(0,"app-change-symbol-action",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function Lee(e,t){if(1&e&&Ea(0,"app-duplicate-action",16),2&e){var n=Ua();xa("server",n.server)("project",n.project)("nodes",n.nodes)("drawings",n.drawings)}}function Nee(e,t){if(1&e&&Ea(0,"app-edit-style-action",17),2&e){var n=Ua();xa("server",n.server)("project",n.project)("drawing",n.drawings[0])}}function Fee(e,t){if(1&e&&Ea(0,"app-edit-text-action",18),2&e){var n=Ua();xa("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 Bee(e,t){if(1&e&&Ea(0,"app-edit-config-action",19),2&e){var n=Ua();xa("server",n.server)("project",n.project)("node",n.nodes[0])}}function zee(e,t){if(1&e&&Ea(0,"app-export-config-action",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function Hee(e,t){if(1&e&&Ea(0,"app-import-config-action",14),2&e){var n=Ua();xa("server",n.server)("node",n.nodes[0])}}function Vee(e,t){if(1&e&&Ea(0,"app-move-layer-up-action",20),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function Uee(e,t){if(1&e&&Ea(0,"app-move-layer-down-action",20),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function qee(e,t){if(1&e&&Ea(0,"app-bring-to-front-action",20),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function Wee(e,t){if(1&e&&Ea(0,"app-start-capture-action",21),2&e){var n=Ua();xa("server",n.server)("project",n.project)("link",n.links[0])}}function Gee(e,t){if(1&e&&Ea(0,"app-stop-capture-action",22),2&e){var n=Ua();xa("server",n.server)("link",n.links[0])}}function Xee(e,t){if(1&e&&Ea(0,"app-start-capture-on-started-link-action",21),2&e){var n=Ua();xa("server",n.server)("project",n.project)("link",n.links[0])}}function Yee(e,t){if(1&e&&Ea(0,"app-packet-filters-action",21),2&e){var n=Ua();xa("server",n.server)("project",n.project)("link",n.links[0])}}function Kee(e,t){if(1&e&&Ea(0,"app-resume-link-action",22),2&e){var n=Ua();xa("server",n.server)("link",n.links[0])}}function Qee(e,t){if(1&e&&Ea(0,"app-suspend-link-action",22),2&e){var n=Ua();xa("server",n.server)("link",n.links[0])}}function Zee(e,t){if(1&e&&Ea(0,"app-lock-action",20),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function $ee(e,t){if(1&e&&Ea(0,"app-delete-action",23),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)("drawings",n.drawings)("links",n.links)}}function Jee(e,t){if(1&e&&Ea(0,"app-align-horizontally-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}function ete(e,t){if(1&e&&Ea(0,"app-align-vertically-action",15),2&e){var n=Ua();xa("server",n.server)("nodes",n.nodes)}}var tte=function(){function e(e,t,n,r){this.sanitizer=e,this.changeDetector=t,this.electronService=n,this.projectService=r,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 G0,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,r){this.resetCapabilities(),this.labels=[e],this.nodes=[t],this.setPosition(n,r),this.contextMenu.openMenu()},e.prototype.openMenuForInterfaceLabel=function(e,t,n,r){this.resetCapabilities(),this.linkNodes=[e],this.links=[t],this.setPosition(n,r),this.contextMenu.openMenu()},e.prototype.openMenuForListOfElements=function(e,t,n,r,i,o){this.resetCapabilities(),this.drawings=e,this.nodes=t,this.labels=n,this.links=r,this.setPosition(i,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)(Sa(Qh),Sa(Oc),Sa(lY),Sa(e$))},e.\u0275cmp=be({type:e,selectors:[["app-context-menu"]],viewQuery:function(e,t){var n;1&e&&Cl(U0,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ea(1,"span",1),Ma(2,"mat-menu",2,3),ka(4,Cee,1,2,"app-show-node-action",4),ka(5,See,1,2,"app-config-node-action",4),ka(6,xee,1,2,"app-start-node-action",5),ka(7,Oee,1,2,"app-suspend-node-action",5),ka(8,Mee,1,2,"app-stop-node-action",5),ka(9,Tee,1,2,"app-reload-node-action",5),ka(10,Eee,1,2,"app-http-console-action",5),ka(11,Pee,1,2,"app-http-console-new-tab-action",5),ka(12,jee,1,2,"app-console-device-action",5),ka(13,Iee,1,2,"app-console-device-action-browser",4),ka(14,Aee,1,2,"app-open-file-explorer-action",4),ka(15,Dee,1,2,"app-change-hostname-action",4),ka(16,Ree,1,2,"app-change-symbol-action",4),ka(17,Lee,1,4,"app-duplicate-action",6),ka(18,Nee,1,3,"app-edit-style-action",7),ka(19,Fee,1,7,"app-edit-text-action",8),ka(20,Bee,1,3,"app-edit-config-action",9),ka(21,zee,1,2,"app-export-config-action",4),ka(22,Hee,1,2,"app-import-config-action",4),ka(23,Vee,1,3,"app-move-layer-up-action",10),ka(24,Uee,1,3,"app-move-layer-down-action",10),ka(25,qee,1,3,"app-bring-to-front-action",10),ka(26,Wee,1,3,"app-start-capture-action",11),ka(27,Gee,1,2,"app-stop-capture-action",12),ka(28,Xee,1,3,"app-start-capture-on-started-link-action",11),ka(29,Yee,1,3,"app-packet-filters-action",11),ka(30,Kee,1,2,"app-resume-link-action",12),ka(31,Qee,1,2,"app-suspend-link-action",12),ka(32,Zee,1,3,"app-lock-action",10),ka(33,$ee,1,4,"app-delete-action",13),ka(34,Jee,1,2,"app-align-horizontally-action",5),ka(35,ete,1,2,"app-align-vertically-action",5),Ta(),Ta()),2&e){var n=Ca(3);ss("left",t.leftPosition)("top",t.topPosition),zi(1),xa("matMenuTriggerFor",n),zi(3),xa("ngIf",1===t.nodes.length),zi(1),xa("ngIf",1===t.nodes.length),zi(1),xa("ngIf",t.nodes.length),zi(1),xa("ngIf",t.nodes.length),zi(1),xa("ngIf",t.nodes.length),zi(1),xa("ngIf",t.nodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length&&t.isElectronApp),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length&&!t.isElectronApp),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length&&t.isElectronApp),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),zi(1),xa("ngIf",t.drawings.length>0||t.nodes.length>0),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.drawings.length&&!t.hasTextCapabilities),zi(1),xa("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)),zi(1),xa("ngIf",1===t.nodes.length&&"vpcs"===t.nodes[0].node_type),zi(1),xa("ngIf",1===t.nodes.length&&("vpcs"===t.nodes[0].node_type||"iou"===t.nodes[0].node_type||"dynamips"===t.nodes[0].node_type)),zi(1),xa("ngIf",1===t.nodes.length&&("vpcs"===t.nodes[0].node_type||"iou"===t.nodes[0].node_type||"dynamips"===t.nodes[0].node_type)),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length>0||t.nodes.length>0)),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length>0||t.nodes.length>0||t.links.length>0)&&0===t.linkNodes.length),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>1),zi(1),xa("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>1)}},directives:[U0,B0,ih,P2,T7,P7,I7,D7,L7,B7,z7,H7,V7,U7,W7,e9,v9,E9,z9,W9,Y9,Q9,Z9,$9,J9,oee,see,lee,pee,gee,bee,yee,_ee,wee,kee],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}(),nte=["container"],rte=function(){function e(e,t,n,r,i,o,a,s){this.sanitizer=e,this.changeDetector=t,this.mapSettingsService=n,this.electronService=r,this.consoleService=i,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 r=this.mapSettingsService.getConsoleContextManuAction();r?"web console"===r?this.openWebConsole():"web console in new tab"===r?this.openWebConsoleInNewTab():"console"===r&&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(H7);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(V7),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)(Sa(Qh),Sa(Oc),Sa(F7),Sa(lY),Sa(N7),Sa(e3),Sa(uZ),Sa(Qs))},e.\u0275cmp=be({type:e,selectors:[["app-context-console-menu"]],viewQuery:function(e,t){if(1&e&&(Cl(U0,1),Cl(nte,1,Bc)),2&e){var n=void 0;kl(n=xl())&&(t.contextConsoleMenu=n.first),kl(n=xl())&&(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&&(Ma(0,"div",0),Ea(1,"span",1),Ma(2,"mat-menu",2,3),Ma(4,"span",4),Cs(5," Choose default behavior for double click on node "),Ta(),Ma(6,"button",5),Na("click",function(){return t.openConsole()}),Ma(7,"mat-icon"),Cs(8,"web_asset"),Ta(),Ma(9,"span"),Cs(10,"Open console"),Ta(),Ta(),Ma(11,"button",5),Na("click",function(){return t.openWebConsole()}),Ma(12,"mat-icon"),Cs(13,"http"),Ta(),Ma(14,"span"),Cs(15,"Open web console"),Ta(),Ta(),Ma(16,"button",5),Na("click",function(){return t.openWebConsoleInNewTab()}),Ma(17,"mat-icon"),Cs(18,"http"),Ta(),Ma(19,"span"),Cs(20,"Open web console in new tab"),Ta(),Ta(),Ta(),Ta(),Ea(21,"template",6,7)),2&e){var n=Ca(3);ss("left",t.leftPosition)("top",t.topPosition),zi(1),xa("matMenuTriggerFor",n),zi(20),xa("hidden",!0)}},directives:[U0,B0,R0,T2],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}(),ite=function(){function e(e,t,n){this.nodesDataSource=e,this.linksDataSource=t,this.drawingsDataSource=n,this.nodeNotificationEmitter=new ul,this.linkNotificationEmitter=new ul,this.drawingNotificationEmitter=new ul,this.infoNotificationEmitter=new ul,this.warningNotificationEmitter=new ul,this.errorNotificationEmitter=new ul}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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(f9),Gn(j9),Gn(m9))}}),e}(),ote=function(){return function(e,t,n){void 0===n&&(n=!1),this.visible=e,this.error=t,this.clear=n}}(),ate=function(){function e(){this.state=new kp.a(new ote(!1))}return e.prototype.setError=function(e){this.state.next(new ote(!1,e.error))},e.prototype.clear=function(){this.state.next(new ote(!1,null,!0))},e.prototype.activate=function(){this.state.next(new ote(!0))},e.prototype.deactivate=function(){this.state.next(new ote(!1))},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),ste=function(){function e(){this.changesDetected=new ul,this.hasBeenDrawn=!1}return e.prototype.detectChanges=function(){this.changesDetected.emit(!0)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),cte=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t}(function(){return function(e,t){this.event=e,this.node=t}}()),lte=function(){return function(){}}(),ute=function(){return function(){}}(),hte=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 r=n.getBoundingClientRect();return document.documentElement.removeChild(n),{width:r.width,height:r.height}},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),dte=function(){function e(){}return e.prototype.fix=function(e){var t=A9.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")}})}),A9.generate(t)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),fte=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 ute;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 r=this.cssFixer.fix(n.style),i=this.fontFixer.fixStyles(r),o=this.fontBBoxCalculator.calculate(n.text,i);return null!==n.x&&(n.x+=3),null!==n.y&&(n.y+=o.height),n},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(hte),Gn(dte),Gn(D9))}}),e}(),pte=function(){return function(){}}(),mte=function(){function e(){}return e.prototype.convert=function(e){var t=new pte;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),gte=function(){function e(e,t,n,r,i){this.labelToMapLabel=e,this.portToMapPort=t,this.fontBBoxCalculator=n,this.cssFixer=r,this.fontFixer=i}return e.prototype.convert=function(e){var t=this,n=new lte;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 r=this.cssFixer.fix(n.label.style),i=this.fontFixer.fixStyles(r),o=this.fontBBoxCalculator.calculate(n.label.text,i);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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(fte),Gn(mte),Gn(hte),Gn(dte),Gn(D9))}}),e}(),vte=function(){return function(){}}(),bte=function(){function e(e){this.labelToMapLabel=e}return e.prototype.convert=function(e,t){var n=new vte;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(fte))}}),e}(),yte=function(){return function(){this.isSelected=!1,this.isMultiplied=!1}}(),_te=function(){function e(e){this.linkNodeToMapLinkNode=e}return e.prototype.convert=function(e){var t=this,n=new yte;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(bte))}}),e}(),wte=function(){return function(){}}(),kte=function(){function e(){}return e.prototype.convert=function(e){var t=new wte;return t.id=e.symbol_id,t.builtin=e.builtin,t.filename=e.filename,t.raw=e.raw,t},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Cte=function(){return function(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=[]),this.index=e,this.nodes=t,this.drawings=n,this.links=r}}(),Ste=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 Cte,this.layers[e].index=Number(e)),this.layers[e]},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),xte=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.prototype.getItemKey=function(e){return e.id},t}(d9),Ote=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return Mte(e||t)}}),t}(xte),Mte=Cn(Ote),Tte=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return Ete(e||t)}}),t}(xte),Ete=Cn(Tte),Pte=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return jte(e||t)}}),t}(xte),jte=Cn(Pte),Ite=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return Ate(e||t)}}),t}(xte),Ate=Cn(Ite),Dte=function(){function e(){this.LINK_WIDTH=2}return e.prototype.linkTranslation=function(e,t,n){var r,i,o=n.y-t.y;if(0===o)r=0,i=e;else{var a=Math.atan((n.x-t.x)/o);r=-e*Math.cos(a),i=e*Math.sin(a)}return{dx:r,dy:i}},e.prototype.assignDataToLinks=function(e){var t=this,n={};e.forEach(function(e,r){var i=e.source.id,o=e.target.id,a=i<o?i+","+o:o+","+i,s=1;a in n?s=n[a].push(r):n[a]=[r],e.distance=s%2==0?s*t.LINK_WIDTH:(1-s)*t.LINK_WIDTH})},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Rte=function(){function e(e,t,n,r,i,o,a,s,c,l){this.mapNodesDataSource=e,this.mapLinksDataSource=t,this.mapDrawingsDataSource=n,this.mapSymbolsDataSource=r,this.nodeToMapNode=i,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,r=t.nodes[1].nodeId;n in e&&(t.source=e[n]),r in e&&(t.target=e[r]),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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Ote),Gn(Tte),Gn(Pte),Gn(Ite),Gn(gte),Gn(_te),Gn(_9),Gn(kte),Gn(Ste),Gn(Dte))}}),e}(),Lte=function(){function e(){this.selection={},this.selected=new ul,this.unselected=new ul}return e.prototype.setSelected=function(e){var t=this,n=this.convertToKeyDict(e),r=Object.keys(n).filter(function(e){return!t.isSelectedByKey(e)}).map(function(e){return n[e]}),i=Object.keys(this.selection).filter(function(e){return!(e in n)}).map(function(e){return t.selection[e]});this.selection=n,r.length>0&&this.selected.emit(r),i.length>0&&this.unselected.emit(i)},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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Nte=function(){return function(){}}(),Fte=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return VZ(t,e),t}(Nte),Bte=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return VZ(t,e),t}(Nte),zte=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return VZ(t,e),t}(Nte),Hte=function(){function e(){this.start=new ul,this.drag=new ul,this.end=new ul}return e.prototype.call=function(e){e.call(this.behaviour())},e.prototype.behaviour=function(){var e,t,n,r=this;return Jx().on("start",function(i){t=H_.sourceEvent.clientX,n=H_.sourceEvent.clientY,(e=new Fte(i)).dx=H_.dx,e.dy=H_.dy,e.x=H_.x,e.y=H_.y,r.start.emit(e)}).on("drag",function(e){var i=new Bte(e);i.dx=H_.sourceEvent.clientX-t,i.dy=H_.sourceEvent.clientY-n,t=H_.sourceEvent.clientX,n=H_.sourceEvent.clientY,r.drag.emit(i)}).on("end",function(t){var n=new zte(t);n.dx=H_.x-e.x,n.dy=H_.y-e.y,r.end.emit(n)})},e}(),Vte=function(){function e(){this.isReadOnly=!1}return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Ute=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t}(function(){return function(e,t,n){this.datum=e,this.dx=t,this.dy=n}}()),qte=function(){return function(e,t,n,r,i){this.datum=e,this.x=t,this.y=n,this.width=r,this.height=i}}(),Wte=function(){return function(e,t){this.x=e,this.y=t}}(),Gte=function(){return function(e,t,n){this.datum=e,this.x=t,this.y=n}}(),Xte=function(){return function(e,t,n){this.savedText=e,this.x=t,this.y=n}}(),Yte=function(){return function(e,t,n){this.textDrawingId=e,this.editedText=t,this.textElement=n}}(),Kte=function(){return function(e,t){this.event=e,this.drawing=t}}(),Qte=function(){return function(e,t){this.event=e,this.link=t}}(),Zte=function(){return function(e,t){this.event=e,this.interfaceLabel=t}}(),$te=function(){return function(e,t){this.event=e,this.label=t}}(),Jte=function(){function e(e,t,n,r){this.cssFixer=e,this.fontFixer=t,this.selectionManager=n,this.mapSettings=r,this.onContextMenu=new ul,this.draggable=new Hte}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]}),r=n.enter().append("g").attr("class","label_container").attr("label_id",function(e){return e.id}),i=n.merge(r).on("contextmenu",function(e,n){event.preventDefault(),t.onContextMenu.emit(new $te(event,e))});this.drawLabel(i),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]}),r=n.enter().append("g").attr("class","label_body");r.append("text").attr("class","label"),r.append("rect").attr("class","label_selection");var i=n.merge(r);i.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+")"}),i.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=tw(this),n=i.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(dte),Gn(D9),Gn(Lte),Gn(Vte))}}),e}(),ene=function(){function e(){this.dragged=new ul,this.labelDragged=new ul,this.clicked=new ul}return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),tne=function(){function e(e,t,n,r,i){this.graphDataManager=e,this.selectionManager=t,this.labelWidget=n,this.nodesEventSource=r,this.mapSettingsService=i,this.onContextMenu=new ul,this.onContextConsoleMenu=new ul,this.onNodeClicked=new ul}return e.prototype.draw=function(e){var t=this,n=this,r=e.selectAll("g.node_body").data(function(e){return[e]}),i=r.enter().append("g").attr("class","node_body");i.append("image");var o=r.merge(i).classed("selected",function(e){return t.selectionManager.isSelected(e)}).on("click",function(e){t.nodesEventSource.clicked.emit(new Gte(e,H_.pageX,H_.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){H_.preventDefault(),n.onContextMenu.emit(new cte(H_,e))}).on("dblclick",function(e,t){H_.preventDefault(),n.onContextConsoleMenu.emit(new cte(H_,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){tw(this).attr("class","over")}).on("mouseout",function(e){tw(this).attr("class","")}),o.attr("transform",function(e){return e.width?"translate("+e.x+","+e.y+")":"translate("+(e.x-30)+","+(e.y-30)+")"}),this.labelWidget.draw(o)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Rte),Gn(Lte),Gn(Jte),Gn(ene),Gn(F7))}}),e}(),nne=function(){function e(e){this.fontFixer=e}return e.prototype.draw=function(t){var n=this,r=t.selectAll("text.text_element").data(function(e){return e.element&&e.element instanceof G0?[e.element]:[]}),i=r.enter().append("text").attr("class","text_element noselect"),o=r.merge(i);o.attr("style",function(e){var t=n.fontFixer.fix(e),r=[];return t.font_family&&r.push('font-family: "'+e.font_family+'"'),t.font_size&&r.push("font-size: "+e.font_size+"pt"),t.font_weight&&r.push("font-weight: "+e.font_weight),r.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=tw(this).selectAll("tspan"),n=this.getBBox().height/t.size();return"translate("+e.MARGIN+", "+(n-e.MARGIN)+")"}),r.exit().remove()},e.MARGIN=4,e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(D9))}}),e}(),rne=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 n9?[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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),ine=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),one=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 i9?[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 r=n.enter().append("rect").attr("class","rect_element noselect");n.merge(r).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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(ine))}}),e}(),ane=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 a9?[e.element]:[]});n.enter().append("circle").attr("class","right"),n.enter().append("circle").attr("class","left");var r=n.enter().append("line").attr("class","line_element noselect");n.merge(r).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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(ine))}}),e}(),sne=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 c9?[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 r=n.enter().append("ellipse").attr("class","ellipse_element noselect");n.merge(r).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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(ine))}}),e}(),cne=function(){function e(e,t,n,r,i,o,a){this.textDrawingWidget=e,this.imageDrawingWidget=t,this.rectDrawingWidget=n,this.lineDrawingWidget=r,this.ellipseDrawingWidget=i,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]}),r=n.enter().append("g").attr("class","drawing_body"),i=n.merge(r).attr("transform",function(e){return"translate("+e.x+","+e.y+") rotate("+e.rotation+")"});this.drawingWidgets.forEach(function(e){e.draw(i)}),i.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&i.filter(function(e){return e.element instanceof i9||e.element instanceof c9}).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"),i.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&i.filter(function(e){return e.element instanceof i9||e.element instanceof c9}).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"),i.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(e){return e.element instanceof c9?e.element.cx-e.element.width/10:"0"}).attr("x2",function(e){return e.element instanceof c9?e.element.cx+e.element.width/10:e.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),i.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(e){return e.element instanceof c9?e.element.cx-e.element.width/10:"0"}).attr("x2",function(e){return e.element instanceof c9?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"),i.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(e){return e.element instanceof c9?e.element.cy-e.element.height/10:"0"}).attr("y2",function(e){return e.element instanceof c9?e.element.cy+e.element.height/10:e.element.height}).attr("draggable","true").attr("cursor","ew-resize"),i.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 c9?e.element.cy-e.element.height/10:"0"}).attr("y2",function(e){return e.element instanceof c9?e.element.cy+e.element.height/10:e.element.height}).attr("draggable","true").attr("cursor","ew-resize"),i.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"),i.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"),i.classed("drawing_selected",function(e){return t.selectionManager.isSelected(e)})},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(nne),Gn(rne),Gn(one),Gn(ane),Gn(sne),Gn(Lte),Gn(F7))}}),e}(),lne=function(){return function(e,t){this.width=e,this.height=t}}(),une=function(){return function(e,t){this.x=e,this.y=t}}(),hne=function(){return function(e,t,n){this.x=e,this.y=t,this.k=n}}(),dne=function(){function e(){this.centerZeroZeroPoint=!0,this.size=new lne(0,0),this.transformation=new hne(0,0,1)}return e.prototype.getZeroZeroTransformationPoint=function(){return this.centerZeroZeroPoint?new une(this.size.width/2,this.size.height/2):new une(0,0)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),fne=function(){return function(){}}(),pne=function(){function e(e,t,n,r){this.drawingWidget=e,this.svgToDrawingConverter=t,this.context=n,this.mapSettings=r,this.draggable=new Hte,this.draggingEnabled=!1,this.resizingFinished=new ul,this.onContextMenu=new ul,this.svgToDrawingConverter=new u9}return e.prototype.redrawDrawing=function(e,t){this.drawingWidget.draw(this.selectDrawing(e,t))},e.prototype.draw=function(e){var t,n,r,i,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){H_.preventDefault(),o.onContextMenu.emit(new Kte(H_,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=Jx().on("start",function(e){document.body.style.cursor="ns-resize",r=e.y}).on("drag",function(i){var a=H_;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),i.element.height+n<0?(f=!1,t=r,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 c9&&(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))):i.element.height+a.dy<0?(f=!0,t=r,i.element.height=Math.abs(i.element.height+a.dy)):(i.element.height+=a.dy,i.element instanceof c9&&(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)),o.redrawDrawing(e,i)}).on("end",function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))}),m=Jx().on("start",function(e){t=H_.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),i=t+e.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(r){var a=H_;f?r.element.height+a.dy<0?(f=!1,t=i,r.element.height=Math.abs(r.element.height+a.dy)):(r.element.height+=a.dy,r.element instanceof c9&&(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)):(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?(t=i,f=!0,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 c9&&(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))),o.redrawDrawing(e,r)}).on("end",function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))}),g=!1,v=Jx().on("start",function(e){l=H_.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=H_;g?t.element.width+n.dx<0?(l=d,g=!1,t.element.width=Math.abs(t.element.width+n.dx)):(t.element instanceof c9&&(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 c9&&(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=Jx().on("start",function(e){document.body.style.cursor="ew-resize",h=e.x}).on("drag",function(t){var n=H_;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 c9&&(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 c9&&(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=Jx().on("start",function(){document.body.style.cursor="move"}).on("drag",function(t){var n=H_;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))}),_=Jx().on("start",function(){document.body.style.cursor="move"}).on("drag",function(t){var n=H_;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 fne;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(cne),Gn(u9),Gn(dne),Gn(Vte))}}),e}(),mne=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),r=this.fontBBoxCalculator.calculate(e.text,n),i=new N9;return i.rotation=e.rotation,i.style=e.style,i.text=e.text,i.x=e.x,i.y=e.y,null!==i.x&&(i.x-=3),null!==i.y&&(i.y-=r.height),i},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(hte),Gn(dte),Gn(D9))}}),e}(),gne=function(){return function(){}}(),vne=function(){function e(){}return e.prototype.convert=function(e){var t=new gne;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),bne=function(){function e(e,t){this.mapLabelToLabel=e,this.mapPortToPort=t}return e.prototype.convert=function(e){var t=this,n=new X0;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(mne),Gn(vne))}}),e}(),yne=function(){function e(e,t){this.nodeWidget=e,this.mapSettings=t,this.draggable=new Hte}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}),r=t.merge(n);this.nodeWidget.draw(r),t.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(r)},e.prototype.selectNode=function(e,t){return e.selectAll('g.node[node_id="'+t.id+'"]')},e.NODE_LABEL_MARGIN=3,e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(tne),Gn(Vte))}}),e}(),_ne=function(){return function(){}}(),wne=function(){function e(){this.drawingLine=new _ne,this.drawing=!1,this.data={}}return e.prototype.start=function(e,t,n){var r=this;this.drawing=!0,this.data=n,this.drawingLine.start=new une(e,t),this.drawingLine.end=new une(e,t),this.selection.on("mousemove",function(e,t){var n=r.selection.select("g.canvas").node(),i=ik(n);r.drawingLine.end.x=i[0],r.drawingLine.end.y=i[1],r.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 r=[];this.drawing&&(r=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var i=IH(),o=this.selection.select("g.drawing-line-tool").selectAll("path").data(r),a=o.enter().append("path");o.merge(a).attr("d",i).attr("stroke","#000").attr("stroke-width","2"),o.exit().remove()},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),kne=function(){return function(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}}(),Cne=function(){function e(){this.selected=new k.b}return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Sne=function(){function e(e,t){this.context=e,this.selectionEventSource=t,this.rectangleSelected=new k.b,this.contextMenuOpened=new ul,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==H_.button)return t.on("contextmenu",function(){H_.preventDefault()}),void n.contextMenuOpened.emit(H_);var r=tw(window),i=this.parentElement,o=n.transformation(ik(i));n.startSelection(o),t.selectAll(e.SELECTABLE_CLASS).classed("selected",!1),r.on("mousemove.selection",function(){var e=n.transformation(ik(i));n.moveSelection(o,e)}).on("mouseup.selection",function(){var e=n.transformation(ik(i));n.endSelection(o,e),r.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 r=n.append("g");r.attr("class","selection-line-tool"),this.path=r.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var i=n.select("g.selection-line-tool"),o=i.attr("status");"activated"!==o&&this.enabled&&(this.activate(e),i.attr("activated")),"deactivated"===o||this.enabled||(this.deactivate(e),i.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,r=e[1]/this.context.transformation.k;this.path.attr("d",this.rect(n,r,t[0]/this.context.transformation.k-n,t[1]/this.context.transformation.k-r)),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]),r=Math.min(e[1],t[1]),i=Math.abs(e[0]-t[0]),o=Math.abs(e[1]-t[1]);this.selectionEventSource.selected.next(new kne(n,r,i,o))},e.prototype.rect=function(e,t,n,r){return"M"+[e,t]+" l"+[n,0]+" l"+[0,r]+" 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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(dne),Gn(Cne))}}),e}(),xne=function(){function e(e){this.context=e,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=XX().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"===H_.type}),this.zoom.on("zoom",function(){var n=e.select("g.canvas"),r=H_;n.attr("transform",function(){return t.context.transformation.x=r.transform.x,t.context.transformation.y=r.transform.y,t.context.transformation.k=r.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(dne))}}),e}(),One=function(){return function(e,t,n,r){this.source=e,this.source_angle=t,this.target_angle=n,this.target=r}}(),Mne=function(){function e(){this.onContextMenu=new ul}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},r=n.x-t.x,i=n.y-t.y,o=Math.atan2(i,r),a=-Math.PI/4,s=[Math.cos(o+a),Math.sin(o+a)];return new One([t.x,t.y],[t.x+r/2+15*s[0],t.y+i/2+15*s[1]],[n.x-r/2-15*s[0],n.y-i/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)]:[]}),r=n.enter().append("path").attr("class","serial_link").on("contextmenu",function(e){var n=event;t.onContextMenu.emit(new Qte(n,e))});r.attr("stroke","#B22222").attr("fill","none").attr("stroke-width","2"),n.merge(r).attr("d",function(e){var t=lS();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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Tne=function(){return function(e,t){this.source=e,this.target=t}}(),Ene=function(){function e(){this.onContextMenu=new ul}return e.prototype.linktoEthernetLink=function(e){return new Tne([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)]:[]}),r=n.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(e){var n=event;t.onContextMenu.emit(new Qte(n,e))});r.attr("stroke","#000").attr("stroke-width","2").on("contextmenu",function(e){var n=event;t.onContextMenu.emit(new Qte(n,e))}),n.merge(r).attr("d",function(e){var t=lS();return t.moveTo(e.source[0],e.source[1]),t.lineTo(e.target[0],e.target[1]),t.toString()})},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Pne=function(){function e(e,t,n,r){this.cssFixer=e,this.fontFixer=t,this.selectionManager=n,this.mapSettings=r,this.onContextMenu=new ul,this.draggable=new Hte,this.enabled=!0}return e.prototype.setEnabled=function(e){this.enabled=e},e.prototype.draw=function(e){var t=this,n=this,r=e.selectAll("g.link_node_position").data(function(e){return[[e.source,e.nodes[0]],[e.target,e.nodes[1]]]}),i=r.enter().append("g").classed("link_node_position",!0),o=r.merge(i);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 Zte(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=tw(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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(dte),Gn(D9),Gn(Lte),Gn(Vte))}}),e}(),jne=function(){return function(e,t,n,r){this.x=e,this.y=t,this.status=n,this.port=r}}(),Ine=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=tw(this),r=n.select("path"),i=[];if(r.node()){var o=r.node().getPointAtLength(80),a=r.node().getPointAtLength(r.node().getTotalLength()-80);if(r.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;i=[new jne(o.x,o.y,e.capturing&&e.suspend?"suspended":e.source.status,s),new jne(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(i.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(i.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(i.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(i.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(i.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(i.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(i.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(i.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(i.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(F7))}}),e}(),Ane=function(){function e(e,t,n,r,i,o){this.multiLinkCalculatorHelper=e,this.interfaceLabelWidget=t,this.interfaceStatusWidget=n,this.selectionManager=r,this.ethernetLinkWidget=i,this.serialLinkWidget=o,this.onContextMenu=new ul}return e.prototype.draw=function(e){var t=this,n=e.selectAll("g.link_body").data(function(e){return[e]}),r=n.enter().append("g").attr("class","link_body"),i=n.merge(r).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 Qte(H_,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 Qte(H_,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 Qte(H_,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 Qte(H_,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(i),this.ethernetLinkWidget.draw(i),i.select("path").classed("selected",function(e){return t.selectionManager.isSelected(e)}),this.interfaceLabelWidget.draw(i),this.interfaceStatusWidget.draw(i)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Dte),Gn(Pne),Gn(Ine),Gn(Lte),Gn(Ene),Gn(Mne))}}),e}(),Dne=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}),r=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}),i=n.merge(r);this.linkWidget.draw(i),n.exit().remove()},e.prototype.selectLink=function(e,t){return e.selectAll('g.link[link_id="'+t.id+'"]')},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Dte),Gn(Ane))}}),e}(),Rne=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()}),r=n.enter().append("g").attr("class","layer");r.append("g").attr("class","links"),r.append("g").attr("class","nodes"),r.append("g").attr("class","drawings");var i=n.merge(r);i.attr("data-index",function(e){return e.index});var o=i.select("g.links"),a=i.select("g.nodes"),s=i.select("g.drawings");n.exit().remove(),this.linksWidget.draw(o),this.nodesWidget.draw(a),this.drawingsWidget.draw(s)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Dne),Gn(yne),Gn(pne))}}),e}(),Lne=function(){function e(e,t,n,r,i,o){this.nodesWidget=e,this.drawingLineTool=t,this.selectionTool=n,this.movingTool=r,this.layersWidget=i,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]),r=n.enter().append("g").attr("class","canvas");n.merge(r).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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(yne),Gn(wne),Gn(Sne),Gn(xne),Gn(Rne),Gn(Ste))}}),e}(),Nne=function(){function e(){}return e.prototype.getOptimalSize=function(e,t){var n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return e>n&&(n=e),t>r&&(r=t),new lne(n,r)},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Fne=function(){function e(){this.isSelectionToolActivated=new k.b,this.isMovingToolActivated=new k.b,this.isTextEditingToolActivated=new k.b,this.isTextAddingToolActivated=new k.b,this.isDrawLinkToolActivated=new k.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Bne=function(){function e(){this.dragged=new ul,this.resized=new ul,this.selected=new ul,this.pointToAddSelected=new ul,this.saved=new ul,this.textAdded=new ul,this.textEdited=new ul,this.textSaved=new ul}return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),zne=function(){function e(e){this.context=e,this.scaleChangeEmitter=new ul,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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(dne))}}),e}(),Hne=["temporaryTextElement"],Vne=function(){function e(e,t,n,r,i,o,a,s,c,l,u){this.drawingsEventSource=e,this.toolsService=t,this.context=n,this.renderer=r,this.mapScaleService=i,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 ul}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 Xte(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=tw(this.svg);t.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",function(n,r,i){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,tw(i[r]).attr("visibility","hidden"),tw(i[r]).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,r=e.linksDataSource.get(e.editedLink.linkId);r.nodes.find(function(t){return t.node_id===e.editedNode.node_id}).label.text=n,e.linkService.updateLink(e.server,r).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=tw(this.svg);t.selectAll("text.text_element").on("dblclick",function(n,r,i){e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale("+e.mapScaleService.getScale()+")"),e.editedElement=n,tw(i[r]).attr("visibility","hidden"),tw(i[r]).classed("editingMode",!0),e.editingDrawingId=i[r].parentElement.parentElement.getAttribute("drawing_id");var o=i[r].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 Yte(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)(Sa(Bne),Sa(Fne),Sa(dne),Sa(rc),Sa(zne),Sa(P9),Sa(j9),Sa(f9),Sa(Lte),Sa(D9),Sa(Ql))},e.\u0275cmp=be({type:e,selectors:[["app-text-editor"]],viewQuery:function(e,t){var n;1&e&&Cl(Hne,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0,1),Cs(2),Ta()),2&e&&(ss("top",t.topPosition)("left",t.leftPosition),zi(2),xs(" ",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}(),Une=function(){function e(){this.movingModeState=new ul}return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),qne=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){tw(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)(Sa(ec),Sa(Une),Sa(dne))},e.\u0275dir=Se({type:e,selectors:[["","movingCanvas",""]],hostBindings:function(e,t){1&e&&Na("mousedown",function(e){return t.onMouseDown(e)})}}),e}(),Wne=function(){function e(e,t,n,r){this.element=e,this.movingEventSource=t,this.context=n,this.mapsScaleService=r}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,tw(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,r=e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y,i=e.context.transformation.k;return e.mapsScaleService.setScale(i),"translate("+t+", "+r+") scale("+i+")"})},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)(Sa(ec),Sa(Une),Sa(dne),Sa(zne))},e.\u0275dir=Se({type:e,selectors:[["","zoomingCanvas",""]]}),e}(),Gne=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,r=(t.pageY-(e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y))/e.context.transformation.k;e.drawingsEventSource.pointToAddSelected.emit(new Wte(n,r)),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)(Sa(Bne),Sa(dne))},e.\u0275cmp=be({type:e,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Xne=["*"],Yne=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 qte(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)(Sa(pne),Sa(Bne))},e.\u0275cmp=be({type:e,selectors:[["app-drawing-resizing"]],ngContentSelectors:Xne,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),Ga(0))},styles:[""]}),e}(),Kne=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Qne=function(){function e(e,t,n,r){this.selectionEventSource=e,this.graphDataManager=t,this.inRectangleHelper=n,this.selectionManager=r}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)}),r=e.graphDataManager.getLinks().filter(function(n){return e.inRectangleHelper.inRectangle(t,n.x,n.y)}),i=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=GZ(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=GZ(n,r,i,o,a);e.selectionManager.setSelected(s)})},e.prototype.ngOnDestroy=function(){this.onSelection.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(Sa(Cne),Sa(Rte),Sa(Kne),Sa(Lte))},e.\u0275cmp=be({type:e,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Zne=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)(Sa(Lte),Sa(ste))},e.\u0275cmp=be({type:e,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),$ne=function(){function e(){this.created=new ul,this.interfaceDragged=new ul}return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Jne=function(){function e(e,t,n,r,i,o,a,s,c,l,u){this.nodesWidget=e,this.drawingsWidget=t,this.linksWidget=n,this.labelWidget=r,this.interfaceWidget=i,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=tw(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(t){e.isMapLocked=t}),this.start=Object(S.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 lte&&0===n.filter(function(e){return e instanceof lte&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof y9&&0===n.filter(function(e){return e instanceof y9&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof ute&&0===n.filter(function(e){return e instanceof ute&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof vte&&0===n.filter(function(e){return e instanceof vte&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum])}),this.drag=Object(S.a)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe(function(n){if(!e.isMapLocked){var r=e.selectionManager.getSelected(),i=r.filter(function(e){return e instanceof lte}),o=i.filter(function(e){return e.locked}),a=i.filter(function(e){return!e.locked});a.forEach(function(r){r.x+=n.dx,r.y+=n.dy,e.nodesWidget.redrawNode(t,r),e.graphDataManager.getLinks().filter(function(e){return void 0!==e.target&&e.target.id===r.id||void 0!==e.source&&e.source.id===r.id}).forEach(function(n){e.linksWidget.redrawLink(t,n)})}),r.filter(function(e){return e instanceof y9}).filter(function(e){return!e.locked}).forEach(function(r){r.x+=n.dx,r.y+=n.dy,e.drawingsWidget.redrawDrawing(t,r)}),r.filter(function(e){return e instanceof ute}).filter(function(e){return 0===o.filter(function(t){return t.id===e.nodeId}).length}).forEach(function(r){if(!(a.filter(function(e){return e.id===r.nodeId}).length>0)){var i=e.graphDataManager.getNodes().filter(function(e){return e.id===r.nodeId})[0];i.label.x+=n.dx,i.label.y+=n.dy,e.labelWidget.redrawLabel(t,r)}}),r.filter(function(e){return e instanceof vte}).filter(function(e){return 0===o.filter(function(t){return t.id===e.nodeId}).length}).forEach(function(r){if(!(a.filter(function(e){return e.id===r.nodeId}).length>0)){var i=e.graphDataManager.getLinks().filter(function(e){return e.nodes[0].id===r.id||e.nodes[1].id===r.id})[0];i.nodes[0].id===r.id&&(i.nodes[0].label.x+=n.dx,i.nodes[0].label.y+=n.dy),i.nodes[1].id===r.id&&(i.nodes[1].label.x+=n.dx,i.nodes[1].label.y+=n.dy),e.linksWidget.redrawLink(t,i)}})}}),this.end=Object(S.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(),r=n.filter(function(e){return e instanceof lte}),i=r.filter(function(e){return e.locked}),o=r.filter(function(e){return!e.locked});o.forEach(function(n){e.nodesEventSource.dragged.emit(new Ute(n,t.dx,t.dy))}),n.filter(function(e){return e instanceof y9}).filter(function(e){return!e.locked}).forEach(function(n){e.drawingsEventSource.dragged.emit(new Ute(n,t.dx,t.dy))}),n.filter(function(e){return e instanceof ute}).filter(function(e){return 0===i.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 Ute(n,t.dx,t.dy))}),n.filter(function(e){return e instanceof vte}).filter(function(e){return 0===i.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 Ute(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)(Sa(yne),Sa(pne),Sa(Dne),Sa(Jte),Sa(Pne),Sa(Lte),Sa(ene),Sa(Bne),Sa(Rte),Sa($ne),Sa(F7))},e.\u0275cmp=be({type:e,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),ere=["svg"],tre=["textEditor"],nre=function(){function e(e,t,n,r,i,o,a,s,c,l,u,h,d){this.graphDataManager=e,this.context=t,this.mapChangeDetectorRef=n,this.canvasSizeDetector=r,this.mapSettings=i,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){if(e)this.svg.attr("height",window.innerHeight+window.scrollY-16);else{var t=window.innerHeight-16;this.svg.attr("height",this.height>t?this.height:t)}},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=tw(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)(Sa(Rte),Sa(dne),Sa(ste),Sa(Nne),Sa(Vte),Sa(ec),Sa(Pne),Sa(Sne),Sa(xne),Sa(Lne),Sa(Fne),Sa(zne),Sa(F7))},e.\u0275cmp=be({type:e,selectors:[["app-d3-map"]],viewQuery:function(e,t){if(1&e&&(Cl(ere,1),Cl(tre,1)),2&e){var n=void 0;kl(n=xl())&&(t.svgRef=n.first),kl(n=xl())&&(t.textEditor=n.first)}},hostBindings:function(e,t){1&e&&Na("resize",function(e){return t.onResize(e)},!1,Xr)},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:[Fe],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&&(Ft(),Ma(0,"svg",0,1),Ma(2,"filter",2),Ea(3,"feColorMatrix",3),Ta(),Ma(4,"defs"),Ma(5,"pattern",4),Ea(6,"path",5),Ta(),Ta(),Ma(7,"defs"),Ma(8,"pattern",6),Ea(9,"path",7),Ta(),Ta(),Ea(10,"rect",8),Ea(11,"rect",9),Ta(),Bt(),Ea(12,"app-drawing-adding",10),Ea(13,"app-drawing-resizing"),Ea(14,"app-selection-control"),Ea(15,"app-selection-select"),Ea(16,"app-text-editor",11,12),Ea(18,"app-draggable-selection",10)),2&e){var n=Ca(1);zi(5),va("x",t.drawingGridX)("y",t.drawingGridY)("width",t.project.drawing_grid_size)("height",t.project.drawing_grid_size),zi(1),wa("d","M ",t.project.drawing_grid_size," 0 L 0 0 0 ",t.project.drawing_grid_size,""),va("stroke-width",t.gridVisibility),zi(2),va("x",t.nodeGridX)("y",t.nodeGridY)("width",t.project.grid_size)("height",t.project.grid_size),zi(1),wa("d","M ",t.project.grid_size," 0 L 0 0 0 ",t.project.grid_size,""),va("stroke-width",t.gridVisibility),zi(3),xa("svg",n),zi(4),xa("server",t.server)("svg",n),zi(2),xa("svg",n)}},directives:[qne,Wne,Gne,Yne,Qne,Zne,Vne,Jne],styles:["svg[_ngcontent-%COMP%]{display:block}"]}),e}(),rre=function(){function e(){}return e.prototype.convert=function(e){var t=new b9;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),ire=function(){function e(e){this.mapLabelToLabel=e}return e.prototype.convert=function(e){var t=new B9;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(mne))}}),e}(),ore=function(){function e(e){this.mapLinkNodeToMapLinkNode=e}return e.prototype.convert=function(e){var t=this,n=new F9;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(ire))}}),e}(),are=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(hte))}}),e}(),sre=n("vAVA"),cre='<?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">',lre="http://www.w3.org/2000/xmlns/",ure="http://www.w3.org/1999/xlink",hre="http://www.w3.org/2000/svg",dre="untitled";function fre(){var e=document.createElementNS(hre,"svg");document.body.appendChild(e),e.style.all="initial";var t=getComputedStyle(e);return document.body.removeChild(e),e=null,t}function pre(e,t){function n(e){for(var n,r,i=getComputedStyle(e),o="",a=0,s=i.length;a<s;a++)(r=i.getPropertyValue(n=i[a]))!==t.getPropertyValue(n)&&(o+="".concat(n,":").concat(r,";"));e.setAttribute("style",o)}for(var r,i,o=((i=[]).push(r=e),function e(t){if(t&&t.hasChildNodes())for(var n=t.firstChild;n;)1===n.nodeType&&"SCRIPT"!==n.nodeName&&(i.push(n),e(n)),n=n.nextSibling}(r),i),a=o.length;a--;)n(o[a])}function mre(e){var t=document.createElement("style");t.innerHTML=Array.from(document.styleSheets).filter(function(e){return!e.href||e.href.startsWith(document.location.origin)}).map(function(e){return Array.from(e.cssRules).map(function(e){return e.cssText}).join(" ")}).join(" "),e.prepend(t)}function gre(e,t,n){var r=document.createElement("a");document.body.appendChild(r),r.setAttribute("class","svg-crowbar"),r.setAttribute("download",e),r.setAttribute("href",t),r.style.display="none",r.click(),setTimeout(function(){n&&n(),document.body.removeChild(r)},10)}var vre={UKNOWN:"Unknown"},bre={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:vre.UKNOWN},yre={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")},_re={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|SM-P585Y"),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|TB-8504F"),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")},wre={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:vre.UKNOWN,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"},kre={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:vre.UKNOWN},Cre={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:vre.UKNOWN.toLowerCase()},Sre=Object.assign(Object.assign(Object.assign({},yre),_re),{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})/}),xre={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_]+)/},Ore={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/},Mre=function(e,t){return e[t]=xre[t],e},Tre=Object.keys(xre).reduce(Mre,{}),Ere=function(e,t){return e[bre[t]]=Ore[t],e},Pre=Object.keys(Ore).reduce(Ere,{}),jre=Object.freeze({__proto__:null,GENERAL:vre,BROWSERS:bre,MOBILES_RE:yre,TABLETS_RE:_re,DEVICES:wre,OS:kre,OS_VERSIONS:Cre,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/,/\biPad\b/,/\biPod\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:Sre,OS_VERSIONS_RE_MAP:xre,BROWSER_VERSIONS_RE_MAP:Ore,OS_VERSIONS_RE:Tre,BROWSER_VERSIONS_RE:Pre,"\u02750":Mre,"\u02751":Ere}),Ire=function(){function e(){Object(s.a)(this,e)}return Object(c.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,r){return t||n.exec(e,r)},null):null}}]),e}(),Are=function(e){return e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e.Unknown="unknown",e}({}),Dre=function(e){return e.Portrait="portrait",e.Landscape="landscape",e}({}),Rre="iPad",Lre=function(){var e=function(){function e(t){Object(s.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 Ire,this.deviceType="",this.orientation="",bh(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return Object(c.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(jre[n.const]).reduce(function(r,i){return"device"===jre[n.const][i]&&bh(e.platformId)&&(e.reTree.test(e.userAgent,_re.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(r[jre[n.const][i]]=Rre,Object):(r[jre[n.const][i]]=e.reTree.test(t,jre["".concat(n.const,"_RE")][i]),r)},{})}),n.forEach(function(t){e[t.prop]=Object.keys(jre[t.const]).map(function(e){return jre[t.const][e]}).reduce(function(n,r){return"device"===t.prop&&n===jre[t.const].ANDROID?e[t.prop][r]?r:n:n===jre[t.const].UNKNOWN&&e[t.prop][r]?r:n},jre[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==bre.UNKNOWN){var r=Pre[this.browser],i=this.reTree.exec(t,r);i&&(this.browser_version=i[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?Dre.Landscape:Dre.Portrait:vre.UKNOWN,this.deviceType=this.isTablet()?Are.Tablet:this.isMobile(this.userAgent)?Are.Mobile:this.isDesktop(this.userAgent)?Are.Desktop:Are.Unknown}},{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,deviceType:this.deviceType,orientation:this.orientation}}},{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(yre).find(function(n){return e.reTree.test(t,yre[n])});return!!n}},{key:"isTablet",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(bh(this.platformId)&&(this.reTree.test(this.userAgent,_re.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var n=Object.keys(_re).find(function(n){return!!e.reTree.test(t,_re[n])});return!!n}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent,t=[wre.PS4,wre.CHROME_BOOK,wre.UNKNOWN];return(this.device!==wre.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&t.indexOf(this.device)>-1}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Rl))},e.\u0275prov=F({factory:function(){return new e(Gn(Rl))},token:e,providedIn:"root"}),e}();function Nre(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Name for screenshot is required"),Ta())}function Fre(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Entered name is incorrect"),Ta())}var Bre=function(e){return{"is-invalid":e}},zre=function(){function e(e,t,n,r,i){this.dialogRef=e,this.toasterService=t,this.formBuilder=n,this.electronService=r,this.deviceService=i,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new lf("screenshot-"+Date.now(),[yd.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)(Sa(n1),Sa(e3),Sa(jf),Sa(lY),Sa(Lre))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Take a screenshot"),Ta(),Ma(2,"mat-radio-group",1),Ma(3,"mat-radio-button",2),Na("click",function(){return t.setFiletype("svg")}),Cs(4,"SVG"),Ta(),Ma(5,"mat-radio-button",3),Na("click",function(){return t.setFiletype("png")}),Cs(6,"PNG"),Ta(),Ta(),Ma(7,"form",4),Ma(8,"mat-form-field",5),Ma(9,"input",6),Na("keydown",function(e){return t.onKeyDown(e)}),Ta(),ka(10,Nre,2,0,"mat-error",7),ka(11,Fre,2,0,"mat-error",7),Ta(),Ma(12,"div",8),Ma(13,"button",9),Na("click",function(){return t.onNoClick()}),Cs(14,"Cancel"),Ta(),Ma(15,"button",10),Na("click",function(){return t.onAddClick()}),Cs(16,"Take a screenshot"),Ta(),Ta(),Ta()),2&e&&(zi(5),xa("disabled",!t.isPngAvailable),zi(2),xa("formGroup",t.nameForm),zi(2),xa("ngClass",el(5,Bre,null==t.form.acreenshotName?null:t.form.acreenshotName.errors)),zi(1),xa("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)),zi(1),xa("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:[h1,x6,E6,bf,Bd,Sf,H3,Q3,fd,Fd,Of,eh,ih,f1,l2,T3],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),e}(),Hre=function(){function e(){this._darkMode$=new kp.a(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new ul,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return e.prototype.getActualTheme=function(){return this.savedTheme},e.prototype.setDarkMode=function(e){e?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),Vre=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new G0;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Ure=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new c9;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),qre=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new i9;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Wre=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new a9;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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Gre=function(){function e(e,t,n,r){this.textElementFactory=e,this.ellipseElementFactory=t,this.rectangleElementFactory=n,this.lineElementFactory=r,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 y9;return t.element=this.factory.getDrawingElement(),t},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Vre),Gn(Ure),Gn(qre),Gn(Wre))}}),e}(),Xre=function(){function e(e,t,n,r,i){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.drawingsFactory=r,this.mapDrawingToSvgConverter=i,this.drawingSaved=new ul}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),r=this.mapDrawingToSvgConverter.convert(n);this.drawingService.add(this.server,this.project.project_id,e.x,e.y,r).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)(Sa(h9),Sa(m9),Sa(Bne),Sa(Gre),Sa(w9))},e.\u0275cmp=be({type:e,selectors:[["app-drawing-added"]],inputs:{server:"server",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[Fe],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Yre=function(e){return{selected:e}};function Kre(e,t){if(1&e){var n=Aa();Ma(0,"button",12),Na("click",function(){return ut(n),Ua().addDrawing("line")}),Ft(),Ma(1,"svg",13),Ea(2,"line",14),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("ngClass",el(1,Yre,r.drawTools.isLineChosen))}}function Qre(e,t){if(1&e){var n=Aa();Ma(0,"button",12),Na("click",function(){return ut(n),Ua().addDrawing("line")}),Ft(),Ma(1,"svg",13),Ea(2,"line",15),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("ngClass",el(1,Yre,r.drawTools.isLineChosen))}}var Zre=function(e,t){return{unmarkedLight:e,marked:t}},$re=function(e){return{unmarkedLight:e}},Jre=function(){function e(e,t,n,r,i,o){this.toolsService=e,this.mapSettingsService=t,this.drawingService=n,this.symbolService=r,this.dialog=i,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(zre,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(t){t&&e.saveImage(t)})},e.prototype.saveImage=function(e){return qZ(this,void 0,void 0,function(){var t,n,r,i,o,a,s,c;return WZ(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?(r=t[n].split('"'),i=r[1].split("/"),[4,this.symbolService.raw(this.server,i[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,sre.saveSvgAsPng(c.firstChild,e.name+".png"),[3,5];case 4:tw("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),u=tw("svg").node(),h=""+e.name,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dre,n=URL.createObjectURL(new Blob([e.source],{type:"text/xml"}));gre("".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(lre,"xmlns")||e.setAttributeNS(lre,"xmlns",hre),e.hasAttributeNS(lre,"xmlns:xlink")||e.setAttributeNS(lre,"xmlns:xlink",ure),"inline"===n?pre(e,fre()):"internal"===n&&mre(e);var r=(new XMLSerializer).serializeToString(e),i=e.getBoundingClientRect();return{top:i.top,left:i.left,width:i.width,height:i.height,class:e.getAttribute("class"),id:e.getAttribute("id"),name:e.getAttribute("name"),childElementCount:e.childElementCount,source:cre+r}}(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()||dre}(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],r=new FileReader,i=new Image;r.onloadend=function(){var e=t.createSvgFileForImage(r.result,i);t.drawingService.add(t.server,t.project.project_id,-i.width/2,-i.height/2,e).subscribe(function(){})},i.onload=function(){r.readAsDataURL(n)},i.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)(Sa(Fne),Sa(F7),Sa(h9),Sa(G7),Sa(l1),Sa(Hre))},e.\u0275cmp=be({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=Aa();Ma(0,"button",0),Na("click",function(){return t.addDrawing("text")}),Ma(1,"mat-icon",1),Cs(2,"create"),Ta(),Ta(),Ma(3,"input",2,3),Na("change",function(e){return t.uploadImageFile(e)}),Ta(),Ma(5,"button",4),Na("click",function(){return ut(n),Ca(4).click()}),Ma(6,"mat-icon"),Cs(7,"image"),Ta(),Ta(),Ma(8,"button",5),Na("click",function(){return t.addDrawing("rectangle")}),Ma(9,"mat-icon",1),Cs(10,"crop_3_2"),Ta(),Ta(),Ma(11,"button",6),Na("click",function(){return t.addDrawing("ellipse")}),Ma(12,"mat-icon",1),Cs(13,"panorama_fish_eye"),Ta(),Ta(),ka(14,Kre,3,3,"button",7),ka(15,Qre,3,3,"button",7),Ma(16,"button",8),Na("click",function(){return t.changeLockValue()}),Ma(17,"mat-icon",1),Cs(18,"lock"),Ta(),Ta(),Ma(19,"button",9),Na("click",function(){return t.takeScreenshot()}),Ma(20,"mat-icon",1),Cs(21,"photo_camera"),Ta(),Ta(),Ma(22,"app-drawing-added",10),Na("drawingSaved",function(){return t.onDrawingSaved()}),Ta(),Ea(23,"div",11)}2&e&&(zi(1),xa("ngClass",t.getCssClassForIcon("text")),zi(8),xa("ngClass",t.getCssClassForIcon("rectangle")),zi(3),xa("ngClass",t.getCssClassForIcon("ellipse")),zi(2),xa("ngIf",!t.isLightThemeEnabled),zi(1),xa("ngIf",t.isLightThemeEnabled),zi(2),xa("ngClass",tl(10,Zre,!t.isLocked&&t.isLightThemeEnabled,t.isLocked)),zi(3),xa("ngClass",el(13,$re,!t.isLocked&&t.isLightThemeEnabled)),zi(2),xa("server",t.server)("project",t.project)("selectedDrawing",t.selectedDrawing))},directives:[l2,m4,T2,eh,ih,Xre],styles:[".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}(),eie=n("EcEN");function tie(e,t){if(1&e){var n=Aa();Ma(0,"div",1),Ma(1,"button",2),Na("click",function(){return ut(n),Ua().onNoClick()}),Cs(2,"No"),Ta(),Ma(3,"button",3),Na("click",function(){return ut(n),Ua().onYesClick()}),Cs(4," Yes "),Ta(),Ta()}}function nie(e,t){if(1&e){var n=Aa();Ma(0,"div",1),Ma(1,"button",4),Na("click",function(){return ut(n),Ua().onNoClick()}),Cs(2,"Ok"),Ta(),Ta()}}var rie=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)(Sa(n1),Sa(i1))},e.\u0275cmp=be({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&&(Ma(0,"span"),Cs(1),Ta(),ka(2,tie,5,0,"div",0),ka(3,nie,3,0,"div",0)),2&e&&(zi(1),Ss(t.confirmationMessage),zi(1),xa("ngIf",!t.isOpen),zi(1),xa("ngIf",t.isOpen))},directives:[ih,f1,l2],styles:[""]}),e}(),iie=function(){function e(){}return e.prototype.get=function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function oie(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Project name is required"),Ta())}function aie(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Project name is incorrect"),Ta())}var sie=function(e){return{empty:e}},cie=function(e){return{"is-invalid":e}},lie=function(e){return{width:e}},uie=function(){function e(e,t,n,r,i,o){this.dialog=e,this.dialogRef=t,this.data=n,this.formBuilder=r,this.projectService=i,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 ul,this.projectNameForm=this.formBuilder.group({projectName:new lf(null,[yd.required,o.get])})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new mY({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,r,i){var o=JSON.parse(n);e.resultMessage="An error occured: "+o.message,e.isFinishEnabled=!0},this.uploader.onCompleteItem=function(t,n,r,i){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,r=t.find(function(e){return e.name===n});r?e.openConfirmationDialog(r):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(rie,{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(eie.v4)(),this.projectService.getUploadPath(this.server,this.uuid,this.projectNameForm.controls.projectName.value)},e.\u0275fac=function(t){return new(t||e)(Sa(l1),Sa(n1),Sa(i1),Sa(jf),Sa(e$),Sa(iie))},e.\u0275cmp=be({type:e,selectors:[["app-import-project-dialog"]],features:[Gs([iie])],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=Aa();Ma(0,"h1",0),Cs(1,"Import project"),Ta(),Ma(2,"div",1),Ma(3,"form",2),Ma(4,"input",3,4),Na("change",function(e){return t.uploadProjectFile(e)}),Ta(),Ma(6,"button",5),Na("click",function(){return ut(n),Ca(5).click()}),Cs(7,"Choose file"),Ta(),Ma(8,"mat-form-field",6),Ea(9,"input",7),ka(10,oie,2,0,"mat-error",8),ka(11,aie,2,0,"mat-error",8),Ta(),Ma(12,"button",9),Ma(13,"mat-icon",10),Na("click",function(){return t.onDeleteClick()}),Cs(14,"clear"),Ta(),Ta(),Ma(15,"div",11),Ma(16,"button",12),Na("click",function(){return t.onNoClick()}),Cs(17,"Cancel"),Ta(),Ma(18,"button",13),Na("click",function(){return t.onImportClick()}),Cs(19," Import "),Ta(),Ta(),Ta(),Ta(),Ma(20,"div",1),Ma(21,"div",14),Ea(22,"div",15),Ta(),Ma(23,"div",16),Ma(24,"span"),Cs(25),Ta(),Ta(),Ma(26,"div",11),Ma(27,"button",13),Na("click",function(){return t.onNoClick()}),Cs(28," Finish "),Ta(),Ta(),Ta()}2&e&&(zi(2),xa("hidden",t.isFirstStepCompleted),zi(1),xa("formGroup",t.projectNameForm),zi(1),xa("uploader",t.uploader),zi(4),xa("ngClass",el(13,sie,!t.isDeleteVisible)),zi(1),xa("ngClass",el(15,cie,t.form.projectName.errors)),zi(1),xa("ngIf",t.form.projectName.errors&&t.form.projectName.errors.required),zi(1),xa("ngIf",t.form.projectName.errors&&t.form.projectName.errors.invalidName),zi(1),xa("hidden",!t.isDeleteVisible),zi(6),xa("disabled",!t.isImportEnabled),zi(2),xa("hidden",!t.isFirstStepCompleted),zi(2),xa("ngStyle",el(17,lie,t.uploader.progress+"%")),zi(3),Ss(t.resultMessage),zi(2),xa("disabled",!t.isFinishEnabled))},directives:[h1,bf,Bd,Sf,gY,l2,m4,H3,eh,Q3,fd,Fd,Of,ih,T2,f1,hh,T3],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 hie(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Project name is required"),Ta())}function die(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Project name is incorrect"),Ta())}function fie(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Project with this name exists"),Ta())}var pie=function(e){return{"is-invalid":e}},mie=function(){function e(e,t,n,r,i,o,a){this.dialogRef=e,this.router=t,this.dialog=n,this.projectService=r,this.toasterService=i,this.formBuilder=o,this.projectNameValidator=a,this.onAddProject=new ul}return e.prototype.ngOnInit=function(){var e,t;this.projectNameForm=this.formBuilder.group({projectName:new lf(null,[yd.required,this.projectNameValidator.get],[(e=this.server,t=this.projectService,function(n){return Object(m1.a)(500).pipe(Object(gp.a)(function(){return t.list(e)}),Object(cd.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,r=t.find(function(e){return e.name===n});r?e.openConfirmationDialog(r):e.addProject()})},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.addProject=function(){var e=this;this.uuid=Object(eie.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(rie,{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)(Sa(n1),Sa(uZ),Sa(l1),Sa(e$),Sa(e3),Sa(jf),Sa(iie))},e.\u0275cmp=be({type:e,selectors:[["app-add-blank-project-dialog"]],features:[Gs([iie])],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&&(Ma(0,"h1",0),Cs(1,"Create new project"),Ta(),Ma(2,"form",1),Ma(3,"mat-form-field",2),Ma(4,"input",3),Na("keydown",function(e){return t.onKeyDown(e)}),Ta(),ka(5,hie,2,0,"mat-error",4),ka(6,die,2,0,"mat-error",4),ka(7,fie,2,0,"mat-error",4),Ta(),Ma(8,"div",5),Ma(9,"button",6),Na("click",function(){return t.onNoClick()}),Cs(10,"Cancel"),Ta(),Ma(11,"button",7),Na("click",function(){return t.onAddClick()}),Cs(12,"Add project"),Ta(),Ta(),Ta()),2&e&&(zi(2),xa("formGroup",t.projectNameForm),zi(2),xa("ngClass",el(5,pie,null==t.form.projectName?null:t.form.projectName.errors)),zi(1),xa("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)),zi(1),xa("ngIf",(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.invalidName)),zi(1),xa("ngIf",(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.projectExist)))},directives:[h1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,eh,ih,f1,l2,T3],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}();function gie(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Project name is required"),Ta())}function vie(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Project name is incorrect"),Ta())}var bie=function(e){return{"is-invalid":e}},yie=function(){function e(e,t,n,r,i,o){this.dialogRef=e,this.projectService=t,this.nodesDataSource=n,this.toasterService=r,this.formBuilder=i,this.projectNameValidator=o,this.onAddProject=new ul,this.projectNameForm=this.formBuilder.group({projectName:new lf(null,[yd.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)(Sa(n1),Sa(e$),Sa(f9),Sa(e3),Sa(jf),Sa(iie))},e.\u0275cmp=be({type:e,selectors:[["app-save-project-dialog"]],features:[Gs([iie])],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&&(Ma(0,"h1",0),Cs(1,"Save project as"),Ta(),Ma(2,"form",1),Ma(3,"mat-form-field",2),Ma(4,"input",3),Na("keydown",function(e){return t.onKeyDown(e)}),Ta(),ka(5,gie,2,0,"mat-error",4),ka(6,vie,2,0,"mat-error",4),Ta(),Ma(7,"div",5),Ma(8,"button",6),Na("click",function(){return t.onNoClick()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",7),Na("click",function(){return t.onAddClick()}),Cs(11,"Save project"),Ta(),Ta(),Ta()),2&e&&(zi(2),xa("formGroup",t.projectNameForm),zi(2),xa("ngClass",el(4,bie,null==t.form.projectName?null:t.form.projectName.errors)),zi(1),xa("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)),zi(1),xa("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:[h1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,eh,ih,f1,l2,T3],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}();function _ie(e,t){1&e&&(Ma(0,"th",26),Cs(1,"Name"),Ta())}function wie(e,t){if(1&e&&(Ma(0,"td",27),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs("",n.name," ")}}function kie(e,t){1&e&&(Ma(0,"th",26),Cs(1,"Value"),Ta())}function Cie(e,t){if(1&e&&(Ma(0,"td",27),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),Ss(n.value)}}function Sie(e,t){1&e&&(Ma(0,"th",26),Cs(1,"Actions"),Ta())}function xie(e,t){if(1&e){var n=Aa();Ma(0,"td",27),Ma(1,"button",28),Na("click",function(){ut(n);var e=t.$implicit;return Ua().deleteVariable(e)}),Ma(2,"mat-icon",29),Cs(3,"delete"),Ta(),Ta(),Ta()}}function Oie(e,t){1&e&&Ea(0,"tr",30)}function Mie(e,t){1&e&&Ea(0,"tr",31)}var Tie=function(){return{standalone:!0}},Eie=function(){function e(e,t,n,r,i){this.dialogRef=e,this.formBuilder=t,this.projectService=n,this.toasterService=r,this.nonNegativeValidator=i,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new lf("",[yd.required]),width:new lf("",[yd.required,i.get]),height:new lf("",[yd.required,i.get]),nodeGridSize:new lf("",[yd.required,i.get]),drawingGridSize:new lf("",[yd.required,i.get])}),this.variableFormGroup=this.formBuilder.group({name:new lf("",[yd.required]),value:new lf("",[yd.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)(Sa(n1),Sa(jf),Sa(e$),Sa(e3),Sa(k9))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Edit project"),Ta(),Ma(2,"div",1),Ma(3,"mat-tab-group"),Ma(4,"mat-tab",2),Ma(5,"form",3),Ma(6,"mat-form-field",4),Ea(7,"input",5),Ta(),Ma(8,"mat-form-field",4),Ea(9,"input",6),Ta(),Ma(10,"mat-form-field",4),Ea(11,"input",7),Ta(),Ma(12,"mat-form-field",4),Ea(13,"input",8),Ta(),Ma(14,"mat-form-field",4),Ea(15,"input",9),Ta(),Ta(),Ma(16,"mat-checkbox",10),Na("ngModelChange",function(e){return t.project.auto_open=e}),Cs(17," Open this project in the background when GNS3 server starts "),Ta(),Ma(18,"mat-checkbox",10),Na("ngModelChange",function(e){return t.project.auto_start=e}),Cs(19," Start all nodes when this project is opened "),Ta(),Ma(20,"mat-checkbox",10),Na("ngModelChange",function(e){return t.auto_close=e}),Cs(21," Leave this project running in the background after closing "),Ta(),Ma(22,"mat-checkbox",10),Na("ngModelChange",function(e){return t.project.show_interface_labels=e}),Cs(23," Show interface labels at start "),Ta(),Ta(),Ma(24,"mat-tab",11),Ma(25,"form",3),Ma(26,"mat-form-field",4),Ea(27,"input",12),Ta(),Ma(28,"mat-form-field",4),Ea(29,"input",13),Ta(),Ta(),Ma(30,"button",14),Na("click",function(){return t.addVariable()}),Cs(31,"Add variable"),Ta(),Ma(32,"table",15),Pa(33,16),ka(34,_ie,2,0,"th",17),ka(35,wie,2,1,"td",18),ja(),Pa(36,19),ka(37,kie,2,0,"th",17),ka(38,Cie,2,1,"td",18),ja(),Pa(39,20),ka(40,Sie,2,0,"th",17),ka(41,xie,4,0,"td",18),ja(),ka(42,Oie,1,0,"tr",21),ka(43,Mie,1,0,"tr",22),Ta(),Ta(),Ta(),Ta(),Ma(44,"div",23),Ma(45,"button",24),Na("click",function(){return t.onNoClick()}),Cs(46,"Cancel"),Ta(),Ma(47,"button",25),Na("click",function(){return t.onYesClick()}),Cs(48,"Apply"),Ta(),Ta()),2&e&&(zi(5),xa("formGroup",t.formGroup),zi(11),xa("ngModelOptions",Jc(13,Tie))("ngModel",t.project.auto_open),zi(2),xa("ngModelOptions",Jc(14,Tie))("ngModel",t.project.auto_start),zi(2),xa("ngModelOptions",Jc(15,Tie))("ngModel",t.auto_close),zi(2),xa("ngModelOptions",Jc(16,Tie))("ngModel",t.project.show_interface_labels),zi(3),xa("formGroup",t.variableFormGroup),zi(7),xa("dataSource",t.variables),zi(10),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("matRowDefColumns",t.displayedColumns))},directives:[h1,Q1,z1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,_f,P5,vf,l2,H5,X5,W5,U5,J5,t4,f1,K5,Z5,m4,T2,r4,o4],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 Pie(e,t){}var jie=new Tn("MatBottomSheetData"),Iie=function e(){Object(s.a)(this,e),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0},Aie={bottomSheetState:Vm("state",[Gm("void, hidden",Wm({transform:"translateY(100%)"})),Gm("visible",Wm({transform:"translateY(0%)"})),Ym("visible => void, visible => hidden",Um("".concat(aJ.COMPLEX," ").concat(oJ.ACCELERATION_CURVE))),Ym("void => visible",Um("".concat(aJ.EXITING," ").concat(oJ.DECELERATION_CURVE)))])},Die=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c){var l;return Object(s.a)(this,n),(l=t.call(this))._elementRef=e,l._changeDetectorRef=r,l._focusTrapFactory=i,l.bottomSheetConfig=c,l._animationState="void",l._animationStateChanged=new ul,l._elementFocusedBeforeOpened=null,l.attachDomPortal=function(e){return l._validatePortalAttached(),l._setPanelClass(),l._savePreviouslyFocusedElement(),l._portalOutlet.attachDomPortal(e)},l._document=a,l._breakpointSubscription=o.observe([B2,z2,H2]).subscribe(function(){l._toggleClass("mat-bottom-sheet-container-medium",o.isMatched(B2)),l._toggleClass("mat-bottom-sheet-container-large",o.isMatched(z2)),l._toggleClass("mat-bottom-sheet-container-xlarge",o.isMatched(H2))}),l}return Object(c.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._getActiveElement();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._getActiveElement(),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._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()})}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(Y$);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(M$),Sa(N2),Sa(Iu,8),Sa(Iie))},e.\u0275cmp=be({type:e,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){var n;1&e&&Cl(Z$,3),2&e&&kl(n=xl())&&(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&&Fa("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(va("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),Ps("@state",t._animationState))},features:[ia],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ka(0,Pie,0,0,"ng-template",0)},directives:[Z$],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:[Aie.bottomSheetState]}}),e}(),Rie=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[M0,lJ,$$],lJ]}),e}(),Lie=function(){function e(t,n){var r=this;Object(s.a)(this,e),this._overlayRef=n,this._afterDismissed=new k.b,this._afterOpened=new k.b,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe(Object(dp.a)(function(e){return"done"===e.phaseName&&"visible"===e.toState}),Object(Cp.a)(1)).subscribe(function(){r._afterOpened.next(),r._afterOpened.complete()}),t._animationStateChanged.pipe(Object(dp.a)(function(e){return"done"===e.phaseName&&"hidden"===e.toState}),Object(Cp.a)(1)).subscribe(function(){clearTimeout(r._closeFallbackTimeout),n.dispose()}),n.detachments().pipe(Object(Cp.a)(1)).subscribe(function(){r._afterDismissed.next(r._result),r._afterDismissed.complete()}),Object(S.a)(n.backdropClick(),n.keydownEvents().pipe(Object(dp.a)(function(e){return e.keyCode===n$}))).subscribe(function(e){r.disableClose||"keydown"===e.type&&i$(e)||(e.preventDefault(),r.dismiss())})}return Object(c.a)(e,[{key:"dismiss",value:function(e){var t=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(Object(dp.a)(function(e){return"start"===e.phaseName}),Object(Cp.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}(),Nie=new Tn("mat-bottom-sheet-default-options"),Fie=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._overlay=t,this._injector=n,this._parentBottomSheet=r,this._defaultOptions=i,this._bottomSheetRefAtThisLevel=null}return Object(c.a)(e,[{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}},{key:"open",value:function(e,t){var n=this,r=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new Iie,t),i=this._createOverlay(r),o=this._attachContainer(i,r),a=new Lie(o,i);if(e instanceof Ac)o.attachTemplatePortal(new G$(e,null,{$implicit:r.data,bottomSheetRef:a}));else{var s=new W$(e,void 0,this._createInjector(r,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:Iie,useValue:t}]}),r=new W$(Die,t.viewContainerRef,n);return e.attach(r).instance}},{key:"_createOverlay",value:function(e){var t=new t0({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,r=[{provide:Lie,useValue:t},{provide:jie,useValue:e.data}];return!e.direction||n&&n.get(Yf,null)||r.push({provide:Yf,useValue:{value:e.direction,change:Object(Bf.a)()}}),na.create({parent:n||this._injector,providers:r})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(w0),Gn(na),Gn(e,12),Gn(Nie,8))},e.\u0275prov=F({factory:function(){return new e(Gn(w0),Gn(Bo),Gn(e,12),Gn(Nie,8))},token:e,providedIn:Rie}),e}(),Bie=function(e){return{lightTheme:e}},zie=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)(Sa(Lie),Sa(Hre))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Cs(2),Ta(),Ma(3,"div"),Ma(4,"button",2),Na("click",function(){return t.onNoClick()}),Cs(5,"No"),Ta(),Ma(6,"button",3),Na("click",function(){return t.onYesClick()}),Cs(7,"Yes"),Ta(),Ta(),Ta()),2&e&&(xa("ngClass",el(2,Bie,t.isLightThemeEnabled)),zi(2),xs(" Do you want to navigate to ",t.projectMessage,"?"))},directives:[eh,l2],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}(),Hie=function(e){return{lightTheme:e}},Vie=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)(Sa(Lie),Sa(Hre))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Cs(2),Ta(),Ma(3,"div"),Ma(4,"button",2),Na("click",function(){return t.onNoClick()}),Cs(5,"No"),Ta(),Ma(6,"button",2),Na("click",function(){return t.onYesClick()}),Cs(7,"Yes"),Ta(),Ta(),Ta()),2&e&&(xa("ngClass",el(2,Hie,t.isLightThemeEnabled)),zi(2),Ss(t.message))},directives:[eh,l2],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}(),Uie=function(){function e(e){this.httpServer=e}return e.prototype.notificationsPath=function(e){return"ws://"+e.host+":"+e.port+"/v2/notifications/ws"},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function qie(e,t){if(1&e&&(Ma(0,"mat-option",19),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Wie(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",16),Ma(1,"mat-select",17),Na("selectionChange",function(e){return ut(n),Ua(2)._changePageSize(e.value)}),ka(2,qie,2,2,"mat-option",18),Ta(),Ta()}if(2&e){var r=Ua(2);xa("appearance",r._formFieldAppearance)("color",r.color),zi(1),xa("value",r.pageSize)("disabled",r.disabled)("aria-label",r._intl.itemsPerPageLabel),zi(1),xa("ngForOf",r._displayedPageSizeOptions)}}function Gie(e,t){if(1&e&&(Ma(0,"div",20),Cs(1),Ta()),2&e){var n=Ua(2);zi(1),Ss(n.pageSize)}}function Xie(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),Cs(2),Ta(),ka(3,Wie,3,6,"mat-form-field",14),ka(4,Gie,2,1,"div",15),Ta()),2&e){var n=Ua();zi(2),xs(" ",n._intl.itemsPerPageLabel," "),zi(1),xa("ngIf",n._displayedPageSizeOptions.length>1),zi(1),xa("ngIf",n._displayedPageSizeOptions.length<=1)}}function Yie(e,t){if(1&e){var n=Aa();Ma(0,"button",21),Na("click",function(){return ut(n),Ua().firstPage()}),Ft(),Ma(1,"svg",7),Ea(2,"path",22),Ta(),Ta()}if(2&e){var r=Ua();xa("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),va("aria-label",r._intl.firstPageLabel)}}function Kie(e,t){if(1&e){var n=Aa();Ft(),Bt(),Ma(0,"button",23),Na("click",function(){return ut(n),Ua().lastPage()}),Ft(),Ma(1,"svg",7),Ea(2,"path",24),Ta(),Ta()}if(2&e){var r=Ua();xa("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),va("aria-label",r._intl.lastPageLabel)}}var Qie=function(){var e=function e(){Object(s.a)(this,e),this.changes=new k.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 r=e*t,i=r<(n=Math.max(n,0))?Math.min(r+t,n):r+t;return"".concat(r+1," \u2013 ").concat(i," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Zie={provide:Qie,deps:[[new er,new tr,Qie]],useFactory:function(e){return e||new Qie}},$ie=new Tn("MAT_PAGINATOR_DEFAULT_OPTIONS"),Jie=uJ(mJ(function e(){Object(s.a)(this,e)})),eoe=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;if(Object(s.a)(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=r,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new ul,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),i){var a=i.pageSize,c=i.pageSizeOptions,l=i.hidePageSize,u=i.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=c&&(o._pageSizeOptions=c),null!=l&&(o._hidePageSize=l),null!=u&&(o._showFirstLastButtons=u)}return o}return Object(c.a)(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(Af(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=Af(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(Af(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return Af(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=If(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=If(e)}},{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})}}]),n}(Jie);return e.\u0275fac=function(t){return new(t||e)(Sa(Qie),Sa(Oc),Sa(void 0))},e.\u0275dir=Se({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[ia]}),e}(),toe=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),o=t.call(this,e,r,i),i&&null!=i.formFieldAppearance&&(o._formFieldAppearance=i.formFieldAppearance),o}return n}(eoe);return e.\u0275fac=function(t){return new(t||e)(Sa(Qie),Sa(Oc),Sa($ie,8))},e.\u0275cmp=be({type:e,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ia],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&&(Ma(0,"div",0),Ma(1,"div",1),ka(2,Xie,5,3,"div",2),Ma(3,"div",3),Ma(4,"div",4),Cs(5),Ta(),ka(6,Yie,3,5,"button",5),Ma(7,"button",6),Na("click",function(){return t.previousPage()}),Ft(),Ma(8,"svg",7),Ea(9,"path",8),Ta(),Ta(),Bt(),Ma(10,"button",9),Na("click",function(){return t.nextPage()}),Ft(),Ma(11,"svg",7),Ea(12,"path",10),Ta(),Ta(),ka(13,Kie,3,5,"button",11),Ta(),Ta(),Ta()),2&e&&(zi(2),xa("ngIf",!t.hidePageSize),zi(3),xs(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),zi(1),xa("ngIf",t.showFirstLastButtons),zi(1),xa("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),va("aria-label",t._intl.previousPageLabel),zi(3),xa("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),va("aria-label",t._intl.nextPageLabel),zi(3),xa("ngIf",t.showFirstLastButtons))},directives:[ih,l2,m4,H3,v5,nh,UJ],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}(),noe=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[Zie],imports:[[vh,h2,y5,v4,lJ]]}),e}(),roe=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 e.protocol+"//"+e.host+":"+e.port+"/v2/compute/"+t+"/images/"+n},e.prototype.updateAppliances=function(e){return this.httpServer.get(e,"/appliances?update=yes")},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function ioe(e,t){if(1&e&&(Ma(0,"div"),Cs(1),Ta()),2&e){var n=Ua();zi(1),xs(" Adapters: ",n.appliance.qemu.adapters," ")}}function ooe(e,t){if(1&e&&(Ma(0,"div"),Cs(1),Ta()),2&e){var n=Ua();zi(1),xs(" Console type: ",n.appliance.qemu.console_type," ")}}var aoe=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)(Sa(n1),Sa(i1))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"h1",1),Cs(2),Ta(),Ta(),Ma(3,"div",2),Ma(4,"div"),Cs(5),Ta(),Ma(6,"div"),Cs(7),Ta(),Ma(8,"div"),Cs(9),Ta(),ka(10,ioe,2,1,"div",3),ka(11,ooe,2,1,"div",3),Ta(),Ma(12,"div",4),Ma(13,"button",5),Na("click",function(){return t.onNoClick()}),Cs(14,"Close"),Ta(),Ta()),2&e&&(zi(2),Ss(t.appliance.name),zi(3),xs(" Vendor: ",t.appliance.vendor_name," "),zi(2),xs(" Status: ",t.appliance.status," "),zi(2),xs(" Maintainer: ",t.appliance.maintainer," "),zi(1),xa("ngIf",t.appliance.qemu),zi(1),xa("ngIf",t.appliance.qemu))},directives:[h1,d1,ih,f1,l2],encapsulation:2}),e}(),soe=function(){return function(){}}(),coe=function(){return function(){}}(),loe=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),uoe=function(){return function(){}}(),hoe=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 e.protocol+"//"+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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),doe=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 e.protocol+"//"+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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),foe=function(){return function(){}}(),poe=function(){function e(e){this.httpServer=e,this.newTemplateCreated=new k.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),moe=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 e.protocol+"//"+e.host+":"+e.port+"/v2/"+t+"/images/"+n},e.prototype.getStatistics=function(e){return this.httpServer.get(e,"/statistics")},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),goe=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)(Sa(n1))},e.\u0275cmp=be({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&&(Ma(0,"span"),Cs(1),Ta(),Ma(2,"div",0),Ma(3,"button",1),Na("click",function(){return t.onNoClick()}),Cs(4,"No"),Ta(),Ma(5,"button",2),Na("click",function(){return t.onYesClick()}),Cs(6," Yes "),Ta(),Ta()),2&e&&(zi(1),Ss(t.confirmationMessage))},directives:[f1,l2],styles:[""]}),e}();function voe(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Template name is required"),Ta())}function boe(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Template name is incorrect"),Ta())}function yoe(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"Template with this name exists"),Ta())}var _oe=function(e){return{"is-invalid":e}},woe=function(){function e(e,t,n,r,i,o,a,s){this.dialogRef=e,this.router=t,this.dialog=n,this.toasterService=r,this.formBuilder=i,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 lf(this.data.name,[yd.required,this.templateNameValidator.get],[(e=this.server,t=this.templateService,function(n){return Object(m1.a)(500).pipe(Object(gp.a)(function(){return t.list(e)}),Object(cd.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)(Sa(n1),Sa(uZ),Sa(l1),Sa(e3),Sa(jf),Sa(iie),Sa(poe),Sa(i1))},e.\u0275cmp=be({type:e,selectors:[["app-template-name-dialog"]],features:[Gs([iie])],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&&(Ma(0,"h1",0),Cs(1,"Please enter name for the new template"),Ta(),Ma(2,"form",1),Ma(3,"mat-form-field",2),Ma(4,"input",3),Na("keydown",function(e){return t.onKeyDown(e)}),Ta(),ka(5,voe,2,0,"mat-error",4),ka(6,boe,2,0,"mat-error",4),ka(7,yoe,2,0,"mat-error",4),Ta(),Ma(8,"div",5),Ma(9,"button",6),Na("click",function(){return t.onNoClick()}),Cs(10,"Cancel"),Ta(),Ma(11,"button",7),Na("click",function(){return t.onAddClick()}),Cs(12,"Add template"),Ta(),Ta(),Ta()),2&e&&(zi(2),xa("formGroup",t.templateNameForm),zi(2),xa("ngClass",el(5,_oe,null==t.form.templateName?null:t.form.templateName.errors)),zi(1),xa("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)),zi(1),xa("ngIf",(null==t.form.templateName?null:t.form.templateName.errors)&&(null==t.form.templateName?null:t.form.templateName.errors.invalidName)),zi(1),xa("ngIf",(null==t.form.templateName?null:t.form.templateName.errors)&&(null==t.form.templateName?null:t.form.templateName.errors.templateExist)))},directives:[h1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,eh,ih,f1,l2,T3],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}(),koe=n("aaBP");function Coe(e,t){1&e&&Ga(0)}var Soe=["*"],xoe=function(){var e=function(){function e(t){Object(s.a)(this,e),this._elementRef=t}return Object(c.a)(e,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e}(),Ooe=function(){var e=function e(t){Object(s.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["","cdkStepLabel",""]]}),e}(),Moe=0,Toe="number",Eoe="edit",Poe="done",joe="error",Ioe=new Tn("STEPPER_GLOBAL_OPTIONS"),Aoe=function(){var e=function(){function e(t,n){Object(s.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(c.a)(e,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=If(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=If(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=If(e)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(e){this._customError=If(e)}},{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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(j(function(){return Doe})),Sa(Ioe,8))},e.\u0275cmp=be({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,Ooe,1),2&e&&kl(r=xl())&&(t.stepLabel=r.first)},viewQuery:function(e,t){var n;1&e&&Cl(Ac,3),2&e&&kl(n=xl())&&(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:[Fe],ngContentSelectors:Soe,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),ka(0,Coe,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),Doe=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._dir=t,this._changeDetectorRef=n,this._elementRef=r,this._destroyed=new k.b,this.steps=new dl,this._linear=!1,this._selectedIndex=0,this.selectionChange=new ul,this._orientation="horizontal",this._groupId=Moe++,this._document=i}return Object(c.a)(e,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=If(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var t=Af(e);if(this.steps&&this._steps){this._isValidIndex(e);var n=this.selected;n&&(n.interacted=!0),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e)}else 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}},{key:"ngAfterContentInit",value:function(){var e=this;this._steps.changes.pipe(Object(pp.a)(this._steps),Object(fp.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 k$(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(Bf.a)()).pipe(Object(pp.a)(this._layoutDirection()),Object(fp.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))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=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]:Toe,n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}},{key:"_getDefaultIndicatorLogic",value:function(e,t){return e._showError&&e.hasError&&!t?joe:!e.completed||t?Toe:e.editable?Eoe:Poe}},{key:"_getGuidelineLogic",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Toe;return e._showError&&e.hasError&&!t?joe:e.completed&&!t?Poe:e.completed&&t?n:e.editable&&t?Eoe: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=i$(e),n=e.keyCode,r=this._keyManager;null==r.activeItemIndex||t||n!==r$&&n!==t$?r.onKeydown(e):(this.selectedIndex=r.activeItemIndex,e.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(e){return!!(this._linear&&e>=0)&&this.steps.toArray().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:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Yf,8),Sa(Oc),Sa(ec),Sa(Iu))},e.\u0275dir=Se({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,Aoe,1),Sl(n,xoe,1)),2&e&&(kl(r=xl())&&(t._steps=r),kl(r=xl())&&(t._stepHeader=r))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),e}(),Roe=function(){var e=function(){function e(t){Object(s.a)(this,e),this._stepper=t,this.type="submit"}return Object(c.a)(e,[{key:"_handleClick",value:function(){this._stepper.next()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Doe))},e.\u0275dir=Se({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&Na("click",function(){return t._handleClick()}),2&e&&Es("type",t.type)},inputs:{type:"type"}}),e}(),Loe=function(){var e=function(){function e(t){Object(s.a)(this,e),this._stepper=t,this.type="button"}return Object(c.a)(e,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Doe))},e.\u0275dir=Se({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&Na("click",function(){return t._handleClick()}),2&e&&Es("type",t.type)},inputs:{type:"type"}}),e}(),Noe=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[Kf]]}),e}();function Foe(e,t){if(1&e&&Ia(0,8),2&e){var n=Ua();xa("ngTemplateOutlet",n.iconOverrides[n.state])("ngTemplateOutletContext",n._getIconContext())}}function Boe(e,t){if(1&e&&(Ma(0,"span"),Cs(1),Ta()),2&e){var n=Ua(2);zi(1),Ss(n._getDefaultTextForState(n.state))}}function zoe(e,t){if(1&e&&(Ma(0,"mat-icon"),Cs(1),Ta()),2&e){var n=Ua(2);zi(1),Ss(n._getDefaultTextForState(n.state))}}function Hoe(e,t){1&e&&(Pa(0,9),ka(1,Boe,2,1,"span",10),ka(2,zoe,2,1,"mat-icon",11),ja()),2&e&&(xa("ngSwitch",Ua().state),zi(1),xa("ngSwitchCase","number"))}function Voe(e,t){if(1&e&&(Ma(0,"div",12),Ia(1,13),Ta()),2&e){var n=Ua();zi(1),xa("ngTemplateOutlet",n._templateLabel().template)}}function Uoe(e,t){if(1&e&&(Ma(0,"div",12),Cs(1),Ta()),2&e){var n=Ua();zi(1),Ss(n.label)}}function qoe(e,t){if(1&e&&(Ma(0,"div",14),Cs(1),Ta()),2&e){var n=Ua();zi(1),Ss(n._intl.optionalLabel)}}function Woe(e,t){if(1&e&&(Ma(0,"div",15),Cs(1),Ta()),2&e){var n=Ua();zi(1),Ss(n.errorMessage)}}function Goe(e,t){1&e&&Ga(0)}var Xoe=["*"];function Yoe(e,t){1&e&&Ea(0,"div",6)}function Koe(e,t){if(1&e){var n=Aa();Pa(0),Ma(1,"mat-step-header",4),Na("click",function(){return t.$implicit.select()})("keydown",function(e){return ut(n),Ua()._onKeydown(e)}),Ta(),ka(2,Yoe,1,0,"div",5),ja()}if(2&e){var r=t.$implicit,i=t.index,o=t.last,a=Ua();zi(1),xa("tabIndex",a._getFocusIndex()===i?0:-1)("id",a._getStepLabelId(i))("index",i)("state",a._getIndicatorType(i,r.state))("label",r.stepLabel||r.label)("selected",a.selectedIndex===i)("active",r.completed||a.selectedIndex===i||!a.linear)("optional",r.optional)("errorMessage",r.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple)("color",r.color||a.color),va("aria-posinset",i+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(i))("aria-selected",a.selectedIndex==i)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),zi(1),xa("ngIf",!o)}}function Qoe(e,t){if(1&e){var n=Aa();Ma(0,"div",7),Na("@stepTransition.done",function(e){return ut(n),Ua()._animationDone.next(e)}),Ia(1,8),Ta()}if(2&e){var r=t.$implicit,i=t.index,o=Ua();xa("@stepTransition",o._getAnimationDirection(i))("id",o._getStepContentId(i)),va("aria-labelledby",o._getStepLabelId(i))("aria-expanded",o.selectedIndex===i),zi(1),xa("ngTemplateOutlet",r.content)}}function Zoe(e,t){if(1&e){var n=Aa();Ma(0,"div",1),Ma(1,"mat-step-header",2),Na("click",function(){return t.$implicit.select()})("keydown",function(e){return ut(n),Ua()._onKeydown(e)}),Ta(),Ma(2,"div",3),Ma(3,"div",4),Na("@stepTransition.done",function(e){return ut(n),Ua()._animationDone.next(e)}),Ma(4,"div",5),Ia(5,6),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=t.index,o=t.last,a=Ua();zi(1),xa("tabIndex",a._getFocusIndex()==i?0:-1)("id",a._getStepLabelId(i))("index",i)("state",a._getIndicatorType(i,r.state))("label",r.stepLabel||r.label)("selected",a.selectedIndex===i)("active",r.completed||a.selectedIndex===i||!a.linear)("optional",r.optional)("errorMessage",r.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple)("color",r.color||a.color),va("aria-posinset",i+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),zi(1),cs("mat-stepper-vertical-line",!o),zi(1),xa("@stepTransition",a._getAnimationDirection(i))("id",a._getStepContentId(i)),va("aria-labelledby",a._getStepLabelId(i))("aria-expanded",a.selectedIndex===i),zi(2),xa("ngTemplateOutlet",r.content)}}var $oe='.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',Joe=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Ooe);return e.\u0275fac=function(t){return eae(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matStepLabel",""]],features:[ia]}),e}(),eae=Cn(Joe),tae=function(){var e=function e(){Object(s.a)(this,e),this.changes=new k.b,this.optionalLabel="Optional"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({factory:function(){return new e},token:e,providedIn:"root"}),e}(),nae={provide:tae,deps:[[new er,new tr,tae]],useFactory:function(e){return e||new tae}},rae=hJ(function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){return Object(s.a)(this,n),t.call(this,e)}return n}(xoe),"primary"),iae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,i))._intl=e,a._focusMonitor=r,a._intlSubscription=e.changes.subscribe(function(){return o.markForCheck()}),a}return Object(c.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(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}},{key:"_stringLabel",value:function(){return this.label instanceof Joe?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof Joe?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}(rae);return e.\u0275fac=function(t){return new(t||e)(Sa(tae),Sa(R$),Sa(ec),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[ia],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&&(Ea(0,"div",0),Ma(1,"div"),Ma(2,"div",1),ka(3,Foe,1,2,"ng-container",2),ka(4,Hoe,3,2,"ng-container",3),Ta(),Ta(),Ma(5,"div",4),ka(6,Voe,2,1,"div",5),ka(7,Uoe,2,1,"div",5),ka(8,qoe,2,1,"div",6),ka(9,Woe,2,1,"div",7),Ta()),2&e&&(xa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),zi(1),Ts("mat-step-icon-state-",t.state," mat-step-icon"),cs("mat-step-icon-selected",t.selected),zi(1),xa("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),zi(1),xa("ngSwitchCase",!0),zi(2),cs("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),zi(1),xa("ngIf",t._templateLabel()),zi(1),xa("ngIf",t._stringLabel()),zi(1),xa("ngIf",t.optional&&"error"!=t.state),zi(1),xa("ngIf","error"==t.state))},directives:[EJ,ch,lh,uh,ih,dh,T2],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}(),oae={horizontalStepTransition:Vm("stepTransition",[Gm("previous",Wm({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Gm("current",Wm({transform:"none",visibility:"inherit"})),Gm("next",Wm({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Ym("* => *",Um("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Vm("stepTransition",[Gm("previous",Wm({height:"0px",visibility:"hidden"})),Gm("next",Wm({height:"0px",visibility:"hidden"})),Gm("current",Wm({height:"*",visibility:"inherit"})),Ym("* <=> current",Um("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},aae=function(){var e=function e(t){Object(s.a)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),e}(),sae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e,i))._errorStateMatcher=r,o}return Object(c.a)(n,[{key:"isErrorState",value:function(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}]),n}(Aoe);return e.\u0275fac=function(t){return new(t||e)(Sa(j(function(){return cae})),Sa(gJ,4),Sa(Ioe,8))},e.\u0275cmp=be({type:e,selectors:[["mat-step"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,Joe,1),2&e&&kl(r=xl())&&(t.stepLabel=r.first)},inputs:{color:"color"},exportAs:["matStep"],features:[Gs([{provide:gJ,useExisting:e},{provide:Aoe,useExisting:e}]),ia],ngContentSelectors:Xoe,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),ka(0,Goe,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),cae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments)).steps=new dl,e.animationDone=new ul,e._iconOverrides={},e._animationDone=new k.b,e}return Object(c.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(fp.a)(this._destroyed)).subscribe(function(){e._stateChanged()}),this._animationDone.pipe(Object(up.a)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}),Object(fp.a)(this._destroyed)).subscribe(function(t){"current"===t.toState&&e.animationDone.emit()})}}]),n}(Doe);return e.\u0275fac=function(t){return lae(t||e)},e.\u0275dir=Se({type:e,selectors:[["","matStepper",""]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,sae,1),Sl(n,aae,1)),2&e&&(kl(r=xl())&&(t._steps=r),kl(r=xl())&&(t._icons=r))},viewQuery:function(e,t){var n;1&e&&Cl(iae,1),2&e&&kl(n=xl())&&(t._stepHeader=n)},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[Gs([{provide:Doe,useExisting:e}]),ia]}),e}(),lae=Cn(cae),uae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments)).labelPosition="end",e}return n}(cae);return e.\u0275fac=function(t){return hae(t||e)},e.\u0275cmp=be({type:e,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(e,t){2&e&&cs("mat-stepper-label-position-end","end"==t.labelPosition)("mat-stepper-label-position-bottom","bottom"==t.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[Gs([{provide:cae,useExisting:e},{provide:Doe,useExisting:e}]),ia],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","color","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&&(Ma(0,"div",0),ka(1,Koe,3,19,"ng-container",1),Ta(),Ma(2,"div",2),ka(3,Qoe,2,5,"div",3),Ta()),2&e&&(zi(1),xa("ngForOf",t.steps),zi(2),xa("ngForOf",t.steps))},directives:[nh,iae,ih,dh],styles:[$oe],encapsulation:2,data:{animation:[oae.horizontalStepTransition]},changeDetection:0}),e}(),hae=Cn(uae),dae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;return Object(s.a)(this,n),(a=t.call(this,e,r,i,o))._orientation="vertical",a}return n}(cae);return e.\u0275fac=function(t){return new(t||e)(Sa(Yf,8),Sa(Oc),Sa(ec),Sa(Iu))},e.\u0275cmp=be({type:e,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[Gs([{provide:cae,useExisting:e},{provide:Doe,useExisting:e}]),ia],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","color","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&&ka(0,Zoe,6,25,"div",0),2&e&&xa("ngForOf",t.steps)},directives:[nh,iae,dh],styles:[$oe],encapsulation:2,data:{animation:[oae.verticalStepTransition]},changeDetection:0}),e}(),fae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Roe);return e.\u0275fac=function(t){return pae(t||e)},e.\u0275dir=Se({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&Es("type",t.type)},inputs:{type:"type"},features:[ia]}),e}(),pae=Cn(fae),mae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(Loe);return e.\u0275fac=function(t){return gae(t||e)},e.\u0275dir=Se({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&Es("type",t.type)},inputs:{type:"type"},features:[ia]}),e}(),gae=Cn(mae),vae=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[nae,gJ],imports:[[lJ,vh,$$,h2,Noe,E2,PJ],lJ]}),e}(),bae=["mat-sort-header",""];function yae(e,t){if(1&e){var n=Aa();Ma(0,"div",3),Na("@arrowPosition.start",function(){return ut(n),Ua()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return ut(n),Ua()._disableViewStateAnimation=!1}),Ea(1,"div",4),Ma(2,"div",5),Ea(3,"div",6),Ea(4,"div",7),Ea(5,"div",8),Ta(),Ta()}if(2&e){var r=Ua();xa("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),zi(2),xa("@indicator",r._getArrowDirectionState()),zi(1),xa("@leftPointer",r._getArrowDirectionState()),zi(1),xa("@rightPointer",r._getArrowDirectionState())}}var _ae=["*"],wae=new Tn("MAT_SORT_DEFAULT_OPTIONS"),kae=mJ(uJ(function e(){Object(s.a)(this,e)})),Cae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this))._defaultOptions=e,r.sortables=new Map,r._stateChanges=new k.b,r.start="asc",r._direction="",r.sortChange=new ul,r}return Object(c.a)(n,[{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=If(e)}},{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){var t,n,r;if(!e)return"";var i=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(r=this._defaultOptions)||void 0===r?void 0:r.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,i),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(kae);return e.\u0275fac=function(t){return new(t||e)(Sa(wae,8))},e.\u0275dir=Se({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:[ia,Fe]}),e}(),Sae=aJ.ENTERING+" "+oJ.STANDARD_CURVE,xae={indicator:Vm("indicator",[Gm("active-asc, asc",Wm({transform:"translateY(0px)"})),Gm("active-desc, desc",Wm({transform:"translateY(10px)"})),Ym("active-asc <=> active-desc",Um(Sae))]),leftPointer:Vm("leftPointer",[Gm("active-asc, asc",Wm({transform:"rotate(-45deg)"})),Gm("active-desc, desc",Wm({transform:"rotate(45deg)"})),Ym("active-asc <=> active-desc",Um(Sae))]),rightPointer:Vm("rightPointer",[Gm("active-asc, asc",Wm({transform:"rotate(45deg)"})),Gm("active-desc, desc",Wm({transform:"rotate(-45deg)"})),Ym("active-asc <=> active-desc",Um(Sae))]),arrowOpacity:Vm("arrowOpacity",[Gm("desc-to-active, asc-to-active, active",Wm({opacity:1})),Gm("desc-to-hint, asc-to-hint, hint",Wm({opacity:.54})),Gm("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Wm({opacity:0})),Ym("* => asc, * => desc, * => active, * => hint, * => void",Um("0ms")),Ym("* <=> *",Um(Sae))]),arrowPosition:Vm("arrowPosition",[Ym("* => desc-to-hint, * => desc-to-active",Um(Sae,Xm([Wm({transform:"translateY(-25%)"}),Wm({transform:"translateY(0)"})]))),Ym("* => hint-to-desc, * => active-to-desc",Um(Sae,Xm([Wm({transform:"translateY(0)"}),Wm({transform:"translateY(25%)"})]))),Ym("* => asc-to-hint, * => asc-to-active",Um(Sae,Xm([Wm({transform:"translateY(25%)"}),Wm({transform:"translateY(0)"})]))),Ym("* => hint-to-asc, * => active-to-asc",Um(Sae,Xm([Wm({transform:"translateY(0)"}),Wm({transform:"translateY(-25%)"})]))),Gm("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Wm({transform:"translateY(0)"})),Gm("hint-to-desc, active-to-desc, desc",Wm({transform:"translateY(-25%)"})),Gm("hint-to-asc, active-to-asc, asc",Wm({transform:"translateY(25%)"}))]),allowChildren:Vm("allowChildren",[Ym("* <=> *",[Qm("@*",Km(),{optional:!0})])])},Oae=function(){var e=function e(){Object(s.a)(this,e),this.changes=new k.b,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Mae={provide:Oae,deps:[[new er,new tr,Oae]],useFactory:function(e){return e||new Oae}},Tae=uJ(function e(){Object(s.a)(this,e)}),Eae=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c){var l;return Object(s.a)(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=r,l._sort=i,l._columnDef=o,l._focusMonitor=a,l._elementRef=c,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return Object(c.a)(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=If(e)}},{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){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{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)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||e.keyCode!==r$&&e.keyCode!==t$||(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:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=Object(S.a)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(Tae);return e.\u0275fac=function(t){return new(t||e)(Sa(Oae),Sa(Oc),Sa(Cae,8),Sa("MAT_SORT_HEADER_COLUMN_DEF",8),Sa(R$),Sa(ec))},e.\u0275cmp=be({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Na("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&&(va("aria-sort",t._getAriaSortAttribute()),cs("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ia],attrs:bae,ngContentSelectors:_ae,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&&(Wa(),Ma(0,"div",0),Ma(1,"div",1),Ga(2),Ta(),ka(3,yae,6,6,"div",2),Ta()),2&e&&(cs("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),va("tabindex",t._isDisabled()?null:0),zi(3),xa("ngIf",t._renderArrow()))},directives:[ih],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:[xae.indicator,xae.leftPointer,xae.rightPointer,xae.arrowOpacity,xae.arrowPosition,xae.allowChildren]},changeDetection:0}),e}(),Pae=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[Mae],imports:[[vh,lJ]]}),e}(),jae=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}(),Iae=["stepper"];function Aae(e,t){1&e&&Cs(0,"Please select how you want to create new template")}function Dae(e,t){1&e&&Cs(0),2&e&&Ss(Ua().actionTitle)}function Rae(e,t){if(1&e&&(Ma(0,"mat-option",33),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Lae(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Name "),Ta())}function Nae(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.name," ")}}function Fae(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Emulator "),Ta())}function Bae(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.emulator," ")}}function zae(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Vendor "),Ta())}function Hae(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.vendor_name," ")}}function Vae(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Actions "),Ta())}function Uae(e,t){if(1&e){var n=Aa();Ma(0,"mat-cell",34),Ma(1,"button",35),Na("click",function(){ut(n);var e=t.$implicit;return Ua().install(e)}),Ma(2,"mat-icon",36),Cs(3,"archive"),Ta(),Ta(),Ma(4,"button",37),Na("click",function(){ut(n);var e=t.$implicit;return Ua().showInfo(e)}),Ma(5,"mat-icon",38),Cs(6,"info"),Ta(),Ta(),Ta()}}function qae(e,t){1&e&&Ea(0,"mat-header-row")}function Wae(e,t){1&e&&Ea(0,"mat-row")}function Gae(e,t){1&e&&Cs(0),2&e&&Ss(Ua(2).secondActionTitle)}function Xae(e,t){if(1&e&&(Ma(0,"mat-option",33),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n.path," ")}}function Yae(e,t){1&e&&(Ma(0,"span"),Ma(1,"mat-icon",52),Cs(2,"check"),Ta(),Ta())}function Kae(e,t){1&e&&(Ma(0,"span"),Ma(1,"mat-icon",53),Cs(2,"close"),Ta(),Ta())}function Qae(e,t){if(1&e){var n=Aa();Ma(0,"div",48),Ma(1,"span"),Cs(2),Ta(),Ma(3,"div"),ka(4,Yae,3,0,"span",32),ka(5,Kae,3,0,"span",32),Ma(6,"input",49,50),Na("change",function(e){ut(n);var t=Ua().$implicit;return Ua(3).importImage(e,t.images.hda_disk_image)}),Ta(),Ma(8,"button",51),Na("click",function(){return ut(n),Ca(7).click()}),Cs(9,"Import"),Ta(),Ma(10,"button",51),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua(3).downloadImageFromVersion(e.images.hda_disk_image)}),Cs(11,"Download"),Ta(),Ta(),Ta()}if(2&e){var r=Ua().$implicit,i=Ua(3);zi(2),xs(" ",r.images.hda_disk_image," "),zi(2),xa("ngIf",i.checkImageFromVersion(r.images.hda_disk_image)),zi(1),xa("ngIf",!i.checkImageFromVersion(r.images.hda_disk_image)),zi(1),xa("uploader",i.uploaderImage)}}function Zae(e,t){1&e&&(Ma(0,"span"),Ma(1,"mat-icon",52),Cs(2,"check"),Ta(),Ta())}function $ae(e,t){1&e&&(Ma(0,"span"),Ma(1,"mat-icon",53),Cs(2,"close"),Ta(),Ta())}function Jae(e,t){if(1&e){var n=Aa();Ma(0,"div",48),Ma(1,"span"),Cs(2),Ta(),Ma(3,"div"),ka(4,Zae,3,0,"span",32),ka(5,$ae,3,0,"span",32),Ma(6,"input",49,54),Na("change",function(e){ut(n);var t=Ua().$implicit;return Ua(3).importImage(e,t.images.hdb_disk_image)}),Ta(),Ma(8,"button",51),Na("click",function(){return ut(n),Ca(7).click()}),Cs(9,"Import"),Ta(),Ma(10,"button",51),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua(3).downloadImageFromVersion(e.images.hdb_disk_image)}),Cs(11,"Download"),Ta(),Ta(),Ta()}if(2&e){var r=Ua().$implicit,i=Ua(3);zi(2),xs(" ",r.images.hdb_disk_image," "),zi(2),xa("ngIf",i.checkImageFromVersion(r.images.hdb_disk_image)),zi(1),xa("ngIf",!i.checkImageFromVersion(r.images.hdb_disk_image)),zi(1),xa("uploader",i.uploaderImage)}}function ese(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"div",45),Ma(2,"span"),Cs(3),Ta(),Ma(4,"div"),Ma(5,"button",46),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).createQemuTemplateFromVersion(e)}),Cs(6,"Create"),Ta(),Ta(),Ta(),ka(7,Qae,12,4,"div",47),ka(8,Jae,12,4,"div",47),Ta()}if(2&e){var r=t.$implicit,i=Ua(3);zi(3),Os("",i.applianceToInstall.name," version ",r.name,""),zi(4),xa("ngIf",r.images.hda_disk_image),zi(1),xa("ngIf",r.images.hdb_disk_image)}}var tse=function(){return{standalone:!0}};function nse(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"div"),Cs(2," Server type"),Ea(3,"br"),Ma(4,"mat-radio-group",4),Ma(5,"mat-radio-button",39),Na("click",function(){return ut(n),Ua(2).setServerType("local")}),Cs(6,"Install the appliance locally"),Ta(),Ma(7,"mat-radio-button",40),Na("click",function(){return ut(n),Ua(2).setServerType("gns3 vm")}),Cs(8,"Install the appliance on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(9,"div"),Cs(10," Qemu binary"),Ea(11,"br"),Ma(12,"mat-select",41),Na("ngModelChange",function(e){return ut(n),Ua(2).selectedBinary=e}),ka(13,Xae,2,2,"mat-option",14),Ta(),Ta(),Ma(14,"div"),Cs(15," Install required files "),Ma(16,"button",42),Na("click",function(){return ut(n),Ua(2).refreshImages()}),Ma(17,"mat-icon",43),Cs(18,"refresh"),Ta(),Ta(),Ea(19,"br"),Ma(20,"div"),ka(21,ese,9,4,"div",44),Ta(),Ta(),Ta()}if(2&e){var r=Ua(2);zi(5),xa("disabled",!r.isLinuxPlatform)("checked",!r.isGns3VmChosen),zi(2),xa("disabled",!r.isGns3VmAvailable)("checked",r.isGns3VmChosen),zi(5),xa("ngModel",r.selectedBinary)("ngModelOptions",Jc(8,tse)),zi(1),xa("ngForOf",r.qemuBinaries),zi(8),xa("ngForOf",r.applianceToInstall.versions)}}function rse(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"div"),Cs(2," Server type"),Ea(3,"br"),Ma(4,"mat-radio-group",4),Ma(5,"mat-radio-button",39),Na("click",function(){return ut(n),Ua(2).setServerType("local")}),Cs(6,"Install the appliance locally"),Ta(),Ma(7,"mat-radio-button",40),Na("click",function(){return ut(n),Ua(2).setServerType("gns3 vm")}),Cs(8,"Install the appliance on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(9,"button",29),Na("click",function(){return ut(n),Ua(2).createDockerTemplate()}),Cs(10,"Create docker template"),Ta(),Ta()}if(2&e){var r=Ua(2);zi(5),xa("disabled",!r.isLinuxPlatform)("checked",!r.isGns3VmChosen),zi(2),xa("disabled",!r.isGns3VmAvailable)("checked",r.isGns3VmChosen)}}function ise(e,t){if(1&e){var n=Aa();Ma(0,"mat-list-item"),Ma(1,"div",45),Ma(2,"div"),Cs(3),Ta(),Ma(4,"div"),Ma(5,"input",49,50),Na("change",function(e){ut(n);var r=t.$implicit;return Ua(3).importImage(e,r.filename)}),Ta(),Ma(7,"button",51),Na("click",function(){return ut(n),Ca(6).click()}),Cs(8,"Import"),Ta(),Ma(9,"button",46),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).createIosTemplate(e)}),Cs(10,"Create"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ua(3);zi(3),xs(" ",r.filename," "),zi(2),xa("uploader",i.uploaderImage)}}function ose(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"div"),Cs(2," Server type"),Ea(3,"br"),Ma(4,"mat-radio-group",4),Ma(5,"mat-radio-button",55),Na("click",function(){return ut(n),Ua(2).setServerType("local")}),Cs(6,"Install the appliance locally"),Ta(),Ma(7,"mat-radio-button",40),Na("click",function(){return ut(n),Ua(2).setServerType("gns3 vm")}),Cs(8,"Install the appliance on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(9,"div"),Cs(10," Install required files "),Ma(11,"button",42),Na("click",function(){return ut(n),Ua(2).refreshImages()}),Ma(12,"mat-icon",43),Cs(13,"refresh"),Ta(),Ta(),Ea(14,"br"),Ma(15,"mat-list"),ka(16,ise,11,2,"mat-list-item",44),Ta(),Ta(),Ta()}if(2&e){var r=Ua(2);zi(5),xa("checked",!r.isGns3VmChosen),zi(2),xa("disabled",!r.isGns3VmAvailable)("checked",r.isGns3VmChosen),zi(9),xa("ngForOf",r.applianceToInstall.images)}}function ase(e,t){if(1&e){var n=Aa();Ma(0,"mat-list-item"),Ma(1,"div",45),Ma(2,"div"),Cs(3),Ta(),Ma(4,"div"),Ma(5,"input",49,50),Na("change",function(){ut(n);var e=t.$implicit,r=Ua(3);return r.importImage(r.$,e.filename)}),Ta(),Ma(7,"button",51),Na("click",function(){return ut(n),Ca(6).click()}),Cs(8,"Import"),Ta(),Ma(9,"button",46),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).createIouTemplate(e)}),Cs(10,"Create"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ua(3);zi(3),xs(" ",r.filename," "),zi(2),xa("uploader",i.uploaderImage)}}function sse(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"div"),Cs(2," Server type"),Ea(3,"br"),Ma(4,"mat-radio-group",4),Ma(5,"mat-radio-button",39),Na("click",function(){return ut(n),Ua(2).setServerType("local")}),Cs(6,"Install the appliance locally"),Ta(),Ma(7,"mat-radio-button",40),Na("click",function(){return ut(n),Ua(2).setServerType("gns3 vm")}),Cs(8,"Install the appliance on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(9,"div"),Cs(10," Install required files "),Ma(11,"button",42),Na("click",function(){return ut(n),Ua(2).refreshImages()}),Ma(12,"mat-icon",43),Cs(13,"refresh"),Ta(),Ta(),Ea(14,"br"),Ma(15,"mat-list"),ka(16,ase,11,2,"mat-list-item",44),Ta(),Ta(),Ta()}if(2&e){var r=Ua(2);zi(5),xa("disabled",!r.isLinuxPlatform)("checked",!r.isGns3VmChosen),zi(2),xa("disabled",!r.isGns3VmAvailable)("checked",r.isGns3VmChosen),zi(9),xa("ngForOf",r.applianceToInstall.images)}}function cse(e,t){if(1&e){var n=Aa();Ma(0,"mat-step"),ka(1,Gae,1,1,"ng-template",3),Ma(2,"mat-card",9),Cs(3," Please configure GNS3 VM to install selected appliance "),Ta(),Ma(4,"mat-card",9),ka(5,nse,22,9,"div",32),ka(6,rse,11,4,"div",32),ka(7,ose,17,4,"div",32),ka(8,sse,17,5,"div",32),Ta(),Ma(9,"div"),Ma(10,"button",30),Cs(11,"Back"),Ta(),Ma(12,"button",8),Na("click",function(){return ut(n),Ua().onCloseClick()}),Cs(13,"Cancel"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("hidden",!(!r.isLinuxPlatform&&!r.isGns3VmAvailable&&!r.applianceToInstall.dynamips)),zi(2),xa("hidden",!(r.isLinuxPlatform||r.isGns3VmAvailable||r.applianceToInstall.dynamips)),zi(1),xa("ngIf",r.applianceToInstall.qemu),zi(1),xa("ngIf",r.applianceToInstall.docker),zi(1),xa("ngIf",r.applianceToInstall.dynamips),zi(1),xa("ngIf",r.applianceToInstall.iou)}}var lse=function(){return[5,10,20,50,100]},use=function(){function e(e,t,n,r,i,o,a,s,c,l,u,h,d){this.dialogRef=e,this.applianceService=t,this.changeDetector=n,this.toasterService=r,this.qemuService=i,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 l4(e.allAppliances),e.dataSource.paginator=e.paginator}),this.qemuService.getBinaries(this.server).subscribe(function(t){e.qemuBinaries=t}),this.uploader=new mY({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,r,i){e.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(t,n,r,i){e.toasterService.success("Appliance imported succesfully"),e.getAppliance(t.url)},this.uploaderImage=new mY({}),this.uploaderImage.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploaderImage.onErrorItem=function(t,n,r,i){e.toasterService.error("An error has occured"),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(t,n,r,i){e.toasterService.success("Image imported succesfully"),e.refreshImages(),e.progressService.deactivate(),e.uploaderImage.clearQueue()}},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,r=(e.target.files[0].name.split("-"),e.target.files[0].name),i=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 i=n.applianceService.getUploadPath(n.server,t,r);n.uploader.queue.forEach(function(e){return e.url=i});var a=n.uploader.queue[0];a.options.disableMultipart=!0,n.uploader.uploadItem(a)},o.readAsText(i)},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 l4(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 r="asc"===e.direction;return"name"===e.active?hse(t.name,n.name,r):"emulator"===e.active?hse(t.emulator,n.emulator,r):"vendor"===e.active?hse(t.vendor_name,n.vendor_name,r):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(aoe,{width:"250px",data:{appliance:e}}).componentInstance.appliance=e},e.prototype.importImage=function(e,t){var n=this;this.progressService.activate(),this.computeChecksumMd5(e.target.files[0],!1).then(function(r){var i=n.applianceToInstall.images.filter(function(e){return e.filename===t})[0];if(i.md5sum!==r){n.progressService.deactivate();var o=n.dialog.open(goe,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});o.componentInstance.confirmationMessage="This is not the correct file. \n The MD5 sum is "+r+" and should be "+i.md5sum+". Do you want to accept it at your own risks?",o.afterClosed().subscribe(function(t){t?n.importImageFile(e):n.uploaderImage.clearQueue()})}else n.importImageFile(e)})},e.prototype.importImageFile=function(e){var t,n=this,r=(e.target.files[0].name.split("-"),e.target.files[0].name),i=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,r);n.uploaderImage.queue.forEach(function(t){return t.url=e});var i=n.uploaderImage.queue[0];i.options.disableMultipart=!0,n.uploaderImage.uploadItem(i),n.progressService.activate()},o.readAsText(i)},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(goe,{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 foe;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(eie.v4)(),n.path=e.filename,n.template_type="iou";var r=this.dialog.open(woe,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});r.componentInstance.server=this.server,r.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 uoe;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(eie.v4)(),n.image=e.filename,n.template_type="dynamips";var r=this.dialog.open(woe,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});r.componentInstance.server=this.server,r.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 coe;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(eie.v4)(),t.image=this.applianceToInstall.docker.image,t.template_type="docker";var n=this.dialog.open(woe,{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 soe;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(eie.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 r=this.dialog.open(woe,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});r.componentInstance.server=this.server,r.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.prototype.computeChecksumMd5=function(e,t){return void 0===t&&(t=!1),new Promise(function(n,r){var i=2097152,o=new koe.ArrayBuffer,a=new FileReader,s=0;function c(t){var n=Math.min(e.size,t+i);a.readAsArrayBuffer(e.slice(t,n))}a.onerror=function(){r("MD5 computation failed - error reading the file")},a.onload=function(r){o.append(r.target.result),(s+=i)<e.size?c(s):n(o.end(t))},c(0)})},e.\u0275fac=function(t){return new(t||e)(Sa(n1),Sa(roe),Sa(Oc),Sa(e3),Sa(p6),Sa(loe),Sa(hoe),Sa(doe),Sa(poe),Sa(l1),Sa(moe),Sa(Oc),Sa(ate))},e.\u0275cmp=be({type:e,selectors:[["app-new-template-dialog"]],viewQuery:function(e,t){if(1&e&&(Cl(toe,3),Cl(Iae,3)),2&e){var n=void 0;kl(n=xl())&&(t.paginator=n.first),kl(n=xl())&&(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"],["file3",""],["value","1",1,"radio-button",3,"checked","click"]],template:function(e,t){if(1&e){var n=Aa();Ma(0,"h1",0),Cs(1,"Add new template"),Ta(),Ma(2,"mat-horizontal-stepper",1,2),Ma(4,"mat-step"),ka(5,Aae,1,0,"ng-template",3),Ma(6,"mat-radio-group",4),Ma(7,"mat-radio-button",5),Na("click",function(){return t.setAction("install")}),Cs(8,"Install new appliance from the GNS server"),Ta(),Ea(9,"br"),Ma(10,"mat-radio-button",6),Na("click",function(){return t.setAction("import")}),Cs(11,"Import an appliance file"),Ta(),Ta(),Ma(12,"div"),Ma(13,"button",7),Cs(14,"Next"),Ta(),Ma(15,"button",8),Na("click",function(){return t.onCloseClick()}),Cs(16,"Cancel"),Ta(),Ta(),Ta(),Ma(17,"mat-step"),ka(18,Dae,1,1,"ng-template",3),Ma(19,"mat-card",9),Ma(20,"div",10),Ma(21,"mat-form-field",11),Ma(22,"input",12),Na("ngModelChange",function(e){return t.searchText=e}),Ta(),Ta(),Ma(23,"mat-select",13),Na("selectionChange",function(e){return t.filterAppliances(e)})("ngModelChange",function(e){return t.category=e}),ka(24,Rae,2,2,"mat-option",14),Ta(),Ta(),Ma(25,"mat-table",15,16),Na("matSortChange",function(e){return t.sortData(e)}),ol(27,"datasourcefilter"),Pa(28,17),ka(29,Lae,2,0,"mat-header-cell",18),ka(30,Nae,2,1,"mat-cell",19),ja(),Pa(31,20),ka(32,Fae,2,0,"mat-header-cell",18),ka(33,Bae,2,1,"mat-cell",19),ja(),Pa(34,21),ka(35,zae,2,0,"mat-header-cell",18),ka(36,Hae,2,1,"mat-cell",19),ja(),Pa(37,22),ka(38,Vae,2,0,"mat-header-cell",18),ka(39,Uae,7,0,"mat-cell",23),ja(),ka(40,qae,1,0,"mat-header-row",24),ka(41,Wae,1,0,"mat-row",25),Ta(),Ea(42,"mat-paginator",26),Ta(),Ma(43,"mat-card",9),Ma(44,"input",27,28),Na("change",function(e){return t.addAppliance(e)}),Ta(),Ma(46,"button",29),Na("click",function(){return ut(n),Ca(45).click()}),Cs(47,"Click to import appliance"),Ta(),Ta(),Ma(48,"div"),Ma(49,"button",30),Cs(50,"Back"),Ta(),Ma(51,"button",31),Na("click",function(){return t.updateAppliances()}),Cs(52,"Update from online registry"),Ta(),Ma(53,"button",8),Na("click",function(){return t.onCloseClick()}),Cs(54,"Cancel"),Ta(),Ta(),Ta(),ka(55,cse,14,6,"mat-step",32),Ta()}2&e&&(zi(2),xa("linear",!1),zi(17),xa("hidden",!("install"===t.action)),zi(3),xa("ngModel",t.searchText),zi(1),xa("ngModelOptions",Jc(17,tse))("ngModel",t.category),zi(1),xa("ngForOf",t.categories),zi(1),xa("dataSource",sl(27,14,t.dataSource,t.searchText)),zi(15),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("matRowDefColumns",t.displayedColumns),zi(1),xa("pageSizeOptions",Jc(18,lse)),zi(1),xa("hidden","install"===t.action),zi(1),xa("uploader",t.uploader),zi(7),xa("hidden","install"!==t.action),zi(4),xa("ngIf",t.applianceToInstall))},directives:[h1,uae,sae,Joe,x6,E6,l2,fae,s3,H3,Q3,fd,Fd,vf,v5,nh,H5,Cae,X5,W5,U5,J5,t4,toe,gY,mae,ih,UJ,K5,Z5,m4,T2,r4,o4,f7,g7],pipes:[jae],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:[Vm("detailExpand",[Gm("collapsed",Wm({height:"0px",minHeight:"0",visibility:"hidden"})),Gm("expanded",Wm({height:"*",visibility:"visible"})),Ym("expanded <=> collapsed",Um("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e}();function hse(e,t,n){return((e=e.toLowerCase())<(t=t.toLowerCase())?-1:1)*(n?1:-1)}var dse=n("imBb"),fse=function(){function e(e,t,n,r,i,o){this.nodeService=e,this.nodesDataSource=t,this.toasterService=n,this.serverService=r,this.settingsService=i,this.electronService=o}return e.prototype.startConsoleForAllNodes=function(){return qZ(this,void 0,void 0,function(){var e,t,n,r,i,o;return WZ(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,r=t,a.label=1;case 1:return n<r.length?(o={command:e,type:(i=r[n]).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.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)(Sa(I2),Sa(f9),Sa(e3),Sa(ZZ),Sa($Z),Sa(lY))},e.\u0275cmp=be({type:e,selectors:[["app-nodes-menu"]],inputs:{project:"project",server:"server"},decls:16,vars:0,consts:[[1,"menu-button-group"],["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&&(Ma(0,"div",0),Ma(1,"button",1),Na("click",function(){return t.startConsoleForAllNodes()}),Ma(2,"mat-icon"),Cs(3,"web_asset"),Ta(),Ta(),Ma(4,"button",2),Na("click",function(){return t.startNodes()}),Ma(5,"mat-icon"),Cs(6,"play_arrow"),Ta(),Ta(),Ma(7,"button",3),Na("click",function(){return t.suspendNodes()}),Ma(8,"mat-icon"),Cs(9,"pause"),Ta(),Ta(),Ma(10,"button",4),Na("click",function(){return t.stopNodes()}),Ma(11,"mat-icon"),Cs(12,"stop"),Ta(),Ta(),Ma(13,"button",5),Na("click",function(){return t.reloadNodes()}),Ma(14,"mat-icon"),Cs(15,"replay"),Ta(),Ta(),Ta())},directives:[l2,m4,T2],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),e}(),pse=function(){function e(e,t,n,r,i){this.toasterService=e,this.dockerService=t,this.qemuService=n,this.iouService=r,this.iosService=i}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new mY({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,r,i){e.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(t,n,r,i){"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,r=e.target.files[0],i=r.name,o=new FileReader;o.onloadend=function(){var e=JSON.parse(o.result);if(e.qemu)(t=new soe).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 foe).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 uoe).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 coe).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 r=n.getUploadPath(n.server,t.template_type,i);n.uploader.queue.forEach(function(e){return e.url=r}),n.uploader.uploadItem(n.uploader.queue[0])},o.readAsText(r)},e.prototype.getUploadPath=function(e,t,n){return e.protocol+"//"+e.host+":"+e.port+"/v2/"+t+"/images/"+n},e.\u0275fac=function(t){return new(t||e)(Sa(e3),Sa(loe),Sa(p6),Sa(doe),Sa(hoe))},e.\u0275cmp=be({type:e,selectors:[["app-import-appliance"]],inputs:{project:"project",server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}();function mse(e,t){if(1&e&&(Ft(),Ea(0,"circle",3)),2&e){var n=Ua();ss("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),va("r",n._getCircleRadius())}}function gse(e,t){if(1&e&&(Ft(),Ea(0,"circle",3)),2&e){var n=Ua();ss("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),va("r",n._getCircleRadius())}}function vse(e,t){if(1&e&&(Ft(),Ea(0,"circle",3)),2&e){var n=Ua();ss("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),va("r",n._getCircleRadius())}}function bse(e,t){if(1&e&&(Ft(),Ea(0,"circle",3)),2&e){var n=Ua();ss("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),va("r",n._getCircleRadius())}}var yse=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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",_se=hJ(function e(t){Object(s.a)(this,e),this._elementRef=t},"primary"),wse=new Tn("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),kse=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a){var c;Object(s.a)(this,n),(c=t.call(this,e))._elementRef=e,c._document=i,c._diameter=100,c._value=0,c._fallbackAnimation=!1,c.mode="determinate";var l=n._diameters;return c._spinnerAnimationLabel=c._getSpinnerAnimationLabel(),l.has(i.head)||l.set(i.head,new Set([100])),c._fallbackAnimation=r.EDGE||r.TRIDENT,c._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(c.diameter=a.diameter),a.strokeWidth&&(c.strokeWidth=a.strokeWidth)),c}return Object(c.a)(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=Af(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=Af(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Af(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=ap(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,r=n._diameters,i=r.get(e);if(!i||!i.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),i||(i=new Set,r.set(e,i)),i.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(".","_")}}]),n}(_se);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(ep),Sa(Iu,8),Sa(jb,8),Sa(wse))},e.\u0275cmp=be({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(va("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),ss("width",t.diameter,"px")("height",t.diameter,"px"),cs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[ia],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(Ft(),Ma(0,"svg",0),ka(1,mse,1,9,"circle",1),ka(2,gse,1,7,"circle",2),Ta()),2&e&&(ss("width",t.diameter,"px")("height",t.diameter,"px"),xa("ngSwitch","indeterminate"===t.mode),va("viewBox",t._getViewBox()),zi(1),xa("ngSwitchCase",!0),zi(1),xa("ngSwitchCase",!1))},directives:[ch,lh],styles:[yse],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),Cse=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a){var c;return Object(s.a)(this,n),(c=t.call(this,e,r,i,o,a)).mode="indeterminate",c}return n}(kse);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(ep),Sa(Iu,8),Sa(jb,8),Sa(wse))},e.\u0275cmp=be({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(ss("width",t.diameter,"px")("height",t.diameter,"px"),cs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[ia],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(Ft(),Ma(0,"svg",0),ka(1,vse,1,9,"circle",1),ka(2,bse,1,7,"circle",2),Ta()),2&e&&(ss("width",t.diameter,"px")("height",t.diameter,"px"),xa("ngSwitch","indeterminate"===t.mode),va("viewBox",t._getViewBox()),zi(1),xa("ngSwitchCase",!0),zi(1),xa("ngSwitchCase",!1))},directives:[ch,lh],styles:[yse],encapsulation:2,changeDetection:0}),e}(),Sse=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ,vh],lJ]}),e}();function xse(e,t){1&e&&(Ma(0,"div",4),Ea(1,"mat-spinner",5),Ta())}function Ose(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"div",7),Ma(2,"mat-icon"),Cs(3,"error_outline"),Ta(),Ta(),Ma(4,"div"),Cs(5),Ta(),Ma(6,"div"),Ma(7,"button",8),Na("click",function(){return ut(n),Ua(2).refresh()}),Ma(8,"mat-icon"),Cs(9,"refresh"),Ta(),Ta(),Ma(10,"button",9),Ma(11,"mat-icon"),Cs(12,"home"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua(2);zi(5),xs("Error occurred: ",r.error.message,"")}}function Mse(e,t){if(1&e&&(Ma(0,"div",1),ka(1,xse,2,0,"div",2),ka(2,Ose,13,1,"div",3),Ta()),2&e){var n=Ua();zi(1),xa("ngIf",n.visible&&!n.error),zi(1),xa("ngIf",n.error)}}var Tse=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)(Sa(ate),Sa(uZ))},e.\u0275cmp=be({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&&ka(0,Mse,3,2,"div",0),2&e&&xa("ngIf",t.visible||t.error)},directives:[ih,Cse,T2,l2,m4,dZ],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}(),Ese=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)(Sa(h9),Sa(m9),Sa(Bne))},e.\u0275cmp=be({type:e,selectors:[["app-drawing-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Pse=function(){function e(e,t,n,r){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.mapDrawingToSvgConverter=r}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),r=this.mapDrawingToSvgConverter.convert(e.datum);this.drawingService.updateSizeAndPosition(this.server,n,e.x,e.y,r).subscribe(function(e){t.drawingsDataSource.update(e)})},e.prototype.ngOnDestroy=function(){this.drawingResized.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(Sa(h9),Sa(m9),Sa(Bne),Sa(w9))},e.\u0275cmp=be({type:e,selectors:[["app-drawing-resized"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),jse=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)(Sa(P9),Sa(j9),Sa($ne))},e.\u0275cmp=be({type:e,selectors:[["app-interface-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Ise=function(){function e(e,t,n,r,i,o){this.projectService=e,this.linkService=t,this.linksDataSource=n,this.linksEventSource=r,this.mapNodeToNode=i,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),r=Math.abs(e.sourceNode.y-e.targetNode.y),i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),o=r/i,a=45/i*n,s=45/i*r,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)(Sa(e$),Sa(P9),Sa(j9),Sa($ne),Sa(bne),Sa(vne))},e.\u0275cmp=be({type:e,selectors:[["app-link-created"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Ase=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)(Sa(f9),Sa(I2),Sa(ene))},e.\u0275cmp=be({type:e,selectors:[["app-node-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Dse=function(){function e(e,t,n,r){this.nodesDataSource=e,this.nodeService=t,this.nodesEventSource=n,this.mapLabelToLabel=r}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),r=e.datum;r.x+=e.dx,r.y+=e.dy;var i=this.mapLabelToLabel.convert(r);n.label=i,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)(Sa(f9),Sa(I2),Sa(ene),Sa(mne))},e.\u0275cmp=be({type:e,selectors:[["app-node-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Rse=function(){function e(e,t,n,r,i,o){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.drawingsFactory=r,this.mapDrawingToSvgConverter=i,this.context=o,this.drawingSaved=new ul}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 r=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,r).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)(Sa(h9),Sa(m9),Sa(Bne),Sa(Gre),Sa(w9),Sa(dne))},e.\u0275cmp=be({type:e,selectors:[["app-text-added"]],inputs:{server:"server",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Lse=function(){function e(e,t,n,r){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.mapDrawingToSvgConverter=r}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 y9;n.element=e.textElement,n.element.text=e.editedText;var r=this.mapDrawingToSvgConverter.convert(n),i=this.drawingsDataSource.get(e.textDrawingId);this.drawingService.updateText(this.server,i,r).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)(Sa(h9),Sa(m9),Sa(Bne),Sa(w9))},e.\u0275cmp=be({type:e,selectors:[["app-text-edited"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Nse=["app-selection",""];function Fse(e,t){1&e&&(Ft(),Ea(0,"path",2)),2&e&&va("d",Ua().d)}var Bse=function(){function e(e){this.ref=e,this.started=!1,this.visible=!1,this.rectangleSelected=new ul}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this,t=C.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=C.a.fromEvent(document,"mouseup").do(function(e){e.preventDefault()}),r=C.a.fromEvent(document,"mousemove").do(function(e){return e.stopPropagation()}),i=C.a.fromEvent(document,"scroll").startWith({}),o=C.a.combineLatest(r,i),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,r){return"M"+[e,t]+" l"+[n,0]+" l"+[0,r]+" l"+[-n,0]+"z"},e.prototype.selectedEvent=function(e,t){var n=Math.min(e[0],t[0]),r=Math.min(e[1],t[1]),i=Math.abs(e[0]-t[0]),o=Math.abs(e[1]-t[1]);this.rectangleSelected.emit(new kne(n,r,i,o))},e.\u0275fac=function(t){return new(t||e)(Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:Nse,decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(e,t){1&e&&(Ft(),Ma(0,"g",0),ka(1,Fse,1,1,"path",1),Ta()),2&e&&(zi(1),xa("ngIf",t.visible))},directives:[ih],styles:[""]}),e}(),zse=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=lS();return n.moveTo(t[0][0],t[0][1]),n.lineTo(t[1][0],t[1][1]),n.toString()},e}(),Hse=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},r=n.x-t.x,i=n.y-t.y,o=Math.atan2(i,r),a=-Math.PI/4,s=[Math.cos(o+a),Math.sin(o+a)];return[[t.x,t.y],[t.x+r/2+15*s[0],t.y+i/2+15*s[1]],[n.x-r/2-15*s[0],n.y-i/2-15*s[1]],[n.x,n.y]]},e.prototype.d=function(e){var t=this.linkToPoints(e),n=lS();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}(),Vse=["app-status",""];function Use(e,t){if(1&e&&(Ft(),Ea(0,"circle",3)),2&e){var n=Ua(2);va("cx",n.point.x)("cy",n.point.y)}}function qse(e,t){if(1&e&&(Ft(),Ea(0,"rect",4)),2&e){var n=Ua(2);va("x",n.point.x-5)("y",n.point.y-5)}}function Wse(e,t){if(1&e&&(Ft(),Ma(0,"g"),ka(1,Use,1,2,"circle",1),ka(2,qse,1,2,"rect",2),Ta()),2&e){var n=Ua();zi(1),xa("ngIf","started"==n.status),zi(1),xa("ngIf","stopped"==n.status)}}var Gse=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)(Sa(ec),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:Vse,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&&ka(0,Wse,3,2,"g",0),2&e&&xa("ngIf",t.status&&t.point&&t.direction)},directives:[ih],styles:[""]}),e}(),Xse=["textSvg"],Yse=["app-interface-label",""],Kse=function(){function e(e,t,n,r){this.elementRef=e,this.ref=t,this.sanitizer=n,this.cssFixer=r,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)(Sa(ec),Sa(Oc),Sa(Qh),Sa(dte))},e.\u0275cmp=be({type:e,selectors:[["","app-interface-label",""]],viewQuery:function(e,t){var n;1&e&&Cl(Xse,1),2&e&&kl(n=xl())&&(t.textRef=n.first)},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:Yse,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&&(Ft(),Ma(0,"g",0),Ea(1,"rect",1),Ma(2,"text",2,3),Cs(4),Ta(),Ta()),2&e&&(va("transform",t.transform),zi(1),va("x",t.rectX)("y",t.rectY)("width",t.rectWidth)("height",t.rectHeight),zi(1),va("style",t.sanitizedStyle,Fr)("x",t.borderSize)("y",-t.borderSize),zi(2),xs(" ",t.text," "))},styles:[""]}),e}(),Qse=["path"],Zse=["app-link",""];function $se(e,t){1&e&&(Ft(),Ea(0,"path",5,6)),2&e&&va("d",Ua().d)}function Jse(e,t){1&e&&(Ft(),Ea(0,"path",7,6)),2&e&&va("d",Ua().d)}function ece(e,t){if(1&e&&(Ft(),Ea(0,"g",8)),2&e){var n=Ua();ls(n.link.nodes[0].label.style),xa("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 tce(e,t){if(1&e&&(Ft(),Ea(0,"g",8)),2&e){var n=Ua();ls(n.link.nodes[1].label.style),xa("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 nce=function(){function e(e,t){this.multiLinkCalculatorHelper=e,this.ref=t,this.ethernetLinkStrategy=new zse,this.serialLinkStrategy=new Hse}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)(Sa(Dte),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["","app-link",""]],viewQuery:function(e,t){var n;1&e&&Cl(Qse,1),2&e&&kl(n=xl())&&(t.path=n.first)},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:Zse,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&&(Ft(),Ma(0,"g",0),ka(1,$se,2,1,"path",1),ka(2,Jse,2,1,"path",2),Ea(3,"g",3),Ea(4,"g",3),ka(5,ece,1,6,"g",4),ka(6,tce,1,6,"g",4),Ta()),2&e&&(va("link_id",t.link.id)("map-source",t.link.source.id)("map-target",t.link.target.id)("transform",t.transform),zi(1),xa("ngIf","ethernet"==t.link.linkType),zi(1),xa("ngIf","serial"==t.link.linkType),zi(1),xa("app-status",t.link.source.status)("direction","source")("path",t.path)("d",t.d),zi(1),xa("app-status",t.link.target.status)("direction","target")("path",t.path)("d",t.d),zi(1),xa("ngIf",t.showInterfaceLabels),zi(1),xa("ngIf",t.showInterfaceLabels))},directives:[ih,Gse,Kse],styles:[""]}),e}(),rce=["app-draggable",""],ice=["*"],oce=function(){return function(e,t,n,r){this.x=e,this.y=t,this.dx=n,this.dy=r}}(),ace=function(){function e(e){this.elementRef=e,this.dragging=new ul,this.dragged=new ul}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this,t=C.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=C.a.fromEvent(document,"mouseup").do(function(e){e.preventDefault()}),r=C.a.fromEvent(document,"mousemove").do(function(e){return e.stopPropagation()}),i=C.a.fromEvent(document,"scroll").startWith({}),o=C.a.combineLatest(r,i),a=t.mergeMap(function(t){return o.map(function(e){return e[0]}).do(function(t){var n=e.startX-t.clientX,r=e.startY-t.clientY;e.item.x=Math.round(e.posX-n),e.item.y=Math.round(e.posY-r),e.dragging.emit(new oce(e.item.x,e.item.y,-n,-r))}).skipUntil(n.take(1).do(function(t){var n=e.startX-t.clientX,r=e.startY-t.clientY;e.item.x=Math.round(e.posX-n),e.item.y=Math.round(e.posY-r),e.dragged.emit(new oce(e.item.x,e.item.y,-n,-r))})).take(1)});this.draggable=a.subscribe(function(e){})},e.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(Sa(ec))},e.\u0275cmp=be({type:e,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:rce,ngContentSelectors:ice,decls:1,vars:0,template:function(e,t){1&e&&(Wa(),Ga(0))},styles:[""]}),e}(),sce=["label"],cce=["image"],lce=["app-node",""],uce=function(){function e(e,t,n,r,i,o){this.cssFixer=e,this.fontFixer=t,this.sanitizer=n,this.element=r,this.cd=i,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 Ute(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)(Sa(dte),Sa(D9),Sa(Qh),Sa(ec),Sa(Oc),Sa(ene))},e.\u0275cmp=be({type:e,selectors:[["","app-node",""]],viewQuery:function(e,t){if(1&e&&(Cl(sce,1),Cl(cce,1)),2&e){var n=void 0;kl(n=xl())&&(t.label=n.first),kl(n=xl())&&(t.imageRef=n.first)}},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[Fe],attrs:lce,decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(e,t){1&e&&(Ft(),Ma(0,"g",0),Ma(1,"image",1,2),Na("dragging",function(e){return t.OnDragging(e)})("dragged",function(e){return t.OnDragged(e)}),Ta(),Ma(3,"text",3,4),Cs(5),Ta(),Ta()),2&e&&(va("transform","translate("+t.node.x+","+t.node.y+")"),zi(1),xa("app-draggable",t.node),va("width",t.node.width)("height",t.node.height)("x",0)("y",0)("href",t.symbol,null,"xlink"),zi(2),va("style",t.label_style,Fr)("x",t.label_x)("y",t.label_y),zi(2),xs(" ",t.node.label.text," "))},directives:[ace],styles:[""],changeDetection:0}),e}(),hce=["app-ellipse",""],dce=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)(Sa(ine))},e.\u0275cmp=be({type:e,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:hce,decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(e,t){1&e&&(Ft(),Ea(0,"ellipse",0)),2&e&&va("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}(),fce=["app-image",""],pce=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=be({type:e,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:fce,decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(e,t){1&e&&(Ft(),Ea(0,"image",0)),2&e&&va("href",t.image.data,null,"xlink")("width",t.image.width)("height",t.image.height)},styles:[""]}),e}(),mce=["app-line",""],gce=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)(Sa(ine))},e.\u0275cmp=be({type:e,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:mce,decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(e,t){1&e&&(Ft(),Ea(0,"line",0)),2&e&&va("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}(),vce=["app-rect",""],bce=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)(Sa(ine))},e.\u0275cmp=be({type:e,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:vce,decls:1,vars:7,consts:[[1,"rect_element","noselect"]],template:function(e,t){1&e&&(Ft(),Ea(0,"rect",0)),2&e&&va("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}(),yce=["text"],_ce=["app-text",""];function wce(e,t){if(1&e&&(Ft(),Ma(0,"tspan",3),Cs(1),Ta()),2&e){var n=t.$implicit;va("dy",0==t.index?"0em":"1.4em"),zi(1),xs(" ",n," ")}}var kce=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)(Sa(D9),Sa(Qh))},e.\u0275cmp=be({type:e,selectors:[["","app-text",""]],viewQuery:function(e,t){var n;1&e&&Cl(yce,1),2&e&&kl(n=xl())&&(t.textRef=n.first)},inputs:{text:["app-text","text"]},attrs:_ce,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&&(Ft(),Ma(0,"text",0,1),ka(2,wce,2,2,"tspan",2),Ta()),2&e){var n=Ca(1);va("style",t.style,Fr)("text-decoration",t.textDecoration)("fill",n.fill)("transform",t.transformation),zi(2),xa("ngForOf",t.lines)}},directives:[nh],styles:[""]}),e}(),Cce=["app-drawing",""];function Sce(e,t){1&e&&(Ft(),Ea(0,"g",6)),2&e&&xa("app-ellipse",Ua().drawing.element)}function xce(e,t){1&e&&(Ft(),Ea(0,"g",7)),2&e&&xa("app-image",Ua().drawing.element)}function Oce(e,t){1&e&&(Ft(),Ea(0,"g",8)),2&e&&xa("app-line",Ua().drawing.element)}function Mce(e,t){1&e&&(Ft(),Ea(0,"g",9)),2&e&&xa("app-rect",Ua().drawing.element)}function Tce(e,t){1&e&&(Ft(),Ea(0,"g",10)),2&e&&xa("app-text",Ua().drawing.element)}var Ece=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 Ute(this.drawing,e.dx,e.dy))},e.prototype.is=function(e,t){return!!e&&("ellipse"===t?e instanceof c9:"image"===t?e instanceof n9:"line"===t?e instanceof a9:"rect"===t?e instanceof i9:"text"===t&&e instanceof G0)},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)(Sa(u9),Sa(Bne),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:Cce,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&&(Ft(),Ma(0,"g",0),Na("dragging",function(e){return t.OnDragging(e)})("dragged",function(e){return t.OnDragged(e)}),ka(1,Sce,1,1,"g",1),ka(2,xce,1,1,"g",2),ka(3,Oce,1,1,"g",3),ka(4,Mce,1,1,"g",4),ka(5,Tce,1,1,"g",5),Ta()),2&e&&(xa("app-draggable",t.drawing),va("transform",t.transformation),zi(1),xa("ngIf",t.is(t.drawing.element,"ellipse")),zi(1),xa("ngIf",t.is(t.drawing.element,"image")),zi(1),xa("ngIf",t.is(t.drawing.element,"line")),zi(1),xa("ngIf",t.is(t.drawing.element,"rect")),zi(1),xa("ngIf",t.is(t.drawing.element,"text")))},directives:[ace,ih,dce,pce,gce,bce,kce],styles:[""]}),e}(),Pce=["svg"];function jce(e,t){if(1&e&&(Ft(),Ea(0,"g",12)),2&e){var n=t.$implicit,r=Ua(2);xa("app-link",n)("show-interface-labels",r.settings.show_interface_labels)}}function Ice(e,t){if(1&e&&(Ft(),Ea(0,"g",13)),2&e){var n=t.$implicit,r=Ua(2);xa("app-node",n)("symbols",r.symbols)}}function Ace(e,t){1&e&&(Ft(),Ea(0,"g",14)),2&e&&xa("app-drawing",t.$implicit)}function Dce(e,t){if(1&e&&(Ft(),Ma(0,"g"),Ma(1,"g",6),ka(2,jce,1,2,"g",7),Ta(),Ma(3,"g",8),ka(4,Ice,1,2,"g",9),Ta(),Ma(5,"g",10),ka(6,Ace,1,1,"g",11),Ta(),Ta()),2&e){var n=t.$implicit;zi(2),xa("ngForOf",n.links),zi(2),xa("ngForOf",n.nodes),zi(2),xa("ngForOf",n.drawings)}}var Rce=function(){function e(e,t,n,r,i,o,a){this.graphDataManager=e,this.context=t,this.mapChangeDetectorRef=n,this.canvasSizeDetector=r,this.changeDetectorRef=i,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 dne;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)(Sa(Rte),Sa(dne),Sa(ste),Sa(Nne),Sa(Oc),Sa(Ste),Sa(Lne))},e.\u0275cmp=be({type:e,selectors:[["app-experimental-map"]],viewQuery:function(e,t){var n;1&e&&Cl(Pce,1),2&e&&kl(n=xl())&&(t.svg=n.first)},hostBindings:function(e,t){1&e&&Na("resize",function(e){return t.onResize(e)},!1,Xr)},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:[Fe],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&&(Ft(),Ma(0,"svg",0,1),Ma(2,"g"),ka(3,Dce,7,3,"g",2),Ta(),Ea(4,"g",3),Ma(5,"filter",4),Ea(6,"feColorMatrix",5),Ta(),Ta()),2&e){var n=Ca(1);va("width",t.width)("height",t.height),zi(2),va("transform",t.transform),zi(1),xa("ngForOf",t.layers),zi(1),xa("app-selection",n)}},directives:[nh,Bse,nce,uce,Ece],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),e}(),Lce=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 Nce(e,t){if(1&e&&(Ma(0,"mat-option",18),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Fce(e,t){if(1&e&&(Ma(0,"mat-option",18),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n.name," ")}}function Bce(e,t){if(1&e&&(Ma(0,"mat-option",18),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function zce(e,t){if(1&e){var n=Aa();Ma(0,"mat-select",19),Na("valueChange",function(e){return ut(n),Ua().selectedTemplate.compute_id=e}),ka(1,Bce,2,2,"mat-option",8),Ta()}if(2&e){var r=Ua();xa("value",r.selectedTemplate.compute_id),zi(1),xa("ngForOf",r.nodeServers)}}var Hce=function(){return{standalone:!0}},Vce=function(){function e(e,t,n,r,i,o){this.dialogRef=e,this.templateService=t,this.formBuilder=n,this.data=r,this.toasterService=i,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=r.server,this.project=r.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new lf(1,[yd.required,o.get])}),this.positionForm=this.formBuilder.group({top:new lf(0,yd.required),left:new lf(0,yd.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)(Sa(n1),Sa(poe),Sa(jf),Sa(i1),Sa(e3),Sa(k9))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"h1",1),Cs(2,"Add a node"),Ta(),Ma(3,"button",2),Na("click",function(){return t.onNoClick()}),Cs(4,"Go to template preferences"),Ta(),Ta(),Ma(5,"div",3),Ma(6,"div",0),Ma(7,"h6"),Cs(8,"Template"),Ta(),Ta(),Ma(9,"mat-form-field",4),Ma(10,"input",5),Na("ngModelChange",function(e){return t.searchText=e}),Ta(),Ta(),Ma(11,"mat-form-field",6),Ma(12,"mat-select",7),Na("selectionChange",function(e){return t.filterTemplates(e)})("ngModelChange",function(e){return t.selectedType=e}),ka(13,Nce,2,2,"mat-option",8),Ta(),Ta(),Ma(14,"mat-form-field",6),Ma(15,"mat-select",9),Na("selectionChange",function(e){return t.chooseTemplate(e)})("ngModelChange",function(e){return t.selectedTemplate=e}),ka(16,Fce,2,2,"mat-option",8),ol(17,"templatefilter"),Ta(),Ta(),Ma(18,"div",0),Ma(19,"h6"),Cs(20,"Configuration"),Ta(),Ta(),Ma(21,"form",10),Ma(22,"mat-form-field",6),Ea(23,"input",11),Ta(),Ta(),ka(24,zce,2,2,"mat-select",12),Ma(25,"div",0),Ma(26,"h6"),Cs(27,"Position"),Ta(),Ta(),Ma(28,"form",10),Cs(29," Left:\xa0 "),Ma(30,"mat-form-field"),Ea(31,"input",13),Ta(),Cs(32," Top:\xa0 "),Ma(33,"mat-form-field"),Ea(34,"input",14),Ta(),Ta(),Ta(),Ma(35,"div",15),Ma(36,"button",16),Na("click",function(){return t.onNoClick()}),Cs(37,"Close"),Ta(),Ma(38,"button",17),Na("click",function(){return t.onAddClick()}),Cs(39,"Add"),Ta(),Ta()),2&e&&(zi(3),Ya("routerLink","/server/",t.server.id,"/preferences"),zi(7),xa("ngModel",t.searchText)("ngModelOptions",Jc(15,Hce)),zi(2),xa("ngModelOptions",Jc(16,Hce))("ngModel",t.selectedType),zi(1),xa("ngForOf",t.templateTypes),zi(2),xa("ngModelOptions",Jc(17,Hce))("ngModel",t.selectedTemplate),zi(1),xa("ngForOf",sl(17,12,t.filteredTemplates,t.searchText)),zi(5),xa("formGroup",t.configurationForm),zi(3),xa("ngIf",t.selectedTemplate),zi(4),xa("formGroup",t.positionForm))},directives:[h1,l2,dZ,d1,H3,Q3,fd,Fd,vf,v5,nh,bf,Bd,Sf,_f,Of,ih,f1,UJ],pipes:[Lce],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}(),Uce=n("jtHE");function qce(e,t){var n,r;return r=t,"function"==typeof(e=void 0===(n=e)?void 0===r?n:r:n)?function(){for(var t=arguments,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=t[i];return!!e.apply(this,r)}:e?function(){return!0}:function(){return!1}}var Wce="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},Gce=function(e){return null!=e&&"object"===(void 0===e?"undefined":Wce(e))&&1===e.nodeType&&"object"===Wce(e.style)&&"object"===Wce(e.ownerDocument)};function Xce(e,t){if(t=$ce(t,!0),!Gce(t))return-1;for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Yce(e,t){return-1!==Xce(e,t)}function Kce(e,t){for(var n=0;n<t.length;n++)Yce(e,t[n])||e.push(t[n]);return t}function Qce(e){for(var t=arguments,n=[],r=arguments.length-1;r-- >0;)n[r]=t[r+1];return Kce(e,n=n.map($ce))}function Zce(e){for(var t=arguments,n=[],r=arguments.length-1;r-- >0;)n[r]=t[r+1];return n.map($ce).reduce(function(t,n){var r=Xce(e,n);return-1!==r?t.concat(e.splice(r,1)):t},[])}function $ce(e,t){if("string"==typeof e)try{return document.querySelector(e)}catch(n){throw n}if(!Gce(e)&&!t)throw new TypeError(e+" is not a DOM element.");return e}function Jce(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 ele,tle=void 0;"function"!=typeof Object.create?(ele=function(){},tle=function(e,t){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");ele.prototype=e||{};var n=new ele;return ele.prototype=null,void 0!==t&&Object.defineProperties(n,t),null===e&&(n.__proto__=null),n}):tle=Object.create;var nle=tle,rle=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function ile(e,t){t=t||{};for(var n=nle(e),r=0;r<rle.length;r++)void 0!==t[rle[r]]&&(n[rle[r]]=t[rle[r]]);return n}function ole(e,t){console.log("data ",t),e.data=t||{},e.dispatched="mousemove"}var ale=["webkit","moz","ms","o"],sle=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=ale.length;e<t&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[ale[e]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(e){var t=(new Date).getTime(),r=Math.max(0,16-t-n),i=window.setTimeout(function(){return e(t+r)},r);return n=t+r,i}}return window.requestAnimationFrame.bind(window)}(),cle=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=ale.length;e<t&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[ale[e]+"CancelAnimationFrame"]||window[ale[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function lle(e,t){void 0===t&&(t={});var n=this,r=4,i=!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=qce((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 r=t.target&&t.target.ownerDocument||document,i=r.documentElement,o=r.body;e.pageX=t.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.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 r=new MouseEvent("mousemove",ile(a,t));return ole(r,n),e.dispatchEvent(r)}:"function"==typeof document.createEvent?function(e,t,n){var r=ile(a,t),i=document.createEvent("MouseEvents");return i.initMouseEvent("mousemove",!0,!0,window,0,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget),ole(i,n),e.dispatchEvent(i)}:"function"==typeof document.createEventObject?function(e,t,n){var r=document.createEventObject(),i=ile(a,t);for(var o in i)r[o]=i[o];return ole(r,n),e.dispatchEvent(r)}:void 0}),u=!1;window.addEventListener("mousemove",c,!1),window.addEventListener("touchmove",c,!1),isNaN(t.maxSpeed)||(r=t.maxSpeed),"object"!=typeof r&&(r={left:r,right:r,top:r,bottom:r}),this.autoScroll=qce(t.autoScroll),this.syncMove=qce(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",c,!1),window.removeEventListener("touchmove",c,!1),window.removeEventListener("mousedown",g,!1),window.removeEventListener("touchstart",g,!1),window.removeEventListener("mouseup",v,!1),window.removeEventListener("touchend",v,!1),window.removeEventListener("pointerup",v,!1),window.removeEventListener("mouseleave",y,!1),window.removeEventListener("mousemove",w,!1),window.removeEventListener("touchmove",w,!1),window.removeEventListener("scroll",m,!0),e=[],t&&b()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Qce.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Zce.apply(void 0,[e].concat(t))};var h,d=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),function(t){e=[],t.forEach(function(e){e===window?d=window:n.add(e)})}(e),Object.defineProperties(this,{down:{get:function(){return u}},maxSpeed:{get:function(){return r}},point:{get:function(){return s}},scrolling:{get:function(){return i}}});var f,p=null;function m(t){for(var n=0;n<e.length;n++)if(e[n]===t.target){i=!0;break}i&&sle(function(){return i=!1})}function g(){u=!0}function v(){u=!1,b()}function b(){cle(f),cle(h)}function y(){u=!1}function _(){for(var t=null,n=0;n<e.length;n++)ule(s,e[n])&&(t=e[n]);return t}function w(t){if(n.autoScroll()&&!t.dispatched){var r=t.target,i=document.body;p&&!ule(s,p)&&(n.scrollWhenOutside||(p=null)),r&&r.parentNode===i?r=_():(r=function(t){if(!t)return null;if(p===t)return t;if(Yce(e,t))return t;for(;t=t.parentNode;)if(Yce(e,t))return t;return null}(r))||(r=_()),r&&r!==p&&(p=r),d&&(cle(h),h=sle(k)),p&&(cle(f),f=sle(C))}}function k(){S(d),cle(h),h=sle(k)}function C(){p&&(S(p),cle(f),f=sle(C))}function S(e){var t,r,i=Jce(e);t=s.x<i.left+n.margin.left?Math.floor(Math.max(-1,(s.x-i.left)/n.margin.left-1)*n.maxSpeed.left):s.x>i.right-n.margin.right?Math.ceil(Math.min(1,(s.x-i.right)/n.margin.right+1)*n.maxSpeed.right):0,r=s.y<i.top+n.margin.top?Math.floor(Math.max(-1,(s.y-i.top)/n.margin.top-1)*n.maxSpeed.top):s.y>i.bottom-n.margin.bottom?Math.ceil(Math.min(1,(s.y-i.bottom)/n.margin.bottom+1)*n.maxSpeed.bottom):0,n.syncMove()&&l.dispatch(e,{pageX:s.pageX+t,pageY:s.pageY+r,clientX:s.x+t,clientY:s.y+r}),setTimeout(function(){r&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,r),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)})}window.addEventListener("mousedown",g,!1),window.addEventListener("touchstart",g,!1),window.addEventListener("mouseup",v,!1),window.addEventListener("touchend",v,!1),window.addEventListener("pointerup",v,!1),window.addEventListener("mousemove",w,!1),window.addEventListener("touchmove",w,!1),window.addEventListener("mouseleave",y,!1),window.addEventListener("scroll",m,!0)}function ule(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=Jce(t);return e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right}(e,t)}var hle=n("HrJb"),dle=function(){var e=function e(){Object(s.a)(this,e),this.currentDrag=new k.b};return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e.ngInjectableDef=B({factory:function(){return new e},token:e,providedIn:"root"}),e}(),fle=function(){var e=function e(t){Object(s.a)(this,e),this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}};return e.\u0275fac=function(t){return new(t||e)(Sa(ec))},e.\u0275dir=Se({type:e,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),e}(),ple=function(){var e=function(){function e(t,n,r,i,o,a,c){Object(s.a)(this,e),this.element=t,this.renderer=n,this.draggableHelper=r,this.zone=i,this.vcr=o,this.scrollContainer=a,this.document=c,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new ul,this.dragStart=new ul,this.ghostElementCreated=new ul,this.dragging=new ul,this.dragEnd=new ul,this.pointerDown$=new k.b,this.pointerMove$=new k.b,this.pointerUp$=new k.b,this.eventListenerSubscriptions={},this.destroy$=new k.b,this.timeLongPress={timerBegin:0,timerEnd:0}}return Object(c.a)(e,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var t=this.pointerDown$.pipe(Object(dp.a)(function(){return e.canDrag()}),Object(TY.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 r=e.getScrollPosition(),i=new C.a(function(t){return e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(e){return t.next(e)})}).pipe(Object(pp.a)(r),Object(cd.a)(function(){return e.getScrollPosition()})),o=new k.b,a=new Uce.a;e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var s=Object(S.a)(e.pointerUp$,e.pointerDown$,a,e.destroy$).pipe(Object(x.a)()),c=Object(bY.b)([e.pointerMove$,i]).pipe(Object(cd.a)(function(e){var n=f(e,2),r=n[0],i=n[1];return{currentDrag$:o,transformX:r.clientX-t.clientX,transformY:r.clientY-t.clientY,clientX:r.clientX,clientY:r.clientY,scrollLeft:i.left,scrollTop:i.top,target:r.event.target}}),Object(cd.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(cd.a)(function(t){return e.dragAxis.x||(t.transformX=0),e.dragAxis.y||(t.transformY=0),t}),Object(cd.a)(function(e){return Object.assign({},e,{x:e.transformX+(e.scrollLeft-r.left),y:e.transformY+(e.scrollTop-r.top)})}),Object(dp.a)(function(t){return!e.validateDrag||e.validateDrag({x:t.x,y:t.y,transform:{x:t.transformX,y:t.transformY}})}),Object(fp.a)(s),Object(x.a)()),l=c.pipe(Object(Cp.a)(1),Object(x.a)()),u=c.pipe(Object(PY.a)(1),Object(x.a)());return l.subscribe(function(t){var n=t.clientX,r=t.clientY,i=t.x,s=t.y;if(e.zone.run(function(){e.dragStart.next({cancelDrag$:a})}),e.scroller=new lle([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign({},e.autoScroll,{autoScroll:function(){return!0}})),function(e,t,n){n&&n.split(" ").forEach(function(n){return e.addClass(t.nativeElement,n)})}(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 h=e.vcr.createEmbeddedView(e.ghostElementTemplate);l.innerHTML="",h.rootNodes.filter(function(e){return e instanceof Node}).forEach(function(e){l.appendChild(e)}),u.subscribe(function(){e.vcr.remove(e.vcr.indexOf(h))})}e.zone.run(function(){e.ghostElementCreated.emit({clientX:n-i,clientY:r-s,element:l})}),u.subscribe(function(){l.parentElement.removeChild(l),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(o)}),u.pipe(Object(TY.b)(function(e){var t=a.pipe(Object(hle.a)(),Object(Cp.a)(1),Object(cd.a)(function(t){return Object.assign({},e,{dragCancelled:t>0})}));return a.complete(),t})).subscribe(function(t){var n,r,i,a=t.x,s=t.y,c=t.dragCancelled;e.scroller.destroy(),e.zone.run(function(){e.dragEnd.next({x:a,y:s,dragCancelled:c})}),n=e.renderer,r=e.element,(i=e.dragActiveClass)&&i.split(" ").forEach(function(e){return n.removeClass(r.nativeElement,e)}),o.complete()}),Object(S.a)(s,u).pipe(Object(Cp.a)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(n)})}),c}),Object(x.a)());Object(S.a)(t.pipe(Object(Cp.a)(1),Object(cd.a)(function(e){return[,e]})),t.pipe(Object(mp.a)())).pipe(Object(dp.a)(function(e){var t=f(e,2),n=t[0],r=t[1];return!n||n.x!==r.x||n.y!==r.y}),Object(cd.a)(function(e){return f(e,2)[1]})).subscribe(function(t){var n=t.x,r=t.y,i=t.currentDrag$,o=t.clientX,a=t.clientY,s=t.transformX,c=t.transformY,l=t.target;e.zone.run(function(){e.dragging.next({x:n,y:r})}),requestAnimationFrame(function(){if(e.ghostElement){var t="translate3d(".concat(s,"px, ").concat(c,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:t,"-webkit-transform":t,"-ms-transform":t,"-moz-transform":t,"-o-transform":t})}}),i.next({clientX:o,clientY:a,dropData:e.dropData,target:l})})}},{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,r,i=this;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),n=!1,r=this.hasScrollbar(),t=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var o=Object(sp.a)(this.document,"contextmenu").subscribe(function(e){e.preventDefault()}),a=Object(sp.a)(this.document,"touchmove",{passive:!1}).subscribe(function(o){(i.scrollContainer&&i.scrollContainer.activeLongPressDrag||i.touchStartLongPress)&&!n&&r&&(n=i.shouldBeginDrag(e,o,t)),(i.scrollContainer&&i.scrollContainer.activeLongPressDrag||i.touchStartLongPress)&&r&&!n||(o.preventDefault(),i.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(r){n.renderer.setStyle(e,r,t[r])})}},{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 r=this.getScrollPosition(),i=Math.abs(r.top-n.top),o=Math.abs(r.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)-i,c=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(a+s>c.delta||i>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)(Sa(ec),Sa(rc),Sa(dle),Sa(Ql),Sa(Bc),Sa(fle,8),Sa(Iu))},e.\u0275dir=Se({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:[Fe]}),e}(),mle=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}();function gle(e,t){if(1&e&&(Ma(0,"mat-option",11),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function vle(e,t){if(1&e){var n=Aa();Ma(0,"span",14),Ma(1,"div",15),Na("dragStart",function(e){return ut(n),Ua(3).dragStart(e)})("dragEnd",function(e){ut(n);var t=Ua(2).index,r=Ua();return r.dragEnd(e,r.filteredTemplates[t+1])}),Ea(2,"img",16),Ta(),Ma(3,"div",17),Cs(4),Ta(),Ta()}if(2&e){var r=Ua(2).index,i=Ua();zi(2),xa("src",i.getImageSourceForTemplate(i.filteredTemplates[r+1]),Br),zi(2),Ss(i.filteredTemplates[r+1].name)}}function ble(e,t){if(1&e){var n=Aa();Ma(0,"span",14),Ma(1,"div",15),Na("dragStart",function(e){return ut(n),Ua(3).dragStart(e)})("dragEnd",function(e){ut(n);var t=Ua(2).index,r=Ua();return r.dragEnd(e,r.filteredTemplates[t+2])}),Ea(2,"img",16),Ta(),Ma(3,"div",17),Cs(4),Ta(),Ta()}if(2&e){var r=Ua(2).index,i=Ua();zi(2),xa("src",i.getImageSourceForTemplate(i.filteredTemplates[r+2]),Br),zi(2),Ss(i.filteredTemplates[r+2].name)}}function yle(e,t){if(1&e){var n=Aa();Ma(0,"span",14),Ma(1,"div",15),Na("dragStart",function(e){return ut(n),Ua(3).dragStart(e)})("dragEnd",function(e){ut(n);var t=Ua(2).index,r=Ua();return r.dragEnd(e,r.filteredTemplates[t+3])}),Ea(2,"img",16),Ta(),Ma(3,"div",17),Cs(4),Ta(),Ta()}if(2&e){var r=Ua(2).index,i=Ua();zi(2),xa("src",i.getImageSourceForTemplate(i.filteredTemplates[r+3]),Br),zi(2),Ss(i.filteredTemplates[r+3].name)}}function _le(e,t){if(1&e){var n=Aa();Ma(0,"span",13),Ma(1,"span",14),Ma(2,"div",15),Na("dragStart",function(e){return ut(n),Ua(2).dragStart(e)})("dragEnd",function(e){ut(n);var t=Ua().index,r=Ua();return r.dragEnd(e,r.filteredTemplates[t])}),Ea(3,"img",16),Ta(),Ma(4,"div",17),Cs(5),Ta(),Ta(),ka(6,vle,5,2,"span",18),ka(7,ble,5,2,"span",18),ka(8,yle,5,2,"span",18),Ta()}if(2&e){var r=Ua().index,i=Ua();zi(3),xa("src",i.getImageSourceForTemplate(i.filteredTemplates[r]),Br),zi(2),Ss(i.filteredTemplates[r].name),zi(1),xa("ngIf",i.filteredTemplates[r+1]),zi(1),xa("ngIf",i.filteredTemplates[r+2]),zi(1),xa("ngIf",i.filteredTemplates[r+3])}}function wle(e,t){if(1&e&&(Ma(0,"mat-list-item"),ka(1,_le,9,5,"span",12),Ta()),2&e){var n=t.index;zi(1),xa("ngIf",n%4==0)}}var kle=function(){return{standalone:!0}},Cle=function(){function e(e,t,n,r){this.dialog=e,this.templateService=t,this.scaleService=n,this.symbolService=r,this.onNodeCreation=new ul,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(r){var i=+r.split('width="')[1].split('"')[0]?+r.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-i/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(Vce,{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 this.server.protocol+"//"+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)(Sa(l1),Sa(poe),Sa(zne),Sa(G7))},e.\u0275cmp=be({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,"menu-button","add-menu-button",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&&(Ma(0,"button",0),Ma(1,"mat-icon"),Cs(2,"add"),Ta(),Ta(),Ma(3,"mat-menu",null,1),Ma(5,"button",2),Na("click",function(){return t.openDialog()}),Ma(6,"mat-icon"),Cs(7,"add_to_queue"),Ta(),Ma(8,"span"),Cs(9,"Open dialog to configure"),Ta(),Ta(),Ma(10,"mat-form-field",3),Na("click",function(e){return e.stopPropagation()}),Ma(11,"input",4),Na("keyup",function(e){return t.filterTemplates(e)})("ngModelChange",function(e){return t.searchText=e}),Ta(),Ta(),Ma(12,"mat-form-field",5),Na("click",function(e){return e.stopPropagation()}),Ma(13,"mat-select",6),Na("selectionChange",function(e){return t.filterTemplates(e)})("ngModelChange",function(e){return t.selectedType=e}),ka(14,gle,2,2,"mat-option",7),Ta(),Ta(),Ma(15,"div",8),Ma(16,"div",9),ka(17,wle,2,1,"mat-list-item",10),Ta(),Ta(),Ta()),2&e&&(xa("matMenuTriggerFor",Ca(4)),zi(11),xa("ngModel",t.searchText)("ngModelOptions",Jc(7,kle)),zi(2),xa("ngModelOptions",Jc(8,kle))("ngModel",t.selectedType),zi(1),xa("ngForOf",t.templateTypes),zi(3),xa("ngForOf",t.filteredTemplates))},directives:[l2,m4,U0,T2,B0,R0,H3,Q3,fd,Fd,vf,v5,nh,UJ,g7,ih,ple],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}(),Sle=function(){return function(){}}(),xle=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),Ole=function(){function e(e,t,n,r,i,o){var a=this;this.dialogRef=e,this.formBuilder=t,this.toasterService=n,this.snapshotService=r,this.nodesDataSource=i,this.data=o,this.snapshot=new Sle,this.snapshots=[],this.server=o.server,this.project=o.project,this.inputForm=this.formBuilder.group({snapshotName:new lf("",yd.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)(Sa(n1),Sa(jf),Sa(e3),Sa(xle),Sa(f9),Sa(i1))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"h1",1),Cs(2,"Create snapshot"),Ta(),Ma(3,"button",2),Na("click",function(){return t.onNoClick()}),Cs(4,"Go to snapshots"),Ta(),Ta(),Ma(5,"div",3),Ma(6,"form",4),Ma(7,"mat-form-field",5),Ea(8,"input",6),Ta(),Ta(),Ta(),Ma(9,"div",7),Ma(10,"button",8),Na("click",function(){return t.onNoClick()}),Cs(11,"No Thanks"),Ta(),Ma(12,"button",9),Na("click",function(){return t.onAddClick()}),Cs(13,"Add"),Ta(),Ta()),2&e&&(zi(3),Ka("routerLink","/server/",t.server.id,"/project/",t.project.project_id,"/snapshots"),zi(3),xa("formGroup",t.inputForm))},directives:[h1,l2,dZ,d1,bf,Bd,Sf,H3,Q3,fd,Fd,Of,f1],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}(),Mle=["primaryValueBar"],Tle=hJ(function e(t){Object(s.a)(this,e),this._elementRef=t},"primary"),Ele=new Tn("mat-progress-bar-location",{providedIn:"root",factory:function(){var e=Xn(Iu),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),Ple=0,jle=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o){var a;Object(s.a)(this,n),(a=t.call(this,e))._elementRef=e,a._ngZone=r,a._animationMode=i,a._isNoopAnimation=!1,a._value=0,a._bufferValue=0,a.animationEnd=new ul,a._animationEndSubscription=w.a.EMPTY,a.mode="determinate",a.progressbarId="mat-progress-bar-".concat(Ple++);var c=o?o.getPathname().split("#")[0]:"";return a._rectangleFillValue="url('".concat(c,"#").concat(a.progressbarId,"')"),a._isNoopAnimation="NoopAnimations"===i,a}return Object(c.a)(n,[{key:"value",get:function(){return this._value},set:function(e){this._value=Ile(Af(e)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(e){this._bufferValue=Ile(e||0)}},{key:"_primaryTransform",value:function(){return{transform:"scale3d(".concat(this.value/100,", 1, 1)")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scale3d(".concat(this.bufferValue/100,", 1, 1)")}:null}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._primaryValueBar.nativeElement;e._animationEndSubscription=Object(sp.a)(t,"transitionend").pipe(Object(dp.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()}}]),n}(Tle);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Ql),Sa(jb,8),Sa(Ele,8))},e.\u0275cmp=be({type:e,selectors:[["mat-progress-bar"]],viewQuery:function(e,t){var n;1&e&&Cl(Mle,1),2&e&&kl(n=xl())&&(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&&(va("aria-valuenow","indeterminate"===t.mode||"query"===t.mode?null:t.value)("mode",t.mode),cs("_mat-animation-noopable",t._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ia],decls:10,vars:4,consts:[["aria-hidden","true"],["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&&(Ma(0,"div",0),Ft(),Ma(1,"svg",1),Ma(2,"defs"),Ma(3,"pattern",2),Ea(4,"circle",3),Ta(),Ta(),Ea(5,"rect",4),Ta(),Bt(),Ea(6,"div",5),Ea(7,"div",6,7),Ea(9,"div",8),Ta()),2&e&&(zi(3),xa("id",t.progressbarId),zi(2),va("fill",t._rectangleFillValue),zi(1),xa("ngStyle",t._bufferTransform()),zi(1),xa("ngStyle",t._primaryTransform()))},directives:[hh],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 Ile(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 Ale=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[vh,lJ],lJ]}),e}(),Dle=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)(Sa(n1),Sa(i1))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Operation in progress"),Ta(),Ma(2,"div",1),Ea(3,"mat-progress-bar",2),Ta(),Ma(4,"div",3),Ma(5,"button",4),Na("click",function(){return t.onCancelClick()}),Cs(6,"Cancel"),Ta(),Ta()),2&e&&(zi(3),xa("value",t.value))},directives:[h1,d1,jle,f1,l2],styles:[""]}),e}(),Rle=function(){function e(e){this.dialog=e}return e.prototype.open=function(){return this.dialog.open(Dle,{width:"250px",autoFocus:!1,disableClose:!0})},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(l1))}}),e}(),Lle=function(){function e(e,t,n,r){this.dialog=e,this.snapshotService=t,this.progressDialogService=n,this.toaster=r}return e.prototype.ngOnInit=function(){},e.prototype.createSnapshotModal=function(){var e=this;this.dialog.open(Ole,{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),r=e.progressDialogService.open(),i=n.subscribe(function(n){e.toaster.success("Snapshot '"+t.name+"' has been created."),r.close()});r.afterClosed().subscribe(function(e){e===Dle.CANCELLED&&i.unsubscribe()})}})},e.\u0275fac=function(t){return new(t||e)(Sa(l1),Sa(xle),Sa(Rle),Sa(e3))},e.\u0275cmp=be({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","",1,"snapshot-button","menu-button",3,"click"]],template:function(e,t){1&e&&(Ma(0,"button",0),Na("click",function(){return t.createSnapshotModal()}),Ma(1,"mat-icon"),Cs(2,"filter_none"),Ta(),Ta())},directives:[l2,m4,T2],styles:[""]}),e}();function Nle(e,t){1&e&&(Ft(),Ma(0,"svg",9),Ea(1,"rect",10),Ta())}function Fle(e,t){1&e&&(Ft(),Ma(0,"svg",9),Ea(1,"rect",11),Ta())}function Ble(e,t){if(1&e){var n=Aa();Ma(0,"button",6),Na("click",function(){ut(n);var e=t.$implicit;return Ua(2).chooseInterface(e)}),ka(1,Nle,2,0,"svg",7),ka(2,Fle,2,0,"svg",7),Ma(3,"span",8),Cs(4),Ta(),Ta()}if(2&e){var r=t.$implicit;xa("disabled",!r.available),zi(1),xa("ngIf",r.available),zi(1),xa("ngIf",!r.available),zi(2),Ss(r.name)}}function zle(e,t){if(1&e&&(Ma(0,"div",1),Ea(1,"span",2),Ma(2,"mat-menu",3,4),ka(4,Ble,5,4,"button",5),Ta(),Ta()),2&e){var n=Ca(3),r=Ua();ss("left",r.leftPosition)("top",r.topPosition),zi(1),xa("matMenuTriggerFor",n),zi(1),ss("min-height",0),zi(2),xa("ngForOf",r.ports)}}var Hle=function(){function e(e,t){this.sanitizer=e,this.changeDetector=t,this.onChooseInterface=new ul}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 r=t.filter(function(e){return e.adapter_number===n.adapter_number});n.available=0===r.length||0===r.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)(Sa(Qh),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["app-node-select-interface"]],viewQuery:function(e,t){var n;1&e&&Cl(U0,1),2&e&&kl(n=xl())&&(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&&ka(0,zle,5,8,"div",0),2&e&&xa("ngIf",t.node)},directives:[ih,U0,B0,nh,R0],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}(),Vle=function(){return function(e,t,n,r){this.sourceNode=e,this.sourcePort=t,this.targetNode=n,this.targetPort=r}}(),Ule=function(){function e(e,t,n,r,i,o){this.drawingLineTool=e,this.nodesEventSource=t,this.linksEventSource=n,this.mapNodeToNode=r,this.nodeToMapNode=i,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 r=this.drawingLineTool.stop();this.linksEventSource.created.emit(new Vle(r.node,r.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)(Sa(wne),Sa(ene),Sa($ne),Sa(bne),Sa(gte),Sa(mte))},e.\u0275cmp=be({type:e,selectors:[["app-draw-link-tool"]],viewQuery:function(e,t){var n;1&e&&Cl(Hle,1),2&e&&kl(n=xl())&&(t.nodeSelectInterfaceMenu=n.first)},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(e,t){1&e&&(Ma(0,"app-node-select-interface",0),Na("onChooseInterface",function(e){return t.onChooseInterface(e)}),Ta()),2&e&&xa("links",t.links)},directives:[Hle],styles:[""]}),e}(),qle="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function Wle(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=Math.abs(e-t);return r<n}function Gle(e,t,n,r){var i={top:e.top,bottom:e.bottom,left:e.left,right:e.right};return t.top&&(i.top+=r),t.bottom&&(i.bottom+=r),t.left&&(i.left+=n),t.right&&(i.right+=n),i.height=i.bottom-i.top,i.width=i.right-i.left,i}function Xle(e){var t=e.clientY,n=e.rect;return t>=n.top&&t<=n.bottom}function Yle(e){var t=e.clientX,n=e.rect;return t>=n.left&&t<=n.right}function Kle(e){var t=e.clientX,n=e.clientY,r=e.allowedEdges,i=e.cursorPrecision,o=e.elm.nativeElement.getBoundingClientRect(),a={};return r.left&&Wle(t,o.left,i)&&Xle({clientY:n,rect:o})&&(a.left=!0),r.right&&Wle(t,o.right,i)&&Xle({clientY:n,rect:o})&&(a.right=!0),r.top&&Wle(n,o.top,i)&&Yle({clientX:t,rect:o})&&(a.top=!0),r.bottom&&Wle(n,o.bottom,i)&&Yle({clientX:t,rect:o})&&(a.bottom=!0),a}var Qle=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function Zle(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 $le(e){var t=e.initialRectangle,n=e.newRectangle,r={};return Object.keys(e.edges).forEach(function(e){r[e]=(n[e]||0)-(t[e]||0)}),r}var Jle="resize-active",eue=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this.platformId=t,this.renderer=n,this.elm=r,this.zone=i,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Qle,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new ul,this.resizing=new ul,this.resizeEnd=new ul,this.mouseup=new k.b,this.mousedown=new k.b,this.mousemove=new k.b,this.destroy$=new k.b,this.resizeEdges$=new k.b,this.pointerEventListeners=tue.getInstance(n,i)}return Object(c.a)(e,[{key:"ngOnInit",value:function(){var e,t=this,n=Object(S.a)(this.pointerEventListeners.pointerDown,this.mousedown),r=Object(S.a)(this.pointerEventListeners.pointerMove,this.mousemove).pipe(Object(EY.a)(function(t){e&&t.event.preventDefault()}),Object(x.a)()),i=Object(S.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({},Qle,t.resizeCursors)};this.resizeEdges$.pipe(Object(pp.a)(this.resizeEdges),Object(cd.a)(function(){return t.resizeEdges&&Object.keys(t.resizeEdges).some(function(e){return!!t.resizeEdges[e]})}),Object(gp.a)(function(e){return e?r:kY.a}),Object(hp.a)(this.mouseMoveThrottleMS),Object(fp.a)(this.destroy$)).subscribe(function(n){var r=Kle({clientX:n.clientX,clientY:n.clientY,elm:t.elm,allowedEdges:t.resizeEdges,cursorPrecision:t.resizeCursorPrecision}),i=a();if(!e){var o=Zle(r,i);t.renderer.setStyle(t.elm.nativeElement,"cursor",o)}t.setElementClass(t.elm,"resize-left-hover",!0===r.left),t.setElementClass(t.elm,"resize-right-hover",!0===r.right),t.setElementClass(t.elm,"resize-top-hover",!0===r.top),t.setElementClass(t.elm,"resize-bottom-hover",!0===r.bottom)}),n.pipe(Object(TY.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(S.a)(r.pipe(Object(Cp.a)(1)).pipe(Object(cd.a)(function(e){return[,e]})),r.pipe(Object(mp.a)())).pipe(Object(cd.a)(function(e){var t=f(e,2),n=t[0],r=t[1];return[n?a(n):n,a(r)]})).pipe(Object(dp.a)(function(e){var t=f(e,2),n=t[0],r=t[1];if(!n)return!0;var i=s(),o=c(n,i),a=c(r,i);return o.x!==a.x||o.y!==a.y})).pipe(Object(cd.a)(function(e){var t=f(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(fp.a)(Object(S.a)(i,n)))})).pipe(Object(dp.a)(function(){return!!e})).pipe(Object(cd.a)(function(t){return Gle(e.startingRect,e.edges,t.clientX,t.clientY)})).pipe(Object(dp.a)(function(e){return t.allowNegativeResizes||!!(e.height&&e.width&&e.height>0&&e.width>0)})).pipe(Object(dp.a)(function(n){return!t.validateResize||t.validateResize({rectangle:n,edges:$le({edges:e.edges,initialRectangle:e.startingRect,newRectangle:n})})}),Object(fp.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.resizing.observers.length>0&&t.zone.run(function(){t.resizing.emit({edges:$le({edges:e.edges,initialRectangle:e.startingRect,newRectangle:n}),rectangle:n})}),e.currentRect=n}),n.pipe(Object(cd.a)(function(e){return e.edges||Kle({clientX:e.clientX,clientY:e.clientY,elm:t.elm,allowedEdges:t.resizeEdges,cursorPrecision:t.resizeCursorPrecision})})).pipe(Object(dp.a)(function(e){return Object.keys(e).length>0}),Object(fp.a)(this.destroy$)).subscribe(function(n){e&&o();var r=function(e,t){var n=0,r=0,i=e.nativeElement.style,o=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(e){return i[e]}).find(function(e){return!!e});if(o&&o.includes("translate")&&(n=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),r=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-r,bottom:e.nativeElement.offsetHeight+e.nativeElement.offsetTop-r,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-r,bottom:a.bottom-r,left:a.left-n,right:a.right-n,scrollTop:e.nativeElement.scrollTop,scrollLeft:e.nativeElement.scrollLeft}}(t.elm,t.ghostElementPositioning);e={edges:n,startingRect:r,currentRect:r};var i=a(),s=Zle(e.edges,i);t.renderer.setStyle(document.body,"cursor",s),t.setElementClass(t.elm,Jle,!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",Zle(e.edges,i)),t.renderer.addClass(e.clonedNode,"resize-ghost-element"),e.clonedNode.scrollTop=e.startingRect.scrollTop,e.clonedNode.scrollLeft=e.startingRect.scrollLeft),t.resizeStart.observers.length>0&&t.zone.run(function(){t.resizeStart.emit({edges:$le({edges:n,initialRectangle:r,newRectangle:r}),rectangle:Gle(r,{},0,0)})})}),i.pipe(Object(fp.a)(this.destroy$)).subscribe(function(){e&&(t.renderer.removeClass(t.elm.nativeElement,Jle),t.renderer.setStyle(document.body,"cursor",""),t.renderer.setStyle(t.elm.nativeElement,"cursor",""),t.resizeEnd.observers.length>0&&t.zone.run(function(){t.resizeEnd.emit({edges:$le({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(){bh(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)(Sa(Rl),Sa(rc),Sa(ec),Sa(Ql))},e.\u0275dir=Se({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:[Fe]}),e}(),tue=function(){function e(t,n){Object(s.a)(this,e),this.pointerDown=new C.a(function(e){var r,i;return n.runOutsideAngular(function(){r=t.listen("document","mousedown",function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})}),qle&&(i=t.listen("document","touchstart",function(t){e.next({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY,event:t})}))}),function(){r(),qle&&i()}}).pipe(Object(x.a)()),this.pointerMove=new C.a(function(e){var r,i;return n.runOutsideAngular(function(){r=t.listen("document","mousemove",function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})}),qle&&(i=t.listen("document","touchmove",function(t){e.next({clientX:t.targetTouches[0].clientX,clientY:t.targetTouches[0].clientY,event:t})}))}),function(){r(),qle&&i()}}).pipe(Object(x.a)()),this.pointerUp=new C.a(function(e){var r,i,o;return n.runOutsideAngular(function(){r=t.listen("document","mouseup",function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})}),qle&&(i=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(){r(),qle&&(i(),o())}}).pipe(Object(x.a)())}return Object(c.a)(e,null,[{key:"getInstance",value:function(t,n){return e.instance||(e.instance=new e(t,n)),e.instance}}]),e}(),nue=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),rue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.prototype.getItemKey=function(e){return e},t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return iue(e||t)}}),t}(d9),iue=Cn(rue),oue=n("kiQV").version,aue=["console"];function sue(e,t){if(1&e&&(Ma(0,"span",12),Cs(1),Ea(2,"br"),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.message," ")}}var cue=function(e){return{lightTheme:e}},lue=function(){function e(e,t,n,r,i,o,a,s,c){this.projectWebServiceHandler=e,this.nodeService=t,this.nodesDataSource=n,this.logEventsDataSource=r,this.httpService=i,this.themeService=o,this.cd=a,this.nodeConsoleService=s,this.changeDetectorRef=c,this.version=oue,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 lf(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,r=t.event;n=r.label?"Event received: "+t.action+" - "+e.printNode(r)+".":"Event received: "+t.action+" - "+r.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&&(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)(Sa(ite),Sa(I2),Sa(f9),Sa(rue),Sa(QZ),Sa(Hre),Sa(Oc),Sa(N7),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["app-log-console"]],viewQuery:function(e,t){var n;1&e&&Cl(aue,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"button",2),Cs(3," Apply filter "),Ta(),Ma(4,"mat-menu",3,4),Ma(6,"button",5),Na("click",function(){return t.applyFilter("all")}),Cs(7,"all"),Ta(),Ma(8,"button",5),Na("click",function(){return t.applyFilter("errors")}),Cs(9,"errors"),Ta(),Ma(10,"button",5),Na("click",function(){return t.applyFilter("warnings")}),Cs(11,"warnings"),Ta(),Ma(12,"button",5),Na("click",function(){return t.applyFilter("info")}),Cs(13,"info"),Ta(),Ma(14,"button",5),Na("click",function(){return t.applyFilter("map updates")}),Cs(15,"map updates"),Ta(),Ma(16,"button",5),Na("click",function(){return t.applyFilter("server requests")}),Cs(17,"server requests"),Ta(),Ta(),Ta(),Ta(),Ma(18,"div",6,7),ka(20,sue,3,1,"span",8),Ta(),Ma(21,"div",9),Ma(22,"mat-icon",10),Cs(23,"keyboard_arrow_right"),Ta(),Ma(24,"input",11),Na("keydown",function(e){return t.onKeyDown(e)})("ngModelChange",function(e){return t.command=e}),Ta(),Ta()),2&e){var n=Ca(5);zi(2),xa("ngClass",el(8,cue,t.isLightThemeEnabled))("matMenuTriggerFor",n),zi(16),xa("ngClass",el(10,cue,t.isLightThemeEnabled))("ngStyle",t.style),zi(2),xa("ngForOf",t.filteredEvents),zi(1),xa("ngClass",el(12,cue,t.isLightThemeEnabled)),zi(3),xa("ngClass",el(14,cue,t.isLightThemeEnabled))("ngModel",t.command)}},directives:[eh,U0,B0,R0,hh,nh,T2,fd,Fd,vf],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}(),uue=n("/POA"),hue=n("Fzww"),due=n("R9As"),fue=["terminal"],pue=function(){function e(e,t){this.consoleService=e,this.themeService=t,this.term=new uue.Terminal,this.fitAddon=new due.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return e.prototype.ngOnInit=function(){var e=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.consoleService.consoleResized.subscribe(function(t){var n=Math.floor(t.width/9),r=Math.floor(t.height/17);e.consoleService.setNumberOfColumns(n),e.consoleService.setNumberOfRows(r),e.term.resize(n,r)}),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),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});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 hue.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)(Sa(N7),Sa(Hre))},e.\u0275cmp=be({type:e,selectors:[["app-web-console"]],viewQuery:function(e,t){var n;1&e&&Cl(fue,1),2&e&&kl(n=xl())&&(t.terminal=n.first)},inputs:{server:"server",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal",1,"lightTheme"],["terminal",""]],template:function(e,t){1&e&&Ea(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}',".lightTheme{background:#fff!important;color:#000!important}"],encapsulation:2}),e}();function mue(e,t){if(1&e){var n=Aa();Ma(0,"div",10),Na("mousemove",function(e){return ut(n),Ua().dragWidget(e)},!1,Yr)("mouseup",function(){return ut(n),Ua().toggleDragging(!1)},!1,Yr),Ta()}}function gue(e,t){1&e&&(Ma(0,"div",11),Cs(1,"GNS3 console"),Ta())}var vue=function(e){return{lightThemeConsoleHeader:e}};function bue(e,t){if(1&e){var n=Aa();Ma(0,"div",11),Cs(1),Ta(),Ma(2,"button",7),Na("click",function(){ut(n);var e=Ua().index;return Ua().removeTab(e)}),Ma(3,"mat-icon"),Cs(4,"close"),Ta(),Ta()}if(2&e){var r=Ua().$implicit,i=Ua();zi(1),Ss(r.name),zi(1),xa("ngClass",el(2,vue,i.isLightThemeEnabled))}}function yue(e,t){1&e&&(Ma(0,"mat-tab",12),ka(1,bue,5,4,"ng-template",4),Ta()),2&e&&xa("label",Ua().tab)}function _ue(e,t){if(1&e){var n=Aa();Ma(0,"button",7),Na("click",function(){return ut(n),Ua().minimize(!0)}),Ma(1,"mat-icon"),Cs(2,"remove"),Ta(),Ta()}if(2&e){var r=Ua();xa("ngClass",el(1,vue,r.isLightThemeEnabled))}}function wue(e,t){if(1&e){var n=Aa();Ma(0,"button",7),Na("click",function(){return ut(n),Ua().minimize(!1)}),Ma(1,"mat-icon"),Cs(2,"web_asset"),Ta(),Ta()}if(2&e){var r=Ua();xa("ngClass",el(1,vue,r.isLightThemeEnabled))}}function kue(e,t){if(1&e){var n=Aa();Ma(0,"div",13),Na("mouseover",function(e){return ut(n),Ua().disableScroll(e)})("mouseout",function(e){return ut(n),Ua().enableScroll(e)}),Ea(1,"app-web-console",14),Ta()}if(2&e){var r=t.index,i=Ua();xa("hidden",i.isMinimized),zi(1),xa("hidden",!(i.selected.value===r+1))("server",i.server)("node",i.nodes[r])}}var Cue=function(e){return{lightTheme:e}},Sue=function(){return{right:!0,left:!0,bottom:!0,top:!0}},xue=function(){function e(e,t,n){this.consoleService=e,this.themeService=t,this.mapSettingsService=n,this.closeConsole=new ul,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 lf(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),r=Number(this.style.width.split("px")[0]),i=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:r+"px",height:i+"px"}}else{var s=Number(this.style.bottom.split("px")[0])-n;this.style={position:"fixed",left:o+"px",bottom:s+"px",width:r+"px",height:i+"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)(Sa(N7),Sa(Hre),Sa(F7))},e.\u0275cmp=be({type:e,selectors:[["app-console-wrapper"]],inputs:{server:"server",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:23,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader",3,"ngClass"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color:white","mat-icon-button","",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"ngClass","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&&(ka(0,mue,1,0,"div",0),Ma(1,"div",1),Na("mousedown",function(){return t.toggleDragging(!0)})("resizeStart",function(){return t.toggleDragging(!1)})("resizeEnd",function(e){return t.onResizeEnd(e)}),Ma(2,"div",2),Ma(3,"mat-tab-group",3),Na("selectedIndexChange",function(e){return t.selected.setValue(e)}),Ma(4,"mat-tab"),ka(5,gue,2,0,"ng-template",4),Ta(),ka(6,yue,2,1,"mat-tab",5),Ta(),ka(7,_ue,3,3,"button",6),ka(8,wue,3,3,"button",6),Ma(9,"button",7),Na("click",function(){return t.close()}),Ma(10,"mat-icon"),Cs(11,"close"),Ta(),Ta(),Ta(),Ea(12,"app-log-console",8),ka(13,kue,2,4,"div",9),Ta()),2&e&&(xa("ngIf",t.isDraggingEnabled),zi(1),xa("ngClass",el(16,Cue,t.isLightThemeEnabled))("ngStyle",t.style)("validateResize",t.validate)("resizeEdges",Jc(18,Sue))("enableGhostResize",!0),zi(1),xa("ngClass",el(19,vue,t.isLightThemeEnabled)),zi(1),xa("selectedIndex",t.selected.value),zi(3),xa("ngForOf",t.nodes),zi(1),xa("ngIf",!t.isMinimized),zi(1),xa("ngIf",t.isMinimized),zi(1),xa("ngClass",el(21,vue,t.isLightThemeEnabled)),zi(3),xa("hidden",!(0===t.selected.value)||t.isMinimized)("server",t.server)("project",t.project),zi(1),xa("ngForOf",t.nodes))},directives:[ih,eue,eh,hh,Q1,z1,L1,nh,l2,T2,lue,pue],styles:["@media screen and (max-width:700px){.consoleWrapper[_ngcontent-%COMP%]{visibility:hidden}}.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}.lightThemeConsoleHeader[_ngcontent-%COMP%]{background:#fff!important;color:#000!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 Oue(e,t){if(1&e){var n=Aa();Ma(0,"div",2),Na("mousemove",function(e){return ut(n),Ua().dragWidget(e)},!1,Yr)("mouseup",function(){return ut(n),Ua().toggleDragging(!1)},!1,Yr),Ta()}}function Mue(e,t){1&e&&(Ft(),Ma(0,"svg",28),Ea(1,"rect",29),Ta())}function Tue(e,t){1&e&&(Ft(),Ma(0,"svg",28),Ea(1,"rect",30),Ta())}function Eue(e,t){1&e&&(Ft(),Ma(0,"svg",28),Ea(1,"rect",31),Ta())}function Pue(e,t){if(1&e&&(Ma(0,"div"),Cs(1),Ta()),2&e){var n=Ua().$implicit;zi(1),Ms(" ",n.console_type," ",n.console_host,":",n.console," ")}}function jue(e,t){1&e&&(Ma(0,"div"),Cs(1," none "),Ta())}function Iue(e,t){if(1&e&&(Ma(0,"div",25),Ma(1,"div"),ka(2,Mue,2,0,"svg",26),ka(3,Tue,2,0,"svg",26),ka(4,Eue,2,0,"svg",26),Cs(5),Ta(),ka(6,Pue,2,3,"div",27),ka(7,jue,2,0,"div",27),Ta()),2&e){var n=t.$implicit;zi(2),xa("ngIf","started"===n.status),zi(1),xa("ngIf","suspended"===n.status),zi(1),xa("ngIf","stopped"===n.status),zi(1),xs(" ",n.name," "),zi(1),xa("ngIf",null!=n.console&&null!=n.console&&"none"!=n.console_type),zi(1),xa("ngIf",null==n.console||"none"===n.console_type)}}function Aue(e,t){1&e&&(Ft(),Ma(0,"svg",28),Ea(1,"rect",29),Ta())}function Due(e,t){1&e&&(Ft(),Ma(0,"svg",28),Ea(1,"rect",31),Ta())}function Rue(e,t){if(1&e&&(Ma(0,"div",25),Ma(1,"div"),ka(2,Aue,2,0,"svg",26),ka(3,Due,2,0,"svg",26),Cs(4),Ta(),Ma(5,"div"),Cs(6),Ta(),Ma(7,"div"),Cs(8),Ta(),Ta()),2&e){var n=t.$implicit,r=Ua(2);zi(2),xa("ngIf",n.connected),zi(1),xa("ngIf",!n.connected),zi(1),xs(" ",n.name," "),zi(2),xs(" ",n.host," "),zi(2),xs(" ",r.server.location," ")}}var Lue=function(e){return{lightTheme:e}},Nue=function(){return{right:!0,left:!0,bottom:!0,top:!0}};function Fue(e,t){if(1&e){var n=Aa();Ma(0,"div",3),Na("mousedown",function(){return ut(n),Ua().toggleDragging(!0)})("resizeStart",function(){return ut(n),Ua().toggleDragging(!1)})("resizeEnd",function(e){return ut(n),Ua().onResizeEnd(e)}),Ma(1,"div",4),Ma(2,"mat-tab-group"),Ma(3,"mat-tab",5),Na("click",function(){return ut(n),Ua().toggleTopologyVisibility(!0)}),Ma(4,"div",6),Ma(5,"div",7),Ma(6,"mat-select",8),Ma(7,"mat-optgroup",9),Ma(8,"mat-option",10),Na("onSelectionChange",function(){return ut(n),Ua().applyStatusFilter("started")}),Cs(9,"started"),Ta(),Ma(10,"mat-option",11),Na("onSelectionChange",function(){return ut(n),Ua().applyStatusFilter("suspended")}),Cs(11,"suspended"),Ta(),Ma(12,"mat-option",12),Na("onSelectionChange",function(){return ut(n),Ua().applyStatusFilter("stopped")}),Cs(13,"stopped"),Ta(),Ta(),Ma(14,"mat-optgroup",13),Ma(15,"mat-option",14),Na("onSelectionChange",function(){return ut(n),Ua().applyCaptureFilter("capture")}),Cs(16,"active capture(s)"),Ta(),Ma(17,"mat-option",15),Na("onSelectionChange",function(){return ut(n),Ua().applyCaptureFilter("packet")}),Cs(18,"active packet captures"),Ta(),Ta(),Ta(),Ta(),Ma(19,"div",16),Ma(20,"mat-select",17),Na("selectionChange",function(){return ut(n),Ua().setSortingOrder()})("valueChange",function(e){return ut(n),Ua().sortingOrder=e}),Ma(21,"mat-option",18),Cs(22,"sort by name ascending"),Ta(),Ma(23,"mat-option",19),Cs(24,"sort by name descending"),Ta(),Ta(),Ta(),Ea(25,"mat-divider",20),Ma(26,"div",21),ka(27,Iue,8,6,"div",22),Ta(),Ta(),Ta(),Ma(28,"mat-tab",23),Na("click",function(){return ut(n),Ua().toggleTopologyVisibility(!1)}),Ma(29,"div",6),Ma(30,"div",24),ka(31,Rue,9,5,"div",22),Ta(),Ta(),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=Ua();xa("ngStyle",r.style)("ngClass",el(9,Lue,r.isLightThemeEnabled))("validateResize",r.validate)("resizeEdges",Jc(11,Nue))("enableGhostResize",!0),zi(20),xa("value",r.sortingOrder),zi(6),xa("ngStyle",r.styleInside),zi(1),xa("ngForOf",r.filteredNodes),zi(4),xa("ngForOf",r.computes)}}var Bue=function(){function e(e,t,n,r,i){this.nodesDataSource=e,this.projectService=t,this.computeService=n,this.linksDataSource=r,this.themeService=i,this.closeTopologySummary=new ul,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:"60px",right:"0px",width:"320px",height:"400px"}},e.prototype.toggleDragging=function(e){this.isDraggingEnabled=e},e.prototype.dragWidget=function(e){var t=Number(e.movementX),n=Number(e.movementY),r=Number(this.style.width.split("px")[0]),i=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:r+"px",height:i+"px"}}else{var s=Number(this.style.right.split("px")[0])-t;this.style={position:"fixed",right:s+"px",top:o+"px",width:r+"px",height:i+"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.toggleTopologyVisibility=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 r=[];return e.forEach(function(e){n.includes(e.node_id)&&r.push(e)}),r},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 r=[];return e.forEach(function(e){n.includes(e.node_id)&&r.push(e)}),r},e.prototype.close=function(){this.closeTopologySummary.emit(!1)},e.\u0275fac=function(t){return new(t||e)(Sa(f9),Sa(e$),Sa(moe),Sa(j9),Sa(Hre))},e.\u0275cmp=be({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"],["label","Map topology",3,"click"],[1,"tabContent"],[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,"divider"],[1,"summaryContent",3,"ngStyle"],["class","nodeRow",4,"ngFor","ngForOf"],["label","Servers",3,"click"],[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&&(ka(0,Oue,1,0,"div",0),ka(1,Fue,32,12,"div",1)),2&e&&(xa("ngIf",t.isDraggingEnabled),zi(1),xa("ngIf",t.projectsStatistics))},directives:[ih,eue,hh,eh,Q1,z1,v5,FJ,UJ,t7,nh],styles:["@media screen and (max-width:600px){.summaryWrapper[_ngcontent-%COMP%]{visibility:hidden}}mat-tab-group[_ngcontent-%COMP%]{width:100%}.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:60px;right:0;height:400px;width:320px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%], .summaryWrapper[_ngcontent-%COMP%]{margin:20px;border-radius:8px}.lightTheme[_ngcontent-%COMP%]{background-color:rgba(244,248,252,.95);color:#000}.summaryHeaderMenu[_ngcontent-%COMP%]{height:24px}.summaryHeader[_ngcontent-%COMP%]{width:100%;display:flex}.summaryFilters[_ngcontent-%COMP%], .summarySorting[_ngcontent-%COMP%]{height:25px;margin-left:5px;margin-right:5px}.tabContent[_ngcontent-%COMP%]{padding:10px}.summaryContent[_ngcontent-%COMP%], .summaryContentServers[_ngcontent-%COMP%]{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;border-radius:0}.marked[_ngcontent-%COMP%]{color:#0097a7;border-bottom:2px solid #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 zue(e,t){if(1&e){var n=Aa();Ma(0,"app-d3-map",38),Na("nodeDragged",function(e){return ut(n),Ua(2).onNodeDragged(e)})("drawingDragged",function(e){return ut(n),Ua(2).onDrawingDragged(e)})("onLinkCreated",function(e){return ut(n),Ua(2).onLinkCreated(e)})("onDrawingResized",function(e){return ut(n),Ua(2).onDrawingResized(e)}),Ta()}if(2&e){var r=Ua(2);xa("server",r.server)("project",r.project)("symbols",r.symbols)("nodes",r.nodes)("links",r.links)("drawings",r.drawings)("width",r.project.scene_width)("height",r.project.scene_height)("show-interface-labels",r.isInterfaceLabelVisible)("readonly",r.inReadOnlyMode)}}function Hue(e,t){if(1&e&&Ea(0,"app-experimental-map",39),2&e){var n=Ua(2);xa("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 Vue(e,t){1&e&&Ea(0,"mat-icon",40)}function Uue(e,t){1&e&&Ea(0,"mat-icon",41)}var que=function(e){return{lightTheme:e}},Wue=function(e){return{selected:e}};function Gue(e,t){if(1&e){var n=Aa();Ma(0,"div",42),Ma(1,"app-template",43),Na("onNodeCreation",function(e){return ut(n),Ua(2).onNodeCreation(e)}),Ta(),Ma(2,"button",44),Na("click",function(){return ut(n),Ua(2).toggleDrawLineMode()}),Ma(3,"mat-icon"),Cs(4,"timeline"),Ta(),Ta(),Ta()}if(2&e){var r=Ua(2);xa("ngClass",el(5,que,r.isLightThemeEnabled)),zi(1),xa("server",r.server)("project",r.project),zi(1),xa("ngClass",el(7,Wue,r.tools.draw_link))("color",r.tools.draw_link?"primary":"basic")}}function Xue(e,t){if(1&e&&(Ma(0,"div",25),Ea(1,"app-snapshot-menu-item",11),Ta()),2&e){var n=Ua(2);zi(1),xa("server",n.server)("project",n.project)}}function Yue(e,t){1&e&&Ea(0,"app-draw-link-tool",45),2&e&&xa("links",Ua(2).links)}function Kue(e,t){if(1&e){var n=Aa();Ma(0,"app-console-wrapper",46),Na("closeConsole",function(e){return ut(n),Ua(2).toggleShowConsole(e)}),Ta()}if(2&e){var r=Ua(2);xa("server",r.server)("project",r.project)}}function Que(e,t){if(1&e){var n=Aa();Ma(0,"app-topology-summary",47),Na("closeTopologySummary",function(e){return ut(n),Ua(2).toggleShowTopologySummary(e)}),Ta()}if(2&e){var r=Ua(2);xa("server",r.server)("project",r.project)}}var Zue=function(e,t){return{unmarkedLight:e,marked:t}},$ue=function(e){return["/server",e,"projects"]},Jue=function(){return["/servers"]},ehe=function(e){return{visible:e}};function the(e,t){if(1&e){var n=Aa();Ma(0,"div",1),ka(1,zue,1,10,"app-d3-map",2),ka(2,Hue,1,11,"app-experimental-map",3),Ma(3,"div",4),Ma(4,"button",5),ka(5,Vue,1,0,"mat-icon",6),ka(6,Uue,1,0,"mat-icon",7),Ta(),Ma(7,"div",8),ka(8,Gue,5,9,"div",9),Ma(9,"div",10),Ea(10,"app-nodes-menu",11),Ea(11,"app-context-menu",12),Ea(12,"app-context-console-menu",12),Ta(),Ta(),Ma(13,"div"),Ma(14,"button",13),Na("click",function(){ut(n);var e=Ua();return e.toggleShowTopologySummary(!e.isTopologySummaryVisible)}),Ma(15,"mat-icon"),Cs(16,"toc"),Ta(),Ta(),Ta(),Ma(17,"mat-menu",14,15),Ma(19,"button",16),Ma(20,"mat-icon"),Cs(21,"work"),Ta(),Ma(22,"span"),Cs(23,"Go to projects"),Ta(),Ta(),Ma(24,"button",16),Ma(25,"mat-icon"),Cs(26,"developer_board"),Ta(),Ma(27,"span"),Cs(28,"Go to servers"),Ta(),Ta(),Ma(29,"button",16),Ma(30,"mat-icon"),Cs(31,"settings_applications"),Ta(),Ma(32,"span"),Cs(33,"Go to preferences"),Ta(),Ta(),Ma(34,"button",16),Ma(35,"mat-icon"),Cs(36,"info"),Ta(),Ma(37,"span"),Cs(38,"Go to system status"),Ta(),Ta(),Ma(39,"button",17),Ma(40,"mat-icon"),Cs(41,"settings"),Ta(),Ma(42,"span"),Cs(43,"Go to settings"),Ta(),Ta(),Ma(44,"button",18),Na("click",function(){return ut(n),Ua().addNewTemplate()}),Ma(45,"mat-icon"),Cs(46,"control_point"),Ta(),Ma(47,"span"),Cs(48,"New template"),Ta(),Ta(),Ea(49,"app-import-appliance",11),Ma(50,"button",19),Ma(51,"mat-icon"),Cs(52,"settings"),Ta(),Ma(53,"span"),Cs(54,"Project settings"),Ta(),Ta(),Ma(55,"button",19),Ma(56,"mat-icon"),Cs(57,"view_module"),Ta(),Ma(58,"span"),Cs(59,"Map settings"),Ta(),Ta(),Ta(),Ma(60,"mat-menu",14,20),Ma(62,"div"),Ma(63,"button",18),Na("click",function(){return ut(n),Ua().addNewProject()}),Ma(64,"mat-icon"),Cs(65,"add"),Ta(),Ma(66,"span"),Cs(67,"Add new blank project"),Ta(),Ta(),Ma(68,"button",18),Na("click",function(){return ut(n),Ua().saveProject()}),Ma(69,"mat-icon"),Cs(70,"save"),Ta(),Ma(71,"span"),Cs(72,"Save project as"),Ta(),Ta(),Ma(73,"button",18),Na("click",function(){return ut(n),Ua().editProject()}),Ma(74,"mat-icon"),Cs(75,"edit"),Ta(),Ma(76,"span"),Cs(77,"Edit project"),Ta(),Ta(),Ma(78,"button",18),Na("click",function(){return ut(n),Ua().exportProject()}),Ma(79,"mat-icon"),Cs(80,"call_made"),Ta(),Ma(81,"span"),Cs(82,"Export portable project"),Ta(),Ta(),Ma(83,"button",18),Na("click",function(){return ut(n),Ua().importProject()}),Ma(84,"mat-icon"),Cs(85,"call_received"),Ta(),Ma(86,"span"),Cs(87,"Import portable project"),Ta(),Ta(),Ma(88,"button",18),Na("click",function(){return ut(n),Ua().closeProject()}),Ma(89,"mat-icon"),Cs(90,"close"),Ta(),Ma(91,"span"),Cs(92,"Close project"),Ta(),Ta(),Ma(93,"button",18),Na("click",function(){return ut(n),Ua().deleteProject()}),Ma(94,"mat-icon"),Cs(95,"delete"),Ta(),Ma(96,"span"),Cs(97,"Delete project"),Ta(),Ta(),Ta(),Ta(),Ma(98,"mat-menu",14,21),Ma(100,"div",22),Ma(101,"mat-checkbox",23),Na("change",function(e){return ut(n),Ua().toggleShowInterfaceLabels(e.checked)}),Cs(102," Show interface labels "),Ta(),Ea(103,"br"),Ma(104,"mat-checkbox",23),Na("change",function(e){return ut(n),Ua().toggleShowConsole(e.checked)}),Cs(105," Show console "),Ta(),Ea(106,"br"),Ma(107,"mat-checkbox",23),Na("change",function(e){return ut(n),Ua().toggleShowTopologySummary(e.checked)}),Cs(108," Show topology/servers summary "),Ta(),Ea(109,"br"),Ma(110,"mat-checkbox",23),Na("change",function(e){return ut(n),Ua().toggleNotifications(e.checked)}),Cs(111," Show notifications "),Ta(),Ea(112,"br"),Ma(113,"mat-checkbox",23),Na("change",function(e){return ut(n),Ua().toggleLayers(e.checked)}),Cs(114," Show layers "),Ta(),Ea(115,"br"),Ma(116,"mat-checkbox",23),Na("change",function(e){return ut(n),Ua().toggleGrid(e.checked)}),Cs(117," Show grid "),Ta(),Ea(118,"br"),Ma(119,"mat-checkbox",23),Na("change",function(e){return ut(n),Ua().toggleSnapToGrid(e.checked)}),Cs(120," Snap to grid "),Ta(),Ea(121,"br"),Ta(),Ta(),Ta(),Ma(122,"div",24),Ma(123,"div",25),Ma(124,"button",26),Na("click",function(){return ut(n),Ua().toggleMovingMode()}),Ma(125,"mat-icon"),Cs(126,"near_me"),Ta(),Ta(),Ma(127,"button",27),Na("click",function(){return ut(n),Ua().toggleMovingMode()}),Ma(128,"mat-icon"),Cs(129,"zoom_out_map"),Ta(),Ta(),Ma(130,"button",28),Na("click",function(){return ut(n),Ua().zoomIn()}),Ma(131,"mat-icon"),Cs(132,"zoom_in"),Ta(),Ta(),Ma(133,"button",29),Na("click",function(){return ut(n),Ua().resetZoom()}),Ma(134,"mat-icon"),Cs(135,"adjust"),Ta(),Ta(),Ma(136,"button",30),Na("click",function(){return ut(n),Ua().zoomOut()}),Ma(137,"mat-icon"),Cs(138,"zoom_out"),Ta(),Ta(),Ta(),Ma(139,"div",25),Ea(140,"app-project-map-menu",11),Ta(),ka(141,Xue,2,2,"div",31),Ta(),Ea(142,"app-progress"),ka(143,Yue,1,1,"app-draw-link-tool",32),Ea(144,"app-drawing-dragged",11),Ea(145,"app-drawing-resized",33),Ea(146,"app-interface-label-dragged",33),Ea(147,"app-link-created",11),Ea(148,"app-node-dragged",11),Ea(149,"app-node-label-dragged",33),Ma(150,"app-text-added",34),Na("drawingSaved",function(){return ut(n),Ua().onDrawingSaved()}),Ta(),Ea(151,"app-text-edited",33),Ma(152,"div",35),ka(153,Kue,1,2,"app-console-wrapper",36),Ta(),Ma(154,"div",35),ka(155,Que,1,2,"app-topology-summary",37),Ta(),Ta()}if(2&e){var r=Ca(18),i=Ca(61),o=Ca(99),a=Ua();xa("ngClass",el(56,que,a.isLightThemeEnabled)),zi(1),xa("ngIf",!a.settings.angular_map),zi(1),xa("ngIf",a.settings.angular_map),zi(1),xa("ngClass",el(58,que,a.isLightThemeEnabled)),zi(1),xa("matMenuTriggerFor",r),zi(1),xa("ngIf",!a.isLightThemeEnabled),zi(1),xa("ngIf",a.isLightThemeEnabled),zi(2),xa("ngIf",!a.readonly),zi(2),xa("server",a.server)("project",a.project),zi(1),xa("project",a.project)("server",a.server),zi(1),xa("project",a.project)("server",a.server),zi(2),xa("ngClass",tl(60,Zue,!a.isTopologySummaryVisible&&a.isLightThemeEnabled,a.isTopologySummaryVisible)),zi(3),xa("overlapTrigger",!1),zi(2),xa("routerLink",el(63,$ue,a.server.id)),zi(5),xa("routerLink",Jc(65,Jue)),zi(5),Ya("routerLink","/server/",a.server.id,"/preferences"),zi(5),Ya("routerLink","/server/",a.server.id,"/systemstatus"),zi(15),xa("server",a.server)("project",a.project),zi(1),xa("matMenuTriggerFor",i),zi(5),xa("matMenuTriggerFor",o),zi(5),xa("overlapTrigger",!1),zi(38),xa("overlapTrigger",!1),zi(3),xa("ngModel",a.isInterfaceLabelVisible),zi(3),xa("ngModel",a.isConsoleVisible),zi(3),xa("ngModel",a.isTopologySummaryVisible),zi(3),xa("ngModel",a.notificationsVisibility),zi(3),xa("ngModel",a.layersVisibility),zi(3),xa("ngModel",a.gridVisibility),zi(3),xa("ngModel",a.project.snap_to_grid),zi(3),xa("ngClass",el(66,que,a.isLightThemeEnabled)),zi(2),xa("color",a.tools.moving?"basic":"primary"),zi(3),xa("color",a.tools.moving?"primary":"basic"),zi(13),xa("server",a.server)("project",a.project),zi(1),xa("ngIf",!a.readonly),zi(2),xa("ngIf",a.tools.draw_link),zi(1),xa("server",a.server)("project",a.project),zi(1),xa("server",a.server),zi(1),xa("server",a.server),zi(1),xa("server",a.server)("project",a.project),zi(1),xa("server",a.server)("project",a.project),zi(1),xa("server",a.server),zi(1),xa("server",a.server)("project",a.project),zi(1),xa("server",a.server),zi(1),xa("ngClass",el(68,ehe,!a.isConsoleVisible)),zi(1),xa("ngIf",a.project),zi(1),xa("ngClass",el(70,ehe,!a.isTopologySummaryVisible)),zi(1),xa("ngIf",a.project)}}var nhe=function(){function e(e,t,n,r,i,o,a,s,c,l,u,h,d,f,p,m,g,v,b,y,_,k,C,S,x,O,M,T,E,P,j,I,A,D,R,L,N,F,B,z,H,V,U,q,W){this.route=e,this.serverService=t,this.projectService=n,this.nodeService=r,this.drawingService=i,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=_,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=I,this.mapNodesDataSource=A,this.mapLinksDataSource=D,this.mapDrawingsDataSource=R,this.mapSymbolsDataSource=L,this.mapSettingsService=N,this.ethernetLinkWidget=F,this.serialLinkWidget=B,this.bottomSheet=z,this.notificationService=H,this.themeService=V,this.title=U,this.nodeConsoleService=q,this.cd=W,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 w.a}return e.prototype.ngOnInit=function(){var e=this;this.getSettings(),this.progressService.activate(),this.serverService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.serverService.serviceInitialized.subscribe(function(t){t&&e.getData()})),this.addSubscriptions(),this.addKeyboardListeners(),this.themeService.themeChanged.subscribe(function(t){e.isLightThemeEnabled="light"===e.themeService.getActualTheme()})},e.prototype.getSettings=function(){var e=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.cd.detectChanges(),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.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility")},e.prototype.addSubscriptions=function(){var e=this;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=e.server.protocol+"//"+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})}))},e.prototype.getData=function(){var e=this,t=this.route.paramMap.subscribe(function(t){var n=parseInt(t.get("server_id"),10);Object(ad.a)(e.serverService.get(n)).pipe(Object(TY.b)(function(n){return n||e.router.navigate(["/servers"]),e.server=n,e.projectService.get(n,t.get("project_id")).pipe(Object(cd.a)(function(e){return e}))}),Object(TY.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 C.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;dse.bind("ctrl++",function(t){t.preventDefault(),e.zoomIn()}),dse.bind("ctrl+-",function(t){t.preventDefault(),e.zoomOut()}),dse.bind("ctrl+0",function(t){t.preventDefault(),e.resetZoom()}),dse.bind("ctrl+a",function(t){t.preventDefault();var n=e.mapNodesDataSource.getItems(),r=e.mapDrawingsDataSource.getItems(),i=e.mapLinksDataSource.getItems(),o=e.mapSymbolsDataSource.getItems();e.selectionManager.setSelected(n.concat(r).concat(i).concat(o))}),dse.bind("ctrl+h",function(t){t.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility}),dse.bind("ctrl+shift+a",function(t){t.preventDefault(),e.selectionManager.setSelected([])}),dse.bind("ctrl+shift+s",function(t){t.preventDefault(),e.router.navigate(["/server",e.server.id,"preferences"])}),dse.bind("del",function(t){t.preventDefault(),e.selectionManager.getSelected().filter(function(e){return e instanceof lte}).forEach(function(t){var n=e.mapNodeToNode.convert(t);e.nodeService.delete(e.server,n).subscribe(function(t){e.toasterService.success("Node has been deleted")})})})},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(TY.b)(function(n){return t.nodesDataSource.set(n),t.projectService.links(t.server,e.project_id)}),Object(TY.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)}),r=this.serialLinkWidget.onContextMenu.subscribe(function(t){var n=e.mapLinkToLink.convert(t.link);e.contextMenu.openMenuForListOfElements([],[],[],[n],t.event.pageY,t.event.pageX)}),i=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),r=e.nodes.find(function(e){return e.node_id===t.label.nodeId});e.contextMenu.openMenuForLabel(n,r,t.event.pageY,t.event.pageX)}),s=this.interfaceLabelWidget.onContextMenu.subscribe(function(t){var n=e.mapLinkNodeToLinkNode.convert(t.interfaceLabel),r=e.links.find(function(e){return e.link_id===t.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(n,r,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 r=[],i=[],o=[],a=[];n.forEach(function(t){t instanceof y9?r.push(e.mapDrawingToDrawing.convert(t)):t instanceof lte?i.push(e.mapNodeToNode.convert(t)):t instanceof ute?o.push(e.mapLabelToLabel.convert(t)):t instanceof yte&&a.push(e.mapLinkToLink.convert(t))}),e.contextMenu.openMenuForListOfElements(r,i,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(r),this.projectMapSubscription.add(i),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),r=parseInt(t[3],10);e.element={width:r,height:n}}),0!==this.nodes.length||0!==this.drawings.length){var e,t,n,r,i=[];this.nodes.forEach(function(e){var t=new rhe;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),i.push(t)});var o=i.sort(function(e,t){return e.left-t.left})[0],a=i.sort(function(e,t){return e.right-t.right})[i.length-1],s=i.sort(function(e,t){return e.top-t.top})[0],c=i.sort(function(e,t){return e.bottom-t.bottom})[i.length-1],l=[];this.drawings.forEach(function(e){var t=new ihe;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,r=c.bottom>f.bottom?c.bottom:f.bottom):o&&!u?(e=o.left,t=a.right,n=s.top,r=c.bottom):u&&!o?(e=u.left,t=h.right,n=d.top,r=f.bottom):(e=0,t=0,n=0,r=0),e-=20,t+=20,n-=20,r+=20;var p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,g=t-e,v=r-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(mie,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},e.prototype.saveProject=function(){var e=this.dialog.open(yie,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project},e.prototype.editProject=function(){var e=this.dialog.open(Eie,{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(uie,{width:"400px",autoFocus:!1,disableClose:!0});n.componentInstance.server=this.server;var r=n.componentInstance.onImportProject.subscribe(function(e){t=e});n.afterClosed().subscribe(function(){if(r.unsubscribe(),t){e.bottomSheet.open(zie);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],r=new FileReader,i=new Image;r.onloadend=function(){t.drawingService.add(t.server,t.project.project_id,-i.width/2,-i.height/2,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n height="'+i.height+'" width="'+i.width+'">\n<image height="'+i.height+'" width="'+i.width+'" \n xlink:href="'+r.result+'"/>\n</svg>').subscribe(function(){})},i.onload=function(){r.readAsDataURL(n)},i.src=window.URL.createObjectURL(n)},e.prototype.closeProject=function(){var e=this;this.bottomSheet.open(Vie);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(Vie);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(use,{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)(Sa(BK),Sa(ZZ),Sa(e$),Sa(I2),Sa(h9),Sa(ate),Sa(ite),Sa(ste),Sa(tne),Sa(pne),Sa(Ane),Sa(Jte),Sa(Pne),Sa(bne),Sa(rre),Sa(mne),Sa(ore),Sa(ire),Sa(f9),Sa(j9),Sa(m9),Sa($Z),Sa(Fne),Sa(Lte),Sa(Sne),Sa(JZ),Sa(Une),Sa(zne),Sa(are),Sa(e3),Sa(l1),Sa(uZ),Sa(Ote),Sa(Tte),Sa(Pte),Sa(Ite),Sa(F7),Sa(Ene),Sa(Mne),Sa(Fie),Sa(Uie),Sa(Hre),Sa(nd),Sa(N7),Sa(Oc))},e.\u0275cmp=be({type:e,selectors:[["app-project-map"]],viewQuery:function(e,t){if(1&e&&(Cl(tte,1),Cl(rte,1),Cl(nre,1),Cl(Jre,1)),2&e){var n=void 0;kl(n=xl())&&(t.contextMenu=n.first),kl(n=xl())&&(t.consoleContextMenu=n.first),kl(n=xl())&&(t.mapChild=n.first),kl(n=xl())&&(t.projectMapMenuComponent=n.first)}},decls:1,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],[1,"project-map",3,"ngClass"],[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"],["id","project-titlebar",3,"ngClass"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",1,"gns3-button","menu-button",3,"matMenuTriggerFor"],["svgIcon","gns3",4,"ngIf"],["svgIcon","gns3black",4,"ngIf"],[1,"project-titlebar-controls"],["class","menu-button-group primary-controls",3,"ngClass",4,"ngIf"],[1,"menu-button-group"],[3,"server","project"],[3,"project","server"],["matTooltip","Toggle topology/servers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","","routerLink","/settings"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["id","project-toolbar",3,"ngClass"],[1,"section"],["matTooltip","Selection mode","matTooltipClass","custom-tooltip","mat-icon-button","",1,"selection-button","menu-button",3,"color","click"],["matTooltip","Pan workspace","matTooltipClass","custom-tooltip","mat-icon-button","",1,"pan-button","menu-button",3,"color","click"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip",1,"zoom-button",3,"click"],["class","section",4,"ngIf"],[3,"links",4,"ngIf"],[3,"server"],[3,"server","project","drawingSaved"],[3,"ngClass"],[3,"server","project","closeConsole",4,"ngIf"],[3,"server","project","closeTopologySummary",4,"ngIf"],[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"],["svgIcon","gns3"],["svgIcon","gns3black"],[1,"menu-button-group","primary-controls",3,"ngClass"],[3,"server","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"ngClass","color","click"],[3,"links"],[3,"server","project","closeConsole"],[3,"server","project","closeTopologySummary"]],template:function(e,t){1&e&&ka(0,the,156,72,"div",0),2&e&&xa("ngIf",t.project)},directives:[ih,eh,l2,m4,U0,fse,tte,rte,T2,B0,R0,dZ,pse,P5,Fd,vf,Jre,Tse,Ese,Pse,jse,Ise,Ase,Dse,Rse,Lse,nre,Rce,Cle,Lle,Ule,xue,Bue],styles:[".wrapper{height:600px}.project-map,app-map,app-project-map,app-root{width:auto}g.node:hover{background-color:#0097a7}.project-map{background-color:#e8ecef}#project-titlebar{position:fixed;top:0;left:0;right:0;height:60px;padding:0 20px;background-color:#20313b;display:flex;justify-content:space-between;align-items:center;box-shadow:3px 3px 10px rgba(0,0,0,.2);z-index:2}#project-titlebar .gns3-button{position:relative;top:-2px}#project-titlebar .gns3-button mat-icon{width:30px!important;height:30px!important}#project-titlebar .primary-controls{border-right:1px solid hsla(0,0%,100%,.3);padding-right:15px;margin-right:15px}#project-titlebar .primary-controls.lightTheme{border-right:1px solid #000}#project-titlebar .menu-button-group{display:flex;align-items:center;height:24px}#project-titlebar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;margin:0 8px;border-radius:18px;background:none;font-size:20px}#project-titlebar .add-menu-button mat-icon{font-size:28px!important}#project-titlebar .selected{background:rgba(0,151,167,.1)}#project-titlebar .selected mat-icon{color:#0097a7!important}#project-titlebar .project-titlebar-controls{display:flex;align-items:center}#project-titlebar.lightTheme{background-color:#fff!important}#project-titlebar.lightTheme .selected mat-icon{color:#0097a7!important}#project-toolbar{position:fixed;top:60px;left:0;width:50px;margin:20px;background-color:#20313b;border-radius:6px;box-shadow:1px 1px 10px rgba(0,0,0,.2);z-index:2}#project-toolbar mat-icon{font-size:20px}#project-toolbar .menu-button,#project-toolbar .zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0}#project-toolbar .zoom-button{color:#fff}#project-toolbar .zoom-button mat-icon{font-size:24px!important}#project-toolbar .reset-zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .reset-zoom-button mat-icon{font-size:16px!important;margin-top:8px}#project-toolbar .selection-button{margin-bottom:0!important}#project-toolbar .snapshot-button mat-icon{font-size:16px}#project-toolbar .section{display:flex;flex-direction:column;justify-content:center;align-items:center;border-top:1px solid hsla(0,0%,100%,.3);padding:5px 0}#project-toolbar .section:first-child{border:none}#project-toolbar.lightTheme{background-color:rgba(244,248,252,.95)!important}#project-toolbar.lightTheme .reset-zoom-button,#project-toolbar.lightTheme .zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .section{border-top:1px solid rgba(0,0,0,.1)}#project-toolbar.lightTheme .section:first-child{border:none}img{filter:invert(1)}.lightTheme{color:#000!important}.darkTheme{color:#fff!important}#show-menu-wrapper{position:fixed;background:transparent;top:0;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:0;left:92px;right:0;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}@-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}.unmarked{color:#fff!important}.unmarkedLight{color:#000!important}.marked{color:#0097a7!important}"],encapsulation:2}),e}(),rhe=function(){return function(){}}(),ihe=function(){return function(){}}(),ohe=function(){function e(){this.dataChange=new kp.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function ahe(e,t){1&e&&(Ma(0,"mat-error"),Cs(1,"You must enter a value"),Ta())}function she(e,t){if(1&e&&(Ma(0,"mat-option",13),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.key),zi(1),xs(" ",n.name," ")}}function che(e,t){1&e&&(Ma(0,"mat-form-field"),Ea(1,"input",14),Ta())}function lhe(e,t){1&e&&(Ma(0,"mat-form-field"),Ea(1,"input",15),Ta())}function uhe(e,t){if(1&e&&(Ma(0,"mat-option",13),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.key),zi(1),xs(" ",n.name," ")}}function hhe(e,t){if(1&e&&(Ma(0,"mat-option",13),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.key),zi(1),xs(" ",n.name," ")}}function dhe(e,t){if(1&e&&(Ma(0,"mat-form-field"),Ma(1,"mat-select",16),ka(2,hhe,2,2,"mat-option",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngForOf",n.authorizations)}}function fhe(e,t){1&e&&(Ma(0,"mat-form-field"),Ea(1,"input",17),Ta())}function phe(e,t){1&e&&(Ma(0,"mat-form-field"),Ea(1,"input",18),Ta())}var mhe=function(){function e(e,t,n,r,i){this.dialogRef=e,this.electronService=t,this.serverService=n,this.toasterService=r,this.data=i,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.serverForm=new uf({name:new lf("",[yd.required]),location:new lf(""),path:new lf(""),ubridge_path:new lf(""),host:new lf("",[yd.required]),port:new lf("",[yd.required,yd.min(1)]),protocol:new lf("http:"),authorization:new lf("none"),login:new lf(""),password:new lf("")})}return e.prototype.getLocations=function(){return qZ(this,void 0,void 0,function(){var e,t;return WZ(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 qZ(this,void 0,void 0,function(){var e;return WZ(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 qZ(this,void 0,void 0,function(){return WZ(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 qZ(this,void 0,void 0,function(){return WZ(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 qZ(this,void 0,void 0,function(){return WZ(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 qZ(this,void 0,void 0,function(){var e,t,n,r,i=this;return WZ(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 r=i.serverForm.get("path"),o=i.serverForm.get("ubridge_path");"local"===e?(r.setValue(t),r.setValidators([yd.required]),o.setValue(n),o.setValidators([yd.required])):(r.setValue(""),r.clearValidators(),o.setValue(""),o.clearValidators()),[r,o].forEach(function(e){e.updateValueAndValidity({onlySelf:!0})})}),this.serverForm.get("authorization").valueChanges.subscribe(function(e){var t=i.serverForm.get("login"),n=i.serverForm.get("password");"none"===e?(t.clearValidators(),n.clearValidators()):(t.setValidators([yd.required]),n.setValidators([yd.required])),[t,n].forEach(function(e){e.updateValueAndValidity({onlySelf:!0})})}),[4,this.getDefaultLocation()];case 4:return r=o.sent(),this.serverForm.get("location").setValue(r),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)(Sa(n1),Sa(lY),Sa(ZZ),Sa(e3),Sa(i1))},e.\u0275cmp=be({type:e,selectors:[["app-add-server-dialog"]],decls:27,vars:9,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"],["placeholder","Protocol","formControlName","protocol"],["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&&(Ma(0,"h1",0),Cs(1,"Add server"),Ta(),Ma(2,"form",1),Ma(3,"div",2),Ma(4,"mat-form-field"),Ea(5,"input",3),ka(6,ahe,2,0,"mat-error",4),Ta(),Ma(7,"mat-form-field"),Ma(8,"mat-select",5),ka(9,she,2,2,"mat-option",6),Ta(),Ta(),ka(10,che,2,0,"mat-form-field",4),ka(11,lhe,2,0,"mat-form-field",4),Ma(12,"mat-form-field"),Ea(13,"input",7),Ta(),Ma(14,"mat-form-field"),Ea(15,"input",8),Ta(),Ma(16,"mat-form-field"),Ma(17,"mat-select",9),ka(18,uhe,2,2,"mat-option",6),Ta(),Ta(),ka(19,dhe,3,1,"mat-form-field",4),ka(20,fhe,2,0,"mat-form-field",4),ka(21,phe,2,0,"mat-form-field",4),Ta(),Ma(22,"div",10),Ma(23,"button",11),Na("click",function(){return t.onNoClick()}),Cs(24,"No Thanks"),Ta(),Ma(25,"button",12),Na("click",function(){return t.onAddClick()}),Cs(26,"Add"),Ta(),Ta(),Ta()),2&e&&(zi(2),xa("formGroup",t.serverForm),zi(4),xa("ngIf",t.serverForm.get("name").hasError("required")),zi(3),xa("ngForOf",t.locations),zi(1),xa("ngIf","local"===t.serverForm.get("location").value),zi(1),xa("ngIf","local"===t.serverForm.get("location").value),zi(7),xa("ngForOf",t.protocols),zi(1),xa("ngIf","remote"===t.serverForm.get("location").value),zi(1),xa("ngIf","basic"===t.serverForm.get("authorization").value),zi(1),xa("ngIf","basic"===t.serverForm.get("authorization").value))},directives:[h1,bf,Bd,Sf,d1,H3,Q3,fd,Fd,Of,ih,v5,nh,f1,l2,T3,UJ],encapsulation:2}),e}(),ghe=function(){function e(e){var t=this;this.electronService=e,this.serverStatusChanged=new k.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 qZ(this,void 0,void 0,function(){return WZ(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 qZ(this,void 0,void 0,function(){return WZ(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 qZ(this,void 0,void 0,function(){return WZ(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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(lY))}}),e}(),vhe=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}(),bhe=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yhe=function(e){function t(){return e.call(this)||this}return bhe(t,e),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=F({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(vhe),_he=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[{provide:vhe,useClass:yhe}]}),e}(),whe=n("M6kn"),khe=function(){function e(e){this.httpServer=e}return e.prototype.get=function(e){return this.httpServer.get(e,"/version")},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function Che(e,t){if(1&e){var n=Aa();Ma(0,"mat-card",2),Ma(1,"mat-card-content",3),Cs(2," We've discovered GNS3 server on "),Ma(3,"b"),Cs(4),Ta(),Cs(5,", would you like to add to the list? "),Ta(),Ma(6,"mat-card-actions",4),Ma(7,"button",5),Na("click",function(){ut(n);var e=Ua();return e.ignore(e.discoveredServer)}),Cs(8,"NO"),Ta(),Ma(9,"button",6),Na("click",function(){ut(n);var e=Ua();return e.accept(e.discoveredServer)}),Cs(10,"YES"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(4),Os("",r.discoveredServer.host,":",r.discoveredServer.port,"")}}function She(e,t){1&e&&Ea(0,"mat-divider")}var xhe=function(){function e(e,t,n,r){this.versionService=e,this.serverService=t,this.serverDatabase=n,this.route=r,this.defaultServers=[{host:"127.0.0.1",port:3080}]}return e.prototype.ngOnInit=function(){var e=this;this.serverService.isServiceInitialized&&this.discoverFirstServer(),this.serverService.serviceInitialized.subscribe(function(t){return qZ(e,void 0,void 0,function(){return WZ(this,function(e){return t&&this.discoverFirstServer(),[2]})})})},e.prototype.discoverFirstServer=function(){return qZ(this,void 0,void 0,function(){var e;return WZ(this,function(t){switch(t.label){case 0:return[4,this.discoverServers()];case 1:return e=t.sent(),[4,this.serverService.findAll()];case 2:return t.sent().forEach(function(t){e=e.filter(function(e){return!(e.host==t.host&&e.port==t.port)})}),e.length>0&&(this.discoveredServer=e.shift()),[2]}})})},e.prototype.discoverServers=function(){return qZ(this,void 0,void 0,function(){var e,t=this;return WZ(this,function(n){return e=[],this.defaultServers.forEach(function(n){return qZ(t,void 0,void 0,function(){var t;return WZ(this,function(r){switch(r.label){case 0:return(t=new zZ).host=n.host,t.port=n.port,[4,this.versionService.get(t).toPromise().catch(function(e){return null})];case 1:return r.sent()&&e.push(t),[2]}})})}),[2,e]})})},e.prototype.discoverFirstAvailableServer=function(){var e=this;Object(sd.a)([Object(ad.a)(this.serverService.findAll()).pipe(Object(cd.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())},function(e){})},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 whe.Observable.of(null)}))}),new whe.Observable(function(e){Object(sd.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 zZ;return n.host=e,n.port=t,this.versionService.get(n).flatMap(function(e){return whe.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",e.protocol=location.protocol,this.serverService.create(e).then(function(e){t.serverDatabase.addServer(e),t.discoveredServer=null})},e.\u0275fac=function(t){return new(t||e)(Sa(khe),Sa(ZZ),Sa(ohe),Sa(BK))},e.\u0275cmp=be({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&&(ka(0,Che,11,2,"mat-card",0),ka(1,She,1,0,"mat-divider",1)),2&e&&(xa("ngIf",t.discoveredServer),zi(1),xa("ngIf",t.discoveredServer))},directives:[ih,s3,r3,a3,l2,t7],styles:[""]}),e}();function Ohe(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," ID "),Ta())}function Mhe(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.id," ")}}function The(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Name "),Ta())}var Ehe=function(e){return["/server",e,"projects"]};function Phe(e,t){if(1&e&&(Ma(0,"a",22),Cs(1),Ta()),2&e){var n=Ua().$implicit;xa("routerLink",el(2,Ehe,n.id)),zi(1),Ss(n.name)}}function jhe(e,t){if(1&e&&(Ma(0,"span"),Cs(1),Ta()),2&e){var n=Ua().$implicit;zi(1),Ss(n.name)}}function Ihe(e,t){if(1&e&&(Ma(0,"mat-cell"),ka(1,Phe,2,4,"a",20),ka(2,jhe,2,1,"span",21),Ta()),2&e){var n=t.$implicit,r=Ua();zi(1),xa("ngIf","running"===r.getServerStatus(n)||"remote"===n.location||"bundled"===n.location),zi(1),xa("ngIf","running"!=r.getServerStatus(n)&&"remote"!==n.location&&"bundled"!==n.location)}}function Ahe(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Location "),Ta())}function Dhe(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.location," ")}}function Rhe(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Host "),Ta())}function Lhe(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.host," ")}}function Nhe(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Port "),Ta())}function Fhe(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.port," ")}}function Bhe(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Actions "),Ta())}function zhe(e,t){if(1&e){var n=Aa();Ma(0,"button",30),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua().openProjects(e)}),Ma(1,"mat-icon",31),Cs(2,"arrow_forward"),Ta(),Ta()}}function Hhe(e,t){if(1&e){var n=Aa();Ma(0,"button",32),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua().startServer(e)}),Ma(1,"mat-icon",33),Cs(2,"play_arrow"),Ta(),Ta()}}function Vhe(e,t){if(1&e){var n=Aa();Ma(0,"button",34),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua().stopServer(e)}),Ma(1,"mat-icon",35),Cs(2,"stop"),Ta(),Ta()}}function Uhe(e,t){1&e&&Ea(0,"mat-spinner",36),2&e&&xa("diameter",24)}function qhe(e,t){if(1&e){var n=Aa();Ma(0,"mat-cell",23),ka(1,zhe,3,0,"button",24),ka(2,Hhe,3,0,"button",25),ka(3,Vhe,3,0,"button",26),ka(4,Uhe,1,1,"mat-spinner",27),Ma(5,"button",28),Na("click",function(){ut(n);var e=t.$implicit;return Ua().deleteServer(e)}),Ma(6,"mat-icon",29),Cs(7,"delete"),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ua();zi(1),xa("ngIf","running"===i.getServerStatus(r)||"remote"===r.location||"bundled"===r.location),zi(1),xa("ngIf","local"===r.location&&"stopped"===i.getServerStatus(r)),zi(1),xa("ngIf","local"===r.location&&"running"===i.getServerStatus(r)),zi(1),xa("ngIf","local"===r.location&&"starting"===i.getServerStatus(r))}}function Whe(e,t){1&e&&Ea(0,"mat-header-row")}function Ghe(e,t){1&e&&Ea(0,"mat-row")}function Xhe(e,t){if(1&e){var n=Aa();Ma(0,"button",37),Na("click",function(){return ut(n),Ua().startLocalServer()}),Cs(1,"Start local server"),Ta()}}var Yhe=function(){function e(e,t,n,r,i,o,a,s,c,l){this.dialog=e,this.serverService=t,this.serverDatabase=n,this.serverManagement=r,this.changeDetector=i,this.electronService=o,this.childProcessService=a,this.bottomSheet=s,this.route=c,this.router=l,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&&(t.protocol||(t.protocol=location.protocol),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 qZ(e,void 0,void 0,function(){return WZ(this,function(e){return t&&this.getServers(),[2]})})}),this.dataSource=new Khe(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.openProjects=function(e){this.router.navigate(["/server",e.id,"projects"])},e.prototype.createModal=function(){var e=this;this.dialog.open(mhe,{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(Vie);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 qZ(this,void 0,void 0,function(){return WZ(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 qZ(this,void 0,void 0,function(){return WZ(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)(Sa(l1),Sa(ZZ),Sa(ohe),Sa(ghe),Sa(Oc),Sa(lY),Sa(vhe),Sa(Fie),Sa(BK),Sa(uZ))},e.\u0275cmp=be({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","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Start server","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Stop server","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","","matTooltip","Remove server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Remove server"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Go to projects"],["mat-icon-button","","matTooltip","Start server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Start server"],["mat-icon-button","","matTooltip","Stop server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Stop server"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(e,t){1&e&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1"),Cs(3,"Servers"),Ta(),Ta(),Ma(4,"div",2),Ea(5,"app-server-discovery"),Ma(6,"div",3),Ma(7,"mat-table",4,5),Pa(9,6),ka(10,Ohe,2,0,"mat-header-cell",7),ka(11,Mhe,2,1,"mat-cell",8),ja(),Pa(12,9),ka(13,The,2,0,"mat-header-cell",7),ka(14,Ihe,3,2,"mat-cell",8),ja(),Pa(15,10),ka(16,Ahe,2,0,"mat-header-cell",7),ka(17,Dhe,2,1,"mat-cell",8),ja(),Pa(18,11),ka(19,Rhe,2,0,"mat-header-cell",7),ka(20,Lhe,2,1,"mat-cell",8),ja(),Pa(21,12),ka(22,Nhe,2,0,"mat-header-cell",7),ka(23,Fhe,2,1,"mat-cell",8),ja(),Pa(24,13),ka(25,Bhe,2,0,"mat-header-cell",7),ka(26,qhe,8,4,"mat-cell",14),ja(),ka(27,Whe,1,0,"mat-header-row",15),ka(28,Ghe,1,0,"mat-row",16),Ta(),Ta(),Ma(29,"div",17),ka(30,Xhe,2,0,"button",18),Ma(31,"button",19),Na("click",function(){return t.createModal()}),Cs(32,"Add server"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("dataSource",t.dataSource),zi(20),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("matRowDefColumns",t.displayedColumns),zi(2),xa("ngIf",t.isElectronApp))},directives:[xhe,H5,X5,W5,U5,J5,t4,ih,l2,K5,Z5,fZ,m4,T2,Cse,r4,o4],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}"]}),e}(),Khe=function(e){function t(t){var n=e.call(this)||this;return n.serverDatabase=t,n}return VZ(t,e),t.prototype.connect=function(){var e=this;return Object(S.a)(this.serverDatabase.dataChange).pipe(Object(cd.a)(function(){return e.serverDatabase.data}))},t.prototype.disconnect=function(){},t}(zf),Qhe=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)(Sa(n1),Sa(e$))},e.\u0275cmp=be({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&&(Ma(0,"h1",0),Cs(1,"Please choose name for exporting project"),Ta(),Ma(2,"div",1),Ma(3,"mat-form-field",2),Ma(4,"input",3),Na("ngModelChange",function(e){return t.name=e}),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"button",5),Na("click",function(){return t.onCloseClick()}),Cs(7,"Cancel"),Ta(),Ma(8,"button",6),Na("click",function(){return t.onSaveClick()}),Cs(9,"Apply"),Ta(),Ta()),2&e&&(zi(4),xa("ngModel",t.name))},directives:[h1,H3,Q3,fd,Fd,vf,f1,l2],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Zhe=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)(Sa(n1))},e.\u0275cmp=be({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&&(Ma(0,"span",0),Cs(1),Ta(),Ma(2,"div",1),Ma(3,"button",2),Na("click",function(){return t.onNoClick()}),Cs(4,"No"),Ta(),Ma(5,"button",3),Na("click",function(){return t.onYesClick()}),Cs(6," Yes "),Ta(),Ta()),2&e&&(zi(1),Ss(t.message))},directives:[f1,l2],styles:[""]}),e}();function $he(e,t){1&e&&(Ma(0,"mat-header-cell",21),Cs(1," Name "),Ta())}var Jhe=function(e,t){return["/server",e,"project",t]};function ede(e,t){if(1&e&&(Ma(0,"mat-cell"),Ma(1,"a",22),Cs(2),Ta(),Ta()),2&e){var n=t.$implicit,r=Ua();zi(1),xa("routerLink",tl(2,Jhe,r.server.id,n.project_id)),zi(1),Ss(n.name)}}function tde(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Actions "),Ta())}function nde(e,t){if(1&e){var n=Aa();Ma(0,"button",28),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua().open(e)}),Ma(1,"mat-icon",29),Cs(2,"play_arrow"),Ta(),Ta()}}function rde(e,t){if(1&e){var n=Aa();Ma(0,"button",30),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua().close(e)}),Ma(1,"mat-icon",31),Cs(2,"pause"),Ta(),Ta()}}function ide(e,t){if(1&e){var n=Aa();Ma(0,"button",32),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua().duplicate(e)}),Ma(1,"mat-icon",33),Cs(2,"filter_2"),Ta(),Ta()}}function ode(e,t){if(1&e){var n=Aa();Ma(0,"button",34),Na("click",function(){ut(n);var e=Ua().$implicit;return Ua().delete(e)}),Ma(1,"mat-icon",35),Cs(2,"delete"),Ta(),Ta()}}function ade(e,t){if(1&e&&(Ma(0,"mat-cell",23),ka(1,nde,3,0,"button",24),ka(2,rde,3,0,"button",25),ka(3,ide,3,0,"button",26),ka(4,ode,3,0,"button",27),Ta()),2&e){var n=t.$implicit;zi(1),xa("ngIf","closed"==n.status),zi(1),xa("ngIf","opened"==n.status),zi(1),xa("ngIf","closed"==n.status),zi(1),xa("ngIf","closed"==n.status)}}function sde(e,t){1&e&&Ea(0,"mat-header-row")}function cde(e,t){1&e&&Ea(0,"mat-row")}var lde=function(){return{standalone:!0}},ude=function(){function e(e,t,n,r,i,o,a,s,c,l){this.route=e,this.projectService=t,this.settingsService=n,this.progressService=r,this.dialog=i,this.router=o,this.bottomSheet=a,this.toasterService=s,this.electronService=c,this.recentlyOpenedProjectService=l,this.projectDatabase=new hde,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.recentlyOpenedProjectService.setServerIdProjectList(this.server.id.toString()),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new dde(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(Zhe,{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(Vie);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(Vie);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(Qhe,{width:"400px",autoFocus:!1,disableClose:!0}),r=n.componentInstance;r.server=this.server,r.project=e,n.afterClosed().subscribe(function(){t.refresh()})},e.prototype.addBlankProject=function(){this.dialog.open(mie,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},e.prototype.importProject=function(){var e=this,t="",n=this.dialog.open(uie,{width:"400px",autoFocus:!1,disableClose:!0});n.componentInstance.server=this.server;var r=n.componentInstance.onImportProject.subscribe(function(e){t=e});n.afterClosed().subscribe(function(){if(e.refresh(),r.unsubscribe(),t){e.bottomSheet.open(zie);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)(Sa(BK),Sa(e$),Sa($Z),Sa(ate),Sa(l1),Sa(uZ),Sa(Fie),Sa(e3),Sa(lY),Sa(JZ))},e.\u0275cmp=be({type:e,selectors:[["app-projects"]],viewQuery:function(e,t){var n;1&e&&Cl(Cae,3),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Projects"),Ta(),Ma(5,"button",4),Na("click",function(){return t.goToPreferences()}),Cs(6," Go to preferences "),Ta(),Ma(7,"button",5),Na("click",function(){return t.addBlankProject()}),Cs(8," Add blank project "),Ta(),Ma(9,"button",6),Na("click",function(){return t.importProject()}),Cs(10," Import project "),Ta(),Ta(),Ta(),Ma(11,"form"),Ma(12,"mat-form-field",7),Ma(13,"input",8),Na("ngModelChange",function(e){return t.searchText=e}),Ta(),Ta(),Ta(),Ma(14,"div",9),Ma(15,"div",10),Ma(16,"mat-table",11,12),ol(18,"projectsfilter"),Pa(19,13),ka(20,$he,2,0,"mat-header-cell",14),ka(21,ede,3,5,"mat-cell",15),ja(),Pa(22,16),ka(23,tde,2,0,"mat-header-cell",17),ka(24,ade,5,4,"mat-cell",18),ja(),ka(25,sde,1,0,"mat-header-row",19),ka(26,cde,1,0,"mat-row",20),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(13),xa("ngModel",t.searchText)("ngModelOptions",Jc(8,lde)),zi(3),xa("dataSource",sl(18,5,t.dataSource,t.searchText)),zi(9),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("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}(),hde=function(){function e(){this.dataChange=new kp.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}(),dde=function(e){function t(t,n){var r=e.call(this)||this;return r.projectDatabase=t,r.sort=n,r}return VZ(t,e),t.prototype.connect=function(){var e=this;return S.a.apply(void 0,[this.projectDatabase.dataChange,this.sort.sortChange]).pipe(Object(cd.a)(function(){return e.sort.active&&""!==e.sort.direction?e.projectDatabase.data.sort(function(t,n){var r=t[e.sort.active],i=n[e.sort.active];return((isNaN(+r)?r:+r)<(isNaN(+i)?i:+i)?-1:1)*("asc"===e.sort.direction?1:-1)}):e.projectDatabase.data}))},t.prototype.disconnect=function(){},t}(zf),fde=["*",[["mat-toolbar-row"]]],pde=["*","mat-toolbar-row"],mde=hJ(function e(t){Object(s.a)(this,e),this._elementRef=t}),gde=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),vde=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i){var o;return Object(s.a)(this,n),(o=t.call(this,e))._platform=r,o._document=i,o}return Object(c.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}(mde);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(ep),Sa(Iu))},e.\u0275cmp=be({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,gde,1),2&e&&kl(r=xl())&&(t._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&cs("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ia],ngContentSelectors:pde,decls:2,vars:0,template:function(e,t){1&e&&(Wa(fde),Ga(0),Ga(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}(),bde=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[lJ],lJ]}),e}();function yde(e,t){if(1&e){var n=Aa();Ma(0,"button",13),Na("click",function(){return ut(n),Ua().listProjects()}),Cs(1,"Projects"),Ta()}}function _de(e,t){if(1&e){var n=Aa();Ma(0,"button",13),Na("click",function(){return ut(n),Ua().backToProject()}),Cs(1,"Back to project"),Ta()}}var wde=function(){function e(e,t,n,r,i,o){this.electronService=e,this.recentlyOpenedProjectService=t,this.serverManagement=n,this.toasterService=r,this.progressService=i,this.router=o,this.isInstalledSoftwareAvailable=!1,this.uiVersion=oue,this.shouldStopServersOnClosing=!0}return e.prototype.ngOnInit=function(){var e=this;this.recentlyOpenedServerId=this.recentlyOpenedProjectService.getServerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.serverIdProjectList=this.recentlyOpenedProjectService.getServerIdProjectList(),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.listProjects=function(){var e=this;this.router.navigate(["/server",this.serverIdProjectList,"projects"]).catch(function(t){return e.toasterService.error("Cannot list projects")})},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 qZ(this,void 0,void 0,function(){return WZ(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)(Sa(lY),Sa(JZ),Sa(ghe),Sa(e3),Sa(ate),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-default-layout"]],hostBindings:function(e,t){1&e&&Na("beforeunload",function(e){return t.onBeforeUnload(e)},!1,Xr)},decls:34,vars:5,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&&(Ma(0,"header"),Ma(1,"mat-toolbar",0),Ma(2,"button",1),Ea(3,"mat-icon",2),Ta(),Ma(4,"button",3),Cs(5,"Servers"),Ta(),ka(6,yde,2,0,"button",4),ka(7,_de,2,0,"button",4),Ea(8,"span",5),Ma(9,"button",6),Ma(10,"mat-icon"),Cs(11,"more_vert"),Ta(),Ta(),Ma(12,"mat-menu",null,7),Ma(14,"button",8),Ma(15,"mat-icon"),Cs(16,"settings"),Ta(),Ma(17,"span"),Cs(18,"Settings"),Ta(),Ta(),Ma(19,"button",9),Ma(20,"mat-icon"),Cs(21,"cloud_download"),Ta(),Ma(22,"span"),Cs(23,"Installed software"),Ta(),Ta(),Ma(24,"button",10),Ma(25,"mat-icon"),Cs(26,"help"),Ta(),Ma(27,"span"),Cs(28,"Help"),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(29,"main",11),Ea(30,"router-outlet"),Ta(),Ea(31,"app-progress"),Ma(32,"footer",12),Cs(33),Ta()),2&e){var n=Ca(13);zi(6),xa("ngIf",!t.recentlyOpenedProjectId&&t.serverIdProjectList),zi(1),xa("ngIf",t.recentlyOpenedProjectId&&t.recentlyOpenedServerId),zi(2),xa("matMenuTriggerFor",n),zi(10),xa("disabled",!t.isInstalledSoftwareAvailable),zi(14),xs(" GNS3 Web UI \xa9 2020 - v",t.uiVersion,"\n")}},directives:[vde,l2,T2,dZ,ih,U0,B0,R0,mZ,Tse],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}(),kde=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(lY))}}),e}(),Cde=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(kde),Gn($Z))}}),e}(),Sde=function(){function e(e){this.httpClient=e}return e.prototype.getLatestVersion=function(){return this.httpClient.get("http://update.gns3.net/")},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Cm))}}),e}(),xde=0,Ode=new Tn("CdkAccordion"),Mde=function(){var e=function(){function e(){Object(s.a)(this,e),this._stateChanges=new k.b,this._openCloseAllActions=new k.b,this.id="cdk-accordion-".concat(xde++),this._multi=!1}return Object(c.a)(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=If(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Gs([{provide:Ode,useExisting:e}]),Fe]}),e}(),Tde=0,Ede=function(){var e=function(){function e(t,n,r){var i=this;Object(s.a)(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=w.a.EMPTY,this.closed=new ul,this.opened=new ul,this.destroyed=new ul,this.expandedChange=new ul,this.id="cdk-accordion-child-".concat(Tde++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=r.listen(function(e,t){i.accordion&&!i.accordion.multi&&i.accordion.id===t&&i.id!==e&&(i.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object(c.a)(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=If(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=If(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)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(Ode,12),Sa(Oc),Sa(Wf))},e.\u0275dir=Se({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Gs([{provide:Ode,useValue:void 0}])]}),e}(),Pde=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),jde=["body"];function Ide(e,t){}var Ade=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Dde=["mat-expansion-panel-header","*","mat-action-row"];function Rde(e,t){1&e&&Ea(0,"span",2),2&e&&xa("@indicatorRotate",Ua()._getExpandedState())}var Lde=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Nde=["mat-panel-title","mat-panel-description","*"],Fde=new Tn("MAT_ACCORDION"),Bde="225ms cubic-bezier(0.4,0.0,0.2,1)",zde={indicatorRotate:Vm("indicatorRotate",[Gm("collapsed, void",Wm({transform:"rotate(0deg)"})),Gm("expanded",Wm({transform:"rotate(180deg)"})),Ym("expanded <=> collapsed, void => collapsed",Um(Bde))]),bodyExpansion:Vm("bodyExpansion",[Gm("collapsed, void",Wm({height:"0px",visibility:"hidden"})),Gm("expanded",Wm({height:"*",visibility:"visible"})),Ym("expanded <=> collapsed, void => collapsed",Um(Bde))])},Hde=function(){var e=function e(t){Object(s.a)(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(Sa(Ac))},e.\u0275dir=Se({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),Vde=0,Ude=new Tn("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),qde=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l){var u;return Object(s.a)(this,n),(u=t.call(this,e,r,i))._viewContainerRef=o,u._animationMode=c,u._hideToggle=!1,u.afterExpand=new ul,u.afterCollapse=new ul,u._inputChanges=new k.b,u._headerId="mat-expansion-panel-header-".concat(Vde++),u._bodyAnimationDone=new k.b,u.accordion=e,u._document=a,u._bodyAnimationDone.pipe(Object(up.a)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?u.afterExpand.emit():"collapsed"===e.toState&&u.afterCollapse.emit())}),l&&(u.hideToggle=l.hideToggle),u}return Object(c.a)(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=If(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{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(pp.a)(null),Object(dp.a)(function(){return e.expanded&&!e._portal}),Object(Cp.a)(1)).subscribe(function(){e._portal=new G$(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}}]),n}(Ede);return e.\u0275fac=function(t){return new(t||e)(Sa(Fde,12),Sa(Oc),Sa(Wf),Sa(Bc),Sa(Iu),Sa(jb,8),Sa(Ude,8))},e.\u0275cmp=be({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,Hde,1),2&e&&kl(r=xl())&&(t._lazyContent=r.first)},viewQuery:function(e,t){var n;1&e&&Cl(jde,1),2&e&&kl(n=xl())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&cs("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:[Gs([{provide:Fde,useValue:void 0}]),ia,Fe],ngContentSelectors:Dde,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&&(Wa(Ade),Ga(0),Ma(1,"div",0,1),Na("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),Ma(3,"div",2),Ga(4,1),ka(5,Ide,0,0,"ng-template",3),Ta(),Ga(6,2),Ta()),2&e&&(zi(1),xa("@bodyExpansion",t._getExpandedState())("id",t.id),va("aria-labelledby",t._headerId),zi(4),xa("cdkPortalOutlet",t._portal))},directives:[Z$],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:[zde.bodyExpansion]},changeDetection:0}),e}(),Wde=function(){var e=function(){function e(t,n,r,i,o,a){var c=this;Object(s.a)(this,e),this.panel=t,this._element=n,this._focusMonitor=r,this._changeDetectorRef=i,this._animationMode=a,this._parentChangeSubscription=w.a.EMPTY;var l=t.accordion?t.accordion._stateChanges.pipe(Object(dp.a)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):kY.a;this._parentChangeSubscription=Object(S.a)(t.opened,t.closed,l,t._inputChanges.pipe(Object(dp.a)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return c._changeDetectorRef.markForCheck()}),t.closed.pipe(Object(dp.a)(function(){return t._containsFocus()})).subscribe(function(){return r.focusVia(n,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return Object(c.a)(e,[{key:"disabled",get:function(){return this.panel.disabled}},{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 r$:case t$:i$(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(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)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sa(qde,1),Sa(ec),Sa(R$),Sa(Oc),Sa(Ude,8),Sa(jb,8))},e.\u0275cmp=be({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&&Na("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(va("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),ss("height",t._getHeaderHeight()),cs("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:Nde,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(Wa(Lde),Ma(0,"span",0),Ga(1),Ga(2,1),Ga(3,2),Ta(),ka(4,Rde,1,1,"span",1)),2&e&&(zi(4),xa("ngIf",t._showToggle()))},directives:[ih],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}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[zde.indicatorRotate]},changeDetection:0}),e}(),Gde=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),Xde=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),Yde=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(s.a)(this,n),(e=t.apply(this,arguments))._ownHeaders=new dl,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return Object(c.a)(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=If(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Object(pp.a)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new k$(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){Object(o.a)(Object(a.a)(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(Mde);return e.\u0275fac=function(t){return Kde(t||e)},e.\u0275dir=Se({type:e,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,Wde,1),2&e&&kl(r=xl())&&(t._headers=r)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&cs("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Gs([{provide:Fde,useExisting:e}]),ia]}),e}(),Kde=Cn(Yde),Qde=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[vh,lJ,Pde,$$]]}),e}(),Zde=function(){function e(e,t,n,r,i,o){this.settingsService=e,this.toaster=t,this.consoleService=n,this.themeService=r,this.mapSettingsService=i,this.updatesService=o,this.settings=UZ({},$Z.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.prototype.checkForUpdates=function(){window.open("https://gns3.com/software")},e.\u0275fac=function(t){return new(t||e)(Sa($Z),Sa(e3),Sa(Cde),Sa(Hre),Sa(F7),Sa(Sde))},e.\u0275cmp=be({type:e,selectors:[["app-settings"]],decls:54,vars:7,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"],["mat-raised-button","",1,"fullWidth",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1"),Cs(3,"Settings"),Ta(),Ta(),Ma(4,"div",2),Ma(5,"div",3),Ma(6,"mat-accordion"),Ma(7,"mat-expansion-panel",4),Ma(8,"mat-expansion-panel-header"),Ma(9,"mat-panel-title"),Cs(10," Local settings "),Ta(),Ma(11,"mat-panel-description"),Cs(12," Customize your local settings "),Ta(),Ta(),Ma(13,"div"),Ma(14,"mat-checkbox",5),Na("ngModelChange",function(e){return t.settings.crash_reports=e}),Cs(15,"Send anonymous crash reports"),Ta(),Ea(16,"br"),Ma(17,"mat-checkbox",5),Na("ngModelChange",function(e){return t.integrateLinksLabelsToLinks=e}),Cs(18,"Integrate link labels to links"),Ta(),Ta(),Ta(),Ma(19,"mat-expansion-panel",4),Ma(20,"mat-expansion-panel-header"),Ma(21,"mat-panel-title"),Cs(22," Console settings "),Ta(),Ma(23,"mat-panel-description"),Cs(24," Customize console settings "),Ta(),Ta(),Ma(25,"div"),Ma(26,"mat-form-field",6),Ea(27,"input",7),Ma(28,"a",8),Ma(29,"mat-icon"),Cs(30,"mode_edit"),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(31,"mat-expansion-panel",4),Ma(32,"mat-expansion-panel-header"),Ma(33,"mat-panel-title"),Cs(34," Theme settings "),Ta(),Ma(35,"mat-panel-description"),Cs(36," Customize theme settings "),Ta(),Ta(),Ma(37,"div",9),Ma(38,"button",10),Na("click",function(){return t.setDarkMode(!1)}),Cs(39,"Switch to light theme"),Ta(),Ma(40,"button",10),Na("click",function(){return t.setDarkMode(!0)}),Cs(41,"Switch to dark theme"),Ta(),Ta(),Ta(),Ma(42,"mat-expansion-panel",4),Ma(43,"mat-expansion-panel-header"),Ma(44,"mat-panel-title"),Cs(45," Updates "),Ta(),Ma(46,"mat-panel-description"),Cs(47," Check for updates "),Ta(),Ta(),Ma(48,"div",9),Ma(49,"button",11),Na("click",function(){return t.checkForUpdates()}),Cs(50,"Check for updates"),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(51,"div",12),Ma(52,"button",13),Na("click",function(){return t.save()}),Cs(53,"Save settings"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("expanded",!0),zi(7),xa("ngModel",t.settings.crash_reports),zi(3),xa("ngModel",t.integrateLinksLabelsToLinks),zi(2),xa("expanded",!1),zi(8),xa("value",t.consoleCommand),zi(4),xa("expanded",!1),zi(11),xa("expanded",!1))},directives:[Yde,qde,Wde,Xde,Gde,P5,Fd,vf,H3,Q3,u2,fZ,L3,T2,l2],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]}),e}(),$de=function(){function e(e,t,n,r){this.router=e,this.serverService=t,this.progressService=n,this.document=r}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)(Sa(uZ),Sa(ZZ),Sa(ate),Sa(Iu))},e.\u0275cmp=be({type:e,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(e,t){1&e&&Ea(0,"app-progress")},directives:[Tse],styles:[""]}),e}(),Jde=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)(Sa(BK))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Preferences"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"div",5),Ma(7,"mat-nav-list"),Ma(8,"mat-list-item",6),Cs(9," GNS3 VM "),Ta(),Ma(10,"mat-list-item",6),Cs(11," Built-in "),Ta(),Ma(12,"mat-list-item",6),Cs(13," Dynamips "),Ta(),Ma(14,"mat-list-item",6),Cs(15," IOS on Unix "),Ta(),Ma(16,"mat-list-item",6),Cs(17," VPCS "),Ta(),Ma(18,"mat-list-item",6),Cs(19," QEMU "),Ta(),Ma(20,"mat-list-item",6),Cs(21," VirtualBox "),Ta(),Ma(22,"mat-list-item",6),Cs(23," VMware "),Ta(),Ma(24,"mat-list-item",6),Cs(25," Docker "),Ta(),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(8),Ya("routerLink","/server/",t.serverId,"/preferences/gns3vm"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/builtin"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/dynamips/templates"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/iou/templates"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/vpcs/templates"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/qemu/templates"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/virtualbox/templates"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/vmware/templates"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/docker/templates"))},directives:[h7,g7,dZ],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}(),efe=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)(Sa(n1),Sa(i1))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"h1",1),Cs(2,"Delete template"),Ta(),Ma(3,"div",2),Cs(4),Ta(),Ea(5,"div",3),Ma(6,"div",4),Ma(7,"button",5),Na("click",function(){return t.onNoClick()}),Cs(8," No "),Ta(),Ma(9,"button",6),Na("click",function(){return t.onYesClick()}),Cs(10," Yes "),Ta(),Ta(),Ta()),2&e&&(zi(4),xs("Are you sure you want to delete template ",t.templateName,"?"))},directives:[h1,d1,f1,l2],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]}),e}(),tfe=function(){function e(e,t,n){this.templateService=e,this.dialog=t,this.toasterService=n,this.deleteEvent=new ul}return e.prototype.deleteItem=function(e,t){var n=this;this.dialog.open(efe,{width:"300px",height:"250px",data:{templateName:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(r){r&&n.templateService.deleteTemplate(n.server,t).subscribe(function(r){n.deleteEvent.emit(t),n.toasterService.success("Template "+e+" deleted.")})})},e.\u0275fac=function(t){return new(t||e)(Sa(poe),Sa(l1),Sa(e3))},e.\u0275cmp=be({type:e,selectors:[["app-delete-template"]],inputs:{server:"server"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),nfe=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=be({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&&(Ma(0,"div",0),Ma(1,"mat-card",1),Ma(2,"h6",2),Cs(3),Ta(),Ta(),Ta()),2&e&&(zi(3),xs(" ",t.emptyTemplatesListMessage," "))},directives:[s3],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]}),e}();function rfe(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences")}function ife(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add QEMU VM template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/qemu/addtemplate")}function ofe(e,t){1&e&&Ea(0,"app-empty-templates-list")}function afe(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ma(13,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).copyTemplate(e)}),Ma(14,"mat-icon"),Cs(15,"content_copy"),Ta(),Ma(16,"span"),Cs(17,"Copy"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function sfe(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,afe,18,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.qemuTemplates)}}function cfe(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,sfe,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var lfe=function(){function e(e,t,n,r){this.route=e,this.serverService=t,this.qemuService=n,this.router=r,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)(Sa(BK),Sa(ZZ),Sa(p6),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"QEMU VM templates"),Ta(),ka(5,rfe,2,1,"button",4),ka(6,ife,2,1,"button",5),Ta(),Ta(),ka(7,ofe,1,0,"app-empty-templates-list",6),ka(8,cfe,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.qemuTemplates.length),zi(1),xa("ngIf",t.qemuTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),ufe=["customAdapters"],hfe=function(){function e(){this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new ul,this.saveConfigurationEmitter=new ul,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=be({type:e,selectors:[["app-custom-adapters"]],viewQuery:function(e,t){var n;1&e&&Cl(ufe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Custom adapters configuration"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"div",5),Ea(7,"app-custom-adapters-table",6,7),Ta(),Ma(9,"div",8),Ma(10,"button",9),Na("click",function(){return t.cancelConfigureCustomAdapters()}),Cs(11,"Cancel"),Ta(),Ma(12,"button",10),Na("click",function(){return t.configureCustomAdapters()}),Cs(13,"Apply"),Ta(),Ea(14,"br"),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns)("adapters",t.adapters))},directives:[s6,l2],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}(),dfe=function(){function e(){this.symbolChangedEmitter=new ul,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=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Symbol selection"),Ta(),Ma(5,"button",4),Na("click",function(){return t.cancelChooseSymbol()}),Cs(6,"Cancel"),Ta(),Ma(7,"button",5),Na("click",function(){return t.chooseSymbol()}),Cs(8,"Choose symbol"),Ta(),Ta(),Ta(),Ma(9,"div",6),Ma(10,"app-symbols",7),Na("symbolChanged",function(e){return t.symbolChanged(e)}),Ta(),Ta(),Ta()),2&e&&(zi(10),xa("server",t.server)("symbol",t.symbol))},directives:[l2,$7],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}(),ffe=["customAdaptersConfigurator"];function pfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function mfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.path),zi(1),xs(" ",n.path," ")}}function gfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function vfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function bfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function yfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function _fe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function wfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function kfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Cfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[0]),zi(1),Os(" ",n[1]," (",n[0],") ")}}function Sfe(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",10),Ma(1,"input",55),Na("ngModelChange",function(e){return ut(n),Ua(2).qemuTemplate.cpu_throttling=e}),Ta(),Ta()}if(2&e){var r=Ua(2);zi(1),xa("ngModel",r.qemuTemplate.cpu_throttling)}}function xfe(e,t){if(1&e&&(Ma(0,"mat-option",54),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Ofe(e,t){if(1&e){var n=Aa();Ma(0,"div",8),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General settings "),Ta(),Ta(),Ma(6,"form",9),Ma(7,"mat-form-field",10),Ma(8,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",10),Ma(10,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.default_name_format=e}),Ta(),Ta(),Ma(11,"mat-form-field",10),Ma(12,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.symbol=e}),Ta(),Ta(),Ta(),Ma(13,"button",14),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(14,"Choose symbol"),Ta(),Ea(15,"br"),Ea(16,"br"),Ma(17,"mat-form-field",10),Ma(18,"mat-select",15),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.category=e}),ka(19,pfe,2,2,"mat-option",16),Ta(),Ta(),Ma(20,"mat-form-field",10),Ma(21,"input",17),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.ram=e}),Ta(),Ma(22,"span",18),Cs(23,"MB"),Ta(),Ta(),Ma(24,"mat-form-field",10),Ma(25,"input",19),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.cpus=e}),Ta(),Ta(),Ma(26,"mat-form-field",10),Ma(27,"mat-select",20),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.qemu_path=e}),ka(28,mfe,2,2,"mat-option",16),Ta(),Ta(),Ma(29,"mat-form-field",10),Ma(30,"mat-select",21),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.boot_priority=e}),ka(31,gfe,2,2,"mat-option",16),Ta(),Ta(),Ma(32,"mat-form-field",10),Ma(33,"mat-select",22),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.on_close=e}),ka(34,vfe,2,2,"mat-option",16),Ta(),Ta(),Ma(35,"mat-form-field",23),Ma(36,"mat-select",24),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.console_type=e}),ka(37,bfe,2,2,"mat-option",16),Ta(),Ta(),Ma(38,"mat-checkbox",25),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.console_auto_start=e}),Cs(39," Auto start console "),Ta(),Ta(),Ma(40,"mat-expansion-panel"),Ma(41,"mat-expansion-panel-header"),Ma(42,"mat-panel-title"),Cs(43," HDD "),Ta(),Ta(),Ma(44,"mat-card"),Ea(45,"mat-card-title"),Ma(46,"mat-card-subtitle"),Cs(47," HDA (Primary Master) "),Ta(),Ma(48,"mat-card-content"),Ma(49,"mat-form-field",10),Ma(50,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hda_disk_image=e}),Ta(),Ta(),Ma(51,"mat-form-field",10),Ma(52,"mat-select",27),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hda_disk_interface=e}),ka(53,yfe,2,2,"mat-option",16),Ta(),Ta(),Ta(),Ta(),Ma(54,"mat-card"),Ea(55,"mat-card-title"),Ma(56,"mat-card-subtitle"),Cs(57," HDB (Primary Slave) "),Ta(),Ma(58,"mat-card-content"),Ma(59,"mat-form-field",10),Ma(60,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hdb_disk_image=e}),Ta(),Ta(),Ma(61,"mat-form-field",10),Ma(62,"mat-select",27),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hdb_disk_interface=e}),ka(63,_fe,2,2,"mat-option",16),Ta(),Ta(),Ta(),Ta(),Ma(64,"mat-card"),Ea(65,"mat-card-title"),Ma(66,"mat-card-subtitle"),Cs(67," HDC (Secondary Master) "),Ta(),Ma(68,"mat-card-content"),Ma(69,"mat-form-field",10),Ma(70,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hdc_disk_image=e}),Ta(),Ta(),Ma(71,"mat-form-field",10),Ma(72,"mat-select",27),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hdc_disk_interface=e}),ka(73,wfe,2,2,"mat-option",16),Ta(),Ta(),Ta(),Ta(),Ma(74,"mat-card"),Ea(75,"mat-card-title"),Ma(76,"mat-card-subtitle"),Cs(77," HDD (Secondary Slave) "),Ta(),Ma(78,"mat-card-content"),Ma(79,"mat-form-field",10),Ma(80,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hdd_disk_image=e}),Ta(),Ta(),Ma(81,"mat-form-field",10),Ma(82,"mat-select",27),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.hdd_disk_interface=e}),ka(83,kfe,2,2,"mat-option",16),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(84,"mat-expansion-panel"),Ma(85,"mat-expansion-panel-header"),Ma(86,"mat-panel-title"),Cs(87," CD/DVD "),Ta(),Ta(),Ma(88,"div"),Ma(89,"button",28),Na("click",function(){return ut(n),Ca(92).click()}),Cs(90,"Browse"),Ta(),Ma(91,"input",29,30),Na("change",function(e){return ut(n),Ua().uploadCdromImageFile(e)}),Ta(),Ma(93,"mat-form-field",31),Ma(94,"input",32),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.cdrom_image=e}),Ta(),Ta(),Ta(),Ta(),Ma(95,"mat-expansion-panel"),Ma(96,"mat-expansion-panel-header"),Ma(97,"mat-panel-title"),Cs(98," Network "),Ta(),Ta(),Ma(99,"mat-form-field",10),Ma(100,"input",33),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.adapters=e}),Ta(),Ta(),Ma(101,"mat-form-field",10),Ma(102,"input",34),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.first_port_name=e}),Ta(),Ta(),Ma(103,"mat-form-field",10),Ma(104,"input",35),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.port_name_format=e}),Ta(),Ta(),Ma(105,"mat-form-field",10),Ma(106,"input",36),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.port_segment_size=e}),Ta(),Ta(),Ma(107,"mat-form-field",10),Ma(108,"input",37),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.mac_address=e}),Ta(),Ta(),Ma(109,"mat-form-field",10),Ma(110,"mat-select",38),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.adapter_type=e}),ka(111,Cfe,2,3,"mat-option",16),Ta(),Ta(),Ma(112,"button",39),Na("click",function(){return ut(n),Ua().setCustomAdaptersConfiguratorState(!0)}),Cs(113,"Configure custom adapters"),Ta(),Ea(114,"br"),Ma(115,"mat-checkbox",25),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.legacy_networking=e}),Cs(116," Use the legacy networking mode "),Ta(),Ta(),Ma(117,"mat-expansion-panel"),Ma(118,"mat-expansion-panel-header"),Ma(119,"mat-panel-title"),Cs(120," Advanced "),Ta(),Ta(),Ma(121,"mat-card"),Ea(122,"mat-card-title"),Ma(123,"mat-card-subtitle"),Cs(124," Linux boot specific settings "),Ta(),Ma(125,"mat-card-content"),Ma(126,"div"),Ma(127,"button",28),Na("click",function(){return ut(n),Ca(130).click()}),Cs(128,"Browse"),Ta(),Ma(129,"input",29,40),Na("change",function(e){return ut(n),Ua().uploadInitrdFile(e)}),Ta(),Ma(131,"mat-form-field",31),Ma(132,"input",41),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.initrd=e}),Ta(),Ta(),Ta(),Ma(133,"div"),Ma(134,"button",28),Na("click",function(){return ut(n),Ua().filekerenelimage.click()}),Cs(135,"Browse"),Ta(),Ma(136,"input",29,42),Na("change",function(e){return ut(n),Ua().uploadKernelImageFile(e)}),Ta(),Ma(138,"mat-form-field",31),Ma(139,"input",43),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.kernel_image=e}),Ta(),Ta(),Ta(),Ma(140,"mat-form-field",10),Ma(141,"input",44),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.kernel_command_line=e}),Ta(),Ta(),Ta(),Ta(),Ma(142,"mat-card"),Ea(143,"mat-card-title"),Ma(144,"mat-card-subtitle"),Cs(145," Bios "),Ta(),Ma(146,"mat-card-content"),Ma(147,"div"),Ma(148,"button",28),Na("click",function(){return ut(n),Ca(151).click()}),Cs(149,"Browse"),Ta(),Ma(150,"input",29,45),Na("change",function(e){return ut(n),Ua().uploadBiosFile(e)}),Ta(),Ma(152,"mat-form-field",31),Ma(153,"input",46),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.bios_image=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(154,"mat-card"),Ea(155,"mat-card-title"),Ma(156,"mat-card-subtitle"),Cs(157," Optimization "),Ta(),Ma(158,"mat-card-content"),Ma(159,"mat-checkbox",25),Na("ngModelChange",function(e){return ut(n),Ua().activateCpuThrottling=e}),Cs(160," Activate CPU throttling "),Ta(),ka(161,Sfe,2,1,"mat-form-field",47),Ma(162,"mat-form-field",10),Ma(163,"mat-select",48),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.process_priority=e}),ka(164,xfe,2,2,"mat-option",16),Ta(),Ta(),Ta(),Ta(),Ma(165,"mat-card"),Ea(166,"mat-card-title"),Ma(167,"mat-card-subtitle"),Cs(168," Additional settings "),Ta(),Ma(169,"mat-card-content"),Ma(170,"mat-form-field",10),Ma(171,"input",49),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.options=e}),Ta(),Ta(),Ma(172,"mat-checkbox",25),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.linked_clone=e}),Cs(173," Use as a linked base VM "),Ta(),Ta(),Ta(),Ta(),Ma(174,"mat-expansion-panel"),Ma(175,"mat-expansion-panel-header"),Ma(176,"mat-panel-title"),Cs(177," Usage "),Ta(),Ta(),Ma(178,"mat-form-field",10),Ma(179,"textarea",50),Na("ngModelChange",function(e){return ut(n),Ua().qemuTemplate.usage=e}),Ta(),Ta(),Ta(),Ta(),Ma(180,"div",51),Ma(181,"button",52),Na("click",function(){return ut(n),Ua().goBack()}),Cs(182,"Cancel"),Ta(),Ma(183,"button",53),Na("click",function(){return ut(n),Ua().onSave()}),Cs(184,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(6),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.qemuTemplate.name),zi(2),xa("ngModel",r.qemuTemplate.default_name_format),zi(2),xa("ngModel",r.qemuTemplate.symbol),zi(6),xa("ngModel",r.qemuTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModel",r.qemuTemplate.ram),zi(4),xa("ngModel",r.qemuTemplate.cpus),zi(2),xa("ngModel",r.qemuTemplate.qemu_path),zi(1),xa("ngForOf",r.binaries),zi(2),xa("ngModel",r.qemuTemplate.boot_priority),zi(1),xa("ngForOf",r.bootPriorities),zi(2),xa("ngModel",r.qemuTemplate.on_close),zi(1),xa("ngForOf",r.onCloseOptions),zi(2),xa("ngModel",r.qemuTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModel",r.qemuTemplate.console_auto_start),zi(12),xa("ngModel",r.qemuTemplate.hda_disk_image),zi(2),xa("ngModel",r.qemuTemplate.hda_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(7),xa("ngModel",r.qemuTemplate.hdb_disk_image),zi(2),xa("ngModel",r.qemuTemplate.hdb_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(7),xa("ngModel",r.qemuTemplate.hdc_disk_image),zi(2),xa("ngModel",r.qemuTemplate.hdc_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(7),xa("ngModel",r.qemuTemplate.hdd_disk_image),zi(2),xa("ngModel",r.qemuTemplate.hdd_disk_interface),zi(1),xa("ngForOf",r.diskInterfaces),zi(11),xa("ngModel",r.qemuTemplate.cdrom_image),zi(6),xa("ngModel",r.qemuTemplate.adapters),zi(2),xa("ngModel",r.qemuTemplate.first_port_name),zi(2),xa("ngModel",r.qemuTemplate.port_name_format),zi(2),xa("ngModel",r.qemuTemplate.port_segment_size),zi(2),xa("ngModel",r.qemuTemplate.mac_address),zi(2),xa("ngModel",r.qemuTemplate.adapter_type),zi(1),xa("ngForOf",r.networkTypes),zi(4),xa("ngModel",r.qemuTemplate.legacy_networking),zi(17),xa("ngModel",r.qemuTemplate.initrd),zi(7),xa("ngModel",r.qemuTemplate.kernel_image),zi(2),xa("ngModel",r.qemuTemplate.kernel_command_line),zi(12),xa("ngModel",r.qemuTemplate.bios_image),zi(6),xa("ngModel",r.activateCpuThrottling),zi(2),xa("ngIf",r.activateCpuThrottling),zi(2),xa("ngModel",r.qemuTemplate.process_priority),zi(1),xa("ngForOf",r.priorities),zi(7),xa("ngModel",r.qemuTemplate.options),zi(1),xa("ngModel",r.qemuTemplate.linked_clone),zi(7),xa("ngModel",r.qemuTemplate.usage)}}function Mfe(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",56),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.qemuTemplate.symbol)}}var Tfe=function(e){return{shadowed:e}},Efe=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=r,this.configurationService=i,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 lf("",yd.required),defaultName:new lf("",yd.required),symbol:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(p6),Sa(e3),Sa(m6),Sa(jf),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(e,t){var n;1&e&&Cl(ffe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"QEMU VM configuration"),Ta(),Ta(),Ta(),ka(5,Ofe,185,49,"div",4),Ta(),Ma(6,"app-custom-adapters",5,6),Na("closeConfiguratorEmitter",function(e){return t.setCustomAdaptersConfiguratorState(e)})("saveConfigurationEmitter",function(e){return t.saveCustomAdapters(e)}),Ta(),ka(8,Mfe,1,2,"app-symbols-menu",7)),2&e&&(xa("ngClass",el(6,Tfe,t.isConfiguratorOpened||t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.qemuTemplate),zi(1),xa("hidden",!(t.isConfiguratorOpened&&t.qemuTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),zi(2),xa("ngIf",t.isSymbolSelectionOpened&&t.qemuTemplate))},directives:[eh,ih,hfe,Yde,qde,Wde,Xde,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2,v5,vf,nh,_f,L3,P5,s3,i3,o3,r3,UJ,dfe],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}(),Pfe=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(Bf.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(Bf.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(Bf.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(Bf.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(Bf.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(Bf.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(Bf.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(Bf.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(Bf.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(Bf.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function jfe(e,t){if(1&e&&(Ma(0,"mat-option",29),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n.path," ")}}function Ife(e,t){if(1&e&&(Ma(0,"mat-option",29),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Afe(e,t){if(1&e&&(Ma(0,"mat-option",29),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n.filename," ")}}var Dfe=function(){return{standalone:!0}};function Rfe(e,t){if(1&e){var n=Aa();Ma(0,"mat-select",30),Na("ngModelChange",function(e){return ut(n),Ua().selectedImage=e}),ka(1,Afe,2,2,"mat-option",17),Ta()}if(2&e){var r=Ua();xa("ngModelOptions",Jc(3,Dfe))("ngModel",r.selectedImage),zi(1),xa("ngForOf",r.qemuImages)}}function Lfe(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"input",31,32),Na("change",function(e){return ut(n),Ua().uploadImageFile(e)}),Ta(),Ma(3,"button",33),Na("click",function(){return ut(n),Ca(2).click()}),Cs(4,"Browse"),Ta(),Ma(5,"mat-form-field",34),Ma(6,"input",35),Na("ngModelChange",function(e){return ut(n),Ua().chosenImage=e}),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(1),xa("uploader",r.uploader),zi(5),xa("ngModel",r.chosenImage)}}var Nfe=function(){function e(e,t,n,r,i,o,a,s,c){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=r,this.router=i,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 soe,this.nameForm=this.formBuilder.group({templateName:new lf(null,yd.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new lf("256",yd.required)}),this.diskForm=this.formBuilder.group({fileName:new lf("",yd.required)})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new mY({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,r,i){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,r,i){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 r=this.uploader.queue[0];r.options&&(r.options.disableMultipart=!0),this.uploader.uploadItem(r)},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(eie.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)(Sa(BK),Sa(ZZ),Sa(p6),Sa(e3),Sa(uZ),Sa(jf),Sa(Pfe),Sa(m6),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New QEMU VM template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"div",5),Ma(7,"mat-vertical-stepper",6),Ma(8,"mat-step",7),Ma(9,"mat-radio-group",8),Ma(10,"mat-radio-button",9),Na("click",function(){return t.setServerType("local")}),Cs(11,"Run this QEMU VM locally"),Ta(),Ma(12,"mat-radio-button",10),Na("click",function(){return t.setServerType("gns3 vm")}),Cs(13,"Run this QEMU VM on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(14,"mat-step",11),Ma(15,"form",12),Ma(16,"mat-form-field",13),Ea(17,"input",14),Ta(),Ea(18,"br"),Ta(),Ta(),Ma(19,"mat-step",15),Ma(20,"form",12),Ma(21,"mat-form-field",13),Ma(22,"mat-select",16),Na("ngModelChange",function(e){return t.selectedBinary=e}),ka(23,jfe,2,2,"mat-option",17),Ta(),Ta(),Ea(24,"br"),Ma(25,"mat-form-field",13),Ea(26,"input",18),Ma(27,"span",19),Cs(28,"MB"),Ta(),Ta(),Ta(),Ta(),Ma(29,"mat-step",20),Ma(30,"mat-form-field",13),Ma(31,"mat-select",21),Na("ngModelChange",function(e){return t.qemuTemplate.console_type=e}),ka(32,Ife,2,2,"mat-option",17),Ta(),Ta(),Ta(),Ma(33,"mat-step",22),Ma(34,"form",12),Ma(35,"mat-radio-group",8),Ma(36,"mat-radio-button",9),Na("click",function(){return t.setDiskImage("existingImage")}),Cs(37,"Existing image"),Ta(),Ma(38,"mat-radio-button",23),Na("click",function(){return t.setDiskImage("newImage")}),Cs(39,"New image"),Ta(),Ta(),Ea(40,"br"),Ea(41,"br"),ka(42,Rfe,2,4,"mat-select",24),ka(43,Lfe,7,2,"div",25),Ta(),Ta(),Ta(),Ta(),Ma(44,"div",26),Ma(45,"button",27),Na("click",function(){return t.goBack()}),Cs(46,"Cancel"),Ta(),Ma(47,"button",28),Na("click",function(){return t.addTemplate()}),Cs(48,"Add template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("linear",!0),zi(1),xa("completed",t.isGns3VmChosen||t.isLocalComputerChosen),zi(4),xa("disabled",!t.isGns3VmAvailable),zi(2),xa("completed",t.nameForm.get("templateName").value),zi(1),xa("formGroup",t.nameForm),zi(4),xa("completed",t.memoryForm.get("ramMemory").value&&t.selectedBinary),zi(1),xa("formGroup",t.memoryForm),zi(2),xa("ngModel",t.selectedBinary)("ngModelOptions",Jc(17,Dfe)),zi(1),xa("ngForOf",t.qemuBinaries),zi(6),xa("completed",t.qemuTemplate.console_type),zi(2),xa("ngModel",t.qemuTemplate.console_type)("ngModelOptions",Jc(18,Dfe)),zi(1),xa("ngForOf",t.consoleTypes),zi(2),xa("formGroup",t.diskForm),zi(8),xa("ngIf",!t.newImageSelected),zi(1),xa("ngIf",t.newImageSelected))},directives:[dae,sae,x6,E6,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,_f,L3,ih,l2,UJ,gY],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}(),Ffe=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function Bfe(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences")}function zfe(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add VPCS template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/vpcs/addtemplate")}function Hfe(e,t){1&e&&Ea(0,"app-empty-templates-list")}function Vfe(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function Ufe(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,Vfe,13,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.vpcsTemplates)}}function qfe(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,Ufe,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var Wfe=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)(Sa(BK),Sa(ZZ),Sa(Ffe))},e.\u0275cmp=be({type:e,selectors:[["app-vpcs-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"VPCS node templates"),Ta(),ka(5,Bfe,2,1,"button",4),ka(6,zfe,2,1,"button",5),Ta(),Ta(),ka(7,Hfe,1,0,"app-empty-templates-list",6),ka(8,qfe,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.vpcsTemplates.length),zi(1),xa("ngIf",t.vpcsTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),Gfe=function(){function e(e,t,n,r,i,o,a,s){this.route=e,this.serverService=t,this.vpcsService=n,this.router=r,this.toasterService=i,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 lf(null,[yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(Ffe),Sa(uZ),Sa(e3),Sa(Pfe),Sa(jf),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New VPCS node template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card",5),Ma(7,"mat-radio-group",6),Ma(8,"mat-radio-button",7),Na("click",function(){return t.setServerType("local")}),Cs(9,"Run the VPCS node locally"),Ta(),Ma(10,"mat-radio-button",8),Na("click",function(){return t.setServerType("gns3 vm")}),Cs(11,"Run the VPCS node on the GNS3 VM"),Ta(),Ta(),Ma(12,"form",9),Ma(13,"mat-form-field",10),Ea(14,"input",11),Ta(),Ta(),Ta(),Ma(15,"div",12),Ma(16,"button",13),Na("click",function(){return t.goBack()}),Cs(17,"Cancel"),Ta(),Ma(18,"button",14),Na("click",function(){return t.addTemplate()}),Cs(19,"Add template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(10),xa("disabled",!t.isGns3VmAvailable),zi(2),xa("formGroup",t.templateNameForm))},directives:[s3,x6,E6,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2],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 Xfe(e,t){if(1&e&&(Ma(0,"mat-option",23),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function Yfe(e,t){if(1&e&&(Ma(0,"mat-option",23),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var Kfe=function(){return{standalone:!0}};function Qfe(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"mat-card",7),Ma(2,"form",8),Ma(3,"mat-form-field",9),Ma(4,"input",10),Na("ngModelChange",function(e){return ut(n),Ua().vpcsTemplate.name=e}),Ta(),Ta(),Ma(5,"mat-form-field",9),Ma(6,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().vpcsTemplate.default_name_format=e}),Ta(),Ta(),Ma(7,"mat-form-field",9),Ma(8,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().vpcsTemplate.base_script_file=e}),Ta(),Ta(),Ma(9,"mat-form-field",9),Ma(10,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().vpcsTemplate.symbol=e}),Ta(),Ta(),Ma(11,"button",14),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(12,"Choose symbol"),Ta(),Ea(13,"br"),Ea(14,"br"),Ma(15,"mat-form-field",9),Ma(16,"mat-select",15),Na("ngModelChange",function(e){return ut(n),Ua().vpcsTemplate.category=e}),ka(17,Xfe,2,2,"mat-option",16),Ta(),Ta(),Ma(18,"mat-form-field",17),Ma(19,"mat-select",18),Na("ngModelChange",function(e){return ut(n),Ua().vpcsTemplate.console_type=e}),ka(20,Yfe,2,2,"mat-option",16),Ta(),Ta(),Ma(21,"mat-checkbox",19),Na("ngModelChange",function(e){return ut(n),Ua().vpcsTemplate.console_auto_start=e}),Cs(22," Auto start console "),Ta(),Ta(),Ta(),Ma(23,"div",20),Ma(24,"button",21),Na("click",function(){return ut(n),Ua().goBack()}),Cs(25,"Cancel"),Ta(),Ma(26,"button",22),Na("click",function(){return ut(n),Ua().onSave()}),Cs(27,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("formGroup",r.inputForm),zi(2),xa("ngModel",r.vpcsTemplate.name),zi(2),xa("ngModel",r.vpcsTemplate.default_name_format),zi(2),xa("ngModel",r.vpcsTemplate.base_script_file),zi(2),xa("ngModel",r.vpcsTemplate.symbol),zi(6),xa("ngModelOptions",Jc(13,Kfe))("ngModel",r.vpcsTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModelOptions",Jc(14,Kfe))("ngModel",r.vpcsTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModelOptions",Jc(15,Kfe))("ngModel",r.vpcsTemplate.console_auto_start)}}function Zfe(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",24),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.vpcsTemplate.symbol)}}var $fe=function(e){return{shadowed:e}},Jfe=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.vpcsService=n,this.toasterService=r,this.formBuilder=i,this.vpcsConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new lf("",yd.required),defaultName:new lf("",yd.required),scriptFile:new lf("",yd.required),symbol:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(Ffe),Sa(e3),Sa(jf),Sa(j2),Sa(uZ))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"VPCS device configuration"),Ta(),Ta(),Ta(),ka(5,Qfe,28,16,"div",4),Ta(),ka(6,Zfe,1,2,"app-symbols-menu",5)),2&e&&(xa("ngClass",el(3,$fe,t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.vpcsTemplate),zi(1),xa("ngIf",t.isSymbolSelectionOpened&&t.vpcsTemplate))},directives:[eh,ih,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2,v5,vf,nh,P5,UJ,dfe],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}(),epe=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function tpe(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences")}function npe(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add Virtual Box VM template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/virtualbox/addtemplate")}function rpe(e,t){1&e&&Ea(0,"app-empty-templates-list")}function ipe(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function ope(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,ipe,13,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.virtualBoxTemplates)}}function ape(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,ope,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var spe=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)(Sa(BK),Sa(ZZ),Sa(epe))},e.\u0275cmp=be({type:e,selectors:[["app-virtual-box-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"VirtualBox VM templates"),Ta(),ka(5,tpe,2,1,"button",4),ka(6,npe,2,1,"button",5),Ta(),Ta(),ka(7,rpe,1,0,"app-empty-templates-list",6),ka(8,ape,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.virtualBoxTemplates.length),zi(1),xa("ngIf",t.virtualBoxTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),cpe=["customAdaptersConfigurator"];function lpe(e,t){if(1&e&&(Ma(0,"mat-option",34),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function upe(e,t){if(1&e&&(Ma(0,"mat-option",34),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function hpe(e,t){if(1&e&&(Ma(0,"mat-option",34),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function dpe(e,t){if(1&e&&(Ma(0,"mat-option",34),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var fpe=function(){return{standalone:!0}};function ppe(e,t){if(1&e){var n=Aa();Ma(0,"div",8),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General settings "),Ta(),Ta(),Ma(6,"form",9),Ma(7,"mat-form-field",10),Ma(8,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",10),Ma(10,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.default_name_format=e}),Ta(),Ta(),Ma(11,"mat-form-field",10),Ma(12,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.symbol=e}),Ta(),Ta(),Ma(13,"button",14),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(14,"Choose symbol"),Ta(),Ea(15,"br"),Ea(16,"br"),Ma(17,"mat-form-field",10),Ma(18,"mat-select",15),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.category=e}),ka(19,lpe,2,2,"mat-option",16),Ta(),Ta(),Ma(20,"mat-form-field",17),Ma(21,"mat-select",18),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.console_type=e}),ka(22,upe,2,2,"mat-option",16),Ta(),Ta(),Ma(23,"mat-checkbox",19),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.console_auto_start=e}),Cs(24," Auto start console "),Ta(),Ma(25,"mat-form-field",10),Ma(26,"input",20),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.ram=e}),Ta(),Ma(27,"span",21),Cs(28,"MB"),Ta(),Ta(),Ma(29,"mat-form-field",10),Ma(30,"mat-select",22),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.on_close=e}),ka(31,hpe,2,2,"mat-option",16),Ta(),Ta(),Ta(),Ma(32,"mat-checkbox",23),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.headless=e}),Cs(33," Start VM in headless mode "),Ta(),Ea(34,"br"),Ma(35,"mat-checkbox",23),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.linked_clone=e}),Cs(36," Use as a linked base VM (experimental) "),Ta(),Ta(),Ma(37,"mat-expansion-panel"),Ma(38,"mat-expansion-panel-header"),Ma(39,"mat-panel-title"),Cs(40," Network "),Ta(),Ta(),Ma(41,"form",9),Ma(42,"mat-form-field",10),Ma(43,"input",24),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.adapters=e}),Ta(),Ta(),Ma(44,"mat-form-field",10),Ma(45,"input",25),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.first_port_name=e}),Ta(),Ta(),Ma(46,"mat-form-field",10),Ma(47,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.port_name_format=e}),Ta(),Ta(),Ma(48,"mat-form-field",10),Ma(49,"input",27),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.port_segment_size=e}),Ta(),Ta(),Ma(50,"mat-form-field",10),Ma(51,"mat-select",28),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.adapter_type=e}),ka(52,dpe,2,2,"mat-option",16),Ta(),Ta(),Ta(),Ma(53,"button",29),Na("click",function(){return ut(n),Ua().setCustomAdaptersConfiguratorState(!0)}),Cs(54,"Configure custom adapters"),Ta(),Ea(55,"br"),Ma(56,"mat-checkbox",23),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.use_any_adapter=e}),Cs(57," Allow GNS3 to use any configured VirtualBox adapter "),Ta(),Ta(),Ma(58,"mat-expansion-panel"),Ma(59,"mat-expansion-panel-header"),Ma(60,"mat-panel-title"),Cs(61," Usage "),Ta(),Ta(),Ma(62,"mat-form-field",10),Ma(63,"textarea",30),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.usage=e}),Ta(),Ta(),Ta(),Ta(),Ma(64,"div",31),Ma(65,"button",32),Na("click",function(){return ut(n),Ua().goBack()}),Cs(66,"Cancel"),Ta(),Ma(67,"button",33),Na("click",function(){return ut(n),Ua().onSave()}),Cs(68,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(6),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.virtualBoxTemplate.name),zi(2),xa("ngModel",r.virtualBoxTemplate.default_name_format),zi(2),xa("ngModel",r.virtualBoxTemplate.symbol),zi(6),xa("ngModelOptions",Jc(29,fpe))("ngModel",r.virtualBoxTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModelOptions",Jc(30,fpe))("ngModel",r.virtualBoxTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModelOptions",Jc(31,fpe))("ngModel",r.virtualBoxTemplate.console_auto_start),zi(3),xa("ngModel",r.virtualBoxTemplate.ram),zi(4),xa("ngModelOptions",Jc(32,fpe))("ngModel",r.virtualBoxTemplate.on_close),zi(1),xa("ngForOf",r.onCloseOptions),zi(1),xa("ngModel",r.virtualBoxTemplate.headless),zi(3),xa("ngModel",r.virtualBoxTemplate.linked_clone),zi(6),xa("formGroup",r.networkForm),zi(2),xa("ngModel",r.virtualBoxTemplate.adapters),zi(2),xa("ngModelOptions",Jc(33,fpe))("ngModel",r.virtualBoxTemplate.first_port_name),zi(2),xa("ngModel",r.virtualBoxTemplate.port_name_format),zi(2),xa("ngModel",r.virtualBoxTemplate.port_segment_size),zi(2),xa("ngModelOptions",Jc(34,fpe))("ngModel",r.virtualBoxTemplate.adapter_type),zi(1),xa("ngForOf",r.networkTypes),zi(4),xa("ngModel",r.virtualBoxTemplate.use_any_adapter),zi(7),xa("ngModel",r.virtualBoxTemplate.usage)}}function mpe(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",35),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.virtualBoxTemplate.symbol)}}var gpe=function(e){return{shadowed:e}},vpe=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.virtualBoxService=n,this.toasterService=r,this.formBuilder=i,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 lf("",yd.required),defaultName:new lf("",yd.required),symbol:new lf("",yd.required),ram:new lf("",yd.required)}),this.networkForm=this.formBuilder.group({adapters:new lf("",yd.required),nameFormat:new lf("",yd.required),size:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(epe),Sa(e3),Sa(jf),Sa(K4),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-virtual-box-template-details"]],viewQuery:function(e,t){var n;1&e&&Cl(cpe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"VirtualBox VM configuration"),Ta(),Ta(),Ta(),ka(5,ppe,69,35,"div",4),Ta(),Ma(6,"app-custom-adapters",5,6),Na("closeConfiguratorEmitter",function(e){return t.setCustomAdaptersConfiguratorState(e)})("saveConfigurationEmitter",function(e){return t.saveCustomAdapters(e)}),Ta(),ka(8,mpe,1,2,"app-symbols-menu",7)),2&e&&(xa("ngClass",el(6,gpe,t.isConfiguratorOpened||t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.virtualBoxTemplate),zi(1),xa("hidden",!(t.isConfiguratorOpened&&t.virtualBoxTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),zi(2),xa("ngIf",t.isSymbolSelectionOpened&&t.virtualBoxTemplate))},directives:[eh,ih,hfe,Yde,qde,Wde,Xde,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2,v5,vf,nh,P5,_f,L3,UJ,dfe],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 bpe(e,t){if(1&e&&(Ma(0,"mat-option",15),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n.vmname," ")}}function ype(e,t){if(1&e){var n=Aa();Ma(0,"div",5),Ma(1,"mat-card",6),Ma(2,"form",7),Ma(3,"mat-form-field",8),Ma(4,"mat-select",9),Na("ngModelChange",function(e){return ut(n),Ua().selectedVM=e}),ka(5,bpe,2,2,"mat-option",10),Ta(),Ta(),Ta(),Ma(6,"mat-checkbox",11),Na("ngModelChange",function(e){return ut(n),Ua().virtualBoxTemplate.linked_clone=e}),Cs(7," Use as a linked base VM (experimental) "),Ta(),Ta(),Ma(8,"div",12),Ma(9,"button",13),Na("click",function(){return ut(n),Ua().goBack()}),Cs(10,"Cancel"),Ta(),Ma(11,"button",14),Na("click",function(){return ut(n),Ua().addTemplate()}),Cs(12,"Add template"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("formGroup",r.vmForm),zi(2),xa("ngModel",r.selectedVM),zi(1),xa("ngForOf",r.virtualMachines),zi(1),xa("ngModel",r.virtualBoxTemplate.linked_clone)}}var _pe=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.virtualBoxService=n,this.toasterService=r,this.templateMocksService=i,this.router=o,this.formBuilder=a,this.vmForm=this.formBuilder.group({vm:new lf("",yd.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(eie.v4)(),this.virtualBoxService.addTemplate(this.server,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))},e.\u0275fac=function(t){return new(t||e)(Sa(BK),Sa(ZZ),Sa(epe),Sa(e3),Sa(Pfe),Sa(uZ),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New VirtualBox VM template"),Ta(),Ta(),Ta(),ka(5,ype,13,4,"div",4),Ta()),2&e&&(zi(5),xa("ngIf",t.virtualBoxTemplate))},directives:[ih,s3,bf,Bd,Sf,H3,v5,Fd,Of,nh,P5,vf,l2,UJ],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){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)(Sa(BK))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Built-in preferences"),Ta(),Ma(5,"button",4),Cs(6,"Back"),Ta(),Ta(),Ta(),Ma(7,"div",5),Ma(8,"div",6),Ma(9,"mat-nav-list"),Ma(10,"mat-list-item",7),Cs(11," Ethernet hubs "),Ta(),Ma(12,"mat-list-item",7),Cs(13," Ethernet switches "),Ta(),Ma(14,"mat-list-item",7),Cs(15," Cloud nodes "),Ta(),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(5),Ya("routerLink","/server/",t.serverId,"/preferences"),zi(5),Ya("routerLink","/server/",t.serverId,"/preferences/builtin/ethernet-hubs"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/builtin/ethernet-switches"),zi(2),Ya("routerLink","/server/",t.serverId,"/preferences/builtin/cloud-nodes"))},directives:[l2,dZ,h7,g7],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){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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function Cpe(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/builtin")}function Spe(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add Ethernet hub template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/builtin/ethernet-hubs/addtemplate")}function xpe(e,t){1&e&&Ea(0,"app-empty-templates-list")}function Ope(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function Mpe(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,Ope,13,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.ethernetHubsTemplates)}}function Tpe(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,Mpe,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var Epe=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)(Sa(BK),Sa(ZZ),Sa(kpe))},e.\u0275cmp=be({type:e,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Ethernet hubs templates"),Ta(),ka(5,Cpe,2,1,"button",4),ka(6,Spe,2,1,"button",5),Ta(),Ta(),ka(7,xpe,1,0,"app-empty-templates-list",6),ka(8,Tpe,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.ethernetHubsTemplates.length),zi(1),xa("ngIf",t.ethernetHubsTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),Ppe=function(){function e(e,t,n,r,i,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=r,this.toasterService=i,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 lf("",yd.required),numberOfPorts:new lf(8,yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(kpe),Sa(uZ),Sa(e3),Sa(Pfe),Sa(jf),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New Ethernet hub template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card",5),Ma(7,"mat-radio-group",6),Ma(8,"mat-radio-button",7),Na("click",function(){return t.setServerType("local")}),Cs(9,"Run the Ethernet Hub locally"),Ta(),Ma(10,"mat-radio-button",8),Na("click",function(){return t.setServerType("gns3 vm")}),Cs(11,"Run the Ethernet Hub on the GNS3 VM"),Ta(),Ta(),Ma(12,"form",9),Ma(13,"mat-form-field",10),Ea(14,"input",11),Ta(),Ma(15,"mat-form-field",10),Ea(16,"input",12),Ta(),Ta(),Ta(),Ma(17,"div",13),Ma(18,"button",14),Na("click",function(){return t.goBack()}),Cs(19,"Cancel"),Ta(),Ma(20,"button",15),Na("click",function(){return t.addTemplate()}),Cs(21,"Add template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(10),xa("disabled",!t.isGns3VmAvailable),zi(2),xa("formGroup",t.formGroup))},directives:[s3,x6,E6,bf,Bd,Sf,H3,fd,Q3,Fd,Of,_f,l2],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 jpe(e,t){if(1&e&&(Ma(0,"mat-option",19),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}var Ipe=function(){return{standalone:!0}};function Ape(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"mat-card"),Ma(2,"form",7),Ma(3,"mat-form-field",8),Ma(4,"input",9),Na("ngModelChange",function(e){return ut(n),Ua().ethernetHubTemplate.name=e}),Ta(),Ta(),Ma(5,"mat-form-field",8),Ma(6,"input",10),Na("ngModelChange",function(e){return ut(n),Ua().ethernetHubTemplate.default_name_format=e}),Ta(),Ta(),Ma(7,"mat-form-field",8),Ma(8,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().ethernetHubTemplate.symbol=e}),Ta(),Ta(),Ma(9,"button",12),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(10,"Choose symbol"),Ta(),Ea(11,"br"),Ea(12,"br"),Ma(13,"mat-form-field",8),Ma(14,"mat-select",13),Na("ngModelChange",function(e){return ut(n),Ua().ethernetHubTemplate.category=e}),ka(15,jpe,2,2,"mat-option",14),Ta(),Ta(),Ma(16,"mat-form-field",8),Ma(17,"input",15),Na("ngModelChange",function(e){return ut(n),Ua().numberOfPorts=e}),Ta(),Ta(),Ta(),Ta(),Ma(18,"div",16),Ma(19,"button",17),Na("click",function(){return ut(n),Ua().goBack()}),Cs(20,"Cancel"),Ta(),Ma(21,"button",18),Na("click",function(){return ut(n),Ua().onSave()}),Cs(22,"Save"),Ta(),Ea(23,"br"),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("formGroup",r.inputForm),zi(2),xa("ngModel",r.ethernetHubTemplate.name),zi(2),xa("ngModel",r.ethernetHubTemplate.default_name_format),zi(2),xa("ngModel",r.ethernetHubTemplate.symbol),zi(6),xa("ngModelOptions",Jc(9,Ipe))("ngModel",r.ethernetHubTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModel",r.numberOfPorts)("ngModelOptions",Jc(10,Ipe))}}function Dpe(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",20),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.ethernetHubTemplate.symbol)}}var Rpe=function(e){return{shadowed:e}},Lpe=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=r,this.formBuilder=i,this.builtInTemplatesConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new lf("",yd.required),defaultName:new lf("",yd.required),symbol:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(kpe),Sa(e3),Sa(jf),Sa(F5),Sa(uZ))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Ethernet hub settings"),Ta(),Ta(),Ta(),ka(5,Ape,24,11,"div",4),Ta(),ka(6,Dpe,1,2,"app-symbols-menu",5)),2&e&&(xa("ngClass",el(3,Rpe,t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.ethernetHubTemplate),zi(1),xa("ngIf",t.isSymbolSelectionOpened&&t.ethernetHubTemplate))},directives:[eh,ih,s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2,v5,vf,nh,_f,UJ,dfe],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&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/builtin")}function Fpe(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add cloud node template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/builtin/cloud-nodes/addtemplate")}function Bpe(e,t){1&e&&Ea(0,"app-empty-templates-list")}function zpe(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function Hpe(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,zpe,13,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.cloudNodesTemplates)}}function Vpe(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,Hpe,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var Upe=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)(Sa(BK),Sa(ZZ),Sa(kpe))},e.\u0275cmp=be({type:e,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Cloud nodes templates"),Ta(),ka(5,Npe,2,1,"button",4),ka(6,Fpe,2,1,"button",5),Ta(),Ta(),ka(7,Bpe,1,0,"app-empty-templates-list",6),ka(8,Vpe,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.cloudNodesTemplates.length),zi(1),xa("ngIf",t.cloudNodesTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),qpe=function(){function e(e,t,n,r,i,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=r,this.toasterService=i,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 lf("",yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(kpe),Sa(uZ),Sa(e3),Sa(Pfe),Sa(jf),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New cloud node template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card",5),Ma(7,"mat-radio-group",6),Ma(8,"mat-radio-button",7),Na("click",function(){return t.setServerType("local")}),Cs(9,"Run the cloud node locally"),Ta(),Ma(10,"mat-radio-button",8),Na("click",function(){return t.setServerType("gns3 vm")}),Cs(11,"Run the cloud node on the GNS3 VM"),Ta(),Ta(),Ma(12,"form",9),Ma(13,"mat-form-field",10),Ea(14,"input",11),Ta(),Ta(),Ta(),Ma(15,"div",12),Ma(16,"button",13),Na("click",function(){return t.goBack()}),Cs(17,"Cancel"),Ta(),Ma(18,"button",14),Na("click",function(){return t.addTemplate()}),Cs(19,"Add template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(10),xa("disabled",!t.isGns3VmAvailable),zi(2),xa("formGroup",t.formGroup))},directives:[s3,x6,E6,bf,Bd,Sf,H3,fd,Q3,Fd,Of,l2],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 Wpe(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function Gpe(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Xpe(e,t){if(1&e&&(Ma(0,"div",7),Ma(1,"div",7),Cs(2),Ta(),Ea(3,"br"),Ea(4,"br"),Ta()),2&e){var n=t.$implicit;zi(2),Ss(n.name)}}function Ype(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Kpe(e,t){if(1&e&&(Ma(0,"div",7),Ma(1,"div",7),Cs(2),Ta(),Ea(3,"br"),Ea(4,"br"),Ta()),2&e){var n=t.$implicit;zi(2),Ss(n.name)}}function Qpe(e,t){1&e&&(Ma(0,"th",42),Cs(1," Name "),Ta())}function Zpe(e,t){if(1&e&&(Ma(0,"td",43),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.name," ")}}function $pe(e,t){1&e&&(Ma(0,"th",42),Cs(1," Local port "),Ta())}function Jpe(e,t){if(1&e&&(Ma(0,"td",43),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.rport," ")}}function eme(e,t){1&e&&(Ma(0,"th",42),Cs(1," Type "),Ta())}function tme(e,t){if(1&e&&(Ma(0,"td",43),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.rhost," ")}}function nme(e,t){1&e&&(Ma(0,"th",42),Cs(1," Remote port "),Ta())}function rme(e,t){if(1&e&&(Ma(0,"td",43),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.lport," ")}}function ime(e,t){1&e&&Ea(0,"tr",44)}function ome(e,t){1&e&&Ea(0,"tr",45)}function ame(e,t){if(1&e&&(Ma(0,"table",33),Pa(1,34),ka(2,Qpe,2,0,"th",35),ka(3,Zpe,2,1,"td",36),ja(),Pa(4,37),ka(5,$pe,2,0,"th",35),ka(6,Jpe,2,1,"td",36),ja(),Pa(7,38),ka(8,eme,2,0,"th",35),ka(9,tme,2,1,"td",36),ja(),Pa(10,39),ka(11,nme,2,0,"th",35),ka(12,rme,2,1,"td",36),ja(),ka(13,ime,1,0,"tr",40),ka(14,ome,1,0,"tr",41),Ta()),2&e){var n=Ua(2);xa("dataSource",n.dataSourceUdp),zi(13),xa("matHeaderRowDef",n.displayedColumns),zi(1),xa("matRowDefColumns",n.displayedColumns)}}function sme(e,t){1&e&&Ea(0,"br")}var cme=function(){return{standalone:!0}};function lme(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General "),Ta(),Ta(),Ma(6,"mat-form-field",7),Ma(7,"input",8),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.name=e}),Ta(),Ta(),Ma(8,"mat-form-field",7),Ma(9,"input",9),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.default_name_format=e}),Ta(),Ta(),Ma(10,"mat-form-field",7),Ma(11,"input",10),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.symbol=e}),Ta(),Ta(),Ma(12,"button",11),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(13,"Choose symbol"),Ta(),Ea(14,"br"),Ea(15,"br"),Ma(16,"mat-form-field",7),Ma(17,"mat-select",12),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.category=e}),ka(18,Wpe,2,2,"mat-option",13),Ta(),Ta(),Ma(19,"mat-form-field",14),Ma(20,"mat-select",15),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.console_type=e}),ka(21,Gpe,2,2,"mat-option",13),Ta(),Ta(),Ma(22,"mat-form-field",7),Ma(23,"input",16),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.remote_console_host=e}),Ta(),Ta(),Ma(24,"mat-form-field",7),Ma(25,"input",17),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.remote_console_port=e}),Ta(),Ta(),Ma(26,"mat-form-field",7),Ma(27,"input",18),Na("ngModelChange",function(e){return ut(n),Ua().cloudNodeTemplate.remote_console_http_path=e}),Ta(),Ta(),Ta(),Ma(28,"mat-expansion-panel"),Ma(29,"mat-expansion-panel-header"),Ma(30,"mat-panel-title"),Cs(31," Ethernet interfaces "),Ta(),Ta(),ka(32,Xpe,5,1,"div",19),Ma(33,"mat-form-field",14),Ma(34,"mat-select",20),Na("ngModelChange",function(e){return ut(n),Ua().ethernetInterface=e}),ka(35,Ype,2,2,"mat-option",13),Ta(),Ta(),Ma(36,"button",21),Na("click",function(){return ut(n),Ua().onAddEthernetInterface()}),Cs(37,"Add"),Ta(),Ta(),Ma(38,"mat-expansion-panel"),Ma(39,"mat-expansion-panel-header"),Ma(40,"mat-panel-title"),Cs(41," TAP interfaces "),Ta(),Ta(),ka(42,Kpe,5,1,"div",19),Ma(43,"mat-form-field",7),Ma(44,"input",22),Na("ngModelChange",function(e){return ut(n),Ua().tapInterface=e}),Ta(),Ta(),Ma(45,"button",21),Na("click",function(){return ut(n),Ua().onAddTapInterface()}),Cs(46,"Add"),Ta(),Ta(),Ma(47,"mat-expansion-panel"),Ma(48,"mat-expansion-panel-header"),Ma(49,"mat-panel-title"),Cs(50," UDP tunnels "),Ta(),Ta(),ka(51,ame,15,3,"table",23),ka(52,sme,1,0,"br",24),Ma(53,"mat-form-field",7),Ma(54,"input",25),Na("ngModelChange",function(e){return ut(n),Ua().newPort.name=e}),Ta(),Ta(),Ma(55,"mat-form-field",7),Ma(56,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().newPort.lport=e}),Ta(),Ta(),Ma(57,"mat-form-field",7),Ma(58,"input",27),Na("ngModelChange",function(e){return ut(n),Ua().newPort.rhost=e}),Ta(),Ta(),Ma(59,"mat-form-field",7),Ma(60,"input",28),Na("ngModelChange",function(e){return ut(n),Ua().newPort.rport=e}),Ta(),Ta(),Ma(61,"button",21),Na("click",function(){return ut(n),Ua().onAddUdpInterface()}),Cs(62,"Add"),Ta(),Ta(),Ta(),Ma(63,"div",29),Ma(64,"button",30),Na("click",function(){return ut(n),Ua().goBack()}),Cs(65,"Cancel"),Ta(),Ma(66,"button",31),Na("click",function(){return ut(n),Ua().onSave()}),Cs(67,"Save"),Ta(),Ea(68,"br"),Ta(),Ta()}if(2&e){var r=Ua();zi(7),xa("ngModel",r.cloudNodeTemplate.name),zi(2),xa("ngModel",r.cloudNodeTemplate.default_name_format),zi(2),xa("ngModel",r.cloudNodeTemplate.symbol),zi(6),xa("ngModel",r.cloudNodeTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModel",r.cloudNodeTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(2),xa("ngModel",r.cloudNodeTemplate.remote_console_host),zi(2),xa("ngModel",r.cloudNodeTemplate.remote_console_port),zi(2),xa("ngModel",r.cloudNodeTemplate.remote_console_http_path),zi(5),xa("ngForOf",r.portsMappingEthernet),zi(2),xa("ngModelOptions",Jc(22,cme))("ngModel",r.ethernetInterface),zi(1),xa("ngForOf",r.ethernetInterfaces),zi(7),xa("ngForOf",r.portsMappingTap),zi(2),xa("ngModel",r.tapInterface),zi(7),xa("ngIf",r.dataSourceUdp.length),zi(1),xa("ngIf",r.dataSourceUdp.length),zi(2),xa("ngModel",r.newPort.name),zi(2),xa("ngModel",r.newPort.lport),zi(2),xa("ngModel",r.newPort.rhost),zi(2),xa("ngModel",r.newPort.rport)}}function ume(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",46),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.cloudNodeTemplate.symbol)}}var hme=function(e){return{shadowed:e}},dme=function(){function e(e,t,n,r,i,o){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=r,this.builtInTemplatesConfigurationService=i,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=GZ(this.portsMappingUdp),this.newPort={name:"",port_number:0}},e.prototype.onSave=function(){var e=this;this.cloudNodeTemplate.ports_mapping=GZ(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)(Sa(BK),Sa(ZZ),Sa(kpe),Sa(e3),Sa(F5),Sa(uZ))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Cloud configuration"),Ta(),Ta(),Ta(),ka(5,lme,69,23,"div",4),Ta(),ka(6,ume,1,2,"app-symbols-menu",5)),2&e&&(xa("ngClass",el(3,hme,t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.cloudNodeTemplate),zi(1),xa("ngIf",t.isSymbolSelectionOpened&&t.cloudNodeTemplate))},directives:[eh,ih,Yde,qde,Wde,Xde,H3,Q3,fd,Fd,vf,l2,v5,nh,_f,UJ,H5,X5,W5,U5,J5,t4,K5,Z5,r4,o4,dfe],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 fme(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/builtin")}function pme(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add Ethernet switch template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/builtin/ethernet-switches/addtemplate")}function mme(e,t){1&e&&Ea(0,"app-empty-templates-list")}function gme(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function vme(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,gme,13,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.ethernetSwitchesTemplates)}}function bme(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,vme,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var yme=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)(Sa(BK),Sa(ZZ),Sa(kpe))},e.\u0275cmp=be({type:e,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Ethernet switches templates"),Ta(),ka(5,fme,2,1,"button",4),ka(6,pme,2,1,"button",5),Ta(),Ta(),ka(7,mme,1,0,"app-empty-templates-list",6),ka(8,bme,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.ethernetSwitchesTemplates.length),zi(1),xa("ngIf",t.ethernetSwitchesTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),_me=function(){function e(e,t,n,r,i,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=r,this.toasterService=i,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 lf("",yd.required),numberOfPorts:new lf(8,yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(kpe),Sa(uZ),Sa(e3),Sa(Pfe),Sa(jf),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New Ethernet switch template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card",5),Ma(7,"mat-radio-group",6),Ma(8,"mat-radio-button",7),Na("click",function(){return t.setServerType("local")}),Cs(9,"Run the Ethernet switch locally"),Ta(),Ma(10,"mat-radio-button",8),Na("click",function(){return t.setServerType("gns3 vm")}),Cs(11,"Run the Ethernet switch on the GNS3 VM"),Ta(),Ta(),Ma(12,"form",9),Ma(13,"mat-form-field",10),Ea(14,"input",11),Ta(),Ma(15,"mat-form-field",10),Ea(16,"input",12),Ta(),Ta(),Ta(),Ma(17,"div",13),Ma(18,"button",14),Na("click",function(){return t.goBack()}),Cs(19,"Cancel"),Ta(),Ma(20,"button",15),Na("click",function(){return t.addTemplate()}),Cs(21,"Add template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(10),xa("disabled",!t.isGns3VmAvailable),zi(2),xa("formGroup",t.formGroup))},directives:[s3,x6,E6,bf,Bd,Sf,H3,fd,Q3,Fd,Of,_f,l2],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 wme(e,t){if(1&e&&(Ma(0,"mat-option",22),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function kme(e,t){if(1&e&&(Ma(0,"mat-option",22),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var Cme=function(){return{standalone:!0}};function Sme(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General settings "),Ta(),Ta(),Ma(6,"form",7),Ma(7,"mat-form-field",8),Ma(8,"input",9),Na("ngModelChange",function(e){return ut(n),Ua().ethernetSwitchTemplate.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",8),Ma(10,"input",10),Na("ngModelChange",function(e){return ut(n),Ua().ethernetSwitchTemplate.default_name_format=e}),Ta(),Ta(),Ma(11,"mat-form-field",8),Ma(12,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().ethernetSwitchTemplate.symbol=e}),Ta(),Ta(),Ma(13,"button",12),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(14,"Choose symbol"),Ta(),Ea(15,"br"),Ea(16,"br"),Ma(17,"mat-form-field",8),Ma(18,"mat-select",13),Na("ngModelChange",function(e){return ut(n),Ua().ethernetSwitchTemplate.category=e}),ka(19,wme,2,2,"mat-option",14),Ta(),Ta(),Ma(20,"mat-form-field",15),Ma(21,"mat-select",16),Na("ngModelChange",function(e){return ut(n),Ua().ethernetSwitchTemplate.console_type=e}),ka(22,kme,2,2,"mat-option",14),Ta(),Ta(),Ta(),Ta(),Ma(23,"mat-expansion-panel"),Ma(24,"mat-expansion-panel-header"),Ma(25,"mat-panel-title"),Cs(26," Port settings "),Ta(),Ta(),Ea(27,"app-ports",17,18),Ta(),Ta(),Ma(29,"div",19),Ma(30,"button",20),Na("click",function(){return ut(n),Ua().goBack()}),Cs(31,"Cancel"),Ta(),Ma(32,"button",21),Na("click",function(){return ut(n),Ua().onSave()}),Cs(33,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(6),xa("formGroup",r.inputForm),zi(2),xa("ngModel",r.ethernetSwitchTemplate.name),zi(2),xa("ngModel",r.ethernetSwitchTemplate.default_name_format),zi(2),xa("ngModel",r.ethernetSwitchTemplate.symbol),zi(6),xa("ngModelOptions",Jc(11,Cme))("ngModel",r.ethernetSwitchTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModelOptions",Jc(12,Cme))("ngModel",r.ethernetSwitchTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(5),xa("ethernetPorts",r.ethernetSwitchTemplate.ports_mapping)}}function xme(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",23),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.ethernetSwitchTemplate.symbol)}}var Ome=function(e){return{shadowed:e}},Mme=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=r,this.formBuilder=i,this.builtInTemplatesConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new lf("",yd.required),defaultName:new lf("",yd.required),symbol:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(kpe),Sa(e3),Sa(jf),Sa(F5),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(e,t){var n;1&e&&Cl(A4,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Ethernet switch configuration"),Ta(),Ta(),Ta(),ka(5,Sme,34,13,"div",4),Ta(),ka(6,xme,1,2,"app-symbols-menu",5)),2&e&&(xa("ngClass",el(3,Ome,t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.ethernetSwitchTemplate),zi(1),xa("ngIf",t.isSymbolSelectionOpened&&t.ethernetSwitchTemplate))},directives:[eh,ih,Yde,qde,Wde,Xde,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2,v5,vf,nh,A4,UJ,dfe],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 Tme(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences")}function Eme(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add IOS router template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/dynamips/templates/addtemplate")}function Pme(e,t){1&e&&Ea(0,"app-empty-templates-list")}function jme(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ma(13,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).copyTemplate(e)}),Ma(14,"mat-icon"),Cs(15,"content_copy"),Ta(),Ma(16,"span"),Cs(17,"Copy"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function Ime(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,jme,18,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.iosTemplates)}}function Ame(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,Ime,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var Dme=function(){function e(e,t,n,r){this.route=e,this.serverService=t,this.iosService=n,this.router=r,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)(Sa(BK),Sa(ZZ),Sa(hoe),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-ios-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"IOS router templates"),Ta(),ka(5,Tme,2,1,"button",4),ka(6,Eme,2,1,"button",5),Ta(),Ta(),ka(7,Pme,1,0,"app-empty-templates-list",6),ka(8,Ame,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.iosTemplates.length),zi(1),xa("ngIf",t.iosTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),Rme=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(lY))}}),e}(),Lme=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(Rme))}}),e}(),Nme=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(lY),Gn(Lme))}}),e}(),Fme=function(e,t){return{hidden:e,lightTheme:t}},Bme=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,zme=function(){function e(e,t){this.httpClient=e,this.themeService=t,this.isVisible=!1,this.isLightThemeEnabled=!1,this.adUrl="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",this.adBody="Network Config Generator makes it easy configure network devices, including VLANs without opening the CLI",this.buttonLabel="Check it out!"}return e.prototype.hide=function(){this.isVisible=!1},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){var n,r;if(null===(r=null===(n=null==t?void 0:t.placements)||void 0===n?void 0:n.placement_1)||void 0===r?void 0:r.body)try{var i=t.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),o=Bme.exec(i);e.adUrl=o[1].trim(),e.adBody=o[3].trim(),e.buttonLabel=o[4].trim()}catch(a){}e.isVisible=!0},function(e){}),this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.themeService.themeChanged.subscribe(function(){e.isLightThemeEnabled="light"===e.themeService.getActualTheme()})},e.\u0275fac=function(t){return new(t||e)(Sa(Cm),Sa(Hre))},e.\u0275cmp=be({type:e,selectors:[["app-adbutler"]],decls:10,vars:8,consts:[[1,"ad",3,"ngClass"],[1,"adInnerContainer"],[1,"adBody"],["target","_blank",3,"href"],[1,"close-button",3,"click"]],template:function(e,t){1&e&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"span",2),Ma(3,"a",3),Cs(4),Ta(),Ta(),Ma(5,"button"),Ma(6,"a",3),Cs(7),Ta(),Ta(),Ta(),Ma(8,"mat-icon",4),Na("click",function(){return t.hide()}),Cs(9,"close"),Ta(),Ta()),2&e&&(xa("ngClass",tl(5,Fme,!t.isVisible,t.isLightThemeEnabled)),zi(3),xa("href",t.adUrl,Br),zi(1),Ss(t.adBody),zi(2),xa("href",t.adUrl,Br),zi(1),Ss(t.buttonLabel))},directives:[eh,T2],styles:[".ad[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;background-color:#a8ecff;padding-top:10px;padding-bottom:10px;font-size:12px;font-weight:700;opacity:.8}.adInnerContainer[_ngcontent-%COMP%]{margin:auto;text-align:center}.adBody[_ngcontent-%COMP%]{padding-right:16px}.close-button[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;color:#000!important}.lightTheme[_ngcontent-%COMP%]{background-color:#ddf9ff}.hidden[_ngcontent-%COMP%]{visibility:hidden}button[_ngcontent-%COMP%]{background-color:#01d4ff;margin-top:2px;border:none;outline:none;font-weight:700;font-size:11px;padding:5px 15px;border-radius:6px}button[_ngcontent-%COMP%], button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]{color:#122124}"]}),e}();function Hme(e,t){if(1&e&&(Pa(0),Cs(1),ja()),2&e){var n=Ua();zi(1),Ss(n.buttonText)}}var Vme=function(){function e(e){this.electronService=e,this.installedChanged=new ul,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)(Sa(lY))},e.\u0275cmp=be({type:e,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[Fe],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(e,t){1&e&&(Ma(0,"button",0),Na("click",function(){return t.install()}),ka(1,Hme,2,1,"ng-container",1),Ta()),2&e&&(xa("disabled",t.disabled),zi(1),xa("ngIf",t.readyToInstall))},directives:[l2,ih],styles:[""]}),e}();function Ume(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Name "),Ta())}function qme(e,t){if(1&e&&(Pa(0),Cs(1),ja()),2&e){var n=Ua().$implicit;zi(1),xs(" ",n.name," ")}}function Wme(e,t){1&e&&(Pa(0),Ea(1,"app-adbutler",14),ja())}function Gme(e,t){if(1&e&&(Ma(0,"mat-cell"),ka(1,qme,2,1,"ng-container",13),ka(2,Wme,2,0,"ng-container",13),Ta()),2&e){var n=t.$implicit;zi(1),xa("ngIf","adbutler"!==n.type),zi(1),xa("ngIf","adbutler"===n.type)}}function Xme(e,t){1&e&&Ea(0,"mat-header-cell")}function Yme(e,t){if(1&e){var n=Aa();Ma(0,"app-install-software",17),Na("installedChanged",function(e){return ut(n),Ua(2).onInstalled(e)}),Ta()}2&e&&xa("software",Ua().$implicit)}function Kme(e,t){if(1&e&&(Ma(0,"mat-cell",15),ka(1,Yme,1,1,"app-install-software",16),Ta()),2&e){var n=t.$implicit;zi(1),xa("ngIf","adbutler"!==n.type)}}function Qme(e,t){1&e&&Ea(0,"mat-header-row")}function Zme(e,t){1&e&&Ea(0,"mat-row")}var $me=function(){function e(e,t){this.installedSoftwareService=e,this.changeDetectorRef=t,this.displayedColumns=["name","actions"]}return e.prototype.ngOnInit=function(){this.dataSource=new Jme(this.installedSoftwareService)},e.prototype.onInstalled=function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()},e.\u0275fac=function(t){return new(t||e)(Sa(Nme),Sa(Oc))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1"),Cs(3,"Installed software"),Ta(),Ta(),Ma(4,"div",2),Ma(5,"div",3),Ma(6,"mat-table",4,5),Pa(8,6),ka(9,Ume,2,0,"mat-header-cell",7),ka(10,Gme,3,2,"mat-cell",8),ja(),Pa(11,9),ka(12,Xme,1,0,"mat-header-cell",7),ka(13,Kme,2,1,"mat-cell",10),ja(),ka(14,Qme,1,0,"mat-header-row",11),ka(15,Zme,1,0,"mat-row",12),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(6),xa("dataSource",t.dataSource),zi(8),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("matRowDefColumns",t.displayedColumns))},directives:[H5,X5,W5,U5,J5,t4,K5,Z5,ih,zme,Vme,r4,o4],styles:[""]}),e}(),Jme=function(e){function t(t){var n=e.call(this)||this;return n.installedSoftwareService=t,n.installed=new kp.a([]),n}return VZ(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}(zf);function ege(e,t){if(1&e&&(Ma(0,"mat-option",38),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function tge(e,t){if(1&e&&(Ma(0,"mat-option",38),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function nge(e,t){if(1&e&&(Ma(0,"mat-option",38),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var rge=function(){return{standalone:!0}};function ige(e,t){if(1&e){var n=Aa();Ma(0,"mat-select",41),Na("ngModelChange",function(e){ut(n);var t=Ua().$implicit;return Ua(3).networkAdaptersForTemplate[t]=e}),ka(1,nge,2,2,"mat-option",14),Ta()}if(2&e){var r=Ua().$implicit,i=Ua(3);Ya("placeholder","Slot ",r,""),xa("ngModel",i.networkAdaptersForTemplate[r])("ngModelOptions",Jc(4,rge)),zi(1),xa("ngForOf",i.networkAdapters[i.iosTemplate.chassis][r])}}function oge(e,t){if(1&e&&(Ma(0,"div"),ka(1,ige,2,5,"mat-select",40),Ta()),2&e){var n=t.$implicit,r=Ua(3);zi(1),xa("ngIf",r.networkAdapters[r.iosTemplate.chassis][n])}}var age=function(){return[0,1,2,3,4,5,6,7]};function sge(e,t){1&e&&(Ma(0,"div"),ka(1,oge,2,1,"div",39),Ta()),2&e&&(zi(1),xa("ngForOf",Jc(1,age)))}function cge(e,t){if(1&e&&(Ma(0,"mat-option",38),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function lge(e,t){if(1&e){var n=Aa();Ma(0,"mat-select",41),Na("ngModelChange",function(e){ut(n);var t=Ua().$implicit;return Ua(3).networkAdaptersForTemplate[t]=e}),ka(1,cge,2,2,"mat-option",14),Ta()}if(2&e){var r=Ua().$implicit,i=Ua(3);Ya("placeholder","Slot ",r,""),xa("ngModel",i.networkAdaptersForTemplate[r])("ngModelOptions",Jc(4,rge)),zi(1),xa("ngForOf",i.networkAdaptersForPlatform[i.iosTemplate.platform][r])}}function uge(e,t){if(1&e&&(Ma(0,"div"),ka(1,lge,2,5,"mat-select",40),Ta()),2&e){var n=t.$implicit,r=Ua(3);zi(1),xa("ngIf",r.networkAdaptersForPlatform[r.iosTemplate.platform][n])}}function hge(e,t){1&e&&(Ma(0,"div"),ka(1,uge,2,1,"div",39),Ta()),2&e&&(zi(1),xa("ngForOf",Jc(1,age)))}function dge(e,t){if(1&e&&(Ma(0,"mat-option",38),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function fge(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"mat-select",42),Na("ngModelChange",function(e){return ut(n),Ua(2).iosTemplate.wic0=e}),ka(2,dge,2,2,"mat-option",14),Ta(),Ta()}if(2&e){var r=Ua(2);zi(1),xa("ngModel",r.iosTemplate.wic0)("ngModelOptions",Jc(3,rge)),zi(1),xa("ngForOf",r.networkModules[r.iosTemplate.platform][0])}}function pge(e,t){if(1&e&&(Ma(0,"mat-option",38),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function mge(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"mat-select",43),Na("ngModelChange",function(e){return ut(n),Ua(2).iosTemplate.wic1=e}),ka(2,pge,2,2,"mat-option",14),Ta(),Ta()}if(2&e){var r=Ua(2);zi(1),xa("ngModel",r.iosTemplate.wic1)("ngModelOptions",Jc(3,rge)),zi(1),xa("ngForOf",r.networkModules[r.iosTemplate.platform][1])}}function gge(e,t){if(1&e&&(Ma(0,"mat-option",38),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function vge(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"mat-select",44),Na("ngModelChange",function(e){return ut(n),Ua(2).iosTemplate.wic2=e}),ka(2,gge,2,2,"mat-option",14),Ta(),Ta()}if(2&e){var r=Ua(2);zi(1),xa("ngModel",r.iosTemplate.wic2)("ngModelOptions",Jc(3,rge)),zi(1),xa("ngForOf",r.networkModules[r.iosTemplate.platform][2])}}function bge(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General settings "),Ta(),Ta(),Ma(6,"form",7),Ma(7,"mat-form-field",8),Ma(8,"input",9),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",8),Ma(10,"input",10),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.default_name_format=e}),Ta(),Ta(),Ma(11,"mat-label"),Cs(12),Ta(),Ea(13,"br"),Ea(14,"br"),Ma(15,"mat-label"),Cs(16),Ta(),Ea(17,"br"),Ea(18,"br"),Ma(19,"mat-form-field",8),Ma(20,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.symbol=e}),Ta(),Ta(),Ma(21,"button",12),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(22,"Choose symbol"),Ta(),Ea(23,"br"),Ea(24,"br"),Ma(25,"mat-form-field",8),Ma(26,"mat-select",13),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.category=e}),ka(27,ege,2,2,"mat-option",14),Ta(),Ta(),Ma(28,"mat-form-field",8),Ma(29,"input",15),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.image=e}),Ta(),Ta(),Ma(30,"mat-form-field",8),Ma(31,"input",16),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.startup_config=e}),Ta(),Ta(),Ma(32,"mat-form-field",8),Ma(33,"input",17),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.private_config=e}),Ta(),Ta(),Ta(),Ma(34,"mat-form-field",18),Ma(35,"mat-select",19),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.console_type=e}),ka(36,tge,2,2,"mat-option",14),Ta(),Ta(),Ma(37,"mat-checkbox",20),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.console_auto_start=e}),Cs(38," Auto start console "),Ta(),Ta(),Ma(39,"mat-expansion-panel"),Ma(40,"mat-expansion-panel-header"),Ma(41,"mat-panel-title"),Cs(42," Memories and disks "),Ta(),Ta(),Ma(43,"form",7),Ma(44,"mat-form-field",8),Ma(45,"input",21),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.ram=e}),Ta(),Ma(46,"span",22),Cs(47,"MB"),Ta(),Ta(),Ma(48,"mat-form-field",8),Ma(49,"input",23),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.nvram=e}),Ta(),Ma(50,"span",22),Cs(51,"MB"),Ta(),Ta(),Ma(52,"mat-form-field",8),Ma(53,"input",24),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.iomem=e}),Ta(),Ta(),Ma(54,"mat-form-field",8),Ma(55,"input",25),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.disk0=e}),Ta(),Ta(),Ma(56,"mat-form-field",8),Ma(57,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.disk1=e}),Ta(),Ta(),Ta(),Ma(58,"mat-checkbox",20),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.auto_delete_disks=e}),Cs(59," Automatically delete NVRAM and disk files "),Ta(),Ta(),Ma(60,"mat-expansion-panel"),Ma(61,"mat-expansion-panel-header"),Ma(62,"mat-panel-title"),Cs(63," Slots "),Ta(),Ta(),Ma(64,"h6"),Cs(65,"Adapters"),Ta(),ka(66,sge,2,2,"div",27),ka(67,hge,2,2,"div",27),Ea(68,"br"),Ea(69,"br"),Ma(70,"h6"),Cs(71,"WICs"),Ta(),ka(72,fge,3,4,"div",27),ka(73,mge,3,4,"div",27),ka(74,vge,3,4,"div",27),Ta(),Ma(75,"mat-expansion-panel"),Ma(76,"mat-expansion-panel-header"),Ma(77,"mat-panel-title"),Cs(78," Advanced "),Ta(),Ta(),Ma(79,"form",7),Ma(80,"mat-form-field",8),Ma(81,"input",28),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.system_id=e}),Ta(),Ta(),Ma(82,"mat-form-field",8),Ma(83,"input",29),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.mac_addr=e}),Ta(),Ta(),Ma(84,"mat-form-field",8),Ma(85,"input",30),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.idlepc=e}),Ta(),Ta(),Ma(86,"mat-form-field",8),Ma(87,"input",31),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.idlemax=e}),Ta(),Ta(),Ma(88,"mat-form-field",8),Ma(89,"input",32),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.idlesleep=e}),Ta(),Ta(),Ma(90,"mat-form-field",8),Ma(91,"input",33),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.exec_area=e}),Ta(),Ta(),Ta(),Ma(92,"mat-checkbox",20),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.mmap=e}),Cs(93," Enable mmap support "),Ta(),Ea(94,"br"),Ea(95,"br"),Ma(96,"mat-checkbox",20),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.sparsemem=e}),Cs(97," Enable sparse memory supoport "),Ta(),Ta(),Ma(98,"mat-expansion-panel"),Ma(99,"mat-expansion-panel-header"),Ma(100,"mat-panel-title"),Cs(101," Usage "),Ta(),Ta(),Ma(102,"mat-form-field",8),Ma(103,"textarea",34),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.usage=e}),Ta(),Ta(),Ta(),Ta(),Ma(104,"div",35),Ma(105,"button",36),Na("click",function(){return ut(n),Ua().goBack()}),Cs(106,"Cancel"),Ta(),Ma(107,"button",37),Na("click",function(){return ut(n),Ua().onSave()}),Cs(108,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(6),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.iosTemplate.name),zi(2),xa("ngModel",r.iosTemplate.default_name_format),zi(2),xs("Platform - ",r.iosTemplate.platform,""),zi(4),xs("Chassis - ",r.iosTemplate.chassis,""),zi(4),xa("ngModel",r.iosTemplate.symbol),zi(6),xa("ngModelOptions",Jc(40,rge))("ngModel",r.iosTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModel",r.iosTemplate.image),zi(2),xa("ngModel",r.iosTemplate.startup_config),zi(2),xa("ngModelOptions",Jc(41,rge))("ngModel",r.iosTemplate.private_config),zi(2),xa("ngModel",r.iosTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModel",r.iosTemplate.console_auto_start),zi(6),xa("formGroup",r.memoryForm),zi(2),xa("ngModel",r.iosTemplate.ram),zi(4),xa("ngModel",r.iosTemplate.nvram),zi(4),xa("ngModel",r.iosTemplate.iomem),zi(2),xa("ngModel",r.iosTemplate.disk0),zi(2),xa("ngModel",r.iosTemplate.disk1),zi(1),xa("ngModel",r.iosTemplate.auto_delete_disks),zi(8),xa("ngIf",r.iosTemplate.chassis&&r.chassis[r.iosTemplate.platform]),zi(1),xa("ngIf",r.iosTemplate.platform&&!r.chassis[r.iosTemplate.platform]),zi(5),xa("ngIf",r.iosTemplate.wic0||""===r.iosTemplate.wic0),zi(1),xa("ngIf",r.iosTemplate.wic1||""===r.iosTemplate.wic1),zi(1),xa("ngIf",r.iosTemplate.wic2||""===r.iosTemplate.wic2),zi(5),xa("formGroup",r.advancedForm),zi(2),xa("ngModel",r.iosTemplate.system_id),zi(2),xa("ngModelOptions",Jc(42,rge))("ngModel",r.iosTemplate.mac_addr),zi(2),xa("ngModelOptions",Jc(43,rge))("ngModel",r.iosTemplate.idlepc),zi(2),xa("ngModel",r.iosTemplate.idlemax),zi(2),xa("ngModel",r.iosTemplate.idlesleep),zi(2),xa("ngModel",r.iosTemplate.exec_area),zi(1),xa("ngModel",r.iosTemplate.mmap),zi(4),xa("ngModel",r.iosTemplate.sparsemem),zi(7),xa("ngModel",r.iosTemplate.usage)}}function yge(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",45),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.iosTemplate.symbol)}}var _ge=function(e){return{shadowed:e}},wge=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=r,this.formBuilder=i,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 lf("",yd.required),defaultName:new lf("",yd.required),symbol:new lf("",yd.required),path:new lf("",yd.required),initialConfig:new lf("",yd.required)}),this.memoryForm=this.formBuilder.group({ram:new lf("",yd.required),nvram:new lf("",yd.required),iomemory:new lf("",yd.required),disk0:new lf("",yd.required),disk1:new lf("",yd.required)}),this.advancedForm=this.formBuilder.group({systemId:new lf("",yd.required),idlemax:new lf("",yd.required),idlesleep:new lf("",yd.required),execarea:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(hoe),Sa(e3),Sa(jf),Sa(Y8),Sa(uZ))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Dynamips IOS Router configuration"),Ta(),Ta(),Ta(),ka(5,bge,109,44,"div",4),Ta(),ka(6,yge,1,2,"app-symbols-menu",5)),2&e&&(xa("ngClass",el(3,_ge,t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.iosTemplate),zi(1),xa("ngIf",t.isSymbolSelectionOpened&&t.iosTemplate))},directives:[eh,ih,Yde,qde,Wde,Xde,bf,Bd,Sf,H3,Q3,fd,Fd,Of,I3,l2,v5,vf,nh,P5,_f,L3,UJ,dfe],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 kge(e,t){if(1&e&&(Ma(0,"mat-option",36),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.filename),zi(1),xs(" ",n.filename," ")}}function Cge(e,t){if(1&e&&(Ma(0,"mat-option",36),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Sge(e,t){if(1&e&&(Ma(0,"mat-option",36),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function xge(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",17),Ma(1,"mat-select",37),Na("selectionChange",function(e){return ut(n),Ua(2).onChassisChosen(e)}),ka(2,Sge,2,2,"mat-option",19),Ta(),Ta()}if(2&e){var r=Ua(2);zi(2),xa("ngForOf",r.chassis[r.iosNameForm.get("platform").value])}}function Oge(e,t){if(1&e){var n=Aa();Ma(0,"mat-checkbox",38),Na("ngModelChange",function(e){return ut(n),Ua(2).isEtherSwitchRouter=e}),Cs(1," This is an EtherSwitch router "),Ta()}2&e&&xa("ngModel",Ua(2).isEtherSwitchRouter)}function Mge(e,t){if(1&e&&(Ma(0,"mat-option",36),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var Tge=function(){return{standalone:!0}};function Ege(e,t){if(1&e){var n=Aa();Ma(0,"mat-select",41),Na("ngModelChange",function(e){ut(n);var t=Ua().$implicit;return Ua(3).networkAdaptersForTemplate[t]=e}),ka(1,Mge,2,2,"mat-option",19),Ta()}if(2&e){var r=Ua().$implicit,i=Ua(3);Ya("placeholder","Slot ",r,""),xa("ngModel",i.networkAdaptersForTemplate[r])("ngModelOptions",Jc(4,Tge)),zi(1),xa("ngForOf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][r])}}function Pge(e,t){if(1&e&&(Ma(0,"div"),ka(1,Ege,2,5,"mat-select",40),Ta()),2&e){var n=t.$implicit,r=Ua(3);zi(1),xa("ngIf",r.networkAdaptersForPlatform[r.iosNameForm.get("platform").value]&&r.networkAdaptersForPlatform[r.iosNameForm.get("platform").value][n])}}var jge=function(){return[0,1,2,3,4,5,6,7]};function Ige(e,t){1&e&&(Ma(0,"div"),ka(1,Pge,2,1,"div",39),Ta()),2&e&&(zi(1),xa("ngForOf",Jc(1,jge)))}function Age(e,t){if(1&e&&(Ma(0,"mat-option",36),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Dge(e,t){if(1&e){var n=Aa();Ma(0,"mat-select",41),Na("ngModelChange",function(e){ut(n);var t=Ua().$implicit;return Ua(3).networkModulesForTemplate[t]=e}),ka(1,Age,2,2,"mat-option",19),Ta()}if(2&e){var r=Ua().$implicit,i=Ua(3);Ya("placeholder","WIC ",r,""),xa("ngModel",i.networkModulesForTemplate[r])("ngModelOptions",Jc(4,Tge)),zi(1),xa("ngForOf",i.networkModules[i.iosNameForm.get("platform").value][r])}}function Rge(e,t){if(1&e&&(Ma(0,"div"),ka(1,Dge,2,5,"mat-select",40),Ta()),2&e){var n=t.$implicit,r=Ua(3);zi(1),xa("ngIf",r.networkModules[r.iosNameForm.get("platform").value]&&r.networkModules[r.iosNameForm.get("platform").value][n])}}var Lge=function(){return[0,1,2,3]};function Nge(e,t){1&e&&(Ma(0,"div"),ka(1,Rge,2,1,"div",39),Ta()),2&e&&(zi(1),xa("ngForOf",Jc(1,Lge)))}function Fge(e,t){if(1&e){var n=Aa();Ma(0,"div",5),Ma(1,"div",6),Ma(2,"mat-vertical-stepper",7),Ma(3,"mat-step",8),Ma(4,"mat-radio-group",9),Ma(5,"mat-radio-button",10),Na("click",function(){return ut(n),Ua().setServerType("local")}),Cs(6,"Run this IOS router locally"),Ta(),Ma(7,"mat-radio-button",11),Na("click",function(){return ut(n),Ua().setServerType("gns3 vm")}),Cs(8,"Run this IOS router on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(9,"mat-step",12),Ma(10,"input",13,14),Na("change",function(e){return ut(n),Ua().addImage(e)}),Ta(),Ma(12,"button",15),Na("click",function(){return ut(n),Ca(11).click()}),Cs(13,"Click to add image"),Ta(),Cs(14," or create from existing one "),Ma(15,"form",16),Ma(16,"mat-form-field",17),Ma(17,"mat-select",18),Na("selectionChange",function(e){return ut(n),Ua().onImageChosen(e)}),ka(18,kge,2,2,"mat-option",19),Ta(),Ta(),Ta(),Ta(),Ma(19,"mat-step",20),Ma(20,"form",16),Ma(21,"mat-form-field",17),Ea(22,"input",21),Ta(),Ma(23,"mat-form-field",17),Ma(24,"mat-select",22),Na("selectionChange",function(e){return ut(n),Ua().onPlatformChosen(e)}),ka(25,Cge,2,2,"mat-option",19),Ta(),Ta(),ka(26,xge,3,1,"mat-form-field",23),Ta(),ka(27,Oge,2,1,"mat-checkbox",24),Ta(),Ma(28,"mat-step",25),Ma(29,"form",16),Ma(30,"mat-form-field",17),Ea(31,"input",26),Ma(32,"span",27),Cs(33,"MB"),Ta(),Ta(),Ma(34,"mat-label"),Ma(35,"a",28),Cs(36,"Check for minimum and maximum RAM requirement"),Ta(),Ta(),Ta(),Ta(),Ma(37,"mat-step",29),ka(38,Ige,2,2,"div",30),Ta(),Ma(39,"mat-step",31),ka(40,Nge,2,2,"div",30),Ta(),Ma(41,"mat-step",32),Ma(42,"mat-form-field",17),Ma(43,"input",33),Na("ngModelChange",function(e){return ut(n),Ua().iosTemplate.idlepc=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(44,"div",34),Ma(45,"button",35),Na("click",function(){return ut(n),Ua().goBack()}),Cs(46,"Cancel"),Ta(),Ma(47,"button",15),Na("click",function(){return ut(n),Ua().addTemplate()}),Cs(48,"Add template"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("linear",!0),zi(1),xa("completed",r.isGns3VmChosen||r.isLocalComputerChosen),zi(4),xa("disabled",!r.isGns3VmAvailable),zi(2),xa("completed",r.iosImageForm.get("imageName").value),zi(1),xa("uploader",r.uploader),zi(5),xa("formGroup",r.iosImageForm),zi(3),xa("ngForOf",r.iosImages),zi(1),xa("completed",r.iosNameForm.get("templateName").value&&r.iosNameForm.get("platform").value&&r.iosNameForm.get("chassis").value),zi(1),xa("formGroup",r.iosNameForm),zi(5),xa("ngForOf",r.platforms),zi(1),xa("ngIf",r.chassis[r.iosNameForm.get("platform").value]),zi(1),xa("ngIf",r.platformsWithEtherSwitchRouterOption[r.iosTemplate.platform]),zi(1),xa("completed",r.iosMemoryForm.get("memory").value),zi(1),xa("formGroup",r.iosMemoryForm),zi(6),Xa("href",r.ciscoUrl,Br),zi(3),xa("ngIf",r.selectedPlatform),zi(2),xa("ngIf",r.iosNameForm.get("platform").value),zi(3),xa("ngModel",r.iosTemplate.idlepc)}}var Bge=function(){function e(e,t,n,r,i,o,a,s,c){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=r,this.formBuilder=i,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 uoe,this.iosImageForm=this.formBuilder.group({imageName:new lf(null,[yd.required])}),this.iosNameForm=this.formBuilder.group({templateName:new lf(null,[yd.required]),platform:new lf(null,[yd.required]),chassis:new lf(null,[yd.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new lf(null,[yd.required])})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new mY({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,r,i){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,r,i){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 r=this.uploader.queue[0];r.options.disableMultipart=!0,this.uploader.uploadItem(r)},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(eie.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)(Sa(BK),Sa(ZZ),Sa(hoe),Sa(e3),Sa(jf),Sa(uZ),Sa(Pfe),Sa(Y8),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New IOS router template"),Ta(),Ta(),Ta(),ka(5,Fge,49,18,"div",4),Ta()),2&e&&(zi(5),xa("ngIf",t.iosTemplate))},directives:[ih,dae,sae,x6,E6,gY,l2,bf,Bd,Sf,H3,v5,Fd,Of,nh,Q3,fd,_f,L3,I3,vf,UJ,P5],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}(),zge=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function Hge(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences")}function Vge(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add VMware template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/vmware/addtemplate")}function Uge(e,t){1&e&&Ea(0,"app-empty-templates-list")}function qge(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function Wge(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,qge,13,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.vmwareTemplates)}}function Gge(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,Wge,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var Xge=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)(Sa(BK),Sa(ZZ),Sa(zge))},e.\u0275cmp=be({type:e,selectors:[["app-vmware-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"VMware VM templates"),Ta(),ka(5,Hge,2,1,"button",4),ka(6,Vge,2,1,"button",5),Ta(),Ta(),ka(7,Uge,1,0,"app-empty-templates-list",6),ka(8,Gge,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.vmwareTemplates.length),zi(1),xa("ngIf",t.vmwareTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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}(),Yge=["customAdaptersConfigurator"];function Kge(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function Qge(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Zge(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function $ge(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var Jge=function(){return{standalone:!0}};function eve(e,t){if(1&e){var n=Aa();Ma(0,"div",8),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General settings "),Ta(),Ta(),Ma(6,"form",9),Ma(7,"mat-form-field",10),Ma(8,"input",11),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",10),Ma(10,"input",12),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.default_name_format=e}),Ta(),Ta(),Ma(11,"mat-form-field",10),Ma(12,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.symbol=e}),Ta(),Ta(),Ma(13,"button",14),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(14,"Choose symbol"),Ta(),Ea(15,"br"),Ea(16,"br"),Ma(17,"mat-form-field",10),Ma(18,"mat-select",15),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.category=e}),ka(19,Kge,2,2,"mat-option",16),Ta(),Ta(),Ma(20,"mat-form-field",17),Ma(21,"mat-select",18),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.console_type=e}),ka(22,Qge,2,2,"mat-option",16),Ta(),Ta(),Ma(23,"mat-checkbox",19),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.console_auto_start=e}),Cs(24," Auto start console "),Ta(),Ma(25,"mat-form-field",10),Ma(26,"mat-select",20),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.on_close=e}),ka(27,Zge,2,2,"mat-option",16),Ta(),Ta(),Ma(28,"mat-checkbox",19),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.headless=e}),Cs(29," Start VM in headless mode "),Ta(),Ea(30,"br"),Ea(31,"br"),Ma(32,"mat-checkbox",19),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.linked_clone=e}),Cs(33," Use as a linked base VM (experimental) "),Ta(),Ta(),Ta(),Ma(34,"mat-expansion-panel"),Ma(35,"mat-expansion-panel-header"),Ma(36,"mat-panel-title"),Cs(37," Network "),Ta(),Ta(),Ma(38,"mat-form-field",10),Ma(39,"input",21),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.adapters=e}),Ta(),Ta(),Ma(40,"mat-form-field",10),Ma(41,"input",22),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.first_port_name=e}),Ta(),Ta(),Ma(42,"mat-form-field",10),Ma(43,"input",23),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.port_name_format=e}),Ta(),Ta(),Ma(44,"mat-form-field",10),Ma(45,"input",24),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.port_segment_size=e}),Ta(),Ta(),Ma(46,"mat-form-field",10),Ma(47,"mat-select",25),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.adapter_type=e}),ka(48,$ge,2,2,"mat-option",16),Ta(),Ta(),Ma(49,"button",26),Na("click",function(){return ut(n),Ua().setCustomAdaptersConfiguratorState(!0)}),Cs(50,"Configure custom adapters"),Ta(),Ea(51,"br"),Ma(52,"mat-checkbox",27),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.use_any_adapter=e}),Cs(53," Allow GNS3 to override non custom VMware adapter "),Ta(),Ta(),Ma(54,"mat-expansion-panel"),Ma(55,"mat-expansion-panel-header"),Ma(56,"mat-panel-title"),Cs(57," Usage "),Ta(),Ta(),Ma(58,"mat-form-field",10),Ma(59,"textarea",28),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.usage=e}),Ta(),Ta(),Ta(),Ta(),Ma(60,"div",29),Ma(61,"button",30),Na("click",function(){return ut(n),Ua().goBack()}),Cs(62,"Cancel"),Ta(),Ma(63,"button",31),Na("click",function(){return ut(n),Ua().onSave()}),Cs(64,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(6),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.vmwareTemplate.name),zi(2),xa("ngModel",r.vmwareTemplate.default_name_format),zi(2),xa("ngModel",r.vmwareTemplate.symbol),zi(6),xa("ngModelOptions",Jc(27,Jge))("ngModel",r.vmwareTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModelOptions",Jc(28,Jge))("ngModel",r.vmwareTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModelOptions",Jc(29,Jge))("ngModel",r.vmwareTemplate.console_auto_start),zi(3),xa("ngModelOptions",Jc(30,Jge))("ngModel",r.vmwareTemplate.on_close),zi(1),xa("ngForOf",r.onCloseOptions),zi(1),xa("ngModelOptions",Jc(31,Jge))("ngModel",r.vmwareTemplate.headless),zi(4),xa("ngModelOptions",Jc(32,Jge))("ngModel",r.vmwareTemplate.linked_clone),zi(7),xa("ngModel",r.vmwareTemplate.adapters),zi(2),xa("ngModel",r.vmwareTemplate.first_port_name),zi(2),xa("ngModel",r.vmwareTemplate.port_name_format),zi(2),xa("ngModel",r.vmwareTemplate.port_segment_size),zi(2),xa("ngModel",r.vmwareTemplate.adapter_type),zi(1),xa("ngForOf",r.networkTypes),zi(4),xa("ngModel",r.vmwareTemplate.use_any_adapter),zi(7),xa("ngModel",r.vmwareTemplate.usage)}}function tve(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",33),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.vmwareTemplate.symbol)}}var nve=function(e){return{shadowed:e}},rve=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.vmwareService=n,this.toasterService=r,this.formBuilder=i,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 lf("",yd.required),defaultName:new lf("",yd.required),symbol:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(zge),Sa(e3),Sa(jf),Sa(N8),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-vmware-template-details"]],viewQuery:function(e,t){var n;1&e&&Cl(Yge,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"VMware VM configuration"),Ta(),Ta(),Ta(),ka(5,eve,65,33,"div",4),Ta(),Ma(6,"app-custom-adapters",5,6),Na("closeConfiguratorEmitter",function(e){return t.setCustomAdaptersConfiguratorState(e)})("saveConfigurationEmitter",function(e){return t.saveCustomAdapters(e)}),Ta(),ka(8,tve,1,2,"app-symbols-menu",7)),2&e&&(xa("ngClass",el(6,nve,t.isSymbolSelectionOpened||t.isConfiguratorOpened)),zi(5),xa("ngIf",t.vmwareTemplate),zi(1),xa("hidden",!(t.isConfiguratorOpened&&t.vmwareTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),zi(2),xa("ngIf",t.isSymbolSelectionOpened&&t.vmwareTemplate))},directives:[eh,ih,hfe,Yde,qde,Wde,Xde,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2,v5,vf,nh,P5,_f,UJ,dfe],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 ive(e,t){if(1&e&&(Ma(0,"mat-option",15),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n.vmname," ")}}var ove=function(){return{standalone:!0}};function ave(e,t){if(1&e){var n=Aa();Ma(0,"div",5),Ma(1,"mat-card",6),Ma(2,"form",7),Ma(3,"mat-form-field",8),Ma(4,"mat-select",9),Na("ngModelChange",function(e){return ut(n),Ua().selectedVM=e}),ka(5,ive,2,2,"mat-option",10),Ta(),Ta(),Ea(6,"br"),Ma(7,"mat-checkbox",11),Na("ngModelChange",function(e){return ut(n),Ua().vmwareTemplate.linked_clone=e}),Cs(8," Use as a linked base VM (experimental) "),Ta(),Ta(),Ta(),Ma(9,"div",12),Ma(10,"button",13),Na("click",function(){return ut(n),Ua().goBack()}),Cs(11,"Cancel"),Ta(),Ma(12,"button",14),Na("click",function(){return ut(n),Ua().addTemplate()}),Cs(13,"Add template"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(2),xa("formGroup",r.templateNameForm),zi(2),xa("ngModel",r.selectedVM),zi(1),xa("ngForOf",r.virtualMachines),zi(2),xa("ngModelOptions",Jc(5,ove))("ngModel",r.vmwareTemplate.linked_clone)}}var sve=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.vmwareService=n,this.toasterService=r,this.templateMocksService=i,this.router=o,this.formBuilder=a,this.templateNameForm=this.formBuilder.group({templateName:new lf(null,[yd.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(eie.v4)(),this.vmwareService.addTemplate(this.server,this.vmwareTemplate).subscribe(function(){e.goBack()}))},e.\u0275fac=function(t){return new(t||e)(Sa(BK),Sa(ZZ),Sa(zge),Sa(e3),Sa(Pfe),Sa(uZ),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New VMware VM template"),Ta(),Ta(),Ta(),ka(5,ave,14,6,"div",4),Ta()),2&e&&(zi(5),xa("ngIf",t.vmwareTemplate))},directives:[ih,s3,bf,Bd,Sf,H3,v5,Fd,Of,nh,P5,vf,l2,UJ],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 cve(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences")}function lve(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add Docker container template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/docker/addtemplate")}function uve(e,t){1&e&&Ea(0,"app-empty-templates-list")}function hve(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ma(13,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).copyTemplate(e)}),Ma(14,"mat-icon"),Cs(15,"content_copy"),Ta(),Ma(16,"span"),Cs(17,"Copy"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function dve(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,hve,18,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.dockerTemplates)}}function fve(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,dve,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var pve=function(){function e(e,t,n,r){this.route=e,this.serverService=t,this.dockerService=n,this.router=r,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)(Sa(BK),Sa(ZZ),Sa(loe),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-docker-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Docker container templates"),Ta(),ka(5,cve,2,1,"button",4),ka(6,lve,2,1,"button",5),Ta(),Ta(),ka(7,uve,1,0,"app-empty-templates-list",6),ka(8,fve,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.dockerTemplates.length),zi(1),xa("ngIf",t.dockerTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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 mve(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n.image," ")}}var gve=function(){return{standalone:!0}};function vve(e,t){if(1&e){var n=Aa();Ma(0,"mat-select",31),Na("ngModelChange",function(e){return ut(n),Ua().selectedImage=e}),ka(1,mve,2,2,"mat-option",25),Ta()}if(2&e){var r=Ua();xa("ngModelOptions",Jc(3,gve))("ngModel",r.selectedImage),zi(1),xa("ngForOf",r.dockerImages)}}function bve(e,t){1&e&&(Ma(0,"div"),Ma(1,"mat-form-field",17),Ea(2,"input",33),Ta(),Ta())}function yve(e,t){if(1&e&&(Ma(0,"mat-option",32),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var _ve=function(){function e(e,t,n,r,i,o,a,s,c){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=r,this.router=i,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 coe,this.virtualMachineForm=this.formBuilder.group({filename:new lf(null,yd.required)}),this.containerNameForm=this.formBuilder.group({templateName:new lf(null,yd.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new lf("1",yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(loe),Sa(e3),Sa(uZ),Sa(jf),Sa(Pfe),Sa($8),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New Docker container template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"div",5),Ma(7,"mat-vertical-stepper",6),Ma(8,"mat-step",7),Ma(9,"mat-radio-group",8),Ma(10,"mat-radio-button",9),Na("click",function(){return t.setServerType("local")}),Cs(11,"Run this Docker container locally"),Ta(),Ma(12,"mat-radio-button",10),Na("click",function(){return t.setServerType("gns3 vm")}),Cs(13,"Run this Docker container on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(14,"mat-step",11),Ma(15,"form",12),Ma(16,"mat-radio-group",8),Ma(17,"mat-radio-button",9),Na("click",function(){return t.setDiskImage("existingImage")}),Cs(18,"Existing image"),Ta(),Ma(19,"mat-radio-button",13),Na("click",function(){return t.setDiskImage("newImage")}),Cs(20,"New image"),Ta(),Ta(),ka(21,vve,2,4,"mat-select",14),ka(22,bve,3,0,"div",15),Ta(),Ta(),Ma(23,"mat-step",16),Ma(24,"form",12),Ma(25,"mat-form-field",17),Ea(26,"input",18),Ta(),Ta(),Ta(),Ma(27,"mat-step",19),Ma(28,"form",12),Ma(29,"mat-form-field",17),Ea(30,"input",20),Ta(),Ta(),Ta(),Ma(31,"mat-step",21),Ma(32,"mat-form-field",17),Ma(33,"input",22),Na("ngModelChange",function(e){return t.dockerTemplate.start_command=e}),Ta(),Ta(),Ta(),Ma(34,"mat-step",23),Ma(35,"mat-select",24),Na("ngModelChange",function(e){return t.dockerTemplate.console_type=e}),ka(36,yve,2,2,"mat-option",25),Ta(),Ta(),Ma(37,"mat-step",26),Ma(38,"mat-form-field",17),Ma(39,"textarea",27),Na("ngModelChange",function(e){return t.dockerTemplate.environment=e}),Ta(),Ta(),Ta(),Ta(),Ta(),Ma(40,"div",28),Ma(41,"button",29),Na("click",function(){return t.goBack()}),Cs(42,"Cancel"),Ta(),Ma(43,"button",30),Na("click",function(){return t.addTemplate()}),Cs(44,"Add template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("linear",!0),zi(1),xa("completed",t.isGns3VmChosen||t.isLocalComputerChosen),zi(4),xa("disabled",!t.isGns3VmAvailable),zi(2),xa("completed",t.selectedImage||t.virtualMachineForm.get("filename").value),zi(1),xa("formGroup",t.virtualMachineForm),zi(6),xa("ngIf",!t.newImageSelected),zi(1),xa("ngIf",t.newImageSelected),zi(1),xa("completed",t.containerNameForm.get("templateName").value),zi(1),xa("formGroup",t.containerNameForm),zi(3),xa("completed",t.networkAdaptersForm.get("adapters").value),zi(1),xa("formGroup",t.networkAdaptersForm),zi(3),xa("completed",t.dockerTemplate.start_command),zi(2),xa("ngModel",t.dockerTemplate.start_command),zi(1),xa("completed",t.dockerTemplate.console_type),zi(1),xa("ngModelOptions",Jc(18,gve))("ngModel",t.dockerTemplate.console_type),zi(1),xa("ngForOf",t.consoleTypes),zi(3),xa("ngModel",t.dockerTemplate.environment))},directives:[dae,sae,x6,E6,bf,Bd,Sf,ih,H3,Q3,fd,Fd,Of,_f,vf,v5,nh,l2,UJ],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 wve(e,t){if(1&e&&(Ma(0,"mat-option",27),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function kve(e,t){if(1&e&&(Ma(0,"mat-option",27),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Cve(e,t){if(1&e&&(Ma(0,"mat-option",27),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}var Sve=function(){return{standalone:!0}};function xve(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General settings "),Ta(),Ta(),Ma(6,"form",7),Ma(7,"mat-form-field",8),Ma(8,"input",9),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",8),Ma(10,"input",10),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.default_name_format=e}),Ta(),Ta(),Ma(11,"mat-form-field",8),Ma(12,"mat-select",11),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.category=e}),ka(13,wve,2,2,"mat-option",12),Ta(),Ta(),Ma(14,"mat-form-field",8),Ma(15,"input",13),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.symbol=e}),Ta(),Ta(),Ma(16,"button",14),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(17,"Choose symbol"),Ta(),Ea(18,"br"),Ea(19,"br"),Ma(20,"mat-form-field",8),Ma(21,"input",15),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.start_command=e}),Ta(),Ta(),Ma(22,"mat-form-field",8),Ma(23,"input",16),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.adapters=e}),Ta(),Ta(),Ma(24,"mat-form-field",17),Ma(25,"mat-select",18),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.console_type=e}),ka(26,kve,2,2,"mat-option",12),Ta(),Ta(),Ma(27,"mat-checkbox",19),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.console_auto_start=e}),Cs(28," Auto start console "),Ta(),Ma(29,"mat-form-field",17),Ma(30,"mat-select",20),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.console_resolution=e}),ka(31,Cve,2,2,"mat-option",12),Ta(),Ta(),Ma(32,"mat-form-field",8),Ma(33,"input",21),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.console_http_port=e}),Ta(),Ta(),Ma(34,"mat-form-field",8),Ma(35,"input",22),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.console_http_path=e}),Ta(),Ta(),Ta(),Ma(36,"h6"),Cs(37,"Environment"),Ta(),Ma(38,"mat-form-field",8),Ma(39,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.environment=e}),Ta(),Ta(),Ta(),Ma(40,"mat-expansion-panel"),Ma(41,"mat-expansion-panel-header"),Ma(42,"mat-panel-title"),Cs(43," Advanced "),Ta(),Ta(),Ma(44,"h6"),Cs(45,"Extra hosts"),Ta(),Ma(46,"mat-form-field",8),Ma(47,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.extra_hosts=e}),Ta(),Ta(),Ta(),Ma(48,"mat-expansion-panel"),Ma(49,"mat-expansion-panel-header"),Ma(50,"mat-panel-title"),Cs(51," Usage "),Ta(),Ta(),Ma(52,"mat-form-field",8),Ma(53,"textarea",23),Na("ngModelChange",function(e){return ut(n),Ua().dockerTemplate.usage=e}),Ta(),Ta(),Ta(),Ta(),Ma(54,"div",24),Ma(55,"button",25),Na("click",function(){return ut(n),Ua().goBack()}),Cs(56,"Cancel"),Ta(),Ma(57,"button",26),Na("click",function(){return ut(n),Ua().onSave()}),Cs(58,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(6),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.dockerTemplate.name),zi(2),xa("ngModel",r.dockerTemplate.default_name_format),zi(2),xa("ngModelOptions",Jc(25,Sve))("ngModel",r.dockerTemplate.category),zi(1),xa("ngForOf",r.categories),zi(2),xa("ngModel",r.dockerTemplate.symbol),zi(6),xa("ngModelOptions",Jc(26,Sve))("ngModel",r.dockerTemplate.start_command),zi(2),xa("ngModel",r.dockerTemplate.adapters),zi(2),xa("ngModelOptions",Jc(27,Sve))("ngModel",r.dockerTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModelOptions",Jc(28,Sve))("ngModel",r.dockerTemplate.console_auto_start),zi(3),xa("ngModelOptions",Jc(29,Sve))("ngModel",r.dockerTemplate.console_resolution),zi(1),xa("ngForOf",r.consoleResolutions),zi(2),xa("ngModelOptions",Jc(30,Sve))("ngModel",r.dockerTemplate.console_http_port),zi(2),xa("ngModelOptions",Jc(31,Sve))("ngModel",r.dockerTemplate.console_http_path),zi(4),xa("ngModel",r.dockerTemplate.environment),zi(8),xa("ngModel",r.dockerTemplate.extra_hosts),zi(6),xa("ngModel",r.dockerTemplate.usage)}}function Ove(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",28),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.dockerTemplate.symbol)}}var Mve=function(e){return{shadowed:e}},Tve=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=r,this.configurationService=i,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 lf("",yd.required),defaultName:new lf("",yd.required),adapter:new lf("",yd.required),symbol:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(loe),Sa(e3),Sa($8),Sa(jf),Sa(uZ))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Docker image configuration"),Ta(),Ta(),Ta(),ka(5,xve,59,32,"div",4),Ta(),ka(6,Ove,1,2,"app-symbols-menu",5)),2&e&&(xa("ngClass",el(3,Mve,t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.dockerTemplate),zi(1),xa("ngIf",t.isSymbolSelectionOpened&&t.dockerTemplate))},directives:[eh,ih,Yde,qde,Wde,Xde,bf,Bd,Sf,H3,fd,Q3,Fd,Of,v5,vf,nh,l2,_f,P5,UJ,dfe],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 Eve(e,t){1&e&&(Ma(0,"button",10),Cs(1,"Back"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences")}function Pve(e,t){1&e&&(Ma(0,"button",11),Cs(1,"Add IOU device template"),Ta()),2&e&&Ya("routerLink","/server/",Ua().server.id,"/preferences/iou/addtemplate")}function jve(e,t){1&e&&Ea(0,"app-empty-templates-list")}function Ive(e,t){if(1&e){var n=Aa();Ma(0,"div",15),Ma(1,"mat-list-item",16),Cs(2),Ta(),Ma(3,"button",17),Ma(4,"mat-icon"),Cs(5,"more_vert"),Ta(),Ta(),Ma(6,"mat-menu",null,18),Ma(8,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).deleteTemplate(e)}),Ma(9,"mat-icon"),Cs(10,"delete"),Ta(),Ma(11,"span"),Cs(12,"Delete"),Ta(),Ta(),Ma(13,"button",19),Na("click",function(){ut(n);var e=t.$implicit;return Ua(3).copyTemplate(e)}),Ma(14,"mat-icon"),Cs(15,"content_copy"),Ta(),Ma(16,"span"),Cs(17,"Copy"),Ta(),Ta(),Ta(),Ta()}if(2&e){var r=t.$implicit,i=Ca(7);zi(1),Xa("routerLink",r.template_id),zi(1),Ss(r.name),zi(1),xa("matMenuTriggerFor",i)}}function Ave(e,t){if(1&e&&(Ma(0,"mat-nav-list"),ka(1,Ive,18,3,"div",14),Ta()),2&e){var n=Ua(2);zi(1),xa("ngForOf",n.iouTemplates)}}function Dve(e,t){if(1&e&&(Ma(0,"div",12),Ma(1,"div",13),ka(2,Ave,2,1,"mat-nav-list",6),Ta(),Ta()),2&e){var n=Ua();zi(2),xa("ngIf",n.server)}}var Rve=function(){function e(e,t,n,r){this.route=e,this.serverService=t,this.iouService=n,this.router=r,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)(Sa(BK),Sa(ZZ),Sa(doe),Sa(uZ))},e.\u0275cmp=be({type:e,selectors:[["app-iou-templates"]],viewQuery:function(e,t){var n;1&e&&Cl(tfe,1),2&e&&kl(n=xl())&&(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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"IOU device templates"),Ta(),ka(5,Eve,2,1,"button",4),ka(6,Pve,2,1,"button",5),Ta(),Ta(),ka(7,jve,1,0,"app-empty-templates-list",6),ka(8,Dve,3,1,"div",7),Ta(),Ma(9,"app-delete-template",8,9),Na("deleteEvent",function(){return t.onDeleteEvent()}),Ta()),2&e&&(zi(5),xa("ngIf",t.server),zi(1),xa("ngIf",t.server),zi(1),xa("ngIf",!t.iouTemplates.length),zi(1),xa("ngIf",t.iouTemplates.length),zi(1),xa("server",t.server))},directives:[ih,tfe,l2,dZ,nfe,h7,nh,g7,U0,T2,B0,R0],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 Lve(e,t){if(1&e&&(Ma(0,"mat-option",24),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function Nve(e,t){if(1&e&&(Ma(0,"mat-option",24),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.path),zi(1),xs(" ",n.path," ")}}var Fve=function(){return{standalone:!0}};function Bve(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",13),Ma(1,"mat-select",25),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.path=e}),ka(2,Nve,2,2,"mat-option",18),Ta(),Ta()}if(2&e){var r=Ua();zi(1),xa("ngModel",r.iouTemplate.path)("ngModelOptions",Jc(3,Fve)),zi(1),xa("ngForOf",r.iouImages)}}function zve(e,t){if(1&e){var n=Aa();Ma(0,"div"),Ma(1,"input",26,27),Na("change",function(e){return ut(n),Ua().uploadImageFile(e)}),Ta(),Ma(3,"button",28),Na("click",function(){return ut(n),Ca(2).click()}),Cs(4,"Browse"),Ta(),Ma(5,"mat-form-field",29),Ea(6,"input",30),Ta(),Ta()}if(2&e){var r=Ua();zi(1),xa("uploader",r.uploader)}}var Hve=function(){function e(e,t,n,r,i,o,a,s){this.route=e,this.serverService=t,this.iouService=n,this.toasterService=r,this.router=i,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 foe,this.templateNameForm=this.formBuilder.group({templateName:new lf(null,yd.required)}),this.imageForm=this.formBuilder.group({imageName:new lf("",yd.required)})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new mY({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,r,i){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,r,i){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 r=this.uploader.queue[0];r.options.disableMultipart=!0,this.uploader.uploadItem(r)},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(eie.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)(Sa(BK),Sa(ZZ),Sa(doe),Sa(e3),Sa(uZ),Sa(jf),Sa(Pfe),Sa(moe))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"New IOU device template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"div",5),Ma(7,"mat-vertical-stepper",6),Ma(8,"mat-step",7),Ma(9,"mat-radio-group",8),Ma(10,"mat-radio-button",9),Na("click",function(){return t.setServerType("local")}),Cs(11,"Run this IOU device locally"),Ta(),Ma(12,"mat-radio-button",10),Na("click",function(){return t.setServerType("gns3 vm")}),Cs(13,"Run this IOU device on the GNS3 VM"),Ta(),Ta(),Ta(),Ma(14,"mat-step",11),Ma(15,"form",12),Ma(16,"mat-form-field",13),Ea(17,"input",14),Ta(),Ta(),Ta(),Ma(18,"mat-step",15),Ma(19,"form",12),Ma(20,"mat-radio-group",8),Ma(21,"mat-radio-button",9),Na("click",function(){return t.setDiskImage("existingImage")}),Cs(22,"Existing image"),Ta(),Ma(23,"mat-radio-button",16),Na("click",function(){return t.setDiskImage("newImage")}),Cs(24,"New image"),Ta(),Ta(),Ma(25,"mat-form-field",13),Ma(26,"mat-select",17),Na("ngModelChange",function(e){return t.selectedType=e}),ka(27,Lve,2,2,"mat-option",18),Ta(),Ta(),ka(28,Bve,3,4,"mat-form-field",19),ka(29,zve,7,1,"div",20),Ta(),Ta(),Ta(),Ta(),Ma(30,"div",21),Ma(31,"button",22),Na("click",function(){return t.goBack()}),Cs(32,"Cancel"),Ta(),Ma(33,"button",23),Na("click",function(){return t.addTemplate()}),Cs(34,"Add template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("linear",!0),zi(1),xa("completed",t.isGns3VmChosen||t.isLocalComputerChosen),zi(4),xa("disabled",!t.isGns3VmAvailable),zi(2),xa("completed",t.templateNameForm.get("templateName").value),zi(1),xa("formGroup",t.templateNameForm),zi(4),xa("formGroup",t.imageForm),zi(7),xa("ngModel",t.selectedType)("ngModelOptions",Jc(11,Fve)),zi(1),xa("ngForOf",t.types),zi(1),xa("ngIf",!t.newImageSelected),zi(1),xa("ngIf",t.newImageSelected))},directives:[dae,sae,x6,E6,bf,Bd,Sf,H3,Q3,fd,Fd,Of,v5,vf,nh,ih,l2,UJ,gY],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 Vve(e,t){if(1&e&&(Ma(0,"mat-option",31),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n[1]),zi(1),xs(" ",n[0]," ")}}function Uve(e,t){if(1&e&&(Ma(0,"mat-option",31),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n),zi(1),xs(" ",n," ")}}function qve(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",2),Ma(1,"input",32),Na("ngModelChange",function(e){return ut(n),Ua(2).iouTemplate.ram=e}),Ta(),Ma(2,"span",33),Cs(3,"MB"),Ta(),Ta()}if(2&e){var r=Ua(2);zi(1),xa("ngModel",r.iouTemplate.ram)}}function Wve(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",2),Ma(1,"input",34),Na("ngModelChange",function(e){return ut(n),Ua(2).iouTemplate.nvram=e}),Ta(),Ma(2,"span",33),Cs(3,"MB"),Ta(),Ta()}if(2&e){var r=Ua(2);zi(1),xa("ngModel",r.iouTemplate.nvram)}}var Gve=function(){return{standalone:!0}};function Xve(e,t){if(1&e){var n=Aa();Ma(0,"div",6),Ma(1,"mat-accordion"),Ma(2,"mat-expansion-panel"),Ma(3,"mat-expansion-panel-header"),Ma(4,"mat-panel-title"),Cs(5," General settings "),Ta(),Ta(),Ma(6,"form",7),Ma(7,"mat-form-field",2),Ma(8,"input",8),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.name=e}),Ta(),Ta(),Ma(9,"mat-form-field",2),Ma(10,"input",9),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.default_name_format=e}),Ta(),Ta(),Ma(11,"mat-form-field",2),Ma(12,"input",10),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.symbol=e}),Ta(),Ta(),Ma(13,"button",11),Na("click",function(){return ut(n),Ua().chooseSymbol()}),Cs(14,"Choose symbol"),Ta(),Ea(15,"br"),Ea(16,"br"),Ma(17,"mat-form-field",2),Ma(18,"mat-select",12),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.category=e}),ka(19,Vve,2,2,"mat-option",13),Ta(),Ta(),Ma(20,"input",14,15),Na("change",function(e){return ut(n),Ua().uploadImageFile(e)}),Ta(),Ma(22,"button",16),Na("click",function(){return ut(n),Ca(21).click()}),Cs(23,"Browse"),Ta(),Ma(24,"mat-form-field",17),Ma(25,"input",18),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.path=e}),Ta(),Ta(),Ma(26,"mat-form-field",2),Ma(27,"input",19),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.startup_config=e}),Ta(),Ta(),Ma(28,"mat-form-field",2),Ma(29,"input",20),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.private_config=e}),Ta(),Ta(),Ta(),Ma(30,"mat-form-field",21),Ma(31,"mat-select",22),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.console_type=e}),ka(32,Uve,2,2,"mat-option",13),Ta(),Ta(),Ma(33,"mat-checkbox",23),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.console_auto_start=e}),Cs(34," Auto start console "),Ta(),Ea(35,"br"),Ma(36,"mat-checkbox",23),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.l1_keepalives=e}),Cs(37," Enable layer 1 keepalive messages (non-functional) "),Ta(),Ea(38,"br"),Ma(39,"mat-checkbox",23),Na("ngModelChange",function(e){return ut(n),Ua().defaultSettings=e}),Cs(40," Use default IOU values for memories "),Ta(),ka(41,qve,4,1,"mat-form-field",24),ka(42,Wve,4,1,"mat-form-field",24),Ta(),Ma(43,"mat-expansion-panel"),Ma(44,"mat-expansion-panel-header"),Ma(45,"mat-panel-title"),Cs(46," Network "),Ta(),Ta(),Ma(47,"form",7),Ma(48,"mat-form-field",2),Ma(49,"input",25),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.ethernet_adapters=e}),Ta(),Ta(),Ma(50,"mat-form-field",2),Ma(51,"input",26),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.serial_adapters=e}),Ta(),Ta(),Ta(),Ta(),Ma(52,"mat-expansion-panel"),Ma(53,"mat-expansion-panel-header"),Ma(54,"mat-panel-title"),Cs(55," Usage "),Ta(),Ta(),Ma(56,"mat-form-field",2),Ma(57,"textarea",27),Na("ngModelChange",function(e){return ut(n),Ua().iouTemplate.usage=e}),Ta(),Ta(),Ta(),Ta(),Ma(58,"div",28),Ma(59,"button",29),Na("click",function(){return ut(n),Ua().goBack()}),Cs(60,"Cancel"),Ta(),Ma(61,"button",30),Na("click",function(){return ut(n),Ua().onSave()}),Cs(62,"Save"),Ta(),Ta(),Ta()}if(2&e){var r=Ua();zi(6),xa("formGroup",r.generalSettingsForm),zi(2),xa("ngModel",r.iouTemplate.name),zi(2),xa("ngModel",r.iouTemplate.default_name_format),zi(2),xa("ngModel",r.iouTemplate.symbol),zi(6),xa("ngModelOptions",Jc(22,Gve))("ngModel",r.iouTemplate.category),zi(1),xa("ngForOf",r.categories),zi(6),xa("ngModel",r.iouTemplate.path),zi(2),xa("ngModel",r.iouTemplate.startup_config),zi(2),xa("ngModelOptions",Jc(23,Gve))("ngModel",r.iouTemplate.private_config),zi(2),xa("ngModel",r.iouTemplate.console_type),zi(1),xa("ngForOf",r.consoleTypes),zi(1),xa("ngModel",r.iouTemplate.console_auto_start),zi(3),xa("ngModel",r.iouTemplate.l1_keepalives),zi(3),xa("ngModel",r.defaultSettings),zi(2),xa("ngIf",!r.defaultSettings),zi(1),xa("ngIf",!r.defaultSettings),zi(5),xa("formGroup",r.networkForm),zi(2),xa("ngModel",r.iouTemplate.ethernet_adapters),zi(2),xa("ngModel",r.iouTemplate.serial_adapters),zi(6),xa("ngModel",r.iouTemplate.usage)}}function Yve(e,t){if(1&e){var n=Aa();Ma(0,"app-symbols-menu",35),Na("symbolChangedEmitter",function(e){return ut(n),Ua().symbolChanged(e)}),Ta()}if(2&e){var r=Ua();xa("server",r.server)("symbol",r.iouTemplate.symbol)}}var Kve=function(e){return{shadowed:e}},Qve=function(){function e(e,t,n,r,i,o,a){this.route=e,this.serverService=t,this.iouService=n,this.toasterService=r,this.configurationService=i,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 lf("",yd.required),defaultName:new lf("",yd.required),symbol:new lf("",yd.required),path:new lf("",yd.required),initialConfig:new lf("",yd.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new lf("",yd.required),serialAdapters:new lf("",yd.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)(Sa(BK),Sa(ZZ),Sa(doe),Sa(e3),Sa(q8),Sa(uZ),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"IOU device configuration"),Ta(),Ta(),Ta(),ka(5,Xve,63,24,"div",4),Ta(),ka(6,Yve,1,2,"app-symbols-menu",5)),2&e&&(xa("ngClass",el(3,Kve,t.isSymbolSelectionOpened)),zi(5),xa("ngIf",t.iouTemplate),zi(1),xa("ngIf",t.isSymbolSelectionOpened&&t.iouTemplate))},directives:[eh,ih,Yde,qde,Wde,Xde,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2,v5,vf,nh,P5,_f,UJ,L3,dfe],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}(),Zve=function(){function e(e,t,n,r,i,o){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=r,this.router=i,this.formBuilder=o,this.qemuBinaries=[],this.templateName="",this.nameForm=this.formBuilder.group({templateName:new lf("",yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(p6),Sa(e3),Sa(uZ),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Copy QEMU VM template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card",5),Ma(7,"form",6),Ma(8,"mat-form-field",7),Ma(9,"input",8),Na("ngModelChange",function(e){return t.templateName=e}),Ta(),Ta(),Ta(),Ta(),Ma(10,"div",9),Ma(11,"button",10),Na("click",function(){return t.goBack()}),Cs(12,"Cancel"),Ta(),Ma(13,"button",11),Na("click",function(){return t.addTemplate()}),Cs(14,"Copy template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("formGroup",t.nameForm),zi(2),xa("ngModel",t.templateName))},directives:[s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2],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}(),$ve=function(){function e(e,t,n,r,i,o){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=r,this.router=i,this.formBuilder=o,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new lf("",yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(hoe),Sa(e3),Sa(uZ),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Copy IOS router template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card",5),Ma(7,"form",6),Ma(8,"mat-form-field",7),Ma(9,"input",8),Na("ngModelChange",function(e){return t.templateName=e}),Ta(),Ta(),Ta(),Ta(),Ma(10,"div",9),Ma(11,"button",10),Na("click",function(){return t.goBack()}),Cs(12,"Cancel"),Ta(),Ma(13,"button",11),Na("click",function(){return t.addTemplate()}),Cs(14,"Copy template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("formGroup",t.formGroup),zi(2),xa("ngModel",t.templateName))},directives:[s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2],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}(),Jve=function(){function e(e,t,n,r,i,o){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=r,this.router=i,this.formBuilder=o,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new lf("",yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(loe),Sa(e3),Sa(uZ),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Copy Docker container template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"div",5),Ma(7,"form",6),Ma(8,"mat-form-field",7),Ma(9,"input",8),Na("ngModelChange",function(e){return t.templateName=e}),Ta(),Ta(),Ta(),Ta(),Ma(10,"div",9),Ma(11,"button",10),Na("click",function(){return t.goBack()}),Cs(12,"Cancel"),Ta(),Ma(13,"button",11),Na("click",function(){return t.addTemplate()}),Cs(14,"Copy template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("formGroup",t.templateNameForm),zi(2),xa("ngModel",t.templateName))},directives:[bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2],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}(),ebe=function(){function e(e,t,n,r,i,o){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=r,this.router=i,this.formBuilder=o,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new lf("",yd.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(eie.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)(Sa(BK),Sa(ZZ),Sa(doe),Sa(e3),Sa(uZ),Sa(jf))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Copy IOU device template"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card",5),Ma(7,"form",6),Ma(8,"mat-form-field",7),Ma(9,"input",8),Na("ngModelChange",function(e){return t.templateName=e}),Ta(),Ta(),Ta(),Ta(),Ma(10,"div",9),Ma(11,"button",10),Na("click",function(){return t.goBack()}),Cs(12,"Cancel"),Ta(),Ma(13,"button",11),Na("click",function(){return t.addTemplate()}),Cs(14,"Copy template"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("formGroup",t.templateNameForm),zi(2),xa("ngModel",t.templateName))},directives:[s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2],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}(),tbe=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}(),nbe=function(){function e(){}return e.prototype.transform=function(e){var t=new Date(1e3*+e),n=t.getHours(),r="0"+t.getMinutes(),i="0"+t.getSeconds(),o=t.getFullYear(),a=t.getMonth()+1,s=t.getDate();return n+":"+r.substr(-2)+":"+i.substr(-2)+" "+s+"/"+a+"/"+o},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=xe({name:"datefilter",type:e,pure:!0}),e}();function rbe(e,t){1&e&&(Ma(0,"mat-header-cell",18),Cs(1," Name "),Ta())}function ibe(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.name," ")}}function obe(e,t){1&e&&(Ma(0,"mat-header-cell",18),Cs(1," Date "),Ta())}function abe(e,t){if(1&e&&(Ma(0,"mat-cell"),Cs(1),ol(2,"datefilter"),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",al(2,1,n.created_at)," ")}}function sbe(e,t){1&e&&(Ma(0,"mat-header-cell"),Cs(1," Actions "),Ta())}function cbe(e,t){if(1&e){var n=Aa();Ma(0,"mat-cell",19),Ma(1,"button",20),Na("click",function(){ut(n);var e=t.$implicit;return Ua().restoreSnapshot(e)}),Ma(2,"mat-icon",21),Cs(3,"restore"),Ta(),Ta(),Ma(4,"button",22),Na("click",function(){ut(n);var e=t.$implicit;return Ua().deleteSnapshot(e)}),Ma(5,"mat-icon",23),Cs(6,"delete"),Ta(),Ta(),Ta()}}function lbe(e,t){1&e&&Ea(0,"mat-header-row")}function ube(e,t){1&e&&Ea(0,"mat-row")}var hbe=function(){function e(e,t,n,r){this.route=e,this.snapshotService=t,this.progressDialogService=n,this.toaster=r,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()),r=this.progressDialogService.open(),i=n.subscribe(function(n){t.toaster.success("Snapshot "+e.name+" has been restored."),r.close()});r.afterClosed().subscribe(function(e){e===Dle.CANCELLED&&i.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 r="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,r):"creationDate"===e.active?function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(+t.created_at,+n.created_at,!r):0})}},e.\u0275fac=function(t){return new(t||e)(Sa(BK),Sa(xle),Sa(Rle),Sa(e3))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Snapshots"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card"),Ma(7,"mat-form-field",5),Ma(8,"input",6),Na("ngModelChange",function(e){return t.searchText=e}),Ta(),Ta(),Ma(9,"mat-table",7,8),Na("matSortChange",function(e){return t.sortData(e)}),ol(11,"namefilter"),Pa(12,9),ka(13,rbe,2,0,"mat-header-cell",10),ka(14,ibe,2,1,"mat-cell",11),ja(),Pa(15,12),ka(16,obe,2,0,"mat-header-cell",10),ka(17,abe,3,3,"mat-cell",11),ja(),Pa(18,13),ka(19,sbe,2,0,"mat-header-cell",14),ka(20,cbe,7,0,"mat-cell",15),ja(),ka(21,lbe,1,0,"mat-header-row",16),ka(22,ube,1,0,"mat-row",17),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(8),xa("ngModel",t.searchText),zi(1),xa("dataSource",sl(11,4,t.snapshots,t.searchText)),zi(12),xa("matHeaderRowDef",t.displayedColumns),zi(1),xa("matRowDefColumns",t.displayedColumns))},directives:[s3,H3,Q3,fd,Fd,vf,H5,Cae,X5,W5,U5,J5,t4,K5,Eae,Z5,l2,m4,T2,r4,o4],pipes:[tbe,nbe],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]}),e}(),dbe=function(){function e(e,t,n){this.router=e,this.consoleService=t,this.toasterService=n,this.consoleForm=new uf({command:new lf("")})}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)(Sa(uZ),Sa(Cde),Sa(e3))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"Console settings"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ma(6,"mat-card"),Ma(7,"form",5),Ma(8,"mat-form-field",6),Ea(9,"textarea",7),Ta(),Ma(10,"div",8),Cs(11,"The following variables are replaced by GNS3:"),Ea(12,"br"),Cs(13," %h: console IP or hostname"),Ea(14,"br"),Cs(15," %p: console port"),Ea(16,"br"),Cs(17," %s: path of the serial connection"),Ea(18,"br"),Cs(19," %d: title of the console"),Ea(20,"br"),Cs(21," %i: Project UUID"),Ea(22,"br"),Cs(23," %c: server URL (http://user:password@server:port) "),Ta(),Ta(),Ta(),Ma(24,"div",9),Ma(25,"button",10),Na("click",function(){return t.goBack()}),Cs(26,"Cancel"),Ta(),Ma(27,"button",11),Na("click",function(){return t.save()}),Cs(28,"Save"),Ta(),Ea(29,"br"),Ta(),Ta(),Ta()),2&e&&(zi(7),xa("formGroup",t.consoleForm))},directives:[s3,bf,Bd,Sf,H3,Q3,fd,Fd,Of,l2],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]}),e}(),fbe=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)(Sa(Cm))},e.\u0275cmp=be({type:e,selectors:[["app-help"]],decls:41,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"innerHTML"],["mat-button","",1,"full-width"],["href","https://docs.gns3.com/docs/"],["mat-button","","routerLink","/help/reportissue",1,"full-width"]],template:function(e,t){1&e&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"h1"),Cs(3,"Help"),Ta(),Ta(),Ma(4,"div",2),Ma(5,"div",3),Ma(6,"mat-accordion"),Ma(7,"mat-expansion-panel"),Ma(8,"mat-expansion-panel-header"),Ma(9,"mat-panel-title"),Cs(10," Useful shortcuts "),Ta(),Ta(),Ma(11,"mat-list"),Ma(12,"mat-list-item"),Cs(13," ctrl + + to zoom in "),Ta(),Ma(14,"mat-list-item"),Cs(15," ctrl + - to zoom out "),Ta(),Ma(16,"mat-list-item"),Cs(17," ctrl + 0 to reset zoom "),Ta(),Ma(18,"mat-list-item"),Cs(19," ctrl + h to hide toolbar "),Ta(),Ma(20,"mat-list-item"),Cs(21," ctrl + a to select all items on map "),Ta(),Ma(22,"mat-list-item"),Cs(23," ctrl + shift + a to deselect all items on map "),Ta(),Ma(24,"mat-list-item"),Cs(25," ctrl + shift + s to go to preferences "),Ta(),Ta(),Ta(),Ma(26,"mat-expansion-panel"),Ma(27,"mat-expansion-panel-header"),Ma(28,"mat-panel-title"),Cs(29," Third party components "),Ta(),Ta(),Ea(30,"div",4),Ta(),Ma(31,"mat-expansion-panel"),Ma(32,"mat-expansion-panel-header"),Ma(33,"mat-panel-title"),Cs(34," Release notes "),Ta(),Ta(),Ea(35,"div",4),Ta(),Ta(),Ta(),Ma(36,"button",5),Ma(37,"a",6),Cs(38," Go to documentation "),Ta(),Ta(),Ma(39,"button",7),Cs(40," Report an issue "),Ta(),Ta(),Ta()),2&e&&(zi(30),xa("innerHTML",t.thirdpartylicenses,Nr),zi(5),xa("innerHTML",t.releasenotes,Nr))},directives:[Yde,qde,Wde,Xde,f7,g7,l2,dZ],styles:[".full-width[_ngcontent-%COMP%]{width:50%;margin-top:20px}"]}),e}(),pbe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ea(2,"br"),Ma(3,"h1"),Cs(4,"404 Page not found"),Ta(),Ma(5,"button",2),Cs(6,"Navigate to homepage"),Ta(),Ta(),Ta())},directives:[l2,dZ],styles:["div[_ngcontent-%COMP%]{text-align:center}"]}),e}(),mbe=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}();function gbe(e,t){if(1&e&&(Ma(0,"mat-option",18),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.engine_id),zi(1),xs(" ",n.name," ")}}function vbe(e,t){if(1&e&&(Ma(0,"mat-option",18),Cs(1),Ta()),2&e){var n=t.$implicit;xa("value",n.vmname),zi(1),xs(" ",n.vmname," ")}}var bbe=function(){return{standalone:!0}};function ybe(e,t){if(1&e){var n=Aa();Ma(0,"mat-checkbox",10),Na("ngModelChange",function(e){return ut(n),Ua(2).gns3vm.headless=e}),Cs(1," Run the VM in headless mode "),Ta()}if(2&e){var r=Ua(2);xa("ngModelOptions",Jc(2,bbe))("ngModel",r.gns3vm.headless)}}function _be(e,t){if(1&e){var n=Aa();Ma(0,"mat-form-field",21),Ma(1,"input",25),Na("ngModelChange",function(e){return ut(n),Ua(3).port=e}),Ta(),Ta()}if(2&e){var r=Ua(3);zi(1),xa("ngModelOptions",Jc(2,bbe))("ngModel",r.port)}}function wbe(e,t){if(1&e&&(Ma(0,"form",19),ka(1,_be,2,3,"mat-form-field",20),Ma(2,"mat-form-field",21),Ea(3,"input",22),Ma(4,"span",23),Cs(5,"MB"),Ta(),Ta(),Ma(6,"mat-form-field",21),Ea(7,"input",24),Ta(),Ta()),2&e){var n=Ua(2);xa("formGroup",n.vmForm),zi(1),xa("ngIf","virtualbox"===n.gns3vm.engine||"vmware"===n.gns3vm.engine)}}function kbe(e,t){if(1&e){var n=Aa();Ma(0,"mat-radio-group",26),Na("ngModelChange",function(e){return ut(n),Ua(2).gns3vm.when_exit=e}),Ma(1,"mat-radio-button",27),Na("click",function(){return ut(n),Ua(2).setCloseAction("keep")}),Cs(2,"keep the GNS3 VM running"),Ta(),Ma(3,"mat-radio-button",28),Na("click",function(){return ut(n),Ua(2).setCloseAction("suspend")}),Cs(4,"suspend the GNS3 VM"),Ta(),Ma(5,"mat-radio-button",29),Na("click",function(){return ut(n),Ua(2).setCloseAction("stop")}),Cs(6,"stop the GNS3 VM"),Ta(),Ta()}2&e&&xa("ngModel",Ua(2).gns3vm.when_exit)}function Cbe(e,t){if(1&e){var n=Aa();Ma(0,"mat-card",9),Ma(1,"mat-checkbox",10),Na("ngModelChange",function(e){return ut(n),Ua().gns3vm.enable=e}),Cs(2," Enable the GNS3 VM "),Ta(),Ma(3,"mat-form-field",11),Ma(4,"mat-select",12),Na("selectionChange",function(e){return ut(n),Ua().changeVmEngine(e)})("ngModelChange",function(e){return ut(n),Ua().gns3vm.engine=e}),ka(5,gbe,2,2,"mat-option",13),Ta(),Ta(),Ma(6,"mat-form-field",11),Ma(7,"mat-select",14),Na("ngModelChange",function(e){return ut(n),Ua().gns3vm.vmname=e}),ka(8,vbe,2,2,"mat-option",13),Ta(),Ta(),ka(9,ybe,2,3,"mat-checkbox",15),ka(10,wbe,8,2,"form",16),ka(11,kbe,7,1,"mat-radio-group",17),Ta()}if(2&e){var r=Ua();zi(1),xa("ngModelOptions",Jc(11,bbe))("ngModel",r.gns3vm.enable),zi(3),xa("ngModelOptions",Jc(12,bbe))("ngModel",r.gns3vm.engine),zi(1),xa("ngForOf",r.vmEngines),zi(2),xa("ngModelOptions",Jc(13,bbe))("ngModel",r.gns3vm.vmname),zi(1),xa("ngForOf",r.vms),zi(1),xa("ngIf","virtualbox"===r.gns3vm.engine||"vmware"===r.gns3vm.engine),zi(1),xa("ngIf","remote"!==r.gns3vm.engine),zi(1),xa("ngIf","remote"!==r.gns3vm.engine)}}var Sbe=function(){function e(e,t,n,r,i,o){this.route=e,this.serverService=t,this.gns3vmService=n,this.router=r,this.formBuilder=i,this.toasterService=o,this.vms=[],this.vmForm=this.formBuilder.group({ram:new lf(null,[yd.required]),vcpus:new lf(null,[yd.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)(Sa(BK),Sa(ZZ),Sa(mbe),Sa(uZ),Sa(jf),Sa(e3))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"GNS3 VM preferences"),Ta(),Ta(),Ta(),Ma(5,"div",4),ka(6,Cbe,12,14,"mat-card",5),Ma(7,"div",6),Ma(8,"button",7),Na("click",function(){return t.goBack()}),Cs(9,"Cancel"),Ta(),Ma(10,"button",8),Na("click",function(){return t.save()}),Cs(11,"Save"),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(6),xa("ngIf",t.gns3vm))},directives:[ih,l2,s3,P5,Fd,vf,H3,v5,nh,UJ,bf,Bd,Sf,Q3,fd,_f,Of,L3,x6,E6],styles:[".form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.radio-selection[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),e}(),xbe=function(){function e(e,t,n,r,i){this.serverService=e,this.serverDatabase=t,this.route=n,this.router=r,this.toasterService=i}return e.prototype.ngOnInit=function(){return qZ(this,void 0,void 0,function(){var e=this;return WZ(this,function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(t){return qZ(e,void 0,void 0,function(){return WZ(this,function(e){return t&&this.getServers(),[2]})})}),[2]})})},e.prototype.getServers=function(){return qZ(this,void 0,void 0,function(){var e,t,n,r,i,o,a=this;return WZ(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 r=s.sent(),(i=r.filter(function(n){return n.host===e&&n.port===t})[0])?this.router.navigate(["/server",i.id,"project",n]):((o=new zZ).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)(Sa(ZZ),Sa(ohe),Sa(BK),Sa(uZ),Sa(e3))},e.\u0275cmp=be({type:e,selectors:[["app-direct-link"]],decls:0,vars:0,template:function(e,t){},styles:[""],encapsulation:2}),e}();function Obe(e,t){if(1&e&&(Ft(),Ma(0,"linearGradient"),Ea(1,"stop",5),Ea(2,"stop",6),Ta()),2&e){var n=Ua(2);va("id",n.svg.outerLinearGradient.id),zi(1),va("stop-color",n.svg.outerLinearGradient.colorStop1)("stop-opacity",1),zi(1),va("stop-color",n.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function Mbe(e,t){if(1&e&&(Ft(),Ma(0,"radialGradient"),Ea(1,"stop",5),Ea(2,"stop",6),Ta()),2&e){var n=Ua(2);va("id",n.svg.radialGradient.id),zi(1),va("stop-color",n.svg.radialGradient.colorStop1)("stop-opacity",1),zi(1),va("stop-color",n.svg.radialGradient.colorStop2)("stop-opacity",1)}}function Tbe(e,t){if(1&e&&(Ft(),Ea(0,"circle")),2&e){var n=Ua(3);va("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 Ebe(e,t){if(1&e&&(Ft(),Ea(0,"circle")),2&e){var n=Ua(3);_a("fill","url(#",n.svg.radialGradient.id,")"),va("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 Pbe(e,t){if(1&e&&(Ft(),Pa(0),ka(1,Tbe,1,7,"circle",2),ka(2,Ebe,1,7,"circle",2),ja()),2&e){var n=Ua(2);zi(1),xa("ngIf",!n.options.backgroundGradient),zi(1),xa("ngIf",n.options.backgroundGradient)}}function jbe(e,t){if(1&e&&(Ft(),Ea(0,"circle")),2&e){var n=Ua(2);va("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 Ibe(e,t){if(1&e&&(Ft(),Ea(0,"path")),2&e){var n=Ua(3);va("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 Abe(e,t){if(1&e&&(Ft(),Ea(0,"path")),2&e){var n=Ua(3);_a("stroke","url(#",n.svg.outerLinearGradient.id,")"),va("d",n.svg.path.d)("stroke-width",n.svg.path.strokeWidth)("stroke-linecap",n.svg.path.strokeLinecap)("fill",n.svg.path.fill)}}function Dbe(e,t){if(1&e&&(Ft(),Pa(0),ka(1,Ibe,1,5,"path",2),ka(2,Abe,1,5,"path",2),ja()),2&e){var n=Ua(2);zi(1),xa("ngIf",!n.options.outerStrokeGradient),zi(1),xa("ngIf",n.options.outerStrokeGradient)}}function Rbe(e,t){if(1&e&&(Ft(),Ma(0,"tspan"),Cs(1),Ta()),2&e){var n=t.$implicit,r=Ua(4);va("x",r.svg.title.x)("y",r.svg.title.y)("dy",n.dy)("font-size",r.svg.title.fontSize)("font-weight",r.svg.title.fontWeight)("fill",r.svg.title.color),zi(1),Ss(n.span)}}function Lbe(e,t){if(1&e&&(Ft(),Pa(0),ka(1,Rbe,2,7,"tspan",8),ja()),2&e){var n=Ua(3);zi(1),xa("ngForOf",n.svg.title.tspans)}}function Nbe(e,t){if(1&e&&(Ft(),Ma(0,"tspan"),Cs(1),Ta()),2&e){var n=Ua(3);va("font-size",n.svg.units.fontSize)("font-weight",n.svg.units.fontWeight)("fill",n.svg.units.color),zi(1),Ss(n.svg.units.text)}}function Fbe(e,t){if(1&e&&(Ft(),Ma(0,"tspan"),Cs(1),Ta()),2&e){var n=t.$implicit,r=Ua(4);va("x",r.svg.subtitle.x)("y",r.svg.subtitle.y)("dy",n.dy)("font-size",r.svg.subtitle.fontSize)("font-weight",r.svg.subtitle.fontWeight)("fill",r.svg.subtitle.color),zi(1),Ss(n.span)}}function Bbe(e,t){if(1&e&&(Ft(),Pa(0),ka(1,Fbe,2,7,"tspan",8),ja()),2&e){var n=Ua(3);zi(1),xa("ngForOf",n.svg.subtitle.tspans)}}function zbe(e,t){if(1&e&&(Ft(),Ma(0,"text",7),ka(1,Lbe,2,1,"ng-container",2),ka(2,Nbe,2,4,"tspan",2),ka(3,Bbe,2,1,"ng-container",2),Ta()),2&e){var n=Ua(2);va("x",n.svg.circle.cx)("y",n.svg.circle.cy)("text-anchor",n.svg.title.textAnchor),zi(1),xa("ngIf",n.options.showTitle),zi(1),xa("ngIf",n.options.showUnits),zi(1),xa("ngIf",n.options.showSubtitle)}}function Hbe(e,t){if(1&e&&(Ft(),Ea(0,"image",9)),2&e){var n=Ua(2);va("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 Vbe(e,t){if(1&e){var n=Aa();Ft(),Ma(0,"svg",1),Na("click",function(e){return ut(n),Ua().emitClickEvent(e)}),Ma(1,"defs"),ka(2,Obe,3,5,"linearGradient",2),ka(3,Mbe,3,5,"radialGradient",2),Ta(),ka(4,Pbe,3,2,"ng-container",2),ka(5,jbe,1,6,"circle",2),ka(6,Dbe,3,2,"ng-container",2),ka(7,zbe,4,6,"text",3),ka(8,Hbe,1,5,"image",4),Ta()}if(2&e){var r=Ua();va("viewBox",r.svg.viewBox)("height",r.svg.height)("width",r.svg.width)("class",r.options.class),zi(2),xa("ngIf",r.options.outerStrokeGradient),zi(1),xa("ngIf",r.options.backgroundGradient),zi(1),xa("ngIf",r.options.showBackground),zi(1),xa("ngIf",r.options.showInnerStroke),zi(1),xa("ngIf",0!=+r.options.percent||r.options.showZeroOuterStroke),zi(1),xa("ngIf",!r.options.showImage&&(r.options.showTitle||r.options.showUnits||r.options.showSubtitle)),zi(1),xa("ngIf",r.options.showImage)}}var Ube=function e(){Object(s.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},qbe=function(){var e=function(){function e(t,n,r){var i=this;Object(s.a)(this,e),this.elRef=n,this.document=r,this.onClick=new ul,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new ul,this._viewportChangedSubscriber=null,this.options=new Ube,this.defaultOptions=new Ube,this._lastPercent=0,this._gradientUUID=null,this.render=function(){i.applyOptions(),i.options.lazy?(null===i.svgElement&&i.draw(i._lastPercent),i.isInViewport&&(i.options.animation&&i.options.animationDuration>0?i.animate(i._lastPercent,i.options.percent):i.draw(i.options.percent),i._lastPercent=i.options.percent)):(i.options.animation&&i.options.animationDuration>0?i.animate(i._lastPercent,i.options.percent):i.draw(i.options.percent),i._lastPercent=i.options.percent)},this.polarToCartesian=function(e,t,n,r){var i=r*Math.PI/180;return{x:e+Math.sin(i)*n,y:t-Math.cos(i)*n}},this.draw=function(e){var t=(e=void 0===e?i.options.percent:Math.abs(e))>100?100:e,n=2*i.options.radius+2*i.options.outerStrokeWidth;i.options.showBackground&&(n+=2*i.options.backgroundStrokeWidth+i.max(0,2*i.options.backgroundPadding));var r,o,a={x:n/2,y:n/2},s={x:a.x,y:a.y-i.options.radius},c=i.polarToCartesian(a.x,a.y,i.options.radius,360*(i.options.clockwise?t:100-t)/100);if(100===t&&(c.x=c.x+(i.options.clockwise?-.01:.01)),t>50){var l=f(i.options.clockwise?[1,1]:[1,0],2);r=l[0],o=l[1]}else{var u=f(i.options.clockwise?[0,1]:[0,0],2);r=u[0],o=u[1]}var h=i.options.animateTitle?e:i.options.percent,p=h>i.options.maxPercent?"".concat(i.options.maxPercent.toFixed(i.options.toFixed),"+"):h.toFixed(i.options.toFixed),m=i.options.animateSubtitle?e:i.options.percent,v={x:a.x,y:a.y,textAnchor:"middle",color:i.options.titleColor,fontSize:i.options.titleFontSize,fontWeight:i.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==i.options.titleFormat&&"Function"===i.options.titleFormat.constructor.name){var b=i.options.titleFormat(h);b instanceof Array?v.texts=Object(g.a)(b):v.texts.push(b.toString())}else"auto"===i.options.title?v.texts.push(p):i.options.title instanceof Array?v.texts=Object(g.a)(i.options.title):v.texts.push(i.options.title.toString());var y={x:a.x,y:a.y,textAnchor:"middle",color:i.options.subtitleColor,fontSize:i.options.subtitleFontSize,fontWeight:i.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==i.options.subtitleFormat&&"Function"===i.options.subtitleFormat.constructor.name){var _=i.options.subtitleFormat(m);_ instanceof Array?y.texts=Object(g.a)(_):y.texts.push(_.toString())}else i.options.subtitle instanceof Array?y.texts=Object(g.a)(i.options.subtitle):y.texts.push(i.options.subtitle.toString());var w={text:"".concat(i.options.units),fontSize:i.options.unitsFontSize,fontWeight:i.options.unitsFontWeight,color:i.options.unitsColor},k=0,C=1;if(i.options.showTitle&&(k+=v.texts.length),i.options.showSubtitle&&(k+=y.texts.length),i.options.showTitle){var S,x=d(v.texts);try{for(x.s();!(S=x.n()).done;)v.tspans.push({span:S.value,dy:i.getRelativeY(C,k)}),C++}catch(T){x.e(T)}finally{x.f()}}if(i.options.showSubtitle){var O,M=d(y.texts);try{for(M.s();!(O=M.n()).done;)y.tspans.push({span:O.value,dy:i.getRelativeY(C,k)}),C++}catch(T){M.e(T)}finally{M.f()}}null===i._gradientUUID&&(i._gradientUUID=i.uuid()),i.svg={viewBox:"0 0 ".concat(n," ").concat(n),width:i.options.responsive?"100%":n,height:i.options.responsive?"100%":n,backgroundCircle:{cx:a.x,cy:a.y,r:i.options.radius+i.options.outerStrokeWidth/2+i.options.backgroundPadding,fill:i.options.backgroundColor,fillOpacity:i.options.backgroundOpacity,stroke:i.options.backgroundStroke,strokeWidth:i.options.backgroundStrokeWidth},path:{d:"M ".concat(s.x," ").concat(s.y,"\n A ").concat(i.options.radius," ").concat(i.options.radius," 0 ").concat(r," ").concat(o," ").concat(c.x," ").concat(c.y),stroke:i.options.outerStrokeColor,strokeWidth:i.options.outerStrokeWidth,strokeLinecap:i.options.outerStrokeLinecap,fill:"none"},circle:{cx:a.x,cy:a.y,r:i.options.radius-i.options.space-i.options.outerStrokeWidth/2-i.options.innerStrokeWidth/2,fill:"none",stroke:i.options.innerStrokeColor,strokeWidth:i.options.innerStrokeWidth},title:v,units:w,subtitle:y,image:{x:a.x-i.options.imageWidth/2,y:a.y-i.options.imageHeight/2,src:i.options.imageSrc,width:i.options.imageWidth,height:i.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+i._gradientUUID,colorStop1:i.options.outerStrokeColor,colorStop2:"transparent"===i.options.outerStrokeGradientStopColor?"#FFF":i.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+i._gradientUUID,colorStop1:i.options.backgroundColor,colorStop2:"transparent"===i.options.backgroundGradientStopColor?"#FFF":i.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(e,t){var n,r,o,a=i.options.startFromZero||e<0?0:e,s=t<0?0:i.min(t,i.options.maxPercent),c=Math.abs(Math.round(s-a));return c>=100?(n=100,r=i.options.animateTitle||i.options.animateSubtitle?Math.round(c/n):1):(n=c,r=1),(o=Math.round(i.options.animationDuration/n))<10&&(n=i.options.animationDuration/(o=10),r=!i.options.animateTitle&&!i.options.animateSubtitle&&c>100?Math.round(100/n):Math.round(c/n)),r<1&&(r=1),{times:n,step:r,interval:o}},this.animate=function(e,t){i._timerSubscription&&!i._timerSubscription.closed&&i._timerSubscription.unsubscribe();var n=i.options.startFromZero?0:e,r=t,o=i.getAnimationParameters(n,r),a=o.step,s=o.interval,c=n;i._timerSubscription=n<r?Object(m1.a)(0,s).subscribe(function(){(c+=a)<=r?!i.options.animateTitle&&!i.options.animateSubtitle&&c>=100?(i.draw(r),i._timerSubscription.unsubscribe()):i.draw(c):(i.draw(r),i._timerSubscription.unsubscribe())}):Object(m1.a)(0,s).subscribe(function(){(c-=a)>=r?!i.options.animateTitle&&!i.options.animateSubtitle&&r>=100?(i.draw(r),i._timerSubscription.unsubscribe()):i.draw(c):(i.draw(r),i._timerSubscription.unsubscribe())})},this.emitClickEvent=function(e){i.options.renderOnClick&&i.animate(0,i.options.percent),i.onClick.emit(e)},this.applyOptions=function(){for(var e=0,t=Object.keys(i.options);e<t.length;e++){var n=t[e];i.hasOwnProperty(n)&&void 0!==i[n]?i.options[n]=i[n]:i.templateOptions&&void 0!==i.templateOptions[n]&&(i.options[n]=i.templateOptions[n])}i.options.radius=Math.abs(+i.options.radius),i.options.space=+i.options.space,i.options.percent=+i.options.percent>0?+i.options.percent:0,i.options.maxPercent=Math.abs(+i.options.maxPercent),i.options.animationDuration=Math.abs(i.options.animationDuration),i.options.outerStrokeWidth=Math.abs(+i.options.outerStrokeWidth),i.options.innerStrokeWidth=Math.abs(+i.options.innerStrokeWidth),i.options.backgroundPadding=+i.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(){i.findSvgElement();var e=i.isInViewport;i.isInViewport=i.isElementInViewport(i.svgElement),e!==i.isInViewport&&i.onViewportChanged.emit({oldValue:e,newValue:i.isInViewport})},this.onScroll=function(e){i.checkViewport()},this.loadEventsForLazyMode=function(){if(i.options.lazy){i.document.addEventListener("scroll",i.onScroll,!0),i.window.addEventListener("resize",i.onScroll,!0),null===i._viewportChangedSubscriber&&(i._viewportChangedSubscriber=i.onViewportChanged.subscribe(function(e){e.newValue&&i.render()}));var e=Object(m1.a)(0,50).subscribe(function(){null===i.svgElement?i.checkViewport():e.unsubscribe()})}},this.unloadEventsForLazyMode=function(){i.document.removeEventListener("scroll",i.onScroll,!0),i.window.removeEventListener("resize",i.onScroll,!0),null!==i._viewportChangedSubscriber&&(i._viewportChangedSubscriber.unsubscribe(),i._viewportChangedSubscriber=null)},this.document=r,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return Object(c.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(),r=e.parentNode;do{if(t=r.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;r=r.parentNode}while(r!=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)(Sa(Ube),Sa(ec),Sa(Iu))},e.\u0275cmp=be({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:[Fe],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&&ka(0,Vbe,9,11,"svg",0),2&e&&xa("ngIf",t.svg)},directives:[ih,nh],encapsulation:2}),e}(),Wbe=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:Ube,useValue:t}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[vh]]}),e}(),Gbe=["*"],Xbe=new Tn("MatChipRemove"),Ybe=new Tn("MatChipAvatar"),Kbe=new Tn("MatChipTrailingIcon"),Qbe=fJ(hJ(dJ(function e(t){Object(s.a)(this,e),this._elementRef=t}),"primary"),-1),Zbe=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l,u){var h;return Object(s.a)(this,n),(h=t.call(this,e))._elementRef=e,h._ngZone=r,h._changeDetectorRef=a,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 k.b,h._onBlur=new k.b,h.selectionChange=new ul,h.destroyed=new ul,h.removed=new ul,h._addHostClassName(),h._chipRippleTarget=c.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new xJ(Object(p.a)(h),r,h._chipRippleTarget,i),h._chipRipple.setupTriggerEvents(e),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===l,h.tabIndex=null!=u&&parseInt(u)||-1,h}return Object(c.a)(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=If(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=If(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=If(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=If(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{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._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.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._changeDetectorRef.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 r$:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Object(Cp.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})}}]),n}(Qbe);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Ql),Sa(ep),Sa(TJ,8),Sa(Oc),Sa(Iu),Sa(jb,8),xn("tabindex"))},e.\u0275dir=Se({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var r;1&e&&(Sl(n,Ybe,1),Sl(n,Kbe,1),Sl(n,Xbe,1)),2&e&&(kl(r=xl())&&(t.avatar=r.first),kl(r=xl())&&(t.trailingIcon=r.first),kl(r=xl())&&(t.removeIcon=r.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&Na("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&&(va("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),cs("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:[ia]}),e}(),$be=new Tn("mat-chips-default-options"),Jbe=pJ(function e(t,n,r,i){Object(s.a)(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}),eye=0,tye=function e(t,n){Object(s.a)(this,e),this.source=t,this.value=n},nye=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r,i,o,a,c,l){var u;return Object(s.a)(this,n),(u=t.call(this,c,o,a,l))._elementRef=e,u._changeDetectorRef=r,u._dir=i,u.ngControl=l,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new k.b,u._uid="mat-chip-list-".concat(eye++),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 ul,u.valueChange=new ul,u.ngControl&&(u.ngControl.valueAccessor=Object(p.a)(u)),u}return Object(c.a)(n,[{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=If(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=If(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=If(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=If(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 S.a.apply(void 0,Object(g.a)(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return S.a.apply(void 0,Object(g.a)(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return S.a.apply(void 0,Object(g.a)(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return S.a.apply(void 0,Object(g.a)(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new k$(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(fp.a)(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(Object(fp.a)(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Object(pp.a)(null),Object(fp.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 qf(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 r=this._selectValue(e,n);r&&n&&this._keyManager.setActiveItem(r)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return r&&(n?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}},{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 tye(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,r=e.chips.toArray().indexOf(t.chip);e._isValidIndex(r)&&n._hasFocus&&(e._lastDestroyedChipIndex=r)})}},{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})}}]),n}(Jbe);return e.\u0275fac=function(t){return new(t||e)(Sa(ec),Sa(Oc),Sa(Yf,8),Sa(pf,8),Sa(Sf,8),Sa(gJ),Sa(Ld,10))},e.\u0275cmp=be({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var r;1&e&&Sl(n,Zbe,1),2&e&&kl(r=xl())&&(t.chips=r)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&Na("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(Es("id",t._uid),va("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),cs("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:[Gs([{provide:P3,useExisting:e}]),ia],ngContentSelectors:Gbe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(Wa(),Ma(0,"div",0),Ga(1),Ta())},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}(),rye={separatorKeyCodes:[t$]},iye=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[gJ,{provide:$be,useValue:rye}],imports:[[lJ]]}),e}(),oye=function(){return["Load average","(last 1 minute)"]},aye=function(){return["Load average","(last 5 minutes)"]},sye=function(){return["Load average","(last 15 minutes)"]},cye=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,r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=be({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&&(Ma(0,"mat-card"),Ma(1,"div",0),Ea(2,"circle-progress",1),Ea(3,"circle-progress",1),Ea(4,"circle-progress",1),Ea(5,"circle-progress",1),Ta(),Ma(6,"div",0),Ea(7,"circle-progress",1),Ea(8,"circle-progress",1),Ea(9,"circle-progress",1),Ta(),Ma(10,"div",2),Ma(11,"mat-chip-list"),Ma(12,"mat-chip",3),Cs(13),Ta(),Ta(),Ma(14,"mat-chip-list"),Ma(15,"mat-chip",3),Cs(16),Ta(),Ta(),Ma(17,"mat-chip-list"),Ma(18,"mat-chip",3),Cs(19),Ta(),Ta(),Ta(),Ma(20,"div",2),Ma(21,"mat-chip-list"),Ma(22,"mat-chip",3),Cs(23),Ta(),Ta(),Ma(24,"mat-chip-list"),Ma(25,"mat-chip",3),Cs(26),Ta(),Ta(),Ma(27,"mat-chip-list"),Ma(28,"mat-chip",3),Cs(29),Ta(),Ta(),Ta(),Ta()),2&e&&(zi(2),xa("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),zi(1),xa("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),zi(1),xa("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),zi(1),xa("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),zi(2),xa("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",Jc(111,oye))("subtitleColor","#C0C0C0")("subtitleFontSize",15),zi(1),xa("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",Jc(112,aye))("subtitleColor","#C0C0C0")("subtitleFontSize",15),zi(1),xa("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",Jc(113,sye))("subtitleColor","#C0C0C0")("subtitleFontSize",15),zi(4),xs("Memory total: ",t.formatBytes(t.computeStatistics.statistics.memory_total),""),zi(3),xs("Memory used: ",t.formatBytes(t.computeStatistics.statistics.memory_used),""),zi(3),xs("Memory free: ",t.formatBytes(t.computeStatistics.statistics.memory_free),""),zi(4),xs("Swap total: ",t.formatBytes(t.computeStatistics.statistics.swap_total),""),zi(3),xs("Swap used: ",t.formatBytes(t.computeStatistics.statistics.swap_used),""),zi(3),xs("Swap free: ",t.formatBytes(t.computeStatistics.statistics.swap_free),""))},directives:[s3,qbe,nye,Zbe],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 lye(e,t){1&e&&(Ma(0,"div"),Cs(1," Statistics not loaded\n"),Ta())}function uye(e,t){if(1&e&&(Ma(0,"div"),Cs(1),Ea(2,"app-status-chart",2),Ta()),2&e){var n=t.$implicit;zi(1),xs(" ",n.compute_name," "),zi(1),xa("computeStatistics",n)}}var hye=function(){function e(e,t,n,r){this.route=e,this.computeService=t,this.serverService=n,this.toasterService=r,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)(Sa(BK),Sa(moe),Sa(ZZ),Sa(e3))},e.\u0275cmp=be({type:e,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(e,t){1&e&&(ka(0,lye,2,0,"div",0),ka(1,uye,3,2,"div",1)),2&e&&(xa("ngIf",!t.computeStatistics.length),zi(1),xa("ngForOf",t.computeStatistics))},directives:[ih,nh,cye],styles:[""]}),e}(),dye=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)(Sa(BK))},e.\u0275cmp=be({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&&(Ma(0,"div",0),Ma(1,"div",1),Ma(2,"div",2),Ma(3,"h1",3),Cs(4,"System status"),Ta(),Ta(),Ta(),Ma(5,"div",4),Ea(6,"app-status-info"),Ta(),Ta())},directives:[hye],styles:[""]}),e}(),fye=function(){function e(e){this.serverService=e}return e.prototype.resolve=function(e){return this.serverService.get(parseInt(e.params.server_id))},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(ZZ))}}),e}(),pye=["terminal"],mye=function(){function e(e,t,n,r,i){this.consoleService=e,this.serverService=t,this.route=n,this.title=r,this.nodeService=i,this.subscriptions=new w.a,this.term=new uue.Terminal,this.fitAddon=new due.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 hue.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 r=Math.round(window.innerWidth/e.consoleService.getLineWidth()),i=Math.round(window.innerHeight/e.consoleService.getLineHeight());e.term.resize(r,i)},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)(Sa(N7),Sa(ZZ),Sa(BK),Sa(nd),Sa(I2))},e.\u0275cmp=be({type:e,selectors:[["app-web-console-full-window"]],viewQuery:function(e,t){var n;1&e&&Cl(pye,1),2&e&&kl(n=xl())&&(t.terminal=n.first)},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(e,t){1&e&&Ea(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}(),gye=function(){function e(e,t){this.consoleService=e,this.bottomSheet=t}return e.prototype.canDeactivate=function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(Vie);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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(N7),Gn(Fie))}}),e}(),vye=n("q1tI"),bye=n.n(vye);function yye(){return(yye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _ye(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var wye=n("TSYQ"),kye=n.n(wye),Cye=bye.a.createContext({});function Sye(e,t){var n=Object(vye.useContext)(Cye);return e||n[t]||t}var xye=/-(.)/g;function Oye(e,t){var n,r,i=void 0===t?{}:t,o=i.displayName,a=void 0===o?(n=e)[0].toUpperCase()+(r=n,r.replace(xye,function(e,t){return t.toUpperCase()})).slice(1):o,s=i.Component,c=i.defaultProps,l=bye.a.forwardRef(function(t,n){var r=t.className,i=t.bsPrefix,o=t.as,a=void 0===o?s||"div":o,c=_ye(t,["className","bsPrefix","as"]),l=Sye(i,e);return bye.a.createElement(a,yye({ref:n,className:kye()(r,l)},c))});return l.defaultProps=c,l.displayName=a,l}var Mye=function(e){return bye.a.forwardRef(function(t,n){return bye.a.createElement("div",yye({},t,{ref:n,className:kye()(t.className,e)}))})},Tye=bye.a.createContext(null);Tye.displayName="CardContext";var Eye=Tye,Pye=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.variant,o=e.as,a=void 0===o?"img":o,s=_ye(e,["bsPrefix","className","variant","as"]),c=Sye(n,"card-img");return bye.a.createElement(a,yye({ref:t,className:kye()(i?c+"-"+i:c,r)},s))});Pye.displayName="CardImg",Pye.defaultProps={variant:null};var jye=Pye,Iye=Mye("h5"),Aye=Mye("h6"),Dye=Oye("card-body"),Rye=Oye("card-title",{Component:Iye}),Lye=Oye("card-subtitle",{Component:Aye}),Nye=Oye("card-link",{Component:"a"}),Fye=Oye("card-text",{Component:"p"}),Bye=Oye("card-header"),zye=Oye("card-footer"),Hye=Oye("card-img-overlay"),Vye=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.bg,o=e.text,a=e.border,s=e.body,c=e.children,l=e.as,u=void 0===l?"div":l,h=_ye(e,["bsPrefix","className","bg","text","border","body","children","as"]),d=Sye(n,"card"),f=Object(vye.useMemo)(function(){return{cardHeaderBsPrefix:d+"-header"}},[d]);return bye.a.createElement(Eye.Provider,{value:f},bye.a.createElement(u,yye({ref:t},h,{className:kye()(r,d,i&&"bg-"+i,o&&"text-"+o,a&&"border-"+a)}),s?bye.a.createElement(Dye,null,c):c))});Vye.displayName="Card",Vye.defaultProps={body:!1},Vye.Img=jye,Vye.Title=Rye,Vye.Subtitle=Lye,Vye.Body=Dye,Vye.Link=Nye,Vye.Text=Fye,Vye.Header=Bye,Vye.Footer=zye,Vye.ImgOverlay=Hye;var Uye=Vye,qye=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.variant,i=e.animation,o=e.size,a=e.children,s=e.as,c=void 0===s?"div":s,l=e.className,u=_ye(e,["bsPrefix","variant","animation","size","children","as","className"]),h=(n=Sye(n,"spinner"))+"-"+i;return bye.a.createElement(c,yye({ref:t},u,{className:kye()(l,h,o&&h+"-"+o,r&&"text-"+r)}),a)});qye.displayName="Spinner";var Wye=qye,Gye={width:"300px",margin:"20px"},Xye={color:"black"},Yye={color:"black",overflow:"auto",height:"100px"},Kye=function(e){function t(t){var n=e.call(this,t)||this;return n.state={data:n.props.data},n}return VZ(t,e),t.prototype.render=function(){var e=this.state.data;return bye.a.createElement(Uye,{key:e.html_url,style:Gye},bye.a.createElement(Uye.Body,null,bye.a.createElement(Uye.Title,{style:Xye},e.title),bye.a.createElement(Uye.Subtitle,{className:"mb-2 text-muted"},"Status: ",e.state),bye.a.createElement(Uye.Text,{style:Yye},e.body),bye.a.createElement(Uye.Link,{href:e.html_url,target:"_blank"},e.html_url)))},t}(vye.Component),Qye=(n("K9S6"),n("17x9")),Zye=n.n(Qye),$ye={type:Zye.a.string,tooltip:Zye.a.bool,as:Zye.a.elementType},Jye=bye.a.forwardRef(function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.className,o=e.type,a=void 0===o?"valid":o,s=e.tooltip,c=void 0!==s&&s,l=_ye(e,["as","className","type","tooltip"]);return bye.a.createElement(r,yye({},l,{ref:t,className:kye()(i,a+"-"+(c?"tooltip":"feedback"))}))});Jye.displayName="Feedback",Jye.propTypes=$ye;var e_e=Jye,t_e=bye.a.createContext({controlId:void 0}),n_e=bye.a.forwardRef(function(e,t){var n=e.id,r=e.bsPrefix,i=e.bsCustomPrefix,o=e.className,a=e.type,s=void 0===a?"checkbox":a,c=e.isValid,l=void 0!==c&&c,u=e.isInvalid,h=void 0!==u&&u,d=e.isStatic,f=e.as,p=void 0===f?"input":f,m=_ye(e,["id","bsPrefix","bsCustomPrefix","className","type","isValid","isInvalid","isStatic","as"]),g=Object(vye.useContext)(t_e),v=g.controlId,b=g.custom?[i,"custom-control-input"]:[r,"form-check-input"];return r=Sye(b[0],b[1]),bye.a.createElement(p,yye({},m,{ref:t,type:s,id:n||v,className:kye()(o,r,l&&"is-valid",h&&"is-invalid",d&&"position-static")}))});n_e.displayName="FormCheckInput";var r_e=n_e,i_e=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.bsCustomPrefix,i=e.className,o=e.htmlFor,a=_ye(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),s=Object(vye.useContext)(t_e),c=s.controlId,l=s.custom?[r,"custom-control-label"]:[n,"form-check-label"];return n=Sye(l[0],l[1]),bye.a.createElement("label",yye({},a,{ref:t,htmlFor:o||c,className:kye()(i,n)}))});i_e.displayName="FormCheckLabel";var o_e=i_e,a_e=bye.a.forwardRef(function(e,t){var n=e.id,r=e.bsPrefix,i=e.bsCustomPrefix,o=e.inline,a=void 0!==o&&o,s=e.disabled,c=void 0!==s&&s,l=e.isValid,u=void 0!==l&&l,h=e.isInvalid,d=void 0!==h&&h,f=e.feedbackTooltip,p=void 0!==f&&f,m=e.feedback,g=e.className,v=e.style,b=e.title,y=void 0===b?"":b,_=e.type,w=void 0===_?"checkbox":_,k=e.label,C=e.children,S=e.custom,x=e.as,O=void 0===x?"input":x,M=_ye(e,["id","bsPrefix","bsCustomPrefix","inline","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","title","type","label","children","custom","as"]),T="switch"===w||S,E=T?[i,"custom-control"]:[r,"form-check"];r=Sye(E[0],E[1]);var P=Object(vye.useContext)(t_e).controlId,j=Object(vye.useMemo)(function(){return{controlId:n||P,custom:T}},[P,T,n]),I=T||null!=k&&!1!==k&&!C,A=bye.a.createElement(r_e,yye({},M,{type:"switch"===w?"checkbox":w,ref:t,isValid:u,isInvalid:d,isStatic:!I,disabled:c,as:O}));return bye.a.createElement(t_e.Provider,{value:j},bye.a.createElement("div",{style:v,className:kye()(g,r,T&&"custom-"+w,a&&r+"-inline")},C||bye.a.createElement(bye.a.Fragment,null,A,I&&bye.a.createElement(o_e,{title:y},k),(u||d)&&bye.a.createElement(e_e,{type:u?"valid":"invalid",tooltip:p},m))))});a_e.displayName="FormCheck",a_e.Input=r_e,a_e.Label=o_e;var s_e=a_e,c_e=bye.a.forwardRef(function(e,t){var n=e.id,r=e.bsPrefix,i=e.bsCustomPrefix,o=e.className,a=e.isValid,s=e.isInvalid,c=e.lang,l=e.as,u=void 0===l?"input":l,h=_ye(e,["id","bsPrefix","bsCustomPrefix","className","isValid","isInvalid","lang","as"]),d=Object(vye.useContext)(t_e),f=d.controlId,p=d.custom?[i,"custom-file-input"]:[r,"form-control-file"];return r=Sye(p[0],p[1]),bye.a.createElement(u,yye({},h,{ref:t,id:n||f,type:"file",lang:c,className:kye()(o,r,a&&"is-valid",s&&"is-invalid")}))});c_e.displayName="FormFileInput";var l_e=c_e,u_e=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.bsCustomPrefix,i=e.className,o=e.htmlFor,a=_ye(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),s=Object(vye.useContext)(t_e),c=s.controlId,l=s.custom?[r,"custom-file-label"]:[n,"form-file-label"];return n=Sye(l[0],l[1]),bye.a.createElement("label",yye({},a,{ref:t,htmlFor:o||c,className:kye()(i,n),"data-browse":a["data-browse"]}))});u_e.displayName="FormFileLabel";var h_e=u_e,d_e=bye.a.forwardRef(function(e,t){var n=e.id,r=e.bsPrefix,i=e.bsCustomPrefix,o=e.disabled,a=void 0!==o&&o,s=e.isValid,c=void 0!==s&&s,l=e.isInvalid,u=void 0!==l&&l,h=e.feedbackTooltip,d=void 0!==h&&h,f=e.feedback,p=e.className,m=e.style,g=e.label,v=e.children,b=e.custom,y=e.lang,_=e["data-browse"],w=e.as,k=void 0===w?"div":w,C=e.inputAs,S=void 0===C?"input":C,x=_ye(e,["id","bsPrefix","bsCustomPrefix","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","label","children","custom","lang","data-browse","as","inputAs"]),O=b?[i,"custom"]:[r,"form-file"];r=Sye(O[0],O[1]);var M=Object(vye.useContext)(t_e).controlId,T=Object(vye.useMemo)(function(){return{controlId:n||M,custom:b}},[M,b,n]),E=null!=g&&!1!==g&&!v,P=bye.a.createElement(l_e,yye({},x,{ref:t,isValid:c,isInvalid:u,disabled:a,as:S,lang:y}));return bye.a.createElement(t_e.Provider,{value:T},bye.a.createElement(k,{style:m,className:kye()(p,r,b&&"custom-file")},v||bye.a.createElement(bye.a.Fragment,null,b?bye.a.createElement(bye.a.Fragment,null,P,E&&bye.a.createElement(h_e,{"data-browse":_},g)):bye.a.createElement(bye.a.Fragment,null,E&&bye.a.createElement(h_e,null,g),P),(c||u)&&bye.a.createElement(e_e,{type:c?"valid":"invalid",tooltip:d},f))))});d_e.displayName="FormFile",d_e.Input=l_e,d_e.Label=h_e;var f_e=d_e,p_e=(n("2W6z"),bye.a.forwardRef(function(e,t){var n,r,i=e.bsPrefix,o=e.bsCustomPrefix,a=e.type,s=e.size,c=e.htmlSize,l=e.id,u=e.className,h=e.isValid,d=void 0!==h&&h,f=e.isInvalid,p=void 0!==f&&f,m=e.plaintext,g=e.readOnly,v=e.custom,b=e.as,y=void 0===b?"input":b,_=_ye(e,["bsPrefix","bsCustomPrefix","type","size","htmlSize","id","className","isValid","isInvalid","plaintext","readOnly","custom","as"]),w=Object(vye.useContext)(t_e).controlId,k=v?[o,"custom"]:[i,"form-control"];if(i=Sye(k[0],k[1]),m)(r={})[i+"-plaintext"]=!0,n=r;else if("file"===a){var C;(C={})[i+"-file"]=!0,n=C}else if("range"===a){var S;(S={})[i+"-range"]=!0,n=S}else if("select"===y&&v){var x;(x={})[i+"-select"]=!0,x[i+"-select-"+s]=s,n=x}else{var O;(O={})[i]=!0,O[i+"-"+s]=s,n=O}return bye.a.createElement(y,yye({},_,{type:a,size:c,ref:t,readOnly:g,id:l||w,className:kye()(u,n,d&&"is-valid",p&&"is-invalid")}))}));p_e.displayName="FormControl";var m_e=Object.assign(p_e,{Feedback:e_e}),g_e=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.children,o=e.controlId,a=e.as,s=void 0===a?"div":a,c=_ye(e,["bsPrefix","className","children","controlId","as"]);n=Sye(n,"form-group");var l=Object(vye.useMemo)(function(){return{controlId:o}},[o]);return bye.a.createElement(t_e.Provider,{value:l},bye.a.createElement(s,yye({},c,{ref:t,className:kye()(r,n)}),i))});g_e.displayName="FormGroup";var v_e=g_e,b_e=["xl","lg","md","sm","xs"],y_e=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.as,o=void 0===i?"div":i,a=_ye(e,["bsPrefix","className","as"]),s=Sye(n,"col"),c=[],l=[];return b_e.forEach(function(e){var t,n,r,i=a[e];if(delete a[e],"object"==typeof i&&null!=i){var o=i.span;t=void 0===o||o,n=i.offset,r=i.order}else t=i;var u="xs"!==e?"-"+e:"";t&&c.push(!0===t?""+s+u:""+s+u+"-"+t),null!=r&&l.push("order"+u+"-"+r),null!=n&&l.push("offset"+u+"-"+n)}),c.length||c.push(s),bye.a.createElement(o,yye({},a,{ref:t,className:kye.a.apply(void 0,[r].concat(c,l))}))});y_e.displayName="Col";var __e=y_e,w_e=bye.a.forwardRef(function(e,t){var n=e.as,r=void 0===n?"label":n,i=e.bsPrefix,o=e.column,a=e.srOnly,s=e.className,c=e.htmlFor,l=_ye(e,["as","bsPrefix","column","srOnly","className","htmlFor"]),u=Object(vye.useContext)(t_e).controlId;i=Sye(i,"form-label");var h="col-form-label";"string"==typeof o&&(h=h+" "+h+"-"+o);var d=kye()(s,i,a&&"sr-only",o&&h);return c=c||u,o?bye.a.createElement(__e,yye({as:"label",className:d,htmlFor:c},l)):bye.a.createElement(r,yye({ref:t,className:d,htmlFor:c},l))});w_e.displayName="FormLabel",w_e.defaultProps={column:!1,srOnly:!1};var k_e=w_e,C_e=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.as,o=void 0===i?"small":i,a=e.muted,s=_ye(e,["bsPrefix","className","as","muted"]);return n=Sye(n,"form-text"),bye.a.createElement(o,yye({},s,{ref:t,className:kye()(r,n,a&&"text-muted")}))});C_e.displayName="FormText";var S_e=C_e,x_e=bye.a.forwardRef(function(e,t){return bye.a.createElement(s_e,yye({},e,{ref:t,type:"switch"}))});x_e.displayName="Switch",x_e.Input=s_e.Input,x_e.Label=s_e.Label;var O_e=x_e,M_e=Oye("form-row"),T_e=bye.a.forwardRef(function(e,t){var n=e.bsPrefix,r=e.inline,i=e.className,o=e.validated,a=e.as,s=void 0===a?"form":a,c=_ye(e,["bsPrefix","inline","className","validated","as"]);return n=Sye(n,"form"),bye.a.createElement(s,yye({},c,{ref:t,className:kye()(i,o&&"was-validated",r&&n+"-inline")}))});T_e.displayName="Form",T_e.defaultProps={inline:!1},T_e.Row=M_e,T_e.Group=v_e,T_e.Control=m_e,T_e.Check=s_e,T_e.File=f_e,T_e.Switch=O_e,T_e.Label=k_e,T_e.Text=S_e;var E_e=T_e,P_e={margin:"20px"},j_e=function(e){function t(t){return e.call(this,t)||this}return VZ(t,e),t.prototype.render=function(){return bye.a.createElement("div",null,bye.a.createElement(E_e.Group,{style:P_e},bye.a.createElement(E_e.Control,{size:"lg",type:"text",placeholder:"Search by keyword",value:this.props.filter,onChange:this.props.handleChange})))},t}(vye.Component),I_e=n("pBgu"),A_e=new(n.n(I_e).a),D_e={justifyContent:"center",display:"flex",flex:1,flexDirection:"row",flexWrap:"wrap",margin:"20px"},R_e={width:"300px",margin:"20px"},L_e={color:"red"},N_e=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=function(e){var t=e.target.value,r=n.state.issues;r=r.filter(function(e){return e.title.toLowerCase().includes(t.toLowerCase())}),n.setState({filteredIssues:r})},n.newIssueOpened=function(e){A_e.emit("message",{text:"Thank you for reporting the issue!"})},n.state={issues:[],filteredIssues:[],isFetching:!0},n}return VZ(t,e),t.prototype.componentDidMount=function(){var e=this;fetch("https://api.github.com/repos/GNS3/gns3-web-ui/issues").then(function(e){return e.json()}).then(function(t){return e.setState({issues:t,filteredIssues:t,isFetching:!1})})},t.prototype.render=function(){return bye.a.createElement("div",null,bye.a.createElement("div",null,bye.a.createElement(j_e,{handleChange:this.handleChange,filter:this.state.filter})),this.state.isFetching?bye.a.createElement("div",{style:D_e},bye.a.createElement(Wye,{animation:"grow"})):bye.a.createElement("div",{style:D_e},this.state.filteredIssues.map(function(e){return bye.a.createElement(Kye,{key:e.html_url,data:e})}),bye.a.createElement(Uye,{style:R_e},bye.a.createElement(Uye.Body,null,bye.a.createElement(Uye.Title,{style:L_e},"Don't see your issue here?"),bye.a.createElement(Uye.Link,{onClick:this.newIssueOpened,href:"https://github.com/GNS3/gns3-web-ui/issues/new",target:"_blank"},"Open new issue")))))},t}(vye.Component),F_e=n("i8i4"),B_e=["issueListComponentContainer"],z_e=[{path:"",component:wde,children:[{path:"",redirectTo:"servers",pathMatch:"full"},{path:"servers",component:Yhe},{path:"bundled",component:$de},{path:"server/:server_id/projects",component:ude,resolve:{server:fye}},{path:"help",component:fbe},{path:"help/reportissue",component:function(){function e(e){this.toasterService=e}return e.prototype.ngAfterViewInit=function(){this.render()},e.prototype.ngAfterContentInit=function(){var e=this;A_e.on("message",function(t){e.toasterService.success(t.text)})},e.prototype.ngOnDestroy=function(){F_e.unmountComponentAtNode(this.containerRef.nativeElement)},e.prototype.render=function(){F_e.render(React.createElement("div",null,React.createElement(N_e,null)),this.containerRef.nativeElement)},e.\u0275fac=function(t){return new(t||e)(Sa(e3))},e.\u0275cmp=be({type:e,selectors:[["app-report-issue"]],viewQuery:function(e,t){var n;1&e&&Cl(B_e,1),2&e&&kl(n=xl())&&(t.containerRef=n.first)},decls:2,vars:0,consts:[["issueListComponentContainer",""]],template:function(e,t){1&e&&Ea(0,"span",null,0)},styles:[""]}),e}()},{path:"settings",component:Zde},{path:"settings/console",component:dbe},{path:"installed-software",component:$me},{path:"server/:server_id/systemstatus",component:dye},{path:"server/:server_ip/:server_port/project/:project_id",component:xbe},{path:"server/:server_id/project/:project_id/snapshots",component:hbe,resolve:{server:fye}},{path:"server/:server_id/preferences",component:Jde},{path:"server/:server_id/preferences/gns3vm",component:Sbe},{path:"server/:server_id/preferences/builtin",component:wpe},{path:"server/:server_id/preferences/builtin/ethernet-hubs",component:Epe},{path:"server/:server_id/preferences/builtin/ethernet-hubs/addtemplate",component:Ppe},{path:"server/:server_id/preferences/builtin/ethernet-hubs/:template_id",component:Lpe},{path:"server/:server_id/preferences/builtin/ethernet-switches",component:yme},{path:"server/:server_id/preferences/builtin/ethernet-switches/addtemplate",component:_me},{path:"server/:server_id/preferences/builtin/ethernet-switches/:template_id",component:Mme},{path:"server/:server_id/preferences/builtin/cloud-nodes",component:Upe},{path:"server/:server_id/preferences/builtin/cloud-nodes/addtemplate",component:qpe},{path:"server/:server_id/preferences/builtin/cloud-nodes/:template_id",component:dme},{path:"server/:server_id/preferences/dynamips/templates",component:Dme},{path:"server/:server_id/preferences/dynamips/templates/addtemplate",component:Bge},{path:"server/:server_id/preferences/dynamips/templates/:template_id",component:wge},{path:"server/:server_id/preferences/dynamips/templates/:template_id/copy",component:$ve},{path:"server/:server_id/preferences/qemu/templates",component:lfe},{path:"server/:server_id/preferences/qemu/templates/:template_id/copy",component:Zve},{path:"server/:server_id/preferences/qemu/templates/:template_id",component:Efe},{path:"server/:server_id/preferences/qemu/addtemplate",component:Nfe},{path:"server/:server_id/preferences/vpcs/templates",component:Wfe},{path:"server/:server_id/preferences/vpcs/templates/:template_id",component:Jfe},{path:"server/:server_id/preferences/vpcs/addtemplate",component:Gfe},{path:"server/:server_id/preferences/virtualbox/templates",component:spe},{path:"server/:server_id/preferences/virtualbox/templates/:template_id",component:vpe},{path:"server/:server_id/preferences/virtualbox/addtemplate",component:_pe},{path:"server/:server_id/preferences/vmware/templates",component:Xge},{path:"server/:server_id/preferences/vmware/templates/:template_id",component:rve},{path:"server/:server_id/preferences/vmware/addtemplate",component:sve},{path:"server/:server_id/preferences/docker/templates",component:pve},{path:"server/:server_id/preferences/docker/templates/:template_id",component:Tve},{path:"server/:server_id/preferences/docker/templates/:template_id/copy",component:Jve},{path:"server/:server_id/preferences/docker/addtemplate",component:_ve},{path:"server/:server_id/preferences/iou/templates",component:Rve},{path:"server/:server_id/preferences/iou/templates/:template_id",component:Qve},{path:"server/:server_id/preferences/iou/templates/:template_id/copy",component:ebe},{path:"server/:server_id/preferences/iou/addtemplate",component:Hve}]},{path:"server/:server_id/project/:project_id",component:nhe,canDeactivate:[gye]},{path:"server/:server_id/project/:project_id/nodes/:node_id",component:mye},{path:"static/web-ui/server/:server_id/project/:project_id/nodes/:node_id",component:mye},{path:"**",component:pbe}],H_e=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[OZ.forRoot(z_e,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],OZ]}),e}(),V_e=function(e,t){return{dark:e,light:t}},U_e=function(){function e(e,t,n,r,i,o,a,s){var c=this;this.overlayContainer=e,this.settingsService=r,this.electronService=i,this.themeService=o,this.router=a,this.progressService=s,this.darkThemeEnabled=!1,t.addSvgIcon("gns3",n.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),t.addSvgIcon("gns3black",n.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),a.events.subscribe(function(e){c.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)}),this.applyTheme(this.themeService.savedTheme+"-theme"),this.themeService.themeChanged.subscribe(function(t){e.applyTheme(t)})},e.prototype.applyTheme=function(e){this.darkThemeEnabled="dark-theme"===e,this.overlayContainer.getContainerElement().classList.add(e),this.componentCssClass=e},e.prototype.checkEvent=function(e){e instanceof RY?this.progressService.activate():(e instanceof LY||e instanceof NY||e instanceof FY)&&this.progressService.deactivate()},e.\u0275fac=function(t){return new(t||e)(Sa(c0),Sa(y2),Sa(Qh),Sa($Z),Sa(lY),Sa(Hre),Sa(uZ),Sa(ate))},e.\u0275cmp=be({type:e,selectors:[["app-root"]],hostVars:2,hostBindings:function(e,t){2&e&&fs(Ln,hs,t.componentCssClass,!0)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(e,t){1&e&&(Ma(0,"div",0),Ea(1,"router-outlet"),Ea(2,"app-adbutler"),Ta()),2&e&&xa("ngClass",tl(1,V_e,t.darkThemeEnabled,!t.darkThemeEnabled))},directives:[eh,mZ,zme],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:#fff!important}"]}),e}(),q_e=[Lne,Dne,yne,tne,Jte,pne,wne,Sne,xne,Rne,Ane,Ine,Pne,sne,rne,ane,one,nne,cne],W_e=function(){return function(){}}(),G_e=function(){function e(){}return e.prototype.convert=function(e){var t=new W_e;return t.symbol_id=e.id,t.builtin=e.builtin,t.filename=e.filename,t.raw=e.raw,t},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),X_e=function(){function e(){}return e.prototype.convert=function(e){var t={font_family:void 0,font_size:void 0,font_weight:void 0};return A9.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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Y_e=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:GZ([dte,D9,Gre,Vre,Ure,qre,Wre,Dte,u9,ine,Ste,ste,Nne,dne,Bne,ene,$ne,Une,w9,_9,fte,_te,bte,rre,mne,ire,ore,bne,vne,G_e,gte,mte,kte,Rte,Ote,Tte,Pte,Ite,Cne,Vte,hte,X_e,Ene,Mne],q_e),imports:[[vh,W0,E2]]}),e}(),K_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(t,e),t.prototype.getItemKey=function(e){return e.symbol_id},t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return Q_e(e||t)}}),t}(d9),Q_e=Cn(K_e),Z_e=function(e,t){return(Z_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])})(e,t)};function $_e(e,t){function n(){this.constructor=e}Z_e(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var J_e,ewe=function(){return(ewe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function twe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function nwe(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function rwe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function iwe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function owe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(iwe(arguments[t]));return e}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(J_e||(J_e={}));var awe=n("zNuj"),swe=n("Rx26"),cwe=Object(awe.e)(),lwe=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(awe.c)(function(){cwe.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(awe.c)(function(){cwe.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(awe.c)(function(){cwe.console.error("Sentry Logger [Error]: "+e.join(" "))})},e}();cwe.__SENTRY__=cwe.__SENTRY__||{};var uwe,hwe=cwe.__SENTRY__.logger||(cwe.__SENTRY__.logger=new lwe),dwe=n("BBZ9"),fwe=n("Gqt4");!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(uwe||(uwe={}));var pwe=function(){function e(e){var t=this;this._state=uwe.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(uwe.RESOLVED,e)},this._reject=function(e){t._setResult(uwe.REJECTED,e)},this._setResult=function(e,n){t._state===uwe.PENDING&&(Object(fwe.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!==uwe.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach(function(e){e.done||(t._state===uwe.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===uwe.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,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach(function(t,a){e.resolve(t).then(function(e){o[a]=e,0==(i-=1)&&n(o)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},e.prototype.then=function(t,n){var r=this;return new e(function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(r){return void i(r)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(r){return void i(r)}else i(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,r){var i,o;return n.then(function(e){o=!1,i=e,t&&t()},function(e){o=!0,i=e,t&&t()}).then(function(){o?r(i):e(i)})})},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),mwe=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=owe(t._breadcrumbs),n._tags=ewe({},t._tags),n._extra=ewe({},t._extra),n._contexts=ewe({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=owe(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._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=ewe(ewe({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=ewe(ewe({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=ewe(ewe({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=ewe(ewe({},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 null===t?delete this._contexts[e]:this._contexts=ewe(ewe({},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,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},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=ewe(ewe({},this._tags),t._tags),this._extra=ewe(ewe({},this._extra),t._extra),this._contexts=ewe(ewe({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(fwe.h)(t)&&(t=t,this._tags=ewe(ewe({},this._tags),t.tags),this._extra=ewe(ewe({},this._extra),t.extra),this._contexts=ewe(ewe({},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._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=ewe({timestamp:Object(swe.a)()},e);return this._breadcrumbs=void 0!==t&&t>=0?owe(this._breadcrumbs,[n]).slice(-t):owe(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=ewe(ewe({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=ewe(ewe({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=ewe(ewe({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=ewe(ewe({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=ewe({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=ewe({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=owe(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(owe(gwe(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new pwe(function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var c=s(ewe({},t),n);Object(fwe.m)(c)?c.then(function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)}).then(null,a):i._notifyEventProcessors(e,c,n,r+1).then(o).then(null,a)}})},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(t){t(e)}),this._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 gwe(){var e=Object(awe.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function vwe(e){gwe().push(e)}function bwe(e){try{for(var t=e,n=[],r=0,i=0,o=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=ywe(t))||r>1&&i+n.length*o+a.length>=80);)n.push(a),i+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(s){return"<unknown>"}}function ywe(e){var t,n,r,i,o,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&Object(fwe.k)(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)s.push("."+n[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)(i=a.getAttribute(r=c[o]))&&s.push("["+r+'="'+i+'"]');return s.join("")}var _we=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}(),wwe="<anonymous>";function kwe(e){try{return e&&"function"==typeof e&&e.name||wwe}catch(t){return wwe}}var Cwe=n("7Ki+");function Swe(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(o){}e[t]=i}}function xwe(e){if(Object(fwe.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Object(fwe.f)(e)){var i=e,o={};o.type=i.type;try{o.target=Object(fwe.c)(i.target)?bwe(i.target):Object.prototype.toString.call(i.target)}catch(a){o.target="<unknown>"}try{o.currentTarget=Object(fwe.c)(i.currentTarget)?bwe(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(a){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(fwe.g)(e,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i);return o}return e}function Owe(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,i=Ewe(e,t);return r=JSON.stringify(i),~-encodeURI(r).split(/%..|./).length>n?Owe(e,t-1,n):i}function Mwe(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(fwe.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+kwe(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function Twe(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new _we),0===n)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=Mwe(e);return Object(fwe.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=Mwe(t,e);if(Object(fwe.i)(i))return i;var o=xwe(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=Twe(s,o[s],n-1,r));return r.unmemoize(t),a}function Ewe(e,t){try{return JSON.parse(JSON.stringify(e,function(e,n){return Twe(e,n,t)}))}catch(n){return"**non-serializable**"}}function Pwe(e,t){void 0===t&&(t=40);var n=Object.keys(xwe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(Cwe.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(Cwe.d)(i,t)}return""}function jwe(e){var t,n;if(Object(fwe.h)(e)){var r=e,i={};try{for(var o=rwe(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==r[s]&&(i[s]=jwe(r[s]))}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(jwe):e}var Iwe,Awe=function(){function e(e){this.errors=0,this.sid=Object(awe.i)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=J_e.Ok,this.init=!0,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(awe.i)()),void 0!==e.init&&(this.init=e.init),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.duration="number"==typeof e.duration?e.duration:this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===J_e.Ok?this.update({status:J_e.Exited}):this.update()},e.prototype.toJSON=function(){return jwe({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:jwe({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),Dwe=function(){function e(e,t,n){void 0===t&&(t=new mwe),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().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=mwe.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!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(awe.i)(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,ewe(ewe({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(awe.i)(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(a){o=a}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,ewe(ewe({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(awe.i)();return this._invokeClient("captureEvent",e,ewe(ewe({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,c=o.maxBreadcrumbs,l=void 0===c?100:c;if(!(l<=0)){var u=Object(swe.a)(),h=ewe({timestamp:u},e),d=s?Object(awe.c)(function(){return s(h,t)}):h;null!==d&&r.addBreadcrumb(d,Math.min(l,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope;n&&t.client&&e(n)},e.prototype.run=function(e){var t=Lwe(this);try{e(this)}finally{Lwe(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return hwe.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.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,i;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(i=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===i||i.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=new Awe(ewe(ewe({release:i.release,environment:i.environment},n&&{user:n.getUser()}),e));if(n){var a=n.getSession&&n.getSession();a&&a.status===J_e.Ok&&a.update({status:J_e.Exited}),this.endSession(),n.setSession(o)}return o},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,owe(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Rwe(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);hwe.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Rwe(){var e=Object(awe.e)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Lwe(e){var t=Rwe(),n=Bwe(t);return zwe(t,e),n}function Nwe(){var e=Rwe();return Fwe(e)&&!Bwe(e).isOlderThan(3)||zwe(e,new Dwe),Object(dwe.b)()?function(e){var t,n,r;try{var i=null===(r=null===(n=null===(t=Rwe().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!i)return Bwe(e);if(!Fwe(i)||Bwe(i).isOlderThan(3)){var o=Bwe(e).getStackTop();zwe(i,new Dwe(o.client,mwe.clone(o.scope)))}return Bwe(i)}catch(a){return Bwe(e)}}(e):Bwe(e)}function Fwe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Bwe(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new Dwe),e.__SENTRY__.hub}function zwe(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function Hwe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Nwe();if(r&&r[e])return r[e].apply(r,owe(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Vwe(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return Hwe("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function Uwe(e){Hwe("withScope",e)}var qwe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Iwe=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 Iwe.apply(n,e)}},e.id="FunctionToString",e}(),Wwe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Gwe=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){vwe(function(t){var n=Nwe();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t})},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(hwe.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(awe.d)(e)),!0):this._isIgnoredError(e,t)?(hwe.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(awe.d)(e)),!0):this._isDeniedUrl(e,t)?(hwe.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(awe.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(hwe.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(awe.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(Cwe.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(Cwe.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(Cwe.a)(n,e)})},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:owe(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:owe(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:owe(this._options.ignoreErrors||[],e.ignoreErrors||[],Wwe),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,r=t.value,i=void 0===r?"":r;return[""+i,(void 0===n?"":n)+": "+i]}catch(o){return hwe.error("Cannot extract message for event "+Object(awe.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(r){return hwe.error("Cannot extract url for event "+Object(awe.d)(e)),null}},e.id="InboundFilters",e}();function Xwe(){if(!("fetch"in Object(awe.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Ywe(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Kwe(){if(!Xwe())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Qwe,Zwe,$we,Jwe=Object(awe.e)(),eke={},tke={};function nke(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(eke[e.type]=eke[e.type]||[],eke[e.type].push(e.callback),function(e){if(!tke[e])switch(tke[e]=!0,e){case"console":"console"in Jwe&&["debug","info","warn","error","log","assert"].forEach(function(e){e in Jwe.console&&Swe(Jwe.console,e,function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];rke("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Jwe.console,n)}})});break;case"dom":!function(){if("document"in Jwe){var e=rke.bind(null,"dom"),t=ake(e,!0);Jwe.document.addEventListener("click",t,!1),Jwe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(t){var n=Jwe[t]&&Jwe[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Swe(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=ake(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(c){}return t.call(this,n,r,i)}}),Swe(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(a){}return e.call(this,t,n,r)}}))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in Jwe){var e=[],t=[],n=XMLHttpRequest.prototype;Swe(n,"open",function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,a=r[1];o.__sentry_xhr__={method:Object(fwe.k)(r[0])?r[0].toUpperCase():r[0],url:r[1]},Object(fwe.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 i=t.splice(n)[0];o.__sentry_xhr__&&void 0!==i[0]&&(o.__sentry_xhr__.body=i[0])}}catch(a){}rke("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Swe(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,r)}}),Swe(n,"send",function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.push(this),t.push(r),rke("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}})}}();break;case"fetch":(function(){if(!Xwe())return!1;var e=Object(awe.e)();if(Ywe(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Ywe(r.contentWindow.fetch)),n.head.removeChild(r)}catch(i){hwe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return t})()&&Swe(Jwe,"fetch",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:ike(t),url:oke(t)},startTimestamp:Date.now()};return rke("fetch",ewe({},r)),e.apply(Jwe,t).then(function(e){return rke("fetch",ewe(ewe({},r),{endTimestamp:Date.now(),response:e})),e},function(e){throw rke("fetch",ewe(ewe({},r),{endTimestamp:Date.now(),error:e})),e})}});break;case"history":!function(){if(function(){var e=Object(awe.e)(),t=e.chrome;return!(t&&t.app&&t.app.runtime||!("history"in e)||!e.history.pushState||!e.history.replaceState)}()){var e=Jwe.onpopstate;Jwe.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Jwe.location.href,i=Qwe;if(Qwe=r,rke("history",{from:i,to:r}),e)return e.apply(this,t)},Swe(Jwe.history,"pushState",t),Swe(Jwe.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=Qwe,o=String(r);Qwe=o,rke("history",{from:i,to:o})}return e.apply(this,t)}}}();break;case"error":cke=Jwe.onerror,Jwe.onerror=function(e,t,n,r,i){return rke("error",{column:r,error:i,line:n,msg:e,url:t}),!!cke&&cke.apply(this,arguments)};break;case"unhandledrejection":lke=Jwe.onunhandledrejection,Jwe.onunhandledrejection=function(e){return rke("unhandledrejection",e),!lke||lke.apply(this,arguments)};break;default:hwe.warn("unknown instrumentation type:",e)}}(e.type))}function rke(e,t){var n,r;if(e&&eke[e])try{for(var i=rwe(eke[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(s){hwe.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+kwe(a)+"\nError: "+s)}}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function ike(e){return void 0===e&&(e=[]),"Request"in Jwe&&Object(fwe.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function oke(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Jwe&&Object(fwe.g)(e[0],Request)?e[0].url:String(e[0])}function ake(e,t){return void 0===t&&(t=!1),function(n){if(n&&$we!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===Zwe||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}($we,n))&&(e({event:n,name:r,global:t}),$we=n),clearTimeout(Zwe),Zwe=Jwe.setTimeout(function(){Zwe=void 0},1e3)}}}var ske,cke=null,lke=null,uke="6.2.5",hke=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}),dke=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,hke(r,n.prototype),r}return $_e(t,e),t}(Error),fke=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,pke=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,r=t.pass,i=t.port;return t.protocol+"://"+t.publicKey+(e&&r?":"+r:"")+"@"+t.host+(i?":"+i:"")+"/"+(n?n+"/":n)+t.projectId},e.prototype._fromString=function(e){var t=fke.exec(e);if(!t)throw new dke("Invalid Dsn");var n=iwe(t.slice(1),6),r=n[0],i=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:r,publicKey:i})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",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","publicKey","host","projectId"].forEach(function(t){if(!e[t])throw new dke("Invalid Dsn: "+t+" missing")}),!this.projectId.match(/^\d+$/))throw new dke("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new dke("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new dke("Invalid Dsn: Invalid port "+this.port)},e}(),mke=[],gke=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new pke(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then(function(e){return r._captureEvent(e,t,n)}).then(function(e){i=e})),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=Object(fwe.i)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then(function(e){return i._captureEvent(e,n,r)}).then(function(e){o=e})),o},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(function(e){r=e})),r},e.prototype.captureSession=function(e){e.release?(this._sendSession(e),e.update({init:!1})):hwe.warn("Discarded session because of missing release")},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 t._getBackend().getTransport().close(e).then(function(e){return n&&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&&owe(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map(function(e){return e.name}),o=[];t.forEach(function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}),n.forEach(function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=owe(t);var a=r.map(function(e){return e.name}),s="Debug";return-1!==a.indexOf(s)&&r.push.apply(r,owe(r.splice(a.indexOf(s),1))),r}(this._options).forEach(function(t){e[t.name]=t,function(e){-1===mke.indexOf(e.name)&&(e.setupOnce(vwe,Nwe),mke.push(e.name),hwe.log("Integration installed: "+e.name))}(t)}),e))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return hwe.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i,o=!1,a=!1,s=t.exception&&t.exception.values;if(s){a=!0;try{for(var c=rwe(s),l=c.next();!l.done;l=c.next()){var u=l.value.mechanism;if(u&&!1===u.handled){o=!0;break}}}catch(p){n={error:p}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var h=t.user;if(!e.userAgent){var d=t.request?t.request.headers:{};for(var f in d)if("user-agent"===f.toLowerCase()){i=d[f];break}}e.update(ewe(ewe({},o&&{status:J_e.Crashed}),{user:h,userAgent:i,errors:e.errors+Number(a||o)})),this.captureSession(e)},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new pwe(function(n){var r=0,i=setInterval(function(){0==t._processing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))},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 r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,a=ewe(ewe({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(awe.i)()),timestamp:e.timestamp||Object(swe.a)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=mwe.clone(s).update(n.captureContext));var c=pwe.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then(function(e){return"number"==typeof o&&o>0?r._normalizeEvent(e,o):e})},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=ewe(ewe(ewe(ewe(ewe({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(e){return ewe(ewe({},e),e.data&&{data:Ewe(e.data,t)})})}),e.user&&{user:Ewe(e.user,t)}),e.contexts&&{contexts:Ewe(e.contexts,t)}),e.extra&&{extra:Ewe(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.release,r=t.dist,i=t.maxValueLength,o=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?t.environment:"production"),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=Object(Cwe.d)(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Object(Cwe.d)(a.value,o));var s=e.request;s&&s.url&&(s.url=Object(Cwe.d)(s.url,o))},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._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then(function(e){return e.event_id},function(e){hwe.error(e)})},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return pwe.reject(new dke("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"==typeof a&&Math.random()>a?pwe.reject(new dke("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then(function(e){if(null===e)throw new dke("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!o)return e;var n=o(e,t);if(void 0===n)throw new dke("`beforeSend` method has to return `null` or a valid event.");return Object(fwe.m)(n)?n.then(function(e){return e},function(e){throw new dke("beforeSend rejected with "+e)}):n}).then(function(e){if(null===e)throw new dke("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e}).then(null,function(e){if(e instanceof dke)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new dke("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)})},e.prototype._process=function(e){var t=this;this._processing+=1,e.then(function(e){return t._processing-=1,e},function(e){return t._processing-=1,e})},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(ske||(ske={})),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}}(ske||(ske={}));var vke,bke=function(){function e(){}return e.prototype.sendEvent=function(e){return pwe.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:ske.Skipped})},e.prototype.close=function(e){return pwe.resolve(!0)},e}(),yke=function(){function e(e){this._options=e,this._options.dsn||hwe.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new dke("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new dke("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,function(e){hwe.error("Error while sending event: "+e)})},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,function(e){hwe.error("Error while sending session: "+e)}):hwe.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new bke},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(vke||(vke={})),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}}}(vke||(vke={}));var _ke="?",wke=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,kke=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Cke=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ske=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xke=/\((\S*)(?::(\d+))(?::(\d+))\)/,Oke=/Minified React error #\d+;/i;function Mke(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Oke.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,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=e.stacktrace.split("\n"),o=[],a=0;a<i.length;a+=2){var s=null;(t=n.exec(i[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(i[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=_ke),o.push(s))}return o.length?{message:Eke(e),name:e.name,stack:o}:null}(e))return Tke(t,n)}catch(r){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,i=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=wke.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=xke.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||_ke,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=Cke.exec(o[a]))r={url:n[2],func:n[1]||_ke,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=kke.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=Ske.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||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||_ke,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=_ke),i.push(r)}return i.length?{message:Eke(e),name:e.name,stack:i}:null}(e))return Tke(t,n)}catch(r){}return{message:Eke(e),name:e&&e.name,stack:[],failed:!0}}function Tke(e,t){try{return ewe(ewe({},e),{stack:e.stack.slice(t)})}catch(n){return e}}function Eke(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Pke(e){var t=Ike(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 jke(e){return{exception:{values:[Pke(e)]}}}function Ike(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.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 Ake(e,t,n){var r;if(void 0===n&&(n={}),Object(fwe.e)(e)&&e.error)return jke(Mke(e=e.error));if(Object(fwe.a)(e)||Object(fwe.b)(e)){var i=e,o=i.name||(Object(fwe.a)(i)?"DOMError":"DOMException"),a=i.message?o+": "+i.message:o;return r=Dke(a,t,n),Object(awe.b)(r,a),"code"in i&&(r.tags=ewe(ewe({},r.tags),{"DOMException.code":""+i.code})),r}return Object(fwe.d)(e)?r=jke(Mke(e)):Object(fwe.h)(e)||Object(fwe.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(fwe.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Pwe(e)}]},extra:{__serialized__:Owe(e)}};if(t){var i=Ike(Mke(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),Object(awe.a)(r,{synthetic:!0}),r):(r=Dke(e,t,n),Object(awe.b)(r,""+e,void 0),Object(awe.a)(r,{synthetic:!0}),r)}function Dke(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=Ike(Mke(t).stack);r.stacktrace={frames:i}}return r}function Rke(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function Lke(e,t){return t?(e.sdk=e.sdk||{name:t.name,version:t.version},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=owe(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=owe(e.sdk.packages||[],t.packages||[]),e):e}function Nke(e,t){var n=Rke(t);return{body:JSON.stringify(ewe({sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function Fke(e,t){var n=Rke(t),r=e.type||"event",i="transaction"===r,o=e.debug_meta||{},a=o.transactionSampling,s=twe(o,["transactionSampling"]),c=a||{},l=c.method,u=c.rate;0===Object.keys(s).length?delete e.debug_meta:e.debug_meta=s;var h={body:JSON.stringify(n?Lke(e,t.metadata.sdk):e),type:r,url:i?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(i){var d=JSON.stringify(ewe({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n})),f=JSON.stringify({type:e.type,sample_rates:[{id:l,rate:u}]});h.body=d+"\n"+f+"\n"+h.body}return h}var Bke=function(){function e(e,t){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new pke(e),this.metadata=t}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,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.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;return e={sentry_key:this._dsnObject.publicKey,sentry_version:"7"},Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},e}(),zke=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):pwe.reject(new dke("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 pwe(function(n){var r=setTimeout(function(){e&&e>0&&n(!1)},e);pwe.all(t._buffer).then(function(){clearTimeout(r),n(!0)}).then(null,function(){n(!0)})})},e}(),Hke={event:"error",transaction:"transaction",session:"session"},Vke=function(){function e(e){this.options=e,this._buffer=new zke(30),this._rateLimits={},this._api=new Bke(e.dsn,e._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new dke("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=ske.fromHttpCode(n.status);this._handleRateLimit(r)&&hwe.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==ske.Success?o(n):i({status:a})},e.prototype._disabledUntil=function(e){return this._rateLimits[Hke[e]]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=rwe(a.trim().split(",")),l=c.next();!l.done;l=c.next()){var u=l.value.split(":",2),h=parseInt(u[0],10),d=1e3*(isNaN(h)?60:h);try{for(var f=(r=void 0,rwe(u[1].split(";"))),p=f.next();!p.done;p=f.next())this._rateLimits[p.value||"all"]=new Date(o+d)}catch(m){r={error:m}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+Object(awe.g)(o,s)),!0)},e}(),Uke=function(e){function t(t,n){void 0===n&&(n=function(){var e,t,n=Object(awe.e)();if(Ywe(n.fetch))return n.fetch.bind(n);var r=n.document,i=n.fetch;if("function"==typeof(null===(e=r)||void 0===e?void 0:e.createElement))try{var o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o),(null===(t=o.contentWindow)||void 0===t?void 0:t.fetch)&&(i=o.contentWindow.fetch),r.head.removeChild(o)}catch(a){hwe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return i.bind(n)}());var r=e.call(this,t)||this;return r._fetch=n,r}return $_e(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Fke(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Nke(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:Kwe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new pwe(function(t,i){n._fetch(e.url,r).then(function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})}).catch(i)}))},t}(Vke),qke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $_e(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Fke(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Nke(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new pwe(function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))},t}(Vke),Wke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $_e(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=Ake(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Object(awe.a)(r,{handled:!0,type:"generic"}),r.level=vke.Error,n&&n.event_id&&(r.event_id=n.event_id),pwe.resolve(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=vke.Info),function(e,t,n,r){void 0===n&&(n=vke.Info);var i=Dke(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),pwe.resolve(i)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=ewe(ewe({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):Xwe()?new Uke(t):new qke(t)},t}(yke),Gke=0;function Xke(){return Gke>0}function Yke(){Gke+=1,setTimeout(function(){Gke-=1})}function Kke(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 r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map(function(e){return Kke(e,t)});return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(o){throw Yke(),Uwe(function(e){e.addEventProcessor(function(e){var n=ewe({},e);return t.mechanism&&(Object(awe.b)(n,void 0,void 0),Object(awe.a)(n,t.mechanism)),n.extra=ewe(ewe({},n.extra),{arguments:r}),n}),Vwe(o)}),o}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(a){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(a){}return r}var Qke=function(){function e(t){this.name=e.id,this._options=ewe({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&Nwe().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Object(awe.d)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&nke({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,owe(t))},type:"console"}),this._options.dom&&nke({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,owe(t))},type:"dom"}),this._options.xhr&&nke({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,owe(t))},type:"xhr"}),this._options.fetch&&nke({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,owe(t))},type:"fetch"}),this._options.history&&nke({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,owe(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:vke.fromString(e.level),message:Object(Cwe.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(Cwe.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}Nwe().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=bwe(e.event.target?e.event.target:e.event)}catch(n){t="<unknown>"}0!==t.length&&Nwe().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;Nwe().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},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?Nwe().addBreadcrumb({category:"fetch",data:e.fetchData,level:vke.Error,type:"http"},{data:e.error,input:e.args}):Nwe().addBreadcrumb({category:"fetch",data:ewe(ewe({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=Object(awe.e)(),n=e.from,r=e.to,i=Object(awe.h)(t.location.href),o=Object(awe.h)(n),a=Object(awe.h)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Nwe().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),Zke=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:uke}],version:uke},e.call(this,Wke,t)||this}return $_e(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(awe.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 Bke(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else hwe.error("Missing dsn option in showReportDialog call");else hwe.error("Missing eventId option in showReportDialog call")}(ewe(ewe({},e),{dsn:e.dsn||this.getDsn()})):hwe.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Qke);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(gke),$ke=["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"],Jke=function(){function e(t){this.name=e.id,this._options=ewe({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(awe.e)();this._options.setTimeout&&Swe(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Swe(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Swe(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Swe(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:$ke).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 r=t[0];return t[0]=Kke(r,{mechanism:{data:{function:kwe(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Kke(t,{mechanism:{data:{function:"requestAnimationFrame",handler:kwe(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(awe.e)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Swe(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Kke(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:kwe(r),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.call(this,n,Kke(r,{mechanism:{data:{function:"addEventListener",handler:kwe(r),target:e},handled:!0,type:"instrument"}}),i)}}),Swe(n,"removeEventListener",function(e){return function(t,n,r){var i,o=n;try{var a=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(s){}return e.call(this,t,o,r)}}))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach(function(e){e in r&&"function"==typeof r[e]&&Swe(r,e,function(t){var n={mechanism:{data:{function:e,handler:kwe(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=kwe(t.__sentry_original__)),Kke(t,n)})}),e.apply(this,t)}},e.id="TryCatch",e}(),eCe=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=ewe({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(hwe.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(hwe.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(nke({callback:function(n){var r=n.error,i=Nwe(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(o&&!Xke()&&!a){var s=i.getClient(),c=Object(fwe.i)(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(Ake(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(awe.a)(c,{handled:!1,type:"onerror"}),i.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(nke({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(l){}var i=Nwe(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!o||Xke()||a)return!0;var s=i.getClient(),c=Object(fwe.i)(r)?t._eventFromRejectionWithPrimitive(r):Ake(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});c.level=vke.Error,Object(awe.a)(c,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(c,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=Object(fwe.e)(e)?e.message:e;if(Object(fwe.k)(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}return this._enhanceEventWithInitialFrame({exception:{values:[{type:i||"Error",value:o}]}},t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){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 i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=Object(fwe.k)(t)&&t.length>0?t:Object(awe.f)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),tCe=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(){vwe(function(t,n){var r=Nwe().getIntegration(e);return r?r._handler(t,n):t})},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(fwe.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=owe(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(fwe.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=Pke(Mke(e[t]));return this._walkErrorTree(e[t],t,owe([r],n))},e.id="LinkedErrors",e}(),nCe=Object(awe.e)(),rCe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){vwe(function(t){var n,r,i;if(Nwe().getIntegration(e)){if(!nCe.navigator&&!nCe.location&&!nCe.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=nCe.location)||void 0===r?void 0:r.href),a=(nCe.document||{}).referrer,s=(nCe.navigator||{}).userAgent,c=ewe(ewe(ewe({},null===(i=t.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),s&&{"User-Agent":s}),l=ewe(ewe({},o&&{url:o}),{headers:c});return ewe(ewe({},t),{request:l})}return t})},e.id="UserAgent",e}(),iCe=[new i.InboundFilters,new i.FunctionToString,new Jke,new Qke,new eCe,new tCe,new rCe];!function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=iCe),void 0===e.release){var t=Object(awe.e)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),function(e,t){!0===t.debug&&hwe.enable();var n=Nwe(),r=new e(t);n.bindClient(r)}(Zke,e),e.autoSessionTracking&&function(){if(void 0!==Object(awe.e)().document){var e=Nwe();"startSession"in e&&(e.startSession(),e.captureSession(),nke({callback:function(){e.startSession(),e.captureSession()},type:"history"}))}else hwe.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var oCe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return VZ(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(e3);t.error&&t.error.message?n.error(t.error.message):t.message?n.error(t.message):t.error&&n.error(t.error)}},t.\u0275prov=F({token:t,factory:t.\u0275fac=function(e){return aCe(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 wm?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){Vwe(this.extractError(e)||"Handled unknown error")},e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(na))}}),e}()),aCe=Cn(oCe),sCe=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[yJ,lJ],yJ,lJ]}),e}(),cCe=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({}),e}(),lCe=[noe,h2,W0,c3,bde,E2,V3,Z3,s4,p1,Ale,Sse,Z2,I5,v7,Qde,Pae,y5,v4,vae,P6,sCe,r2,function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[cCe,lJ],lJ]}),e}(),Rie,iye];n("CqXF");var uCe=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({imports:[[vh,lJ,tp,_p],_p,lJ]}),e}(),hCe=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),dCe=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}(),fCe=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=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(QZ))}}),e}(),pCe=n("l5mm");function mCe(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function gCe(e,t){var n=t?"":"none";mCe(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function vCe(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function bCe(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function yCe(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function _Ce(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 wCe(e,t,n){return n>=e.top&&n<=e.bottom&&t>=e.left&&t<=e.right}function kCe(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function CCe(e,t,n,r){var i=e.width*t,o=e.height*t;return r>e.top-o&&r<e.bottom+o&&n>e.left-i&&n<e.right+i}var SCe=function(){function e(t,n){Object(s.a)(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}return Object(c.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:_Ce(e)})})}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var r,i,o=t===this._document?t.documentElement:t,a=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();r=s.top,i=s.left}else r=t.scrollTop,i=t.scrollLeft;var c=a.top-r,l=a.left-i;return this.positions.forEach(function(e,n){e.clientRect&&t!==n&&o.contains(n)&&kCe(e.clientRect,c,l)}),a.top=r,a.left=i,{top:c,left:l}}}]),e}();function xCe(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),r=e.nodeName.toLowerCase();t.removeAttribute("id");for(var i=0;i<n.length;i++)n[i].removeAttribute("id");return"canvas"===r?ECe(e,t):"input"!==r&&"select"!==r&&"textarea"!==r||TCe(e,t),OCe("canvas",e,t,ECe),OCe("input, textarea, select",e,t,TCe),t}function OCe(e,t,n,r){var i=t.querySelectorAll(e);if(i.length)for(var o=n.querySelectorAll(e),a=0;a<i.length;a++)r(i[a],o[a])}var MCe=0;function TCe(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(MCe++))}function ECe(e,t){var n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(vSe){}}var PCe=ip({passive:!0}),jCe=ip({passive:!1}),ICe=function(){function e(t,n,r,i,o,a){var c=this;Object(s.a)(this,e),this._config=n,this._document=r,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new k.b,this._pointerMoveSubscription=w.a.EMPTY,this._pointerUpSubscription=w.a.EMPTY,this._scrollSubscription=w.a.EMPTY,this._resizeSubscription=w.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 k.b,this.started=new k.b,this.released=new k.b,this.ended=new k.b,this.entered=new k.b,this.exited=new k.b,this.dropped=new k.b,this.moved=this._moveEvents,this._pointerDown=function(e){if(c.beforeStarted.next(),c._handles.length){var t=c._handles.find(function(t){var n=e.target;return!!n&&(n===t||t.contains(n))});!t||c._disabledHandles.has(t)||c.disabled||c._initializeDragSequence(t,e)}else c.disabled||c._initializeDragSequence(c._rootElement,e)},this._pointerMove=function(e){var t=c._getPointerPositionOnPage(e);if(c._hasStartedDragging){c._boundaryElement&&(c._previewRect&&(c._previewRect.width||c._previewRect.height)||(c._previewRect=(c._preview||c._rootElement).getBoundingClientRect())),e.preventDefault();var n=c._getConstrainedPointerPosition(t);if(c._hasMoved=!0,c._lastKnownPointerPosition=t,c._updatePointerDirectionDelta(n),c._dropContainer)c._updateActiveDropContainer(n,t);else{var r=c._activeTransform;if(r.x=n.x-c._pickupPositionOnPage.x+c._passiveTransform.x,r.y=n.y-c._pickupPositionOnPage.y+c._passiveTransform.y,c._applyRootElementTransform(r.x,r.y),"undefined"!=typeof SVGElement&&c._rootElement instanceof SVGElement){var i="translate(".concat(r.x," ").concat(r.y,")");c._rootElement.setAttribute("transform",i)}}c._moveEvents.observers.length&&c._ngZone.run(function(){c._moveEvents.next({source:c,pointerPosition:n,event:e,distance:c._getDragDistance(n),delta:c._pointerDirectionDelta})})}else if(Math.abs(t.x-c._pickupPositionOnPage.x)+Math.abs(t.y-c._pickupPositionOnPage.y)>=c._config.dragStartThreshold){var o=Date.now()>=c._dragStartTime+c._getDragStartDelay(e),a=c._dropContainer;if(!o)return void c._endDragSequence(e);a&&(a.isDragging()||a.isReceiving())||(e.preventDefault(),c._hasStartedDragging=!0,c._ngZone.run(function(){return c._startDragSequence(e)}))}},this._pointerUp=function(e){c._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new SCe(r,o),a.registerDragItem(this)}return Object(c.a)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=If(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return gCe(e,t)}))}},{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){var t=this;this._handles=e.map(function(e){return Nf(e)}),this._handles.forEach(function(e){return gCe(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,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=Nf(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,jCe),n.addEventListener("touchstart",t._pointerDown,PCe)}),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?Nf(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&RCe(this._rootElement),RCe(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=this._parentDragRef=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._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),gCe(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),gCe(e,this.disabled))}},{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&&RCe(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&RCe(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){LCe(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,r=n.parentNode,i=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(a,n),vCe(n,!1),this._document.body.appendChild(r.replaceChild(o,n)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,s).appendChild(i),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var r=this.isDragging(),i=LCe(t),o=!i&&0!==t.button,a=this._rootElement,s=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(r||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=_Ce(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;vCe(this._rootElement,!0),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,r=n.getItemIndex(t),i=t._getPointerPositionOnPage(e),o=t._getDragDistance(t._getPointerPositionOnPage(e)),a=n._isOverContainer(i.x,i.y);t.ended.next({source:t,distance:o}),t.dropped.next({item:t,currentIndex:r,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o}),n.drop(t,r,t._initialIndex,t._initialContainer,a,o),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,r=e.x,i=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,r,i);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,i)&&(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,r,i,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,r,i,this._pointerDirectionDelta),this._preview.style.transform=ACe(r-this._pickupPositionInElement.x,i-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,r=t?t.template:null;if(r&&t){var i=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(r,t.context);o.detectChanges(),e=NCe(o,this._document),this._previewRef=o,t.matchSize?FCe(e,i):e.style.transform=ACe(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;FCe(e=xCe(a),a.getBoundingClientRect())}return mCe(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),gCe(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=ACe(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=yCe(t,"transition-property"),r=n.find(function(e){return"transform"===e||"all"===e});if(!r)return 0;var i=n.indexOf(r),o=yCe(t,"transition-duration"),a=yCe(t,"transition-delay");return bCe(o[i])+bCe(a[i])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var r=function n(r){(!r||r.target===e._preview&&"transform"===r.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(i))},i=setTimeout(r,1.5*n);e._preview.addEventListener("transitionend",r)})})}},{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=NCe(this._placeholderRef,this._document)):e=xCe(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),r=e===this._rootElement?null:e,i=r?r.getBoundingClientRect():n,o=LCe(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:i.left-n.left+(o.pageX-i.left-a.left),y:i.top-n.top+(o.pageY-i.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=LCe(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,r=n.pageX-t.left,i=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=i,a.matrixTransform(o.inverse())}}return{x:r,y:i}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,r=n.x,i=n.y;if("x"===this.lockAxis||"x"===t?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(r=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);r=DCe(r,c.left+a,c.right-(l.width-a)),i=DCe(i,u,h)}return{x:r,y:i}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,r=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-i.x),a=Math.abs(n-i.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=t>i.x?1:-1,i.x=t),a>this._config.pointerDirectionChangeThreshold&&(r.y=n>i.y?1:-1,i.y=n),r}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,gCe(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,jCe),e.removeEventListener("touchstart",this._pointerDown,PCe)}},{key:"_applyRootElementTransform",value:function(e,t){var n=ACe(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 r=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(!(0===r.width&&0===r.height||0===i.width&&0===i.height)){var o=r.left-i.left,a=i.right-r.right,s=r.top-i.top,c=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,r.height>i.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:LCe(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))&&kCe(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:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=ap(this._rootElement)),this._cachedShadowRoot}}]),e}();function ACe(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function DCe(e,t,n){return Math.max(t,Math.min(n,e))}function RCe(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function LCe(e){return"t"===e.type[0]}function NCe(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var r=t.createElement("div");return n.forEach(function(e){return r.appendChild(e)}),r}function FCe(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=ACe(t.left,t.top)}function BCe(e,t){return Math.max(0,Math.min(t,e))}var zCe=function(){function e(t,n,r,i,o){var a=this;Object(s.a)(this,e),this._dragDropRegistry=n,this._ngZone=i,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new k.b,this.entered=new k.b,this.exited=new k.b,this.dropped=new k.b,this.sorted=new k.b,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=w.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new k.b,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),Object(pCe.a)(0,cp.b).pipe(Object(fp.a)(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?VCe(e,-t):2===a._verticalScrollDirection&&VCe(e,t),1===a._horizontalScrollDirection?UCe(e,-t):2===a._horizontalScrollDirection&&UCe(e,t)})},this.element=Nf(t),this._document=r,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new SCe(r,o)}return Object(c.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(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,r){var i;this._draggingStarted(),null==r?-1===(i=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(i=this._getItemIndexFromPointerPosition(e,t,n)):i=r;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),c=o[i];if(c===e&&(c=o[i+1]),a>-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),o.splice(i,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var u=o[0].getRootElement();u.parentNode.insertBefore(s,u),o.unshift(e)}else Nf(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),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,r,i,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:i,distance:o})}},{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=Nf(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(Object(g.a)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?HCe("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,r){if(!this.sortingDisabled&&this._clientRect&&CCe(this._clientRect,.05,t,n)){var i=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,r);if(!(-1===o&&i.length>0)){var a="horizontal"===this._orientation,s=HCe(i,function(t){return t.drag===e}),c=i[o],l=c.clientRect,u=s>o?1:-1,h=this._getItemOffsetPx(i[s].clientRect,l,u),d=this._getSiblingOffsetPx(s,i,u),f=i.slice();!function(e,t,n){var r=BCe(t,e.length-1),i=BCe(n,e.length-1);if(r!==i){for(var o=e[r],a=i<r?-1:1,s=r;s!==i;s+=a)e[s]=e[s+a];e[i]=o}}(i,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),i.forEach(function(t,n){if(f[n]!==t){var r=t.drag===e,i=r?h:d,o=r?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=i,a?(o.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),kCe(t.clientRect,0,i)):(o.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),kCe(t.clientRect,i,0))}}),this._previousSwap.overlaps=wCe(l,t,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var r,i=0,o=0;if(this._parentPositions.positions.forEach(function(a,s){if(s!==n._document&&a.clientRect&&!r&&CCe(a.clientRect,.05,e,t)){var c=f(function(e,t,n,r){var i=qCe(t,r),o=WCe(t,n),a=0,s=0;if(i){var c=e.scrollTop;1===i?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],((i=c[0])||o)&&(r=s)}}),!i&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,c=a.height,l={width:s,height:c,top:0,right:s,bottom:c,left:0};i=qCe(l,t),o=WCe(l,e),r=window}!r||i===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&r===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=o,this._scrollNode=r,(i||o)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=Nf(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=Nf(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:_Ce(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=Nf(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 r="horizontal"===this._orientation,i=t[e].clientRect,o=t[e+-1*n],a=i[r?"width":"height"]*n;if(o){var s=r?"left":"top",c=r?"right":"bottom";-1===n?a-=o.clientRect[s]-i[c]:a+=i[s]-o.clientRect[c]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var r="horizontal"===this._orientation,i=r?t.left-e.left:t.top-e.top;return-1===n&&(i+=r?t.width-e.width:t.height-e.height),i}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,r="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var i=n[n.length-1].clientRect;return r?e>=i.right:t>=i.bottom}var o=n[0].clientRect;return r?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,r){var i=this,o="horizontal"===this._orientation,a=HCe(this._itemPositions,function(a,s,c){var l=a.drag,u=a.clientRect;return l===e?c.length<2:(!r||l!==i._previousSwap.drag||!i._previousSwap.overlaps||(o?r.x:r.y)!==i._previousSwap.delta)&&(o?t>=Math.floor(u.left)&&t<Math.floor(u.right):n>=Math.floor(u.top)&&n<Math.floor(u.bottom))});return-1!==a&&this.sortPredicate(a,e,this)?a:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return null!=this._clientRect&&wCe(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find(function(r){return r._canReceive(e,t,n)})}},{key:"_canReceive",value:function(e,t,n){if(!this._clientRect||!wCe(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var r=this._getShadowRoot().elementFromPoint(t,n);if(!r)return!1;var i=Nf(this.element);return r===i||i.contains(r)}},{key:"_startReceiving",value:function(e,t){var n=this,r=this._activeSiblings;!r.has(e)&&t.every(function(e){return n.enterPredicate(e,n)||n._draggables.indexOf(e)>-1})&&(r.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){kCe(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=ap(Nf(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function HCe(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function VCe(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function UCe(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function qCe(e,t){var n=e.top,r=e.bottom,i=.05*e.height;return t>=n-i&&t<=n+i?1:t>=r-i&&t<=r+i?2:0}function WCe(e,t){var n=e.left,r=e.right,i=.05*e.width;return t>=n-i&&t<=n+i?1:t>=r-i&&t<=r+i?2:0}var GCe=ip({passive:!1,capture:!0}),XCe=function(){var e=function(){function e(t,n){var r=this;Object(s.a)(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new k.b,this.pointerUp=new k.b,this.scroll=new k.b,this._preventDefaultWhileDragging=function(e){r._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){r._activeDragInstances.length>0&&(r._activeDragInstances.some(r._draggingPredicate)&&e.preventDefault(),r.pointerMove.next(e))},this._document=n}return Object(c.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,GCe)})}},{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,GCe)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var r=t.type.startsWith("touch");this._globalListeners.set(r?"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:GCe}),r||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:GCe}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{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)(Gn(Ql),Gn(Iu))},e.\u0275prov=F({factory:function(){return new e(Gn(Ql),Gn(Iu))},token:e,providedIn:"root"}),e}(),YCe={dragStartThreshold:5,pointerDirectionChangeThreshold:5},KCe=function(){var e=function(){function e(t,n,r,i){Object(s.a)(this,e),this._document=t,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=i}return Object(c.a)(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:YCe;return new ICe(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new zCe(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Gn(Iu),Gn(Ql),Gn(yp),Gn(XCe))},e.\u0275prov=F({factory:function(){return new e(Gn(Iu),Gn(Ql),Gn(yp),Gn(XCe))},token:e,providedIn:"root"}),e}(),QCe=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[KCe],imports:[_p]}),e}(),ZCe=function(){function e(e){e.events.subscribe(function(e){e instanceof LY&&(gtag("set","page",e.url),gtag("send","pageview"))})}return e.\u0275prov=F({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Gn(uZ))}}),e}(),$Ce=(n("ZoYo"),n("gcYM"),Symbol("passProps")),JCe=function(e){return Object.entries(e).reduce(function(e,t){var n=f(t,2),r=n[1];return void 0===r?e:Object.assign(e,m({},n[0],r))},{})},eSe=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=Object(F_e.findDOMNode)(this);if(this.props["children-to-append"]){var t=this.props.legacyRenderMode?e:e.parentElement;this.props["children-to-append"].filter(function(e){return!((t=e).isConnected||document.body.contains(t));var t}).forEach(function(e){return t.appendChild(e)})}}},{key:"render",value:function(){return Object(vye.createElement)("react-content",!this.props.legacyRenderMode&&{style:{display:"none"}})}}]),n}(vye.PureComponent),tSe=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props,t=e.disguiseRootAs,n=e.children,r=e.ngChildComponents,i=twe(e,["disguiseRootAs","disguiseChildrenAs","children","ngChildComponents"]),o=t||vye.Fragment,a=r?this._isReactContentOnlyChild()?this._renderReactContentChildren():this._renderChildrenNaive():n;return Object(vye.createElement)(o,i||null,a)}},{key:"_isReactContentOnlyChild",value:function(){var e=this.props.children;if(1===vye.Children.count(e)){var t=f(vye.Children.toArray(e),1)[0];if("object"==typeof t&&t.type===eSe)return!0}return!1}},{key:"_renderReactContentChildren",value:function(){var e=this.props,t=e.disguiseChildrenAs;return e.ngChildComponents.map(function(e,n){var r,i=JCe((r=e,r[$Ce]).reduce(function(t,n){return Object.assign(t,m({},n.targetKey,e[n.sourceKey]))},{}));return Object(vye.createElement)(t,Object.assign({},i,{key:n,ref:function(t){t&&Object(F_e.findDOMNode)(t).appendChild(e.elementRef.nativeElement)}}))})}},{key:"_renderChildrenNaive",value:function(){var e=this.props,t=e.disguiseChildrenAs;return vye.Children.map(e.children,function(e){if(!t||"object"!=typeof e)return e;var n=e.type||t;return Object(vye.createElement)(n,Object.assign({},e.props,{key:e.key}),e)})}}]),n}(vye.PureComponent),nSe=new Map,rSe=/([a-z0-9])([A-Z])/g;function iSe(e,t){if(!nSe.has(e)){var n={resolver:t};nSe.set(e,n),nSe.set(e.toLowerCase(),n),nSe.set(e.replace(rSe,"$1-$2").toLowerCase(),n)}}function oSe(e){return void 0!==e.setRenderPendingCallback}var aSe=function(){function e(t){Object(s.a)(this,e),this.type=t,this._props={},this._children=[],this._childrenToAppend=[],this._isDestroyPending=!1,this._isRenderPending=!0,this.setRenderPendingCallback=function(){return null},this.setRenderPending(),this._tryResolveTypeIsReactElementClass()}return Object(c.a)(e,[{key:"domElement",get:function(){return this._renderedDomElement}},{key:"parent",get:function(){return this._parent},set:function(e){this._parent=e,this.setRenderPending()}},{key:"shouldRender",get:function(){return!this._isNotRenderable}},{key:"destroyPending",get:function(){return this._isDestroyPending}},{key:"setRenderPending",value:function(){this.setRenderPendingCallback(),this._isRenderPending=!0}},{key:"destroyNode",value:function(){this.setRenderPending(),this._isDestroyPending=!0}},{key:"setAttribute",value:function(e,t){this.setAttributes(m({},e,t))}},{key:"setAttributes",value:function(e){this.setProperties(e)}},{key:"setProperty",value:function(e,t){this.setProperties(m({},e,t))}},{key:"setProperties",value:function(e){this.setRenderPending(),Object.assign(this._props,JCe(e))}},{key:"removeProperty",value:function(e,t){return this.setRenderPending(),t?delete this._props[e][t]:delete this._props[e]}},{key:"addChild",value:function(e){this.setRenderPending(),this._children.push(e)}},{key:"removeChild",value:function(e){this.setRenderPending(),this._children=this._children.filter(function(t){return t!==e})}},{key:"asComment",value:function(e){return this.setRenderPending(),this.type=void 0,this._comment=e,this}},{key:"asText",value:function(e){return this.setRenderPending(),this.type=void 0,this._text=e,e&&e.trim()||(this._isNotRenderable=!0),this}},{key:"render",value:function(){if(!oSe(this._parent)){if(this._isDestroyPending&&this._parent)return Object(F_e.unmountComponentAtNode)(this._parent),this;this._isRenderPending&&(Object(F_e.render)(this._renderRecursive(),this._parent),this._isRenderPending=!1)}return this}},{key:"appendChild",value:function(e){this._childrenToAppend.push(e)}},{key:"toString",value:function(){return this._typeName?"[".concat(this._typeName," ReactNode]"):this._text?"[text ReactNode]":this._comment?"[comment ReactNode]":"[undefined ReactNode]"}},{key:"_renderRecursive",value:function(e){var t=this._children?this._children.map(function(e,t){return e._renderRecursive(t.toString())}):[];if(this._text)return this._text;this._props["children-to-append"]=this._childrenToAppend,e&&(this._props.key=e);var n=this._transformProps(JCe(this._props));return Object(vye.createElement)(this.type,n,t.length>0?t:void 0)}},{key:"_transformProps",value:function(e){var t=this;return Object.entries(e).reduce(function(e,n){var r=f(n,2),i=r[0],o=r[1],a=f("string"!=typeof i?[i,o]:t._transformProp(i,o),2);return Object.assign(e,m({},a[0],a[1]))},{})}},{key:"_transformProp",value:function(e,t){var n=e[0];return n===n.toLowerCase()?[e,t]:["on".concat(e),t]}},{key:"_tryResolveTypeIsReactElementClass",value:function(){if(void 0===this._typeIsReactElementClass){if(!this.type)return;this._typeName=this.type,"string"==typeof this.type&&(this.type=function(e){var t=nSe.get(e)||nSe.get(e.toLowerCase());if(!t)return e;try{return t.resolver()}catch(n){throw new TypeError("Could not load component for: ".concat(e,".").concat(n))}}(this.type)),this._typeIsReactElementClass="string"!=typeof this.type}}}]),e}();Element.prototype._addEventListener=Element.prototype.addEventListener,Element.prototype._removeEventListener=Element.prototype.removeEventListener,Element.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this._addEventListener(e,t,n),this.eventListenerList||(this.eventListenerList={}),this.eventListenerList[e]||(this.eventListenerList[e]=[]),this.eventListenerList[e].push({type:e,listener:t,useCapture:n})},Element.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this._removeEventListener(e,t,n),this.eventListenerList||(this.eventListenerList={}),this.eventListenerList[e]||(this.eventListenerList[e]=[]);for(var r=0;r<this.eventListenerList[e].length;r++)if(this.eventListenerList[e][r].listener===t&&this.eventListenerList[e][r].useCapture===n){this.eventListenerList[e].splice(r,1);break}0==this.eventListenerList[e].length&&delete this.eventListenerList[e]},Element.prototype.getEventListeners=function(e){return this.eventListenerList||(this.eventListenerList={}),void 0===e?this.eventListenerList:this.eventListenerList[e]};var sSe,cSe,lSe,uSe,hSe=function(){var e=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this,e,r,"app-id")).reactRootNodes=new Set,i.setRenderPendingCallback=function(){i.isRenderPending=!0},i.defaultReactRenderer=new dSe(Object(p.a)(i)),i}return Object(c.a)(n,[{key:"createRenderer",value:function(e,t){return t&&t.styles.length&&"react-renderer"===t.styles[0]?this.defaultReactRenderer:Object(o.a)(Object(a.a)(n.prototype),"createRenderer",this).call(this,e,t)}},{key:"begin",value:function(){}},{key:"end",value:function(){this.isRenderPending&&(this.reactRootNodes=new Set(Array.from(this.reactRootNodes).filter(function(e){return!e.render().destroyPending})),this.isRenderPending=!1)}}]),n}(zh);return e.\u0275fac=function(t){return new(t||e)(Gn(Eh),Gn(Ih))},e.\u0275prov=F({token:e,factory:function(t){return e.\u0275fac(t)}}),e=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([nwe("design:paramtypes",[Eh,Ih])],e)}(),dSe=function(){function e(t){var n=this;Object(s.a)(this,e),this.rootRenderer=t,this.data={addRootNode:function(e){n.rootRenderer.reactRootNodes.add(e)}},iSe("ReactContent",function(){return eSe}),iSe("Disguise",function(){return tSe})}return Object(c.a)(e,[{key:"destroy",value:function(){}},{key:"destroyNode",value:function(e){e.destroyNode()}},{key:"createElement",value:function(e,t){return new aSe(e)}},{key:"createComment",value:function(e){return(new aSe).asComment(e)}},{key:"createText",value:function(e){return(new aSe).asText(e)}},{key:"appendChild",value:function(e,t){if(t&&t.shouldRender){if(!oSe(e))return t.setRenderPendingCallback=this.rootRenderer.setRenderPendingCallback,this.rootRenderer.reactRootNodes.add(t),void(t.parent=e);t.setRenderPendingCallback=function(){return e.setRenderPending()},e.addChild(t),t.parent=e}}},{key:"insertBefore",value:function(e,t,n){if(e){var r=document.createElement("div");e.insertBefore(r,n),t.parent=r,t.setRenderPendingCallback=this.rootRenderer.setRenderPendingCallback}}},{key:"removeChild",value:function(e,t){e&&(oSe(e)?e.removeChild(t):t.parent=null)}},{key:"selectRootElement",value:function(e){}},{key:"parentNode",value:function(e){}},{key:"nextSibling",value:function(e){}},{key:"setAttribute",value:function(e,t,n,r){e.setProperty(t,n)}},{key:"removeAttribute",value:function(e,t,n){e.removeProperty(t)}},{key:"addClass",value:function(e,t){e.setProperty("className",t)}},{key:"removeClass",value:function(e,t){e.removeProperty("className")}},{key:"setStyle",value:function(e,t,n,r){e.setProperty("style",r&Zr.DashCase?{style:n+!!(r&Zr.Important)?" !important":""}:{style:n})}},{key:"removeStyle",value:function(e,t,n){e.removeProperty("style",t)}},{key:"setProperty",value:function(e,t,n){e.setProperty(t,n)}},{key:"setValue",value:function(e,t){e.setProperty("value",t)}},{key:"listen",value:function(e,t,n){return e.setProperty(t,n),function(){return null}}}]),e}(),fSe=function(){var e=function e(){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ke({type:e}),e.\u0275inj=z({providers:[{provide:zh,useClass:hSe}],imports:[[ed],ed]}),e}(),pSe=function(){function e(e){this._googleAnalyticsService=e}return e.\u0275fac=function(t){return new(t||e)(Gn(ZCe))},e.\u0275mod=ke({type:e,bootstrap:[U_e]}),e.\u0275inj=z({providers:[$Z,{provide:qr,useClass:oCe},YX,khe,e$,G7,ZZ,poe,I2,P9,h9,BZ,QZ,xle,Rle,e3,ate,ite,j9,f9,K_e,rue,Lte,Kne,m9,KZ,ohe,iie,Fne,hCe,p6,Ffe,Pfe,epe,kpe,hoe,Nme,Lme,Rme,Y8,m6,K4,j2,F5,zge,N8,loe,$8,doe,q8,JZ,ghe,zne,Cde,kde,are,k9,C9,F7,Y0,moe,fCe,eee,Uie,mbe,Hre,ZCe,N7,fye,gye,nd,roe,Sde],imports:[[fSe,ed,Fm,H_e,Tf,Ef,Db,im,Y_e,cY,hY,vY,uCe,nue,mle,QCe,_he,lCe,Wbe.forRoot(),M0]]}),e}();sSe=[l2,bf,Bd,pf,H3,Q3,fd,Fd,vf,H5,Cae,X5,W5,K5,Eae,U5,Z5,fZ,ih,m4,T2,J5,r4,t4,o4],cSe=[dCe],(lSe=ude.\u0275cmp).directiveDefs=function(){return sSe.map(ye)},lSe.pipeDefs=function(){return cSe.map(_e)},n("RQB8"),n("+EXs"),"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var mSe="%COMP%";"_nghost-".concat(mSe),"_ngcontent-".concat(mSe);var gSe=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(gSe,"]"),"[".concat(gSe,"]{2,}"),m(uSe={},4,4),m(uSe,1,1),m(uSe,2,2),m(uSe,0,0),m(uSe,3,3),function(){if(cu)throw new Error("Cannot enable prod mode after platform setup.");su=!1}(),$h().bootstrapModule(pSe).then(function(e){var t,n=e.injector.get(yu);t=new od(n.components[0]),"undefined"!=typeof COMPILED&&COMPILED||((ae.ng=ae.ng||{}).profiler=t)}).catch(function(e){return console.log(e)})},zahk:function(e,t,n){e.exports=n("T8ZO")},zn8P: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="zn8P"},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 r=n("MGFw"),i=n("WtWf"),o=n("mvVQ"),a=n("/E8u"),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 i;return Object(r.a)(this,n),(i=t.call(this)).parent=e,i}return Object(i.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(r.a)(this,n),t.apply(this,arguments)}return Object(i.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){if(e instanceof c.a)return e.subscribe(t);var n;try{n=Object(l.a)(e)(t)}catch(r){t.error(r)}return n}}}},[[0,0]]]); |